@chamn/engine 0.0.4 → 0.0.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.
- package/.eslintrc.js +1 -0
- package/CHANGELOG.md +16 -0
- package/README.md +31 -0
- package/build.config.js +4 -3
- package/dist/Engine.module.scss.d.ts +5 -0
- package/dist/component/CSSEditor/index.d.ts +16 -0
- package/dist/component/CSSEditor/style.module.scss.d.ts +6 -0
- package/dist/component/CSSPropertiesEditor/cssProperties.d.ts +898 -0
- package/dist/component/CSSPropertiesEditor/index.d.ts +43 -0
- package/dist/component/CSSPropertiesEditor/style.module.scss.d.ts +15 -0
- package/dist/component/CSSPropertiesEditor/util.d.ts +1 -0
- package/dist/component/CSSPropertiesVariableBindEditor/cssProperties.d.ts +898 -0
- package/dist/component/CSSPropertiesVariableBindEditor/index.d.ts +37 -0
- package/dist/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +15 -0
- package/dist/component/CSSPropertiesVariableBindEditor/util.d.ts +1 -0
- package/dist/component/ClassNameEditor/index.d.ts +16 -0
- package/dist/component/CustomSchemaForm/components/Form/Field/index.d.ts +11 -0
- package/dist/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +8 -0
- package/dist/component/CustomSchemaForm/components/Form/context.d.ts +10 -0
- package/dist/component/CustomSchemaForm/components/Form/index.d.ts +17 -0
- package/dist/component/CustomSchemaForm/components/SetterSwitcher/index.d.ts +12 -0
- package/dist/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +7 -0
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/ArrayItem.d.ts +11 -0
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/SortItemOrderModal.d.ts +10 -0
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/index.d.ts +14 -0
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +7 -0
- package/dist/component/CustomSchemaForm/components/Setters/BooleanSetter/index.d.ts +5 -0
- package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/index.d.ts +6 -0
- package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +6 -0
- package/dist/component/CustomSchemaForm/components/Setters/ExpressionSetter/index.d.ts +8 -0
- package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/defaultDts.d.ts +1 -0
- package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/index.d.ts +2 -0
- package/dist/component/CustomSchemaForm/components/Setters/JSONSetter/index.d.ts +2 -0
- package/dist/component/CustomSchemaForm/components/Setters/NumberSetter/index.d.ts +3 -0
- package/dist/component/CustomSchemaForm/components/Setters/SelectSetter/index.d.ts +3 -0
- package/dist/component/CustomSchemaForm/components/Setters/ShapeSetter/index.d.ts +8 -0
- package/dist/component/CustomSchemaForm/components/Setters/StringSetter/index.d.ts +3 -0
- package/dist/component/CustomSchemaForm/components/Setters/TextAreaSetter/index.d.ts +3 -0
- package/dist/component/CustomSchemaForm/components/Setters/index.d.ts +3 -0
- package/dist/component/CustomSchemaForm/components/Setters/type.d.ts +19 -0
- package/dist/component/CustomSchemaForm/context.d.ts +15 -0
- package/dist/component/CustomSchemaForm/index.d.ts +17 -0
- package/dist/component/CustomSchemaForm/style.module.scss.d.ts +11 -0
- package/dist/component/CustomSchemaForm/utils.d.ts +2 -0
- package/dist/component/MonacoEditor/index.d.ts +15 -0
- package/dist/component/Workbench/style.module.scss.d.ts +26 -0
- package/dist/core/pluginManager.d.ts +1 -1
- package/dist/index.cjs.js +295 -39
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.es.js +44920 -9933
- package/dist/index.es.js.map +1 -1
- package/dist/material/innerMaterial.d.ts +2 -0
- package/dist/monacoeditorwork/css.worker.bundle.js +45072 -0
- package/dist/monacoeditorwork/editor.worker.bundle.js +8294 -0
- package/dist/monacoeditorwork/html.worker.bundle.js +24321 -0
- package/dist/monacoeditorwork/json.worker.bundle.js +15550 -0
- package/dist/monacoeditorwork/ts.worker.bundle.js +169967 -0
- package/dist/plugins/AdvancePanel/index.d.ts +10 -0
- package/dist/plugins/AdvancePanel/style.module.scss.d.ts +7 -0
- package/dist/plugins/ComponentLibrary/components/DragItem/index.d.ts +12 -0
- package/dist/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +9 -0
- package/dist/plugins/ComponentLibrary/components/ListView/index.d.ts +9 -0
- package/dist/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +12 -0
- package/dist/plugins/ComponentLibrary/index.d.ts +3 -0
- package/dist/plugins/ComponentLibrary/localize/en_US/index.d.ts +1 -0
- package/dist/plugins/ComponentLibrary/localize/index.d.ts +2 -0
- package/dist/plugins/ComponentLibrary/localize/zh_CN/index.d.ts +1 -0
- package/dist/plugins/ComponentLibrary/style.module.scss.d.ts +11 -0
- package/dist/plugins/ComponentLibrary/util.d.ts +1 -0
- package/dist/plugins/ComponentStatePanel/index.d.ts +10 -0
- package/dist/plugins/Designer/components/DefaultSelectToolBar/index.d.ts +10 -0
- package/dist/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +11 -0
- package/dist/plugins/Designer/components/GhostView/index.d.ts +5 -0
- package/dist/plugins/Designer/config.d.ts +1 -0
- package/dist/plugins/Designer/index.d.ts +15 -0
- package/dist/plugins/Designer/localize/en_US/index.d.ts +1 -0
- package/dist/plugins/Designer/localize/index.d.ts +2 -0
- package/dist/plugins/Designer/localize/zh_CN/index.d.ts +1 -0
- package/dist/plugins/Designer/style.module.scss.d.ts +5 -0
- package/dist/plugins/Designer/util.d.ts +2 -0
- package/dist/plugins/Designer/view.d.ts +30 -0
- package/dist/plugins/DisplaySourceSchema/index.d.ts +9 -0
- package/dist/plugins/GlobalStatePanel/index.d.ts +3 -0
- package/dist/plugins/GlobalStatePanel/localize/en_US/index.d.ts +1 -0
- package/dist/plugins/GlobalStatePanel/localize/index.d.ts +2 -0
- package/dist/plugins/GlobalStatePanel/localize/zh_CN/index.d.ts +1 -0
- package/dist/plugins/GlobalStatePanel/style.module.scss.d.ts +5 -0
- package/dist/plugins/History/index.d.ts +2 -0
- package/dist/plugins/OutlineTree/components/TreeView/context.d.ts +30 -0
- package/dist/plugins/OutlineTree/components/TreeView/dataStruct.d.ts +21 -0
- package/dist/plugins/OutlineTree/components/TreeView/index.d.ts +34 -0
- package/dist/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +16 -0
- package/dist/plugins/OutlineTree/components/TreeView/treeNode.d.ts +9 -0
- package/dist/plugins/OutlineTree/index.d.ts +3 -0
- package/dist/plugins/OutlineTree/localize/en_US/index.d.ts +1 -0
- package/dist/plugins/OutlineTree/localize/index.d.ts +2 -0
- package/dist/plugins/OutlineTree/localize/zh_CN/index.d.ts +1 -0
- package/dist/plugins/OutlineTree/util.d.ts +15 -0
- package/dist/plugins/PropertyPanel/index.d.ts +9 -0
- package/dist/plugins/PropertyPanel/style.module.scss.d.ts +10 -0
- package/dist/plugins/RightPanel/index.d.ts +2 -0
- package/dist/plugins/RightPanel/style.module.scss.d.ts +10 -0
- package/dist/plugins/RightPanel/view.d.ts +34 -0
- package/dist/plugins/VisualPanelPlus/index.d.ts +9 -0
- package/dist/plugins/VisualPanelPlus/style.module.scss.d.ts +10 -0
- package/dist/plugins/index.d.ts +9 -0
- package/dist/style.css +1 -1
- package/dist/utils/css.d.ts +19 -0
- package/dist/utils/logger.d.ts +1 -0
- package/package.json +16 -8
- package/public/Engine.module.scss.d.ts +5 -0
- package/public/component/CSSEditor/style.module.scss.d.ts +6 -0
- package/public/component/CSSPropertiesEditor/style.module.scss.d.ts +15 -0
- package/public/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +15 -0
- package/public/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +8 -0
- package/public/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +7 -0
- package/public/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +7 -0
- package/public/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +6 -0
- package/public/component/CustomSchemaForm/style.module.scss.d.ts +11 -0
- package/public/component/Workbench/style.module.scss.d.ts +26 -0
- package/public/plugins/AdvancePanel/style.module.scss.d.ts +7 -0
- package/public/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +9 -0
- package/public/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +12 -0
- package/public/plugins/ComponentLibrary/style.module.scss.d.ts +11 -0
- package/public/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +11 -0
- package/public/plugins/Designer/style.module.scss.d.ts +5 -0
- package/public/plugins/GlobalStatePanel/style.module.scss.d.ts +5 -0
- package/public/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +16 -0
- package/public/plugins/PropertyPanel/style.module.scss.d.ts +10 -0
- package/public/plugins/RightPanel/style.module.scss.d.ts +10 -0
- package/public/plugins/VisualPanelPlus/style.module.scss.d.ts +10 -0
- package/public/render.umd.js +14 -14
- package/public/render.umd.js.map +1 -1
- package/src/Engine.module.scss.d.ts +5 -0
- package/src/_dev_/page/Editor/index.tsx +1 -1
- package/src/component/CSSEditor/index.tsx +4 -5
- package/src/component/CSSEditor/style.module.scss.d.ts +6 -0
- package/src/component/CSSPropertiesEditor/index.tsx +1 -5
- package/src/component/CSSPropertiesEditor/style.module.scss.d.ts +15 -0
- package/src/component/CSSPropertiesVariableBindEditor/index.tsx +1 -1
- package/src/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +15 -0
- package/src/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +8 -0
- package/src/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +7 -0
- package/src/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +7 -0
- package/src/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +6 -0
- package/src/component/CustomSchemaForm/style.module.scss.d.ts +11 -0
- package/src/component/MonacoEditor/index.tsx +1 -41
- package/src/component/Workbench/style.module.scss.d.ts +26 -0
- package/src/core/pluginManager.ts +1 -1
- package/src/index.tsx +5 -2
- package/src/plugins/AdvancePanel/style.module.scss.d.ts +7 -0
- package/src/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +9 -0
- package/src/plugins/ComponentLibrary/components/ListView/index.tsx +0 -1
- package/src/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +12 -0
- package/src/plugins/ComponentLibrary/style.module.scss.d.ts +11 -0
- package/src/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +11 -0
- package/src/plugins/Designer/style.module.scss.d.ts +5 -0
- package/src/plugins/DisplaySourceSchema/index.tsx +1 -1
- package/src/plugins/GlobalStatePanel/style.module.scss.d.ts +5 -0
- package/src/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +16 -0
- package/src/plugins/PropertyPanel/style.module.scss.d.ts +10 -0
- package/src/plugins/RightPanel/style.module.scss.d.ts +10 -0
- package/src/plugins/VisualPanelPlus/index.tsx +3 -19
- package/src/plugins/VisualPanelPlus/style.module.scss.d.ts +10 -0
- package/src/plugins/index.tsx +3 -1
- package/src/style.d.ts +2 -0
- package/src/typing.d.ts +5 -0
- package/dist/typing.d.ts +0 -4
- package/dist/vite-env.d.ts +0 -1
- package/public/typing.d.ts +0 -4
- package/public/vite-env.d.ts +0 -1
- package/src/component/MonacoEditor/index copy.tsx +0 -119
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var BP=Object.defineProperty;var FP=(e,t,n)=>t in e?BP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>(FP(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),ln=require("react-dom"),VP=require("monaco-editor");function pg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const x=pg(O),HP=pg(ln),Yl=pg(VP);var ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vs={},WP={get exports(){return Vs},set exports(e){Vs=e}},os={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ob;function UP(){if(ob)return os;ob=1;var e=O,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:o.current}}return os.Fragment=n,os.jsx=a,os.jsxs=a,os}var is={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,51 +14,51 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var ib;function KP(){return ib||(ib=1,process.env.NODE_ENV!=="production"&&function(){var e=O,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function b(R){if(R===null||typeof R!="object")return null;var V=h&&R[h]||R[m];return typeof V=="function"?V:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(R){{for(var V=arguments.length,G=new Array(V>1?V-1:0),ue=1;ue<V;ue++)G[ue-1]=arguments[ue];C("error",R,G)}}function C(R,V,G){{var ue=g.ReactDebugCurrentFrame,be=ue.getStackAddendum();be!==""&&(V+="%s",G=G.concat([be]));var $e=G.map(function(de){return String(de)});$e.unshift("Warning: "+V),Function.prototype.apply.call(console[R],console,$e)}}var w=!1,y=!1,$=!1,E=!1,N=!1,P;P=Symbol.for("react.module.reference");function _(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===i||N||R===o||R===c||R===u||E||R===p||w||y||$||typeof R=="object"&&R!==null&&(R.$$typeof===f||R.$$typeof===d||R.$$typeof===a||R.$$typeof===s||R.$$typeof===l||R.$$typeof===P||R.getModuleId!==void 0))}function D(R,V,G){var ue=R.displayName;if(ue)return ue;var be=V.displayName||V.name||"";return be!==""?G+"("+be+")":G}function M(R){return R.displayName||"Context"}function I(R){if(R==null)return null;if(typeof R.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case s:var V=R;return M(V)+".Consumer";case a:var G=R;return M(G._context)+".Provider";case l:return D(R,R.render,"ForwardRef");case d:var ue=R.displayName||null;return ue!==null?ue:I(R.type)||"Memo";case f:{var be=R,$e=be._payload,de=be._init;try{return I(de($e))}catch{return null}}}return null}var T=Object.assign,j=0,A,B,H,U,J,F,z;function k(){}k.__reactDisabledLog=!0;function Q(){{if(j===0){A=console.log,B=console.info,H=console.warn,U=console.error,J=console.group,F=console.groupCollapsed,z=console.groupEnd;var R={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}j++}}function K(){{if(j--,j===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},R,{value:A}),info:T({},R,{value:B}),warn:T({},R,{value:H}),error:T({},R,{value:U}),group:T({},R,{value:J}),groupCollapsed:T({},R,{value:F}),groupEnd:T({},R,{value:z})})}j<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=g.ReactCurrentDispatcher,te;function re(R,V,G){{if(te===void 0)try{throw Error()}catch(be){var ue=be.stack.trim().match(/\n( *(at )?)/);te=ue&&ue[1]||""}return`
|
|
18
|
+
`+te+R}}var ce=!1,ne;{var he=typeof WeakMap=="function"?WeakMap:Map;ne=new he}function ee(R,V){if(!R||ce)return"";{var G=ne.get(R);if(G!==void 0)return G}var ue;ce=!0;var be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Y.current,Y.current=null,Q();try{if(V){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(_t){ue=_t}Reflect.construct(R,[],de)}else{try{de.call()}catch(_t){ue=_t}R.call(de.prototype)}}else{try{throw Error()}catch(_t){ue=_t}R()}}catch(_t){if(_t&&ue&&typeof _t.stack=="string"){for(var le=_t.stack.split(`
|
|
19
|
+
`),De=ue.stack.split(`
|
|
20
|
+
`),je=le.length-1,Ve=De.length-1;je>=1&&Ve>=0&&le[je]!==De[Ve];)Ve--;for(;je>=1&&Ve>=0;je--,Ve--)if(le[je]!==De[Ve]){if(je!==1||Ve!==1)do if(je--,Ve--,Ve<0||le[je]!==De[Ve]){var dt=`
|
|
21
|
+
`+le[je].replace(" at new "," at ");return R.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",R.displayName)),typeof R=="function"&&ne.set(R,dt),dt}while(je>=1&&Ve>=0);break}}}finally{ce=!1,Y.current=$e,K(),Error.prepareStackTrace=be}var on=R?R.displayName||R.name:"",Yn=on?re(on):"";return typeof R=="function"&&ne.set(R,Yn),Yn}function q(R,V,G){return ee(R,!1)}function oe(R){var V=R.prototype;return!!(V&&V.isReactComponent)}function ve(R,V,G){if(R==null)return"";if(typeof R=="function")return ee(R,oe(R));if(typeof R=="string")return re(R);switch(R){case c:return re("Suspense");case u:return re("SuspenseList")}if(typeof R=="object")switch(R.$$typeof){case l:return q(R.render);case d:return ve(R.type,V,G);case f:{var ue=R,be=ue._payload,$e=ue._init;try{return ve($e(be),V,G)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,ye={},me=g.ReactDebugCurrentFrame;function Ee(R){if(R){var V=R._owner,G=ve(R.type,R._source,V?V.type:null);me.setExtraStackFrame(G)}else me.setExtraStackFrame(null)}function Oe(R,V,G,ue,be){{var $e=Function.call.bind(fe);for(var de in R)if($e(R,de)){var le=void 0;try{if(typeof R[de]!="function"){var De=Error((ue||"React class")+": "+G+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof R[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw De.name="Invariant Violation",De}le=R[de](V,de,ue,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){le=je}le&&!(le instanceof Error)&&(Ee(be),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ue||"React class",G,de,typeof le),Ee(null)),le instanceof Error&&!(le.message in ye)&&(ye[le.message]=!0,Ee(be),S("Failed %s type: %s",G,le.message),Ee(null))}}}var bt=Array.isArray;function pt(R){return bt(R)}function rt(R){{var V=typeof Symbol=="function"&&Symbol.toStringTag,G=V&&R[Symbol.toStringTag]||R.constructor.name||"Object";return G}}function st(R){try{return We(R),!1}catch{return!0}}function We(R){return""+R}function Ue(R){if(st(R))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rt(R)),We(R)}var tt=g.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},Ie,_e,lt;lt={};function Ct(R){if(fe.call(R,"ref")){var V=Object.getOwnPropertyDescriptor(R,"ref").get;if(V&&V.isReactWarning)return!1}return R.ref!==void 0}function Ce(R){if(fe.call(R,"key")){var V=Object.getOwnPropertyDescriptor(R,"key").get;if(V&&V.isReactWarning)return!1}return R.key!==void 0}function Te(R,V){if(typeof R.ref=="string"&&tt.current&&V&&tt.current.stateNode!==V){var G=I(tt.current.type);lt[G]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(tt.current.type),R.ref),lt[G]=!0)}}function Ye(R,V){{var G=function(){Ie||(Ie=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};G.isReactWarning=!0,Object.defineProperty(R,"key",{get:G,configurable:!0})}}function Qe(R,V){{var G=function(){_e||(_e=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};G.isReactWarning=!0,Object.defineProperty(R,"ref",{get:G,configurable:!0})}}var Et=function(R,V,G,ue,be,$e,de){var le={$$typeof:t,type:R,key:V,ref:G,props:de,_owner:$e};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function It(R,V,G,ue,be){{var $e,de={},le=null,De=null;G!==void 0&&(Ue(G),le=""+G),Ce(V)&&(Ue(V.key),le=""+V.key),Ct(V)&&(De=V.ref,Te(V,be));for($e in V)fe.call(V,$e)&&!qe.hasOwnProperty($e)&&(de[$e]=V[$e]);if(R&&R.defaultProps){var je=R.defaultProps;for($e in je)de[$e]===void 0&&(de[$e]=je[$e])}if(le||De){var Ve=typeof R=="function"?R.displayName||R.name||"Unknown":R;le&&Ye(de,Ve),De&&Qe(de,Ve)}return Et(R,le,De,be,ue,tt.current,de)}}var Ne=g.ReactCurrentOwner,Re=g.ReactDebugCurrentFrame;function Se(R){if(R){var V=R._owner,G=ve(R.type,R._source,V?V.type:null);Re.setExtraStackFrame(G)}else Re.setExtraStackFrame(null)}var xe;xe=!1;function Pe(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Ge(){{if(Ne.current){var R=I(Ne.current.type);if(R)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+R+"`."}return""}}function ht(R){{if(R!==void 0){var V=R.fileName.replace(/^.*[\\\/]/,""),G=R.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+
|
|
25
|
+
Check your code at `+V+":"+G+"."}return""}}var ut={};function se(R){{var V=Ge();if(!V){var G=typeof R=="string"?R:R.displayName||R.name;G&&(V=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+M+">.")}return j}}function ss(m,j){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var M=Zf(j);if(os[M])return;os[M]=!0;var H="";m&&m._owner&&m._owner!==_i.current&&(H=" It was passed a child from "+C(m._owner.type)+"."),ur(m),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,H),ur(null)}}function us(m,j){{if(typeof m!="object")return;if(Pi(m))for(var M=0;M<m.length;M++){var H=m[M];Ni(H)&&ss(H,j)}else if(Ni(m))m._store&&(m._store.validated=!0);else if(m){var ie=y(m);if(typeof ie=="function"&&ie!==m.entries)for(var le=ie.call(m),te;!(te=le.next()).done;)Ni(te.value)&&ss(te.value,j)}}}function ed(m){{var j=m.type;if(j==null||typeof j=="string")return;var M;if(typeof j=="function")M=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===f))M=j.propTypes;else return;if(M){var H=C(j);sr(M,m.props,"prop",H,m)}else if(j.PropTypes!==void 0&&!Ti){Ti=!0;var ie=C(j);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ie||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function td(m){{for(var j=Object.keys(m.props),M=0;M<j.length;M++){var H=j[M];if(H!=="children"&&H!=="key"){ur(m),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),ur(null);break}}m.ref!==null&&(ur(m),b("Invalid attribute `ref` supplied to `React.Fragment`."),ur(null))}}function cs(m,j,M,H,ie,le){{var te=N(m);if(!te){var X="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var He=Qf(ie);He?X+=He:X+=as();var be;m===null?be="null":Pi(m)?be="array":m!==void 0&&m.$$typeof===t?(be="<"+(C(m.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):be=typeof m,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,X)}var Ce=Jf(m,j,M,ie,le);if(Ce==null)return Ce;if(te){var rt=j.children;if(rt!==void 0)if(H)if(Pi(rt)){for(var cr=0;cr<rt.length;cr++)us(rt[cr],m);Object.freeze&&Object.freeze(rt)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else us(rt,m)}return m===n?td(Ce):ed(Ce),Ce}}function rd(m,j,M){return cs(m,j,M,!0)}function nd(m,j,M){return cs(m,j,M,!1)}var id=nd,ad=rd;Mr.Fragment=n,Mr.jsx=id,Mr.jsxs=ad}()),Mr}(function(e){process.env.NODE_ENV==="production"?e.exports=ld():e.exports=fd()})(ni);const bc=ni.exports.Fragment,I=ni.exports.jsx,lt=ni.exports.jsxs;var dd=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oe=globalThis&&globalThis.__assign||function(){return Oe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Oe.apply(this,arguments)},hs={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},ps={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},vn={width:"20px",height:"20px",position:"absolute"},hd={top:Oe(Oe({},hs),{top:"-5px"}),right:Oe(Oe({},ps),{left:void 0,right:"-5px"}),bottom:Oe(Oe({},hs),{top:void 0,bottom:"-5px"}),left:Oe(Oe({},ps),{left:"-5px"}),topRight:Oe(Oe({},vn),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Oe(Oe({},vn),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Oe(Oe({},vn),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Oe(Oe({},vn),{left:"-10px",top:"-10px",cursor:"nw-resize"})},pd=function(e){dd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.onMouseDown=function(n){r.props.onResizeStart(n,r.props.direction)},r.onTouchStart=function(n){r.props.onResizeStart(n,r.props.direction)},r}return t.prototype.render=function(){return I("div",{className:this.props.className||"",style:Oe(Oe({position:"absolute",userSelect:"none"},hd[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,children:this.props.children})},t}(_.PureComponent),gd=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),yt=globalThis&&globalThis.__assign||function(){return yt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yt.apply(this,arguments)},vd={width:"auto",height:"auto"},mn=function(e,t,r){return Math.max(Math.min(e,r),t)},gs=function(e,t){return Math.round(e/t)*t},lr=function(e,t){return new RegExp(e,"i").test(t)},yn=function(e){return Boolean(e.touches&&e.touches.length)},md=function(e){return Boolean((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},vs=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(a,o,s){return Math.abs(o-e)<Math.abs(t[a]-e)?s:a},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},ji=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},bn=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},yd=function(e,t,r,n,i,a,o){return n=bn(n,e.width,t,r),i=bn(i,e.height,t,r),a=bn(a,e.width,t,r),o=bn(o,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},bd=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ms="__resizable_base__",ys=function(e){gd(t,e);function t(r){var n=e.call(this,r)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var i=n.parentNode;if(!i)return null;var a=n.window.document.createElement("div");return a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.transform="scale(0, 0)",a.style.left="0",a.style.flex="0 0 100%",a.classList?a.classList.add(ms):a.className+=ms,i.appendChild(a),a},n.removeBase=function(i){var a=n.parentNode;!a||a.removeChild(i)},n.ref=function(i){i&&(n.resizable=i)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)>"u"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)>"u"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||vd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,i=function(s){if(typeof r.state[s]>"u"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&r.propsSize[s].toString().endsWith("%")){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var u=r.getParentSize(),c=Number(r.state[s].toString().replace("px","")),l=c/u[s]*100;return l+"%"}return ji(r.state[s])},a=n&&typeof n.width<"u"&&!this.state.isResizing?ji(n.width):i("width"),o=n&&typeof n.height<"u"&&!this.state.isResizing?ji(n.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var a={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&lr("left",a),s=i&&lr("top",a),u,c;if(this.props.bounds==="parent"){var l=this.parentNode;l&&(u=o?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,a=this.props.resizeRatio||1,o=this.state,s=o.direction,u=o.original,c=this.props,l=c.lockAspectRatio,f=c.lockAspectRatioExtraHeight,d=c.lockAspectRatioExtraWidth,h=u.width,v=u.height,g=f||0,y=d||0;return lr("right",s)&&(h=u.width+(r-u.x)*a/i,l&&(v=(h-y)/this.ratio+g)),lr("left",s)&&(h=u.width-(r-u.x)*a/i,l&&(v=(h-y)/this.ratio+g)),lr("bottom",s)&&(v=u.height+(n-u.y)*a/i,l&&(h=(v-g)*this.ratio+y)),lr("top",s)&&(v=u.height-(n-u.y)*a/i,l&&(h=(v-g)*this.ratio+y)),{newWidth:h,newHeight:v}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,a){var o=this.props,s=o.lockAspectRatio,u=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,l=typeof a.width>"u"?10:a.width,f=typeof i.width>"u"||i.width<0?r:i.width,d=typeof a.height>"u"?10:a.height,h=typeof i.height>"u"||i.height<0?n:i.height,v=u||0,g=c||0;if(s){var y=(d-v)*this.ratio+g,p=(h-v)*this.ratio+g,b=(l-g)/this.ratio+v,w=(f-g)/this.ratio+v,S=Math.max(l,y),x=Math.min(f,p),P=Math.max(d,b),R=Math.min(h,w);r=mn(r,S,x),n=mn(n,P,R)}else r=mn(r,l,f),n=mn(n,d,h);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var n=r.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left,this.targetTop=i.top}if(this.resizable){var a=this.resizable.getBoundingClientRect(),o=a.left,s=a.top,u=a.right,c=a.bottom;this.resizableLeft=o,this.resizableRight=u,this.resizableTop=s,this.resizableBottom=c}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,a=0;if(r.nativeEvent&&md(r.nativeEvent)?(i=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&yn(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,a=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(r,n,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var c=this.parentNode;if(c){var l=this.window.getComputedStyle(c).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",s=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:yt(yt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(f)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&yn(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,s=i.minWidth,u=i.minHeight,c=yn(r)?r.touches[0].clientX:r.clientX,l=yn(r)?r.touches[0].clientY:r.clientY,f=this.state,d=f.direction,h=f.original,v=f.width,g=f.height,y=this.getParentSize(),p=yd(y,this.window.innerWidth,this.window.innerHeight,a,o,s,u);a=p.maxWidth,o=p.maxHeight,s=p.minWidth,u=p.minHeight;var b=this.calculateNewSizeFromDirection(c,l),w=b.newHeight,S=b.newWidth,x=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(S=vs(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=vs(w,this.props.snap.y,this.props.snapGap));var P=this.calculateNewSizeFromAspectRatio(S,w,{width:x.maxWidth,height:x.maxHeight},{width:s,height:u});if(S=P.newWidth,w=P.newHeight,this.props.grid){var R=gs(S,this.props.grid[0]),F=gs(w,this.props.grid[1]),k=this.props.snapGap||0;S=k===0||Math.abs(R-S)<=k?R:S,w=k===0||Math.abs(F-w)<=k?F:w}var N={width:S-h.width,height:w-h.height};if(v&&typeof v=="string"){if(v.endsWith("%")){var B=S/y.width*100;S=B+"%"}else if(v.endsWith("vw")){var E=S/this.window.innerWidth*100;S=E+"vw"}else if(v.endsWith("vh")){var C=S/this.window.innerHeight*100;S=C+"vh"}}if(g&&typeof g=="string"){if(g.endsWith("%")){var B=w/y.height*100;w=B+"%"}else if(g.endsWith("vw")){var E=w/this.window.innerWidth*100;w=E+"vw"}else if(g.endsWith("vh")){var C=w/this.window.innerHeight*100;w=C+"vh"}}var O={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(w,"height")};this.flexDir==="row"?O.flexBasis=O.width:this.flexDir==="column"&&(O.flexBasis=O.height),no.flushSync(function(){n.setState(O)}),this.props.onResize&&this.props.onResize(r,d,this.resizable,N)}},t.prototype.onMouseUp=function(r){var n=this.state,i=n.isResizing,a=n.direction,o=n.original;if(!(!i||!this.resizable)){var s={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(r,a,this.resizable,s),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:yt(yt({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(r){this.setState({width:r.width,height:r.height})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,a=n.handleStyles,o=n.handleClasses,s=n.handleWrapperStyle,u=n.handleWrapperClass,c=n.handleComponent;if(!i)return null;var l=Object.keys(i).map(function(f){return i[f]!==!1?I(pd,{direction:f,onResizeStart:r.onResizeStart,replaceStyles:a&&a[f],className:o&&o[f],children:c&&c[f]?c[f]:null},f):null});return I("div",{className:u,style:s,children:l})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(o,s){return bd.indexOf(s)!==-1||(o[s]=r.props[s]),o},{}),i=yt(yt(yt({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return lt(a,{...yt({ref:this.ref,style:i,className:this.props.className},n),children:[this.state.isResizing&&I("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]})},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(_.PureComponent);const Sd="_workbenchContainer_1b5xq_2",wd="_topToolBarBox_1b5xq_8",xd="_logo_1b5xq_14",Cd="_topToolBarView_1b5xq_22",Od="_bodyContent_1b5xq_25",Ed="_leftBox_1b5xq_31",Pd="_pluginIconBar_1b5xq_37",Rd="_pluginIconItem_1b5xq_42",_d="_active_1b5xq_52",Td="_pluginPanelBoxResizeBox_1b5xq_68",Nd="_pluginHeader_1b5xq_75",jd="_pluginNameText_1b5xq_83",Fd="_closeBtn_1b5xq_90",kd="_fixedBtn_1b5xq_91",Ad="_pluginPanelBox_1b5xq_68",$d="_rightResizeBox_1b5xq_106",Ld="_arrowCursor_1b5xq_109",Md="_rightBox_1b5xq_124",Id="_centerBox_1b5xq_130",Bd="_subTopToolbarBox_1b5xq_136",zd="_canvasBox_1b5xq_141",Dd="_scrollBox_1b5xq_148",ve={workbenchContainer:Sd,topToolBarBox:wd,logo:xd,topToolBarView:Cd,bodyContent:Od,leftBox:Ed,pluginIconBar:Pd,pluginIconItem:Rd,active:_d,pluginPanelBoxResizeBox:Td,pluginHeader:Nd,pluginNameText:jd,closeBtn:Fd,fixedBtn:kd,pluginPanelBox:Ad,rightResizeBox:$d,arrowCursor:Ld,rightBox:Md,centerBox:Id,subTopToolbarBox:Bd,canvasBox:zd,scrollBox:Dd};function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(e)}function Vd(e,t){if(ne(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ne(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sc(e){var t=Vd(e,"string");return ne(t)==="symbol"?t:String(t)}function bs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sc(n.key),n)}}function je(e,t,r){return t&&bs(e.prototype,t),r&&bs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oa(e,t)}function er(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oa(e,t)}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},it(e)}function Hd(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e,t){if(t&&(ne(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dt(e)}function io(e){var t=Hd();return function(){var n=it(e),i;if(t){var a=it(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Rr(this,i)}}var wc={exports:{}};/*!
|
|
27
|
+
Check the top-level render call using <`+G+">.")}return V}}function pe(R,V){{if(!R._store||R._store.validated||R.key!=null)return;R._store.validated=!0;var G=se(V);if(ut[G])return;ut[G]=!0;var ue="";R&&R._owner&&R._owner!==Ne.current&&(ue=" It was passed a child from "+I(R._owner.type)+"."),Se(R),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,ue),Se(null)}}function ge(R,V){{if(typeof R!="object")return;if(pt(R))for(var G=0;G<R.length;G++){var ue=R[G];Pe(ue)&&pe(ue,V)}else if(Pe(R))R._store&&(R._store.validated=!0);else if(R){var be=b(R);if(typeof be=="function"&&be!==R.entries)for(var $e=be.call(R),de;!(de=$e.next()).done;)Pe(de.value)&&pe(de.value,V)}}}function Me(R){{var V=R.type;if(V==null||typeof V=="string")return;var G;if(typeof V=="function")G=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===l||V.$$typeof===d))G=V.propTypes;else return;if(G){var ue=I(V);Oe(G,R.props,"prop",ue,R)}else if(V.PropTypes!==void 0&&!xe){xe=!0;var be=I(V);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",be||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(R){{for(var V=Object.keys(R.props),G=0;G<V.length;G++){var ue=V[G];if(ue!=="children"&&ue!=="key"){Se(R),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),Se(null);break}}R.ref!==null&&(Se(R),S("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}function it(R,V,G,ue,be,$e){{var de=_(R);if(!de){var le="";(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var De=ht(be);De?le+=De:le+=Ge();var je;R===null?je="null":pt(R)?je="array":R!==void 0&&R.$$typeof===t?(je="<"+(I(R.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):je=typeof R,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,le)}var Ve=It(R,V,G,be,$e);if(Ve==null)return Ve;if(de){var dt=V.children;if(dt!==void 0)if(ue)if(pt(dt)){for(var on=0;on<dt.length;on++)ge(dt[on],R);Object.freeze&&Object.freeze(dt)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(dt,R)}return R===r?Xe(Ve):Me(Ve),Ve}}function Dt(R,V,G){return it(R,V,G,!0)}function wt(R,V,G){return it(R,V,G,!1)}var Mt=wt,ct=Dt;is.Fragment=r,is.jsx=Mt,is.jsxs=ct}()),is}(function(e){process.env.NODE_ENV==="production"?e.exports=UP():e.exports=KP()})(WP);const Ht=Vs.Fragment,v=Vs.jsx,ae=Vs.jsxs;var GP=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bn=globalThis&&globalThis.__assign||function(){return bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bn.apply(this,arguments)},ab={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},sb={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Ql={width:"20px",height:"20px",position:"absolute"},XP={top:bn(bn({},ab),{top:"-5px"}),right:bn(bn({},sb),{left:void 0,right:"-5px"}),bottom:bn(bn({},ab),{top:void 0,bottom:"-5px"}),left:bn(bn({},sb),{left:"-5px"}),topRight:bn(bn({},Ql),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:bn(bn({},Ql),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:bn(bn({},Ql),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:bn(bn({},Ql),{left:"-10px",top:"-10px",cursor:"nw-resize"})},qP=function(e){GP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(r){n.props.onResizeStart(r,n.props.direction)},n.onTouchStart=function(r){n.props.onResizeStart(r,n.props.direction)},n}return t.prototype.render=function(){return v("div",{className:this.props.className||"",style:bn(bn({position:"absolute",userSelect:"none"},XP[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,children:this.props.children})},t}(x.PureComponent),YP=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qr=globalThis&&globalThis.__assign||function(){return Qr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Qr.apply(this,arguments)},QP={width:"auto",height:"auto"},Jl=function(e,t,n){return Math.max(Math.min(e,n),t)},lb=function(e,t){return Math.round(e/t)*t},Bi=function(e,t){return new RegExp(e,"i").test(t)},Zl=function(e){return!!(e.touches&&e.touches.length)},JP=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},cb=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(i,a,s){return Math.abs(a-e)<Math.abs(t[i]-e)?s:i},0),o=Math.abs(t[r]-e);return n===0||o<n?t[r]:e},Zd=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},ec=function(e,t,n,r){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return n*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return r*o}}return e},ZP=function(e,t,n,r,o,i,a){return r=ec(r,e.width,t,n),o=ec(o,e.height,t,n),i=ec(i,e.width,t,n),a=ec(a,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof a>"u"?void 0:Number(a)}},eI=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ub="__resizable_base__",db=function(e){YP(t,e);function t(n){var r=e.call(this,n)||this;return r.ratio=1,r.resizable=null,r.parentLeft=0,r.parentTop=0,r.resizableLeft=0,r.resizableRight=0,r.resizableTop=0,r.resizableBottom=0,r.targetLeft=0,r.targetTop=0,r.appendBase=function(){if(!r.resizable||!r.window)return null;var o=r.parentNode;if(!o)return null;var i=r.window.document.createElement("div");return i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.transform="scale(0, 0)",i.style.left="0",i.style.flex="0 0 100%",i.classList?i.classList.add(ub):i.className+=ub,o.appendChild(i),i},r.removeBase=function(o){var i=r.parentNode;i&&i.removeChild(o)},r.ref=function(o){o&&(r.resizable=o)},r.state={isResizing:!1,width:typeof(r.propsSize&&r.propsSize.width)>"u"?"auto":r.propsSize&&r.propsSize.width,height:typeof(r.propsSize&&r.propsSize.height)>"u"?"auto":r.propsSize&&r.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||QP},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,a=this.resizable.style.position;a!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=a}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,o=function(s){if(typeof n.state[s]>"u"||n.state[s]==="auto")return"auto";if(n.propsSize&&n.propsSize[s]&&n.propsSize[s].toString().endsWith("%")){if(n.state[s].toString().endsWith("%"))return n.state[s].toString();var l=n.getParentSize(),c=Number(n.state[s].toString().replace("px","")),u=c/l[s]*100;return u+"%"}return Zd(n.state[s])},i=r&&typeof r.width<"u"&&!this.state.isResizing?Zd(r.width):o("width"),a=r&&typeof r.height<"u"&&!this.state.isResizing?Zd(r.height):o("height");return{width:i,height:a}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var i={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=o),this.removeBase(n),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var o=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof o>"u"||o==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var o=this.props.boundsByDirection,i=this.state.direction,a=o&&Bi("left",i),s=o&&Bi("top",i),l,c;if(this.props.bounds==="parent"){var u=this.parentNode;u&&(l=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(n=n&&n<l?n:l),c&&Number.isFinite(c)&&(r=r&&r<c?r:c),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var o=this.props.scale||1,i=this.props.resizeRatio||1,a=this.state,s=a.direction,l=a.original,c=this.props,u=c.lockAspectRatio,d=c.lockAspectRatioExtraHeight,f=c.lockAspectRatioExtraWidth,p=l.width,h=l.height,m=d||0,b=f||0;return Bi("right",s)&&(p=l.width+(n-l.x)*i/o,u&&(h=(p-b)/this.ratio+m)),Bi("left",s)&&(p=l.width-(n-l.x)*i/o,u&&(h=(p-b)/this.ratio+m)),Bi("bottom",s)&&(h=l.height+(r-l.y)*i/o,u&&(p=(h-m)*this.ratio+b)),Bi("top",s)&&(h=l.height-(r-l.y)*i/o,u&&(p=(h-m)*this.ratio+b)),{newWidth:p,newHeight:h}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,o,i){var a=this.props,s=a.lockAspectRatio,l=a.lockAspectRatioExtraHeight,c=a.lockAspectRatioExtraWidth,u=typeof i.width>"u"?10:i.width,d=typeof o.width>"u"||o.width<0?n:o.width,f=typeof i.height>"u"?10:i.height,p=typeof o.height>"u"||o.height<0?r:o.height,h=l||0,m=c||0;if(s){var b=(f-h)*this.ratio+m,g=(p-h)*this.ratio+m,S=(u-m)/this.ratio+h,C=(d-m)/this.ratio+h,w=Math.max(u,b),y=Math.min(d,g),$=Math.max(f,S),E=Math.min(p,C);n=Jl(n,w,y),r=Jl(r,$,E)}else n=Jl(n,u,d),r=Jl(r,f,p);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var r=n.getBoundingClientRect();this.parentLeft=r.left,this.parentTop=r.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var i=this.resizable.getBoundingClientRect(),a=i.left,s=i.top,l=i.right,c=i.bottom;this.resizableLeft=a,this.resizableRight=l,this.resizableTop=s,this.resizableBottom=c}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var o=0,i=0;if(n.nativeEvent&&JP(n.nativeEvent)?(o=n.nativeEvent.clientX,i=n.nativeEvent.clientY):n.nativeEvent&&Zl(n.nativeEvent)&&(o=n.nativeEvent.touches[0].clientX,i=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var a=this.props.onResizeStart(n,r,this.resizable);if(a===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var u=this.window.getComputedStyle(c).flexDirection;this.flexDir=u.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Qr(Qr({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Zl(n))try{n.preventDefault(),n.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,a=o.maxHeight,s=o.minWidth,l=o.minHeight,c=Zl(n)?n.touches[0].clientX:n.clientX,u=Zl(n)?n.touches[0].clientY:n.clientY,d=this.state,f=d.direction,p=d.original,h=d.width,m=d.height,b=this.getParentSize(),g=ZP(b,this.window.innerWidth,this.window.innerHeight,i,a,s,l);i=g.maxWidth,a=g.maxHeight,s=g.minWidth,l=g.minHeight;var S=this.calculateNewSizeFromDirection(c,u),C=S.newHeight,w=S.newWidth,y=this.calculateNewMaxFromBoundary(i,a);this.props.snap&&this.props.snap.x&&(w=cb(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(C=cb(C,this.props.snap.y,this.props.snapGap));var $=this.calculateNewSizeFromAspectRatio(w,C,{width:y.maxWidth,height:y.maxHeight},{width:s,height:l});if(w=$.newWidth,C=$.newHeight,this.props.grid){var E=lb(w,this.props.grid[0]),N=lb(C,this.props.grid[1]),P=this.props.snapGap||0;w=P===0||Math.abs(E-w)<=P?E:w,C=P===0||Math.abs(N-C)<=P?N:C}var _={width:w-p.width,height:C-p.height};if(h&&typeof h=="string"){if(h.endsWith("%")){var D=w/b.width*100;w=D+"%"}else if(h.endsWith("vw")){var M=w/this.window.innerWidth*100;w=M+"vw"}else if(h.endsWith("vh")){var I=w/this.window.innerHeight*100;w=I+"vh"}}if(m&&typeof m=="string"){if(m.endsWith("%")){var D=C/b.height*100;C=D+"%"}else if(m.endsWith("vw")){var M=C/this.window.innerWidth*100;C=M+"vw"}else if(m.endsWith("vh")){var I=C/this.window.innerHeight*100;C=I+"vh"}}var T={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(C,"height")};this.flexDir==="row"?T.flexBasis=T.width:this.flexDir==="column"&&(T.flexBasis=T.height),ln.flushSync(function(){r.setState(T)}),this.props.onResize&&this.props.onResize(n,f,this.resizable,_)}},t.prototype.onMouseUp=function(n){var r=this.state,o=r.isResizing,i=r.direction,a=r.original;if(!(!o||!this.resizable)){var s={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(n,i,this.resizable,s),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Qr(Qr({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){this.setState({width:n.width,height:n.height})},t.prototype.renderResizer=function(){var n=this,r=this.props,o=r.enable,i=r.handleStyles,a=r.handleClasses,s=r.handleWrapperStyle,l=r.handleWrapperClass,c=r.handleComponent;if(!o)return null;var u=Object.keys(o).map(function(d){return o[d]!==!1?v(qP,{direction:d,onResizeStart:n.onResizeStart,replaceStyles:i&&i[d],className:a&&a[d],children:c&&c[d]?c[d]:null},d):null});return v("div",{className:l,style:s,children:u})},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(a,s){return eI.indexOf(s)!==-1||(a[s]=n.props[s]),a},{}),o=Qr(Qr(Qr({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return ae(i,{...Qr({ref:this.ref,style:o,className:this.props.className},r),children:[this.state.isResizing&&v("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]})},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(x.PureComponent);const tI="_workbenchContainer_1b5xq_2",nI="_topToolBarBox_1b5xq_8",rI="_logo_1b5xq_14",oI="_topToolBarView_1b5xq_22",iI="_bodyContent_1b5xq_25",aI="_leftBox_1b5xq_31",sI="_pluginIconBar_1b5xq_37",lI="_pluginIconItem_1b5xq_42",cI="_active_1b5xq_52",uI="_pluginPanelBoxResizeBox_1b5xq_68",dI="_pluginHeader_1b5xq_75",fI="_pluginNameText_1b5xq_83",pI="_closeBtn_1b5xq_90",hI="_fixedBtn_1b5xq_91",gI="_pluginPanelBox_1b5xq_68",vI="_rightResizeBox_1b5xq_106",mI="_arrowCursor_1b5xq_109",bI="_rightBox_1b5xq_124",yI="_centerBox_1b5xq_130",SI="_subTopToolbarBox_1b5xq_136",wI="_canvasBox_1b5xq_141",xI="_scrollBox_1b5xq_148",sn={workbenchContainer:tI,topToolBarBox:nI,logo:rI,topToolBarView:oI,bodyContent:iI,leftBox:aI,pluginIconBar:sI,pluginIconItem:lI,active:cI,pluginPanelBoxResizeBox:uI,pluginHeader:dI,pluginNameText:fI,closeBtn:pI,fixedBtn:hI,pluginPanelBox:gI,rightResizeBox:vI,arrowCursor:mI,rightBox:bI,centerBox:yI,subTopToolbarBox:SI,canvasBox:wI,scrollBox:xI};function Wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e){return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ze(e)}function CI(e,t){if(Ze(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ze(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ow(e){var t=CI(e,"string");return Ze(t)==="symbol"?t:String(t)}function fb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ow(r.key),r)}}function Ut(e,t,n){return t&&fb(e.prototype,t),n&&fb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gp(e,t){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gp(e,t)}function Hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gp(e,t)}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cr(e)}function $I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ma(e,t){if(t&&(Ze(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ot(e)}function $i(e){var t=$I();return function(){var r=Cr(e),o;if(t){var i=Cr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ma(this,o)}}var vp={},OI={get exports(){return vp},set exports(e){vp=e}};/*!
|
|
28
28
|
Copyright (c) 2018 Jed Watson.
|
|
29
29
|
Licensed under the MIT License (MIT), see
|
|
30
30
|
http://jedwatson.github.io/classnames
|
|
31
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function
|
|
31
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(OI);const Z=vp;function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mp.apply(this,arguments)}var Gc={},EI={get exports(){return Gc},set exports(e){Gc=e}},kt={};/** @license React v16.13.1
|
|
32
32
|
* react-is.production.min.js
|
|
33
33
|
*
|
|
34
34
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var
|
|
38
|
+
*/var pb;function NI(){if(pb)return kt;pb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case l:case c:case r:case i:case o:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case u:case h:case p:case a:return y;default:return $}}case n:return $}}}function w(y){return C(y)===c}return kt.AsyncMode=l,kt.ConcurrentMode=c,kt.ContextConsumer=s,kt.ContextProvider=a,kt.Element=t,kt.ForwardRef=u,kt.Fragment=r,kt.Lazy=h,kt.Memo=p,kt.Portal=n,kt.Profiler=i,kt.StrictMode=o,kt.Suspense=d,kt.isAsyncMode=function(y){return w(y)||C(y)===l},kt.isConcurrentMode=w,kt.isContextConsumer=function(y){return C(y)===s},kt.isContextProvider=function(y){return C(y)===a},kt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},kt.isForwardRef=function(y){return C(y)===u},kt.isFragment=function(y){return C(y)===r},kt.isLazy=function(y){return C(y)===h},kt.isMemo=function(y){return C(y)===p},kt.isPortal=function(y){return C(y)===n},kt.isProfiler=function(y){return C(y)===i},kt.isStrictMode=function(y){return C(y)===o},kt.isSuspense=function(y){return C(y)===d},kt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===c||y===i||y===o||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===a||y.$$typeof===s||y.$$typeof===u||y.$$typeof===b||y.$$typeof===g||y.$$typeof===S||y.$$typeof===m)},kt.typeOf=C,kt}var Lt={};/** @license React v16.13.1
|
|
39
39
|
* react-is.development.js
|
|
40
40
|
*
|
|
41
41
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var ws;function Ud(){return ws||(ws=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(z){return typeof z=="string"||typeof z=="function"||z===n||z===c||z===a||z===i||z===f||z===d||typeof z=="object"&&z!==null&&(z.$$typeof===v||z.$$typeof===h||z.$$typeof===o||z.$$typeof===s||z.$$typeof===l||z.$$typeof===y||z.$$typeof===p||z.$$typeof===b||z.$$typeof===g)}function S(z){if(typeof z=="object"&&z!==null){var de=z.$$typeof;switch(de){case t:var Me=z.type;switch(Me){case u:case c:case n:case a:case i:case f:return Me;default:var st=Me&&Me.$$typeof;switch(st){case s:case l:case v:case h:case o:return st;default:return de}}case r:return de}}}var x=u,P=c,R=s,F=o,k=t,N=l,B=n,E=v,C=h,O=r,T=a,$=i,L=f,W=!1;function ee(z){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),re(z)||S(z)===u}function re(z){return S(z)===c}function Q(z){return S(z)===s}function Y(z){return S(z)===o}function ue(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function Fe(z){return S(z)===l}function $e(z){return S(z)===n}function De(z){return S(z)===v}function Be(z){return S(z)===h}function qe(z){return S(z)===r}function Le(z){return S(z)===a}function Ve(z){return S(z)===i}function ze(z){return S(z)===f}oe.AsyncMode=x,oe.ConcurrentMode=P,oe.ContextConsumer=R,oe.ContextProvider=F,oe.Element=k,oe.ForwardRef=N,oe.Fragment=B,oe.Lazy=E,oe.Memo=C,oe.Portal=O,oe.Profiler=T,oe.StrictMode=$,oe.Suspense=L,oe.isAsyncMode=ee,oe.isConcurrentMode=re,oe.isContextConsumer=Q,oe.isContextProvider=Y,oe.isElement=ue,oe.isForwardRef=Fe,oe.isFragment=$e,oe.isLazy=De,oe.isMemo=Be,oe.isPortal=qe,oe.isProfiler=Le,oe.isStrictMode=Ve,oe.isSuspense=ze,oe.isValidElementType=w,oe.typeOf=S}()),oe}(function(e){process.env.NODE_ENV==="production"?e.exports=Wd():e.exports=Ud()})(ao);function sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ke.default.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(sa(n)):ao.exports.isFragment(n)&&n.props?r=r.concat(sa(n.props.children,t)):r.push(n))}),r}var ua={};function xc(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function qd(){ua={}}function Gd(e,t,r){!t&&!ua[r]&&(e(!1,r),ua[r]=!0)}function _e(e,t){Gd(xc,e,t)}function U(e,t,r){return t=Sc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cc(e,t,r){var n=_.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function Oc(e,t){typeof e=="function"?e(t):ne(e)==="object"&&e&&"current"in e&&(e.current=t)}function Kd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(i){return i});return n.length<=1?n[0]:function(i){t.forEach(function(a){Oc(a,i)})}}function Ec(e){var t,r,n=ao.exports.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render))}function Yd(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xd(e){return Yd(e)?e:e instanceof ke.default.Component?ud.default.findDOMNode(e):null}function Jd(e,t){var r=A({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qd(e){if(Array.isArray(e))return ca(e)}function Pc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oo(e,t){if(!!e){if(typeof e=="string")return ca(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ca(e,t)}}function Zd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
47
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){return _c(e)||oh(e,t)||oo(e,t)||Tc()}function sh(){return!1}var fa=!1;function uh(){return fa}const ch=process.env.NODE_ENV==="production"?sh:uh;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot){var Fi=window;if(typeof Fi.webpackHotUpdate=="function"){var lh=Fi.webpackHotUpdate;Fi.webpackHotUpdate=function(){return fa=!0,setTimeout(function(){fa=!1},0),lh.apply(void 0,arguments)}}}function Nc(e,t,r,n){var i=_.useContext(Rc),a=i.cache,o=[e].concat(G(t)),s=ch();return _.useMemo(function(){a.update(o,function(u){var c=u||[],l=fe(c,2),f=l[0],d=f===void 0?0:f,h=l[1],v=h;process.env.NODE_ENV!=="production"&&h&&s&&(n==null||n(v,s),v=null);var g=v||r();return[d+1,g]})},[o.join("_")]),_.useEffect(function(){return function(){a.update(o,function(u){var c=u||[],l=fe(c,2),f=l[0],d=f===void 0?0:f,h=l[1],v=d-1;return v===0?(n==null||n(h,!1),null):[d-1,h]})}},o),a.get(o)[1]}function tr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fh(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Cs="data-rc-order",dh="rc-util-key",da=new Map;function jc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):dh}function ii(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function hh(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Fc(e){return Array.from((da.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function kc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!tr())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Cs,hh(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var a=ii(t),o=a.firstChild;if(n){if(n==="queue"){var s=Fc(a).filter(function(u){return["prepend","prependQueue"].includes(u.getAttribute(Cs))});if(s.length)return a.insertBefore(i,s[s.length-1].nextSibling),i}a.insertBefore(i,o)}else a.appendChild(i);return i}function Ac(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ii(t);return Fc(r).find(function(n){return n.getAttribute(jc(t))===e})}function $c(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ac(e,t);if(r){var n=ii(t);n.removeChild(r)}}function ph(e,t){var r=da.get(e);if(!r||!fh(document,r)){var n=kc("",t),i=n.parentNode;da.set(e,i),e.removeChild(n)}}function Sr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=ii(r);ph(n,r);var i=Ac(t,r);if(i){var a,o;if((a=r.csp)!==null&&a!==void 0&&a.nonce&&i.nonce!==((o=r.csp)===null||o===void 0?void 0:o.nonce)){var s;i.nonce=(s=r.csp)===null||s===void 0?void 0:s.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=kc(e,r);return u.setAttribute(jc(r),t),u}function Hn(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&ne(n)==="object"?t+=Hn(n):t+=n}),t}function gh(e,t){return so("".concat(t,"_").concat(Hn(e)))}var Hr="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Lc="903px";function vh(e,t){if(tr()){var r;Sr(e,Hr);var n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",t==null||t(n),document.body.appendChild(n),process.env.NODE_ENV!=="production"&&(n.innerHTML="Test",n.style.zIndex="9999999");var i=getComputedStyle(n).width===Lc;return(r=n.parentNode)===null||r===void 0||r.removeChild(n),$c(Hr),i}return!1}var ki=void 0;function mh(){return ki===void 0&&(ki=vh("@layer ".concat(Hr," { .").concat(Hr," { width: ").concat(Lc,"!important; } }"),function(e){e.className=Hr})),ki}var yh={},bh=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Wt=new Map;function Sh(e){Wt.set(e,(Wt.get(e)||0)+1)}function wh(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(la,'="').concat(e,'"]'));t.forEach(function(r){if(r[Vr]===Vn){var n;(n=r.parentNode)===null||n===void 0||n.removeChild(r)}})}}function xh(e){Wt.set(e,(Wt.get(e)||0)-1);var t=Array.from(Wt.keys()),r=t.filter(function(n){var i=Wt.get(n)||0;return i<=0});r.length<t.length&&r.forEach(function(n){wh(n),Wt.delete(n)})}function Ch(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.salt,i=n===void 0?"":n,a=r.override,o=a===void 0?yh:a,s=r.formatToken,u=_.useMemo(function(){return Object.assign.apply(Object,[{}].concat(G(t)))},[t]),c=_.useMemo(function(){return Hn(u)},[u]),l=_.useMemo(function(){return Hn(o)},[o]),f=Nc("token",[i,e.id,c,l],function(){var d=e.getDerivativeToken(u),h=A(A({},d),o);s&&(h=s(h));var v=gh(h,i);h._tokenKey=v,Sh(v);var g="".concat(bh,"-").concat(so(v));return h._hashId=g,[h,g]},function(d){xh(d[0]._tokenKey)});return f}var Oh={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mc="comm",Ic="rule",Bc="decl",Eh="@import",Ph="@keyframes",Rh=Math.abs,uo=String.fromCharCode;function zc(e){return e.trim()}function ha(e,t,r){return e.replace(t,r)}function _h(e,t){return e.indexOf(t)}function Qr(e,t){return e.charCodeAt(t)|0}function Zr(e,t,r){return e.slice(t,r)}function Lt(e){return e.length}function Dc(e){return e.length}function Sn(e,t){return t.push(e),e}var ai=1,wr=1,Vc=0,at=0,Ee=0,_r="";function co(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:ai,column:wr,length:o,return:""}}function Th(){return Ee}function Nh(){return Ee=at>0?Qr(_r,--at):0,wr--,Ee===10&&(wr=1,ai--),Ee}function ht(){return Ee=at<Vc?Qr(_r,at++):0,wr++,Ee===10&&(wr=1,ai++),Ee}function Yt(){return Qr(_r,at)}function In(){return at}function oi(e,t){return Zr(_r,e,t)}function pa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jh(e){return ai=wr=1,Vc=Lt(_r=e),at=0,[]}function Fh(e){return _r="",e}function Ai(e){return zc(oi(at-1,ga(e===91?e+2:e===40?e+1:e)))}function kh(e){for(;(Ee=Yt())&&Ee<33;)ht();return pa(e)>2||pa(Ee)>3?"":" "}function Ah(e,t){for(;--t&&ht()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return oi(e,In()+(t<6&&Yt()==32&&ht()==32))}function ga(e){for(;ht();)switch(Ee){case e:return at;case 34:case 39:e!==34&&e!==39&&ga(Ee);break;case 40:e===41&&ga(e);break;case 92:ht();break}return at}function $h(e,t){for(;ht()&&e+Ee!==47+10;)if(e+Ee===42+42&&Yt()===47)break;return"/*"+oi(t,at-1)+"*"+uo(e===47?e:ht())}function Lh(e){for(;!pa(Yt());)ht();return oi(e,at)}function Mh(e){return Fh(Bn("",null,null,null,[""],e=jh(e),0,[0],e))}function Bn(e,t,r,n,i,a,o,s,u){for(var c=0,l=0,f=o,d=0,h=0,v=0,g=1,y=1,p=1,b=0,w="",S=i,x=a,P=n,R=w;y;)switch(v=b,b=ht()){case 40:if(v!=108&&Qr(R,f-1)==58){_h(R+=ha(Ai(b),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:R+=Ai(b);break;case 9:case 10:case 13:case 32:R+=kh(v);break;case 92:R+=Ah(In()-1,7);continue;case 47:switch(Yt()){case 42:case 47:Sn(Ih($h(ht(),In()),t,r),u);break;default:R+="/"}break;case 123*g:s[c++]=Lt(R)*p;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+l:h>0&&Lt(R)-f&&Sn(h>32?Es(R+";",n,r,f-1):Es(ha(R," ","")+";",n,r,f-2),u);break;case 59:R+=";";default:if(Sn(P=Os(R,t,r,c,l,i,s,w,S=[],x=[],f),a),b===123)if(l===0)Bn(R,t,P,P,S,a,f,s,x);else switch(d===99&&Qr(R,3)===110?100:d){case 100:case 109:case 115:Bn(e,P,P,n&&Sn(Os(e,P,P,0,0,i,s,w,i,S=[],f),x),i,x,f,s,n?S:x);break;default:Bn(R,P,P,P,[""],x,0,s,x)}}c=l=h=0,g=p=1,w=R="",f=o;break;case 58:f=1+Lt(R),h=v;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Nh()==125)continue}switch(R+=uo(b),b*g){case 38:p=l>0?1:(R+="\f",-1);break;case 44:s[c++]=(Lt(R)-1)*p,p=1;break;case 64:Yt()===45&&(R+=Ai(ht())),d=Yt(),l=f=Lt(w=R+=Lh(In())),b++;break;case 45:v===45&&Lt(R)==2&&(g=0)}}return a}function Os(e,t,r,n,i,a,o,s,u,c,l){for(var f=i-1,d=i===0?a:[""],h=Dc(d),v=0,g=0,y=0;v<n;++v)for(var p=0,b=Zr(e,f+1,f=Rh(g=o[v])),w=e;p<h;++p)(w=zc(g>0?d[p]+" "+b:ha(b,/&\f/g,d[p])))&&(u[y++]=w);return co(e,t,r,i===0?Ic:s,u,c,l)}function Ih(e,t,r){return co(e,t,r,Mc,uo(Th()),Zr(e,2,-2),0)}function Es(e,t,r,n){return co(e,t,r,Bc,Zr(e,0,n),Zr(e,n+1,-1),n)}function va(e,t){for(var r="",n=Dc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Bh(e,t,r,n){switch(e.type){case Eh:case Bc:return e.return=e.return||e.value;case Mc:return"";case Ph:return e.return=e.value+"{"+va(e.children,n)+"}";case Ic:e.value=e.props.join(",")}return Lt(r=va(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hc(e,t){var r=t.path,n=t.parentSelectors;_e(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var zh=function(t,r,n){if(t==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof r!="string"||a.indexOf(r)===-1&&!i.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&Hc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Dh=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&Hc("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ps=tr(),Wc="_skip_check_";function Rs(e){var t=va(Mh(e),Bh);return t.replace(/\{%%%\:[^;];}/g,";")}function Vh(e){return ne(e)==="object"&&e&&Wc in e}function Hh(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(o){var s,u=o.trim().split(/\s+/),c=u[0]||"",l=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(l).concat(i).concat(c.slice(l.length)),[c].concat(G(u.slice(1))).join(" ")});return a.join(",")}var Wh=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,a=n.injectHash,o=n.parentSelectors,s=r.hashId,u=r.layer,c=r.path,l=r.hashPriority,f=r.transformers,d=f===void 0?[]:f,h=r.linters,v=h===void 0?[]:h,g="",y={};function p(P){var R=P.getName(s);if(!y[R]){var F=e(P.style,r,{root:!1,parentSelectors:o}),k=fe(F,1),N=k[0];y[R]="@keyframes ".concat(P.getName(s)).concat(N)}}function b(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return P.forEach(function(F){Array.isArray(F)?b(F,R):F&&R.push(F)}),R}var w=b(Array.isArray(t)?t:[t]);if(w.forEach(function(P){var R=typeof P=="string"&&!i?{}:P;if(typeof R=="string")g+="".concat(R,`
|
|
48
|
-
`);else if(R._keyframe)p(R);else{var F=d.reduce(function(k,N){var B;return(N==null||(B=N.visit)===null||B===void 0?void 0:B.call(N,k))||k},R);Object.keys(F).forEach(function(k){var N=F[k];if(ne(N)==="object"&&N&&(k!=="animationName"||!N._keyframe)&&!Vh(N)){var B=!1,E=k.trim(),C=!1;(i||a)&&s?E.startsWith("@")?B=!0:E=Hh(k,s,l):i&&!s&&(E==="&"||E==="")&&(E="",C=!0);var O=e(N,r,{root:C,injectHash:B,parentSelectors:[].concat(G(o),[E])}),T=fe(O,2),$=T[0],L=T[1];y=A(A({},y),L),g+="".concat(E).concat($)}else{var W,ee=(W=N==null?void 0:N.value)!==null&&W!==void 0?W:N;process.env.NODE_ENV!=="production"&&(ne(N)!=="object"||!(N!=null&&N[Wc]))&&[zh,Dh].concat(G(v)).forEach(function(Y){return Y(k,ee,{path:c,hashId:s,parentSelectors:o})});var re=k.replace(/[A-Z]/g,function(Y){return"-".concat(Y.toLowerCase())}),Q=ee;!Oh[k]&&typeof Q=="number"&&Q!==0&&(Q="".concat(Q,"px")),k==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(p(N),Q=N.getName(s)),g+="".concat(re,":").concat(Q,";")}})}}),!i)g="{".concat(g,"}");else if(u&&mh()){var S=u.split(","),x=S[S.length-1].trim();g="@layer ".concat(x," {").concat(g,"}"),S.length>1&&(g="@layer ".concat(u,"{%%%:%}").concat(g))}return[g,y]};function Uh(e,t){return so("".concat(e.join("%")).concat(t))}function qh(){return null}function ma(e,t){var r=e.token,n=e.path,i=e.hashId,a=e.layer,o=_.useContext(Rc),s=o.autoClear,u=o.mock,c=o.defaultCache,l=o.hashPriority,f=o.container,d=o.ssrInline,h=o.transformers,v=o.linters,g=r._tokenKey,y=[g].concat(G(n)),p=Ps;process.env.NODE_ENV!=="production"&&u!==void 0&&(p=u==="client");var b=Nc("style",y,function(){var R=t(),F=Wh(R,{hashId:i,hashPriority:l,layer:a,path:n.join("-"),transformers:h,linters:v}),k=fe(F,2),N=k[0],B=k[1],E=Rs(N),C=Uh(y,E);if(p){var O=Sr(E,C,{mark:Ut,prepend:"queue",attachTo:f});O[Vr]=Vn,O.setAttribute(la,g),process.env.NODE_ENV!=="production"&&O.setAttribute(nh,y.join("|")),Object.keys(B).forEach(function(T){Sr(Rs(B[T]),"_effect-".concat(T),{mark:Ut,prepend:"queue",attachTo:f})})}return[E,g,C]},function(R,F){var k=fe(R,3),N=k[2];(F||s)&&Ps&&$c(N,{mark:Ut})}),w=fe(b,3),S=w[0],x=w[1],P=w[2];return function(R){var F;if(!d||p||!c)F=I(qh,{});else{var k;F=I("style",{...(k={},U(k,la,x),U(k,Ut,P),k),dangerouslySetInnerHTML:{__html:S}})}return lt(bc,{children:[F,R]})}}function Gh(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var lo=function(){function e(){Ne(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return je(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return r.forEach(function(s){if(!o)o=void 0;else{var u,c;o=(u=o)===null||u===void 0||(c=u.map)===null||c===void 0?void 0:c.get(s)}}),(n=o)!==null&&n!==void 0&&n.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,l){var f=fe(c,2),d=f[1];return i.internalGet(l)[1]<d?[l,i.internalGet(l)[1]]:c},[this.keys[0],this.cacheCallTimes]),o=fe(a,1),s=o[0];this.delete(s)}this.keys.push(r)}var u=this.cache;r.forEach(function(c,l){if(l===r.length-1)u.set(c,{value:[n,i.cacheCallTimes++]});else{var f=u.get(c);f?f.map||(f.map=new Map):u.set(c,{map:new Map}),u=u.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var a;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var o=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),o}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Gh(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();U(lo,"MAX_CACHE_SIZE",20);U(lo,"MAX_CACHE_OFFSET",5);var _s=0,Kh=function(){function e(t){Ne(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=_s,t.length===0&&xc(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),_s+=1}return je(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),$i=new lo;function Uc(e){var t=Array.isArray(e)?e:[e];return $i.has(t)||$i.set(t,new Kh(t)),$i.get(t)}function fr(e){return e.notSplit=!0,e}fr(["borderTop","borderBottom"]),fr(["borderTop"]),fr(["borderBottom"]),fr(["borderLeft","borderRight"]),fr(["borderLeft"]),fr(["borderRight"]);var Yh=Z.createContext({});const fo=Yh;var qt="RC_FORM_INTERNAL_HOOKS",ce=function(){_e(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},xr=_.createContext({getFieldValue:ce,getFieldsValue:ce,getFieldError:ce,getFieldWarning:ce,getFieldsError:ce,isFieldsTouched:ce,isFieldTouched:ce,isFieldValidating:ce,isFieldsValidating:ce,resetFields:ce,setFields:ce,setFieldValue:ce,setFieldsValue:ce,validateFields:ce,submit:ce,getInternalHooks:function(){return ce(),{dispatch:ce,initEntityValue:ce,registerField:ce,useSubscribe:ce,setInitialValues:ce,destroyForm:ce,setCallbacks:ce,registerWatch:ce,getFields:ce,setValidateMessages:ce,setPreserve:ce,getInitialValue:ce}}});function ya(e){return e==null?[]:Array.isArray(e)?e:[e]}function et(){et=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(E,C,O){E[C]=O.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(E,C,O){return Object.defineProperty(E,C,{value:O,enumerable:!0,configurable:!0,writable:!0}),E[C]}try{u({},"")}catch{u=function(O,T,$){return O[T]=$}}function c(E,C,O,T){var $=C&&C.prototype instanceof d?C:d,L=Object.create($.prototype),W=new k(T||[]);return n(L,"_invoke",{value:x(E,O,W)}),L}function l(E,C,O){try{return{type:"normal",arg:E.call(C,O)}}catch(T){return{type:"throw",arg:T}}}e.wrap=c;var f={};function d(){}function h(){}function v(){}var g={};u(g,a,function(){return this});var y=Object.getPrototypeOf,p=y&&y(y(N([])));p&&p!==t&&r.call(p,a)&&(g=p);var b=v.prototype=d.prototype=Object.create(g);function w(E){["next","throw","return"].forEach(function(C){u(E,C,function(O){return this._invoke(C,O)})})}function S(E,C){function O($,L,W,ee){var re=l(E[$],E,L);if(re.type!=="throw"){var Q=re.arg,Y=Q.value;return Y&&ne(Y)=="object"&&r.call(Y,"__await")?C.resolve(Y.__await).then(function(ue){O("next",ue,W,ee)},function(ue){O("throw",ue,W,ee)}):C.resolve(Y).then(function(ue){Q.value=ue,W(Q)},function(ue){return O("throw",ue,W,ee)})}ee(re.arg)}var T;n(this,"_invoke",{value:function(L,W){function ee(){return new C(function(re,Q){O(L,W,re,Q)})}return T=T?T.then(ee,ee):ee()}})}function x(E,C,O){var T="suspendedStart";return function($,L){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if($==="throw")throw L;return B()}for(O.method=$,O.arg=L;;){var W=O.delegate;if(W){var ee=P(W,O);if(ee){if(ee===f)continue;return ee}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(T==="suspendedStart")throw T="completed",O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);T="executing";var re=l(E,C,O);if(re.type==="normal"){if(T=O.done?"completed":"suspendedYield",re.arg===f)continue;return{value:re.arg,done:O.done}}re.type==="throw"&&(T="completed",O.method="throw",O.arg=re.arg)}}}function P(E,C){var O=C.method,T=E.iterator[O];if(T===void 0)return C.delegate=null,O==="throw"&&E.iterator.return&&(C.method="return",C.arg=void 0,P(E,C),C.method==="throw")||O!=="return"&&(C.method="throw",C.arg=new TypeError("The iterator does not provide a '"+O+"' method")),f;var $=l(T,E.iterator,C.arg);if($.type==="throw")return C.method="throw",C.arg=$.arg,C.delegate=null,f;var L=$.arg;return L?L.done?(C[E.resultName]=L.value,C.next=E.nextLoc,C.method!=="return"&&(C.method="next",C.arg=void 0),C.delegate=null,f):L:(C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,f)}function R(E){var C={tryLoc:E[0]};1 in E&&(C.catchLoc=E[1]),2 in E&&(C.finallyLoc=E[2],C.afterLoc=E[3]),this.tryEntries.push(C)}function F(E){var C=E.completion||{};C.type="normal",delete C.arg,E.completion=C}function k(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(R,this),this.reset(!0)}function N(E){if(E){var C=E[a];if(C)return C.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var O=-1,T=function $(){for(;++O<E.length;)if(r.call(E,O))return $.value=E[O],$.done=!1,$;return $.value=void 0,$.done=!0,$};return T.next=T}}return{next:B}}function B(){return{value:void 0,done:!0}}return h.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(E){var C=typeof E=="function"&&E.constructor;return!!C&&(C===h||(C.displayName||C.name)==="GeneratorFunction")},e.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,v):(E.__proto__=v,u(E,s,"GeneratorFunction")),E.prototype=Object.create(b),E},e.awrap=function(E){return{__await:E}},w(S.prototype),u(S.prototype,o,function(){return this}),e.AsyncIterator=S,e.async=function(E,C,O,T,$){$===void 0&&($=Promise);var L=new S(c(E,C,O,T),$);return e.isGeneratorFunction(C)?L:L.next().then(function(W){return W.done?W.value:L.next()})},w(b),u(b,s,"Generator"),u(b,a,function(){return this}),u(b,"toString",function(){return"[object Generator]"}),e.keys=function(E){var C=Object(E),O=[];for(var T in C)O.push(T);return O.reverse(),function $(){for(;O.length;){var L=O.pop();if(L in C)return $.value=L,$.done=!1,$}return $.done=!0,$}},e.values=N,k.prototype={constructor:k,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!C)for(var O in this)O.charAt(0)==="t"&&r.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var O=this;function T(Q,Y){return W.type="throw",W.arg=C,O.next=Q,Y&&(O.method="next",O.arg=void 0),!!Y}for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$],W=L.completion;if(L.tryLoc==="root")return T("end");if(L.tryLoc<=this.prev){var ee=r.call(L,"catchLoc"),re=r.call(L,"finallyLoc");if(ee&&re){if(this.prev<L.catchLoc)return T(L.catchLoc,!0);if(this.prev<L.finallyLoc)return T(L.finallyLoc)}else if(ee){if(this.prev<L.catchLoc)return T(L.catchLoc,!0)}else{if(!re)throw new Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return T(L.finallyLoc)}}}},abrupt:function(C,O){for(var T=this.tryEntries.length-1;T>=0;--T){var $=this.tryEntries[T];if($.tryLoc<=this.prev&&r.call($,"finallyLoc")&&this.prev<$.finallyLoc){var L=$;break}}L&&(C==="break"||C==="continue")&&L.tryLoc<=O&&O<=L.finallyLoc&&(L=null);var W=L?L.completion:{};return W.type=C,W.arg=O,L?(this.method="next",this.next=L.finallyLoc,f):this.complete(W)},complete:function(C,O){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&O&&(this.next=O),f},finish:function(C){for(var O=this.tryEntries.length-1;O>=0;--O){var T=this.tryEntries[O];if(T.finallyLoc===C)return this.complete(T.completion,T.afterLoc),F(T),f}},catch:function(C){for(var O=this.tryEntries.length-1;O>=0;--O){var T=this.tryEntries[O];if(T.tryLoc===C){var $=T.completion;if($.type==="throw"){var L=$.arg;F(T)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(C,O,T){return this.delegate={iterator:N(C),resultName:O,nextLoc:T},this.method==="next"&&(this.arg=void 0),f}},e}function Ts(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(c){r(c);return}s.done?t(u):Promise.resolve(u).then(n,i)}function Tr(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(u){Ts(a,n,i,o,s,"next",u)}function s(u){Ts(a,n,i,o,s,"throw",u)}o(void 0)})}}function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gt.apply(this,arguments)}function Xh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,en(e,t)}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(e)}function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},en(e,t)}function Jh(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zn(e,t,r){return Jh()?zn=Reflect.construct.bind():zn=function(i,a,o){var s=[null];s.push.apply(s,a);var u=Function.bind.apply(i,s),c=new u;return o&&en(c,o.prototype),c},zn.apply(null,arguments)}function Qh(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sa(e){var t=typeof Map=="function"?new Map:void 0;return Sa=function(n){if(n===null||!Qh(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return zn(n,arguments,ba(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),en(i,n)},Sa(e)}var Zh=/%[sdj%]/g,qc=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(qc=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function wa(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Qe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(Zh,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function ep(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Te(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ep(t)&&typeof e=="string"&&!e)}function tp(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function Ns(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<i?t(e[s],a):r([])}a([])}function rp(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var js=function(e){Xh(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(Sa(Error));function np(e,t,r,n,i){if(t.first){var a=new Promise(function(d,h){var v=function(p){return n(p),p.length?h(new js(p,wa(p))):d(i)},g=rp(e);Ns(g,r,v)});return a.catch(function(d){return d}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),u=s.length,c=0,l=[],f=new Promise(function(d,h){var v=function(y){if(l.push.apply(l,y),c++,c===u)return n(l),l.length?h(new js(l,wa(l))):d(i)};s.length||(n(l),d(i)),s.forEach(function(g){var y=e[g];o.indexOf(g)!==-1?Ns(y,r,v):tp(y,r,v)})});return f.catch(function(d){return d}),f}function ip(e){return!!(e&&e.message!==void 0)}function ap(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Fs(e,t){return function(r){var n;return e.fullFields?n=ap(t,e.fullFields):n=t[r.field||e.fullField],ip(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function ks(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Gt({},e[r],n):e[r]=n}}return e}var Gc=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||Te(r,o||t.type))&&i.push(Qe(a.messages.required,t.fullField))},op=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(Qe(a.messages.whitespace,t.fullField))},wn,sp=function(){if(wn)return wn;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=(`
|
|
45
|
+
*/var hb;function RI(){return hb||(hb=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(ee){return typeof ee=="string"||typeof ee=="function"||ee===r||ee===c||ee===i||ee===o||ee===d||ee===f||typeof ee=="object"&&ee!==null&&(ee.$$typeof===h||ee.$$typeof===p||ee.$$typeof===a||ee.$$typeof===s||ee.$$typeof===u||ee.$$typeof===b||ee.$$typeof===g||ee.$$typeof===S||ee.$$typeof===m)}function w(ee){if(typeof ee=="object"&&ee!==null){var q=ee.$$typeof;switch(q){case t:var oe=ee.type;switch(oe){case l:case c:case r:case i:case o:case d:return oe;default:var ve=oe&&oe.$$typeof;switch(ve){case s:case u:case h:case p:case a:return ve;default:return q}}case n:return q}}}var y=l,$=c,E=s,N=a,P=t,_=u,D=r,M=h,I=p,T=n,j=i,A=o,B=d,H=!1;function U(ee){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),J(ee)||w(ee)===l}function J(ee){return w(ee)===c}function F(ee){return w(ee)===s}function z(ee){return w(ee)===a}function k(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===t}function Q(ee){return w(ee)===u}function K(ee){return w(ee)===r}function Y(ee){return w(ee)===h}function te(ee){return w(ee)===p}function re(ee){return w(ee)===n}function ce(ee){return w(ee)===i}function ne(ee){return w(ee)===o}function he(ee){return w(ee)===d}Lt.AsyncMode=y,Lt.ConcurrentMode=$,Lt.ContextConsumer=E,Lt.ContextProvider=N,Lt.Element=P,Lt.ForwardRef=_,Lt.Fragment=D,Lt.Lazy=M,Lt.Memo=I,Lt.Portal=T,Lt.Profiler=j,Lt.StrictMode=A,Lt.Suspense=B,Lt.isAsyncMode=U,Lt.isConcurrentMode=J,Lt.isContextConsumer=F,Lt.isContextProvider=z,Lt.isElement=k,Lt.isForwardRef=Q,Lt.isFragment=K,Lt.isLazy=Y,Lt.isMemo=te,Lt.isPortal=re,Lt.isProfiler=ce,Lt.isStrictMode=ne,Lt.isSuspense=he,Lt.isValidElementType=C,Lt.typeOf=w}()),Lt}(function(e){process.env.NODE_ENV==="production"?e.exports=NI():e.exports=RI()})(EI);function Kn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return O.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Kn(r)):Gc.isFragment(r)&&r.props?n=n.concat(Kn(r.props.children,t)):n.push(r))}),n}var bp={};function Hs(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function PI(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.warn("Note: ".concat(t))}function II(){bp={}}function Ew(e,t,n){!t&&!bp[n]&&(e(!1,n),bp[n]=!0)}function mt(e,t){Ew(Hs,e,t)}function gb(e,t){Ew(PI,e,t)}function W(e,t,n){return t=Ow(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vb(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cl(e,t,n){var r=x.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function hg(e,t){typeof e=="function"?e(t):Ze(e)==="object"&&e&&"current"in e&&(e.current=t)}function Wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){hg(i,o)})}}function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cl(function(){return Wr.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function Da(e){var t,n,r=Gc.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function Xc(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ws(e){return Xc(e)?e:e instanceof O.Component?ln.findDOMNode(e):null}var Nw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),yp=typeof window<"u"&&typeof document<"u"&&window.document===document,qc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),_I=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),TI=2;function MI(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){_I(i)}function s(){var l=Date.now();if(n){if(l-o<TI)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=l}return s}var DI=20,jI=["top","right","bottom","left","width","height","size","weight"],AI=typeof MutationObserver<"u",kI=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=MI(this.refresh.bind(this),DI)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!yp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),AI?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!yp||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=jI.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Rw=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ma=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||qc},Pw=zu(0,0,0,0);function Yc(e){return parseFloat(e)||0}function mb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Yc(i)},0)}function LI(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Yc(a)}return n}function zI(e){var t=e.getBBox();return zu(0,0,t.width,t.height)}function BI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Pw;var r=ma(e).getComputedStyle(e),o=LI(r),i=o.left+o.right,a=o.top+o.bottom,s=Yc(r.width),l=Yc(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=mb(r,"left","right")+i),Math.round(l+a)!==n&&(l-=mb(r,"top","bottom")+a)),!VI(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return zu(o.left,o.top,s,l)}var FI=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ma(e).SVGGraphicsElement}:function(e){return e instanceof ma(e).SVGElement&&typeof e.getBBox=="function"}}();function VI(e){return e===ma(e).document.documentElement}function HI(e){return yp?FI(e)?zI(e):BI(e):Pw}function WI(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Rw(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function zu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var UI=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=zu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=HI(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),KI=function(){function e(t,n){var r=WI(n);Rw(this,{target:t,contentRect:r})}return e}(),GI=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Nw,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ma(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new UI(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ma(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new KI(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Iw=typeof WeakMap<"u"?new WeakMap:new Nw,_w=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=kI.getInstance(),r=new GI(t,n,this);Iw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){_w.prototype[e]=function(){var t;return(t=Iw.get(this))[e].apply(t,arguments)}});var Tw=function(){return typeof qc.ResizeObserver<"u"?qc.ResizeObserver:_w}(),Co=new Map;function Mw(e){e.forEach(function(t){var n,r=t.target;(n=Co.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Dw=new Tw(Mw);process.env.NODE_ENV;process.env.NODE_ENV;function XI(e,t){Co.has(e)||(Co.set(e,new Set),Dw.observe(e)),Co.get(e).add(t)}function qI(e,t){Co.has(e)&&(Co.get(e).delete(t),Co.get(e).size||(Dw.unobserve(e),Co.delete(e)))}var YI=function(e){Hr(n,e);var t=$i(n);function n(){return Wt(this,n),t.apply(this,arguments)}return Ut(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component),Sp=x.createContext(null);function QI(e){var t=e.children,n=e.onBatchResize,r=x.useRef(0),o=x.useRef([]),i=x.useContext(Sp),a=x.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,l,c)},[n,i]);return v(Sp.Provider,{value:a,children:t})}function JI(e,t){var n=e.children,r=e.disabled,o=x.useRef(null),i=x.useRef(null),a=x.useContext(Sp),s=typeof n=="function",l=s?n(o):n,c=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&x.isValidElement(l)&&Da(l),d=u?l.ref:null,f=x.useMemo(function(){return Wr(d,o)},[d,o]),p=function(){return Ws(o.current)||Ws(i.current)};x.useImperativeHandle(t,function(){return p()});var h=x.useRef(e);h.current=e;var m=x.useCallback(function(b){var g=h.current,S=g.onResize,C=g.data,w=b.getBoundingClientRect(),y=w.width,$=w.height,E=b.offsetWidth,N=b.offsetHeight,P=Math.floor(y),_=Math.floor($);if(c.current.width!==P||c.current.height!==_||c.current.offsetWidth!==E||c.current.offsetHeight!==N){var D={width:P,height:_,offsetWidth:E,offsetHeight:N};c.current=D;var M=E===Math.round(y)?y:E,I=N===Math.round($)?$:N,T=L(L({},D),{},{offsetWidth:M,offsetHeight:I});a==null||a(T,b,C),S&&Promise.resolve().then(function(){S(T,b)})}},[]);return x.useEffect(function(){var b=p();return b&&!r&&XI(b,m),function(){return qI(b,m)}},[o.current,r]),v(YI,{ref:i,children:u?x.cloneElement(l,{ref:f}):l})}var jw=x.forwardRef(JI);process.env.NODE_ENV!=="production"&&(jw.displayName="SingleObserver");var ZI="rc-observer-key";function e_(e,t){var n=e.children,r=typeof n=="function"?[n]:Kn(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Hs(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Hs(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(ZI,"-").concat(i);return O.createElement(jw,{...e,key:a,ref:i===0?t:void 0},o)})}var no=x.forwardRef(e_);process.env.NODE_ENV!=="production"&&(no.displayName="ResizeObserver");no.Collection=QI;function wn(e,t){var n=L({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function wp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t_(e){if(Array.isArray(e))return wp(e)}function Aw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gg(e,t){if(e){if(typeof e=="string")return wp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wp(e,t)}}function n_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(e){return t_(e)||Aw(e)||gg(e)||n_()}function vg(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function r_(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function nt(e,t){if(e==null)return{};var n=r_(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(mt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&Ze(i)==="object"&&Ze(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return!1}return o(e,t)}var o_=function(){function e(){Wt(this,e),W(this,"cache",new Map)}return Ut(e,[{key:"get",value:function(n){return this.cache.get(n.join("%"))||null}},{key:"update",value:function(n,r){var o=n.join("%"),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a)}}]),e}(),xp="data-token-hash",ci="data-css-hash",i_="data-dev-cache-path",Cs="__cssinjs_instance__",Qc=Math.random().toString(12).slice(2);function a_(){if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(ci,"]"))||[],t=document.head.firstChild;Array.from(e).forEach(function(r){r[Cs]=r[Cs]||Qc,document.head.insertBefore(r,t)});var n={};Array.from(document.querySelectorAll("style[".concat(ci,"]"))).forEach(function(r){var o=r.getAttribute(ci);if(n[o]){if(r[Cs]===Qc){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}}else n[o]=!0})}return new o_}var kw=x.createContext({hashPriority:"low",cache:a_(),defaultCache:!0});function Lw(e){if(Array.isArray(e))return e}function s_(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function zw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(e,t){return Lw(e)||s_(e,t)||gg(e,t)||zw()}function l_(){return!1}var Cp=!1;function c_(){return Cp}const u_=process.env.NODE_ENV==="production"?l_:c_;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot){var ef=window;if(typeof ef.webpackHotUpdate=="function"){var d_=ef.webpackHotUpdate;ef.webpackHotUpdate=function(){return Cp=!0,setTimeout(function(){Cp=!1},0),d_.apply(void 0,arguments)}}}function Bw(e,t,n,r){var o=x.useContext(kw),i=o.cache,a=[e].concat(we(t)),s=u_();return x.useMemo(function(){i.update(a,function(l){var c=l||[],u=X(c,2),d=u[0],f=d===void 0?0:d,p=u[1],h=p;process.env.NODE_ENV!=="production"&&p&&s&&(r==null||r(h,s),h=null);var m=h||n();return[f+1,m]})},[a.join("_")]),x.useEffect(function(){return function(){i.update(a,function(l){var c=l||[],u=X(c,2),d=u[0],f=d===void 0?0:d,p=u[1],h=f-1;return h===0?(r==null||r(p,!1),null):[f-1,p]})}},a),i.get(a)[1]}function Gn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gi(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var bb="data-rc-order",f_="rc-util-key",$p=new Map;function Fw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):f_}function Fu(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function p_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Vw(e){return Array.from(($p.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Hw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Gn())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(bb,p_(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Fu(t),a=i.firstChild;if(r){if(r==="queue"){var s=Vw(i).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(bb))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function Ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Fu(t);return Vw(n).find(function(r){return r.getAttribute(Fw(t))===e})}function Jc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ww(e,t);if(n){var r=Fu(t);r.removeChild(n)}}function h_(e,t){var n=$p.get(e);if(!n||!gi(document,n)){var r=Hw("",t),o=r.parentNode;$p.set(e,o),e.removeChild(r)}}function bi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Fu(n);h_(r,n);var o=Ww(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=Hw(e,n);return l.setAttribute(Fw(n),t),l}function Zc(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&Ze(r)==="object"?t+=Zc(r):t+=r}),t}function g_(e,t){return vg("".concat(t,"_").concat(Zc(e)))}var $s="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Uw="903px";function v_(e,t){if(Gn()){var n;bi(e,$s);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r),process.env.NODE_ENV!=="production"&&(r.innerHTML="Test",r.style.zIndex="9999999");var o=getComputedStyle(r).width===Uw;return(n=r.parentNode)===null||n===void 0||n.removeChild(r),Jc($s),o}return!1}var tf=void 0;function m_(){return tf===void 0&&(tf=v_("@layer ".concat($s," { .").concat($s," { width: ").concat(Uw,"!important; } }"),function(e){e.className=$s})),tf}var b_={},y_=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",si=new Map;function S_(e){si.set(e,(si.get(e)||0)+1)}function w_(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(xp,'="').concat(e,'"]'));t.forEach(function(n){if(n[Cs]===Qc){var r;(r=n.parentNode)===null||r===void 0||r.removeChild(n)}})}}function x_(e){si.set(e,(si.get(e)||0)-1);var t=Array.from(si.keys()),n=t.filter(function(r){var o=si.get(r)||0;return o<=0});n.length<t.length&&n.forEach(function(r){w_(r),si.delete(r)})}function C_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.salt,o=r===void 0?"":r,i=n.override,a=i===void 0?b_:i,s=n.formatToken,l=x.useMemo(function(){return Object.assign.apply(Object,[{}].concat(we(t)))},[t]),c=x.useMemo(function(){return Zc(l)},[l]),u=x.useMemo(function(){return Zc(a)},[a]),d=Bw("token",[o,e.id,c,u],function(){var f=e.getDerivativeToken(l),p=L(L({},f),a);s&&(p=s(p));var h=g_(p,o);p._tokenKey=h,S_(h);var m="".concat(y_,"-").concat(vg(h));return p._hashId=m,[p,m]},function(f){x_(f[0]._tokenKey)});return d}var $_={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Kw="comm",Gw="rule",Xw="decl",O_="@import",E_="@keyframes",N_=Math.abs,mg=String.fromCharCode;function qw(e){return e.trim()}function Op(e,t,n){return e.replace(t,n)}function R_(e,t){return e.indexOf(t)}function Us(e,t){return e.charCodeAt(t)|0}function Ks(e,t,n){return e.slice(t,n)}function Fo(e){return e.length}function Yw(e){return e.length}function tc(e,t){return t.push(e),e}var Vu=1,ba=1,Qw=0,$r=0,yn=0,ja="";function bg(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Vu,column:ba,length:a,return:""}}function P_(){return yn}function I_(){return yn=$r>0?Us(ja,--$r):0,ba--,yn===10&&(ba=1,Vu--),yn}function Mr(){return yn=$r<Qw?Us(ja,$r++):0,ba++,yn===10&&(ba=1,Vu++),yn}function vi(){return Us(ja,$r)}function Dc(){return $r}function Hu(e,t){return Ks(ja,e,t)}function Ep(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function __(e){return Vu=ba=1,Qw=Fo(ja=e),$r=0,[]}function T_(e){return ja="",e}function nf(e){return qw(Hu($r-1,Np(e===91?e+2:e===40?e+1:e)))}function M_(e){for(;(yn=vi())&&yn<33;)Mr();return Ep(e)>2||Ep(yn)>3?"":" "}function D_(e,t){for(;--t&&Mr()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return Hu(e,Dc()+(t<6&&vi()==32&&Mr()==32))}function Np(e){for(;Mr();)switch(yn){case e:return $r;case 34:case 39:e!==34&&e!==39&&Np(yn);break;case 40:e===41&&Np(e);break;case 92:Mr();break}return $r}function j_(e,t){for(;Mr()&&e+yn!==47+10;)if(e+yn===42+42&&vi()===47)break;return"/*"+Hu(t,$r-1)+"*"+mg(e===47?e:Mr())}function A_(e){for(;!Ep(vi());)Mr();return Hu(e,$r)}function k_(e){return T_(jc("",null,null,null,[""],e=__(e),0,[0],e))}function jc(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,b=1,g=1,S=0,C="",w=o,y=i,$=r,E=C;b;)switch(h=S,S=Mr()){case 40:if(h!=108&&Us(E,d-1)==58){R_(E+=Op(nf(S),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=nf(S);break;case 9:case 10:case 13:case 32:E+=M_(h);break;case 92:E+=D_(Dc()-1,7);continue;case 47:switch(vi()){case 42:case 47:tc(L_(j_(Mr(),Dc()),t,n),l);break;default:E+="/"}break;case 123*m:s[c++]=Fo(E)*g;case 125*m:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:p>0&&Fo(E)-d&&tc(p>32?Sb(E+";",r,n,d-1):Sb(Op(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(tc($=yb(E,t,n,c,u,o,s,C,w=[],y=[],d),i),S===123)if(u===0)jc(E,t,$,$,w,i,d,s,y);else switch(f===99&&Us(E,3)===110?100:f){case 100:case 109:case 115:jc(e,$,$,r&&tc(yb(e,$,$,0,0,o,s,C,o,w=[],d),y),o,y,d,s,r?w:y);break;default:jc(E,$,$,$,[""],y,0,s,y)}}c=u=p=0,m=g=1,C=E="",d=a;break;case 58:d=1+Fo(E),p=h;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&I_()==125)continue}switch(E+=mg(S),S*m){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Fo(E)-1)*g,g=1;break;case 64:vi()===45&&(E+=nf(Mr())),f=vi(),u=d=Fo(C=E+=A_(Dc())),S++;break;case 45:h===45&&Fo(E)==2&&(m=0)}}return i}function yb(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],p=Yw(f),h=0,m=0,b=0;h<r;++h)for(var g=0,S=Ks(e,d+1,d=N_(m=a[h])),C=e;g<p;++g)(C=qw(m>0?f[g]+" "+S:Op(S,/&\f/g,f[g])))&&(l[b++]=C);return bg(e,t,n,o===0?Gw:s,l,c,u)}function L_(e,t,n){return bg(e,t,n,Kw,mg(P_()),Ks(e,2,-2),0)}function Sb(e,t,n,r){return bg(e,t,n,Xw,Ks(e,0,r),Ks(e,r+1,-1),r)}function Rp(e,t){for(var n="",r=Yw(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function z_(e,t,n,r){switch(e.type){case O_:case Xw:return e.return=e.return||e.value;case Kw:return"";case E_:return e.return=e.value+"{"+Rp(e.children,r)+"}";case Gw:e.value=e.props.join(",")}return Fo(n=Rp(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jw(e,t){var n=t.path,r=t.parentSelectors;mt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var B_=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Jw("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},F_=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Jw("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},wb=Gn(),Zw="_skip_check_";function xb(e){var t=Rp(k_(e),z_);return t.replace(/\{%%%\:[^;];}/g,";")}function V_(e){return Ze(e)==="object"&&e&&Zw in e}function H_(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(we(l.slice(1))).join(" ")});return i.join(",")}var W_=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d,p=n.linters,h=p===void 0?[]:p,m="",b={};function g($){var E=$.getName(s);if(!b[E]){var N=e($.style,n,{root:!1,parentSelectors:a}),P=X(N,1),_=P[0];b[E]="@keyframes ".concat($.getName(s)).concat(_)}}function S($){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(N){Array.isArray(N)?S(N,E):N&&E.push(N)}),E}var C=S(Array.isArray(t)?t:[t]);if(C.forEach(function($){var E=typeof $=="string"&&!o?{}:$;if(typeof E=="string")m+="".concat(E,`
|
|
48
|
+
`);else if(E._keyframe)g(E);else{var N=f.reduce(function(P,_){var D;return(_==null||(D=_.visit)===null||D===void 0?void 0:D.call(_,P))||P},E);Object.keys(N).forEach(function(P){var _=N[P];if(Ze(_)==="object"&&_&&(P!=="animationName"||!_._keyframe)&&!V_(_)){var D=!1,M=P.trim(),I=!1;(o||i)&&s?M.startsWith("@")?D=!0:M=H_(P,s,u):o&&!s&&(M==="&"||M==="")&&(M="",I=!0);var T=e(_,n,{root:I,injectHash:D,parentSelectors:[].concat(we(a),[M])}),j=X(T,2),A=j[0],B=j[1];b=L(L({},b),B),m+="".concat(M).concat(A)}else{var H,U=(H=_==null?void 0:_.value)!==null&&H!==void 0?H:_;process.env.NODE_ENV!=="production"&&(Ze(_)!=="object"||!(_!=null&&_[Zw]))&&[B_,F_].concat(we(h)).forEach(function(z){return z(P,U,{path:c,hashId:s,parentSelectors:a})});var J=P.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),F=U;!$_[P]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),P==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(g(_),F=_.getName(s)),m+="".concat(J,":").concat(F,";")}})}}),!o)m="{".concat(m,"}");else if(l&&m_()){var w=l.split(","),y=w[w.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),w.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m))}return[m,b]};function U_(e,t){return vg("".concat(e.join("%")).concat(t))}function K_(){return null}function Pp(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=x.useContext(kw),s=a.autoClear,l=a.mock,c=a.defaultCache,u=a.hashPriority,d=a.container,f=a.ssrInline,p=a.transformers,h=a.linters,m=n._tokenKey,b=[m].concat(we(r)),g=wb;process.env.NODE_ENV!=="production"&&l!==void 0&&(g=l==="client");var S=Bw("style",b,function(){var E=t(),N=W_(E,{hashId:o,hashPriority:u,layer:i,path:r.join("-"),transformers:p,linters:h}),P=X(N,2),_=P[0],D=P[1],M=xb(_),I=U_(b,M);if(g){var T=bi(M,I,{mark:ci,prepend:"queue",attachTo:d});T[Cs]=Qc,T.setAttribute(xp,m),process.env.NODE_ENV!=="production"&&T.setAttribute(i_,b.join("|")),Object.keys(D).forEach(function(j){bi(xb(D[j]),"_effect-".concat(j),{mark:ci,prepend:"queue",attachTo:d})})}return[M,m,I]},function(E,N){var P=X(E,3),_=P[2];(N||s)&&wb&&Jc(_,{mark:ci})}),C=X(S,3),w=C[0],y=C[1],$=C[2];return function(E){var N;if(!f||g||!c)N=v(K_,{});else{var P;N=v("style",{...(P={},W(P,xp,y),W(P,ci,$),P),dangerouslySetInnerHTML:{__html:w}})}return ae(Ht,{children:[N,E]})}}var Pt=function(){function e(t,n){Wt(this,e),W(this,"name",void 0),W(this,"style",void 0),W(this,"_keyframe",!0),this.name=t,this.style=n}return Ut(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function G_(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var yg=function(){function e(){Wt(this,e),W(this,"cache",void 0),W(this,"keys",void 0),W(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ut(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=X(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=X(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!G_(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();W(yg,"MAX_CACHE_SIZE",20);W(yg,"MAX_CACHE_OFFSET",5);var Cb=0,X_=function(){function e(t){Wt(this,e),W(this,"derivatives",void 0),W(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Cb,t.length===0&&Hs(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Cb+=1}return Ut(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),rf=new yg;function ex(e){var t=Array.isArray(e)?e:[e];return rf.has(t)||rf.set(t,new X_(t)),rf.get(t)}function Fi(e){return e.notSplit=!0,e}Fi(["borderTop","borderBottom"]),Fi(["borderTop"]),Fi(["borderBottom"]),Fi(["borderLeft","borderRight"]),Fi(["borderLeft"]),Fi(["borderRight"]);var q_=O.createContext({});const Sg=q_;var ui="RC_FORM_INTERNAL_HOOKS",Vt=function(){mt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ya=x.createContext({getFieldValue:Vt,getFieldsValue:Vt,getFieldError:Vt,getFieldWarning:Vt,getFieldsError:Vt,isFieldsTouched:Vt,isFieldTouched:Vt,isFieldValidating:Vt,isFieldsValidating:Vt,resetFields:Vt,setFields:Vt,setFieldValue:Vt,setFieldsValue:Vt,validateFields:Vt,submit:Vt,getInternalHooks:function(){return Vt(),{dispatch:Vt,initEntityValue:Vt,registerField:Vt,useSubscribe:Vt,setInitialValues:Vt,destroyForm:Vt,setCallbacks:Vt,registerWatch:Vt,getFields:Vt,setValidateMessages:Vt,setPreserve:Vt,getInitialValue:Vt}}});function Ip(e){return e==null?[]:Array.isArray(e)?e:[e]}function Xn(){Xn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(M,I,T){M[I]=T.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(M,I,T){return Object.defineProperty(M,I,{value:T,enumerable:!0,configurable:!0,writable:!0}),M[I]}try{l({},"")}catch{l=function(T,j,A){return T[j]=A}}function c(M,I,T,j){var A=I&&I.prototype instanceof f?I:f,B=Object.create(A.prototype),H=new P(j||[]);return r(B,"_invoke",{value:y(M,T,H)}),B}function u(M,I,T){try{return{type:"normal",arg:M.call(I,T)}}catch(j){return{type:"throw",arg:j}}}e.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};l(m,i,function(){return this});var b=Object.getPrototypeOf,g=b&&b(b(_([])));g&&g!==t&&n.call(g,i)&&(m=g);var S=h.prototype=f.prototype=Object.create(m);function C(M){["next","throw","return"].forEach(function(I){l(M,I,function(T){return this._invoke(I,T)})})}function w(M,I){function T(A,B,H,U){var J=u(M[A],M,B);if(J.type!=="throw"){var F=J.arg,z=F.value;return z&&Ze(z)=="object"&&n.call(z,"__await")?I.resolve(z.__await).then(function(k){T("next",k,H,U)},function(k){T("throw",k,H,U)}):I.resolve(z).then(function(k){F.value=k,H(F)},function(k){return T("throw",k,H,U)})}U(J.arg)}var j;r(this,"_invoke",{value:function(B,H){function U(){return new I(function(J,F){T(B,H,J,F)})}return j=j?j.then(U,U):U()}})}function y(M,I,T){var j="suspendedStart";return function(A,B){if(j==="executing")throw new Error("Generator is already running");if(j==="completed"){if(A==="throw")throw B;return D()}for(T.method=A,T.arg=B;;){var H=T.delegate;if(H){var U=$(H,T);if(U){if(U===d)continue;return U}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(j==="suspendedStart")throw j="completed",T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);j="executing";var J=u(M,I,T);if(J.type==="normal"){if(j=T.done?"completed":"suspendedYield",J.arg===d)continue;return{value:J.arg,done:T.done}}J.type==="throw"&&(j="completed",T.method="throw",T.arg=J.arg)}}}function $(M,I){var T=I.method,j=M.iterator[T];if(j===void 0)return I.delegate=null,T==="throw"&&M.iterator.return&&(I.method="return",I.arg=void 0,$(M,I),I.method==="throw")||T!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+T+"' method")),d;var A=u(j,M.iterator,I.arg);if(A.type==="throw")return I.method="throw",I.arg=A.arg,I.delegate=null,d;var B=A.arg;return B?B.done?(I[M.resultName]=B.value,I.next=M.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,d):B:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,d)}function E(M){var I={tryLoc:M[0]};1 in M&&(I.catchLoc=M[1]),2 in M&&(I.finallyLoc=M[2],I.afterLoc=M[3]),this.tryEntries.push(I)}function N(M){var I=M.completion||{};I.type="normal",delete I.arg,M.completion=I}function P(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(E,this),this.reset(!0)}function _(M){if(M){var I=M[i];if(I)return I.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var T=-1,j=function A(){for(;++T<M.length;)if(n.call(M,T))return A.value=M[T],A.done=!1,A;return A.value=void 0,A.done=!0,A};return j.next=j}}return{next:D}}function D(){return{value:void 0,done:!0}}return p.prototype=h,r(S,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(M){var I=typeof M=="function"&&M.constructor;return!!I&&(I===p||(I.displayName||I.name)==="GeneratorFunction")},e.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,h):(M.__proto__=h,l(M,s,"GeneratorFunction")),M.prototype=Object.create(S),M},e.awrap=function(M){return{__await:M}},C(w.prototype),l(w.prototype,a,function(){return this}),e.AsyncIterator=w,e.async=function(M,I,T,j,A){A===void 0&&(A=Promise);var B=new w(c(M,I,T,j),A);return e.isGeneratorFunction(I)?B:B.next().then(function(H){return H.done?H.value:B.next()})},C(S),l(S,s,"Generator"),l(S,i,function(){return this}),l(S,"toString",function(){return"[object Generator]"}),e.keys=function(M){var I=Object(M),T=[];for(var j in I)T.push(j);return T.reverse(),function A(){for(;T.length;){var B=T.pop();if(B in I)return A.value=B,A.done=!1,A}return A.done=!0,A}},e.values=_,P.prototype={constructor:P,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!I)for(var T in this)T.charAt(0)==="t"&&n.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var T=this;function j(F,z){return H.type="throw",H.arg=I,T.next=F,z&&(T.method="next",T.arg=void 0),!!z}for(var A=this.tryEntries.length-1;A>=0;--A){var B=this.tryEntries[A],H=B.completion;if(B.tryLoc==="root")return j("end");if(B.tryLoc<=this.prev){var U=n.call(B,"catchLoc"),J=n.call(B,"finallyLoc");if(U&&J){if(this.prev<B.catchLoc)return j(B.catchLoc,!0);if(this.prev<B.finallyLoc)return j(B.finallyLoc)}else if(U){if(this.prev<B.catchLoc)return j(B.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return j(B.finallyLoc)}}}},abrupt:function(I,T){for(var j=this.tryEntries.length-1;j>=0;--j){var A=this.tryEntries[j];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var B=A;break}}B&&(I==="break"||I==="continue")&&B.tryLoc<=T&&T<=B.finallyLoc&&(B=null);var H=B?B.completion:{};return H.type=I,H.arg=T,B?(this.method="next",this.next=B.finallyLoc,d):this.complete(H)},complete:function(I,T){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&T&&(this.next=T),d},finish:function(I){for(var T=this.tryEntries.length-1;T>=0;--T){var j=this.tryEntries[T];if(j.finallyLoc===I)return this.complete(j.completion,j.afterLoc),N(j),d}},catch:function(I){for(var T=this.tryEntries.length-1;T>=0;--T){var j=this.tryEntries[T];if(j.tryLoc===I){var A=j.completion;if(A.type==="throw"){var B=A.arg;N(j)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(I,T,j){return this.delegate={iterator:_(I),resultName:T,nextLoc:j},this.method==="next"&&(this.arg=void 0),d}},e}function $b(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o)}function Oi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){$b(i,r,o,a,s,"next",l)}function s(l){$b(i,r,o,a,s,"throw",l)}a(void 0)})}}function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},di.apply(this,arguments)}function Y_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gs(e,t)}function _p(e){return _p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_p(e)}function Gs(e,t){return Gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Gs(e,t)}function Q_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ac(e,t,n){return Q_()?Ac=Reflect.construct.bind():Ac=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&Gs(c,a.prototype),c},Ac.apply(null,arguments)}function J_(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Tp(e){var t=typeof Map=="function"?new Map:void 0;return Tp=function(r){if(r===null||!J_(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Ac(r,arguments,_p(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Gs(o,r)},Tp(e)}var Z_=/%[sdj%]/g,tx=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(tx=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Mp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(Z_,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function eT(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Nn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eT(t)&&typeof e=="string"&&!e)}function tT(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function Ob(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function nT(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Eb=function(e){Y_(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(Tp(Error));function rT(e,t,n,r,o){if(t.first){var i=new Promise(function(f,p){var h=function(g){return r(g),g.length?p(new Eb(g,Mp(g))):f(o)},m=nT(e);Ob(m,n,h)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,p){var h=function(b){if(u.push.apply(u,b),c++,c===l)return r(u),u.length?p(new Eb(u,Mp(u))):f(o)};s.length||(r(u),f(o)),s.forEach(function(m){var b=e[m];a.indexOf(m)!==-1?Ob(b,n,h):tT(b,n,h)})});return d.catch(function(f){return f}),d}function oT(e){return!!(e&&e.message!==void 0)}function iT(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Nb(e,t){return function(n){var r;return e.fullFields?r=iT(t,e.fullFields):r=t[n.field||e.fullField],oT(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Rb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=di({},e[n],r):e[n]=r}}return e}var nx=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Nn(n,a||t.type))&&o.push(cr(i.messages.required,t.fullField))},aT=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(cr(i.messages.whitespace,t.fullField))},nc,sT=function(){if(nc)return nc;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
|
|
49
49
|
(?:
|
|
50
|
-
(?:`+
|
|
51
|
-
(?:`+
|
|
52
|
-
(?:`+
|
|
53
|
-
(?:`+
|
|
54
|
-
(?:`+
|
|
55
|
-
(?:`+
|
|
56
|
-
(?:`+
|
|
57
|
-
(?::(?:(?::`+
|
|
50
|
+
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
51
|
+
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
52
|
+
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
53
|
+
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
54
|
+
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
55
|
+
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
56
|
+
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
57
|
+
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
58
58
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
59
|
-
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),u=function(S){return S&&S.exact?a:new RegExp("(?:"+t(S)+r+t(S)+")|(?:"+t(S)+i+t(S)+")","g")};u.v4=function(w){return w&&w.exact?o:new RegExp(""+t(w)+r+t(w),"g")},u.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+i+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",l="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,d=u.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+l+"(?:localhost|"+f+"|"+d+"|"+h+v+g+")"+y+p;return wn=new RegExp("(?:^"+b+"$)","i"),wn},As={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Dr={integer:function(t){return Dr.number(t)&&parseInt(t,10)===t},float:function(t){return Dr.number(t)&&!Dr.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Dr.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(As.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sp())},hex:function(t){return typeof t=="string"&&!!t.match(As.hex)}},up=function(t,r,n,i,a){if(t.required&&r===void 0){Gc(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Dr[s](r)||i.push(Qe(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Qe(a.messages.types[s],t.fullField,t.type))},cp=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=r,f=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(l=r.length),h&&(l=r.replace(c,"_").length),o?l!==t.len&&i.push(Qe(a.messages[f].len,t.fullField,t.len)):s&&!u&&l<t.min?i.push(Qe(a.messages[f].min,t.fullField,t.min)):u&&!s&&l>t.max?i.push(Qe(a.messages[f].max,t.fullField,t.max)):s&&u&&(l<t.min||l>t.max)&&i.push(Qe(a.messages[f].range,t.fullField,t.min,t.max))},dr="enum",lp=function(t,r,n,i,a){t[dr]=Array.isArray(t[dr])?t[dr]:[],t[dr].indexOf(r)===-1&&i.push(Qe(a.messages[dr],t.fullField,t[dr].join(", ")))},fp=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Qe(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Qe(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},J={required:Gc,whitespace:op,type:up,range:cp,enum:lp,pattern:fp},dp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r,"string")&&!t.required)return n();J.required(t,r,i,o,a,"string"),Te(r,"string")||(J.type(t,r,i,o,a),J.range(t,r,i,o,a),J.pattern(t,r,i,o,a),t.whitespace===!0&&J.whitespace(t,r,i,o,a))}n(o)},hp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a),r!==void 0&&J.type(t,r,i,o,a)}n(o)},pp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Te(r)&&!t.required)return n();J.required(t,r,i,o,a),r!==void 0&&(J.type(t,r,i,o,a),J.range(t,r,i,o,a))}n(o)},gp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a),r!==void 0&&J.type(t,r,i,o,a)}n(o)},vp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a),Te(r)||J.type(t,r,i,o,a)}n(o)},mp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a),r!==void 0&&(J.type(t,r,i,o,a),J.range(t,r,i,o,a))}n(o)},yp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a),r!==void 0&&(J.type(t,r,i,o,a),J.range(t,r,i,o,a))}n(o)},bp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();J.required(t,r,i,o,a,"array"),r!=null&&(J.type(t,r,i,o,a),J.range(t,r,i,o,a))}n(o)},Sp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a),r!==void 0&&J.type(t,r,i,o,a)}n(o)},wp="enum",xp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a),r!==void 0&&J[wp](t,r,i,o,a)}n(o)},Cp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r,"string")&&!t.required)return n();J.required(t,r,i,o,a),Te(r,"string")||J.pattern(t,r,i,o,a)}n(o)},Op=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r,"date")&&!t.required)return n();if(J.required(t,r,i,o,a),!Te(r,"date")){var u;r instanceof Date?u=r:u=new Date(r),J.type(t,u,i,o,a),u&&J.range(t,u.getTime(),i,o,a)}}n(o)},Ep=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;J.required(t,r,i,o,a,s),n(o)},Li=function(t,r,n,i,a){var o=t.type,s=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Te(r,o)&&!t.required)return n();J.required(t,r,i,s,a,o),Te(r,o)||J.type(t,r,i,s,a)}n(s)},Pp=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Te(r)&&!t.required)return n();J.required(t,r,i,o,a)}n(o)},Wr={string:dp,method:hp,number:pp,boolean:gp,regexp:vp,integer:mp,float:yp,array:bp,object:Sp,enum:xp,pattern:Cp,date:Op,url:Li,hex:Li,email:Li,required:Ep,any:Pp};function xa(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ca=xa(),ln=function(){function e(r){this.rules=null,this._messages=Ca,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=ks(xa(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,u=i,c=a;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function l(g){var y=[],p={};function b(S){if(Array.isArray(S)){var x;y=(x=y).concat.apply(x,S)}else y.push(S)}for(var w=0;w<g.length;w++)b(g[w]);y.length?(p=wa(y),c(y,p)):c(null,s)}if(u.messages){var f=this.messages();f===Ca&&(f=xa()),ks(f,u.messages),u.messages=f}else u.messages=this.messages();var d={},h=u.keys||Object.keys(this.rules);h.forEach(function(g){var y=o.rules[g],p=s[g];y.forEach(function(b){var w=b;typeof w.transform=="function"&&(s===n&&(s=Gt({},s)),p=s[g]=w.transform(p)),typeof w=="function"?w={validator:w}:w=Gt({},w),w.validator=o.getValidationMethod(w),w.validator&&(w.field=g,w.fullField=w.fullField||g,w.type=o.getType(w),d[g]=d[g]||[],d[g].push({rule:w,value:p,source:s,field:g}))})});var v={};return np(d,u,function(g,y){var p=g.rule,b=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");b=b&&(p.required||!p.required&&g.value),p.field=g.field;function w(P,R){return Gt({},R,{fullField:p.fullField+"."+P,fullFields:p.fullFields?[].concat(p.fullFields,[P]):[P]})}function S(P){P===void 0&&(P=[]);var R=Array.isArray(P)?P:[P];!u.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&p.message!==void 0&&(R=[].concat(p.message));var F=R.map(Fs(p,s));if(u.first&&F.length)return v[p.field]=1,y(F);if(!b)y(F);else{if(p.required&&!g.value)return p.message!==void 0?F=[].concat(p.message).map(Fs(p,s)):u.error&&(F=[u.error(p,Qe(u.messages.required,p.field))]),y(F);var k={};p.defaultField&&Object.keys(g.value).map(function(E){k[E]=p.defaultField}),k=Gt({},k,g.rule.fields);var N={};Object.keys(k).forEach(function(E){var C=k[E],O=Array.isArray(C)?C:[C];N[E]=O.map(w.bind(null,E))});var B=new e(N);B.messages(u.messages),g.rule.options&&(g.rule.options.messages=u.messages,g.rule.options.error=u.error),B.validate(g.value,g.rule.options||u,function(E){var C=[];F&&F.length&&C.push.apply(C,F),E&&E.length&&C.push.apply(C,E),y(C.length?C:null)})}}var x;if(p.asyncValidator)x=p.asyncValidator(p,g.value,S,g.source,u);else if(p.validator){try{x=p.validator(p,g.value,S,g.source,u)}catch(P){console.error==null||console.error(P),u.suppressValidatorError||setTimeout(function(){throw P},0),S(P.message)}x===!0?S():x===!1?S(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||(p.fullField||p.field)+" fails"):x instanceof Array?S(x):x instanceof Error&&S(x.message)}x&&x.then&&x.then(function(){return S()},function(P){return S(P)})},function(g){l(g)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Wr.hasOwnProperty(n.type))throw new Error(Qe("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?Wr.required:Wr[this.getType(n)]||void 0},e}();ln.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Wr[t]=r};ln.warning=qc;ln.messages=Ca;ln.validators=Wr;var Ye="'${name}' is not a valid ${type}",Kc={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Ye,method:Ye,array:Ye,object:Ye,number:Ye,date:Ye,boolean:Ye,integer:Ye,float:Ye,regexp:Ye,email:Ye,url:Ye,hex:Ye},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function Yc(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function Xc(e){return _c(e)||Pc(e)||oo(e)||Tc()}function Jc(e,t,r,n){if(!t.length)return r;var i=Xc(t),a=i[0],o=i.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=G(e):s=A({},e),n&&r===void 0&&o.length===1?delete s[a][o[0]]:s[a]=Jc(s[a],o,r,n),s}function Rp(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Yc(e,t.slice(0,-1))?e:Jc(e,t,r,n)}function si(e){return Array.isArray(e)?Tp(e):ne(e)==="object"&&e!==null?_p(e):e}function _p(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=si(e[r]);return t}return e}function Tp(e){return e.map(function(t){return si(t)})}function Se(e){return ya(e)}function Mt(e,t){var r=Yc(e,t);return r}function $t(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=Rp(e,t,r,n);return i}function $s(e,t){var r={};return t.forEach(function(n){var i=Mt(e,n);r=$t(r,n,i)}),r}function Ur(e,t){return e&&e.some(function(r){return Zc(r,t)})}function Ls(e){return ne(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Qc(e,t){var r=Array.isArray(e)?G(e):A({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],a=t[n],o=Ls(i)&&Ls(a);r[n]=o?Qc(i,a||{}):si(a)}),r}function qr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce(function(i,a){return Qc(i,a)},e)}function Zc(e,t){return!e||!t||e.length!==t.length?!1:e.every(function(r,n){return t[n]===r})}function Np(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ne(e)!=="object"||ne(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return G(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function jp(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ne(t.target)==="object"&&e in t.target?t.target[e]:t}function Ms(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],a=t-r;return a>0?[].concat(G(e.slice(0,r)),[i],G(e.slice(r,t)),G(e.slice(t+1,n))):a<0?[].concat(G(e.slice(0,t)),G(e.slice(t+1,r+1)),[i],G(e.slice(r+1,n))):e}var Fp=ln;function kp(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var Is="CODE_LOGIC_ERROR";function Oa(e,t,r,n,i){return Ea.apply(this,arguments)}function Ea(){return Ea=Tr(et().mark(function e(t,r,n,i,a){var o,s,u,c,l,f,d,h,v;return et().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return o=A({},n),delete o.ruleIndex,o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(Is)}}),u=null,o&&o.type==="array"&&o.defaultField&&(u=o.defaultField,delete o.defaultField),c=new Fp(U({},t,[o])),l=qr({},Kc,i.validateMessages),c.messages(l),f=[],y.prev=9,y.next=12,Promise.resolve(c.validate(U({},t,r),A({},i)));case 12:y.next=17;break;case 14:y.prev=14,y.t0=y.catch(9),y.t0.errors&&(f=y.t0.errors.map(function(p,b){var w=p.message,S=w===Is?l.default:w;return _.isValidElement(S)?_.cloneElement(S,{key:"error_".concat(b)}):S}));case 17:if(!(!f.length&&u)){y.next=22;break}return y.next=20,Promise.all(r.map(function(p,b){return Oa("".concat(t,".").concat(b),p,u,i,a)}));case 20:return d=y.sent,y.abrupt("return",d.reduce(function(p,b){return[].concat(G(p),G(b))},[]));case 22:return h=A(A({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),v=f.map(function(p){return typeof p=="string"?kp(p,h):p}),y.abrupt("return",v);case 25:case"end":return y.stop()}},e,null,[[9,14]])})),Ea.apply(this,arguments)}function Ap(e,t,r,n,i,a){var o=e.join("."),s=r.map(function(l,f){var d=l.validator,h=A(A({},l),{},{ruleIndex:f});return d&&(h.validator=function(v,g,y){var p=!1,b=function(){for(var x=arguments.length,P=new Array(x),R=0;R<x;R++)P[R]=arguments[R];Promise.resolve().then(function(){_e(!p,"Your validator function has already return a promise. `callback` will be ignored."),p||y.apply(void 0,P)})},w=d(v,g,b);p=w&&typeof w.then=="function"&&typeof w.catch=="function",_e(p,"`callback` is deprecated. Please return a promise instead."),p&&w.then(function(){y()}).catch(function(S){y(S||" ")})}),h}).sort(function(l,f){var d=l.warningOnly,h=l.ruleIndex,v=f.warningOnly,g=f.ruleIndex;return!!d==!!v?h-g:d?1:-1}),u;if(i===!0)u=new Promise(function(){var l=Tr(et().mark(function f(d,h){var v,g,y;return et().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:v=0;case 1:if(!(v<s.length)){b.next=12;break}return g=s[v],b.next=5,Oa(o,t,g,n,a);case 5:if(y=b.sent,!y.length){b.next=9;break}return h([{errors:y,rule:g}]),b.abrupt("return");case 9:v+=1,b.next=1;break;case 12:d([]);case 13:case"end":return b.stop()}},f)}));return function(f,d){return l.apply(this,arguments)}}());else{var c=s.map(function(l){return Oa(o,t,l,n,a).then(function(f){return{errors:f,rule:l}})});u=(i?Lp(c):$p(c)).then(function(l){return Promise.reject(l)})}return u.catch(function(l){return l}),u}function $p(e){return Pa.apply(this,arguments)}function Pa(){return Pa=Tr(et().mark(function e(t){return et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var a,o=(a=[]).concat.apply(a,G(i));return o}));case 1:case"end":return n.stop()}},e)})),Pa.apply(this,arguments)}function Lp(e){return Ra.apply(this,arguments)}function Ra(){return Ra=Tr(et().mark(function e(t){var r;return et().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(a){t.forEach(function(o){o.then(function(s){s.errors.length&&a([s]),r+=1,r===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),Ra.apply(this,arguments)}var Mp=["name"],nt=[];function Bs(e,t,r,n,i,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==i}var ho=function(e){er(r,e);var t=io(r);function r(n){var i;if(Ne(this,r),i=t.call(this,n),i.state={resetCount:0},i.cancelRegisterFunc=null,i.mounted=!1,i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.prevValidating=void 0,i.errors=nt,i.warnings=nt,i.cancelRegister=function(){var u=i.props,c=u.preserve,l=u.isListField,f=u.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(l,c,Se(f)),i.cancelRegisterFunc=null},i.getNamePath=function(){var u=i.props,c=u.name,l=u.fieldContext,f=l.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(G(d),G(c)):[]},i.getRules=function(){var u=i.props,c=u.rules,l=c===void 0?[]:c,f=u.fieldContext;return l.map(function(d){return typeof d=="function"?d(f):d})},i.refresh=function(){!i.mounted||i.setState(function(u){var c=u.resetCount;return{resetCount:c+1}})},i.triggerMetaEvent=function(u){var c=i.props.onMetaChange;c==null||c(A(A({},i.getMeta()),{},{destroy:u}))},i.onStoreChange=function(u,c,l){var f=i.props,d=f.shouldUpdate,h=f.dependencies,v=h===void 0?[]:h,g=f.onReset,y=l.store,p=i.getNamePath(),b=i.getValue(u),w=i.getValue(y),S=c&&Ur(c,p);switch(l.type==="valueUpdate"&&l.source==="external"&&b!==w&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=nt,i.warnings=nt,i.triggerMetaEvent()),l.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=null,i.errors=nt,i.warnings=nt,i.triggerMetaEvent(),g==null||g(),i.refresh();return}break;case"remove":{if(d){i.reRender();return}break}case"setField":{if(S){var x=l.data;"touched"in x&&(i.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(i.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(i.errors=x.errors||nt),"warnings"in x&&(i.warnings=x.warnings||nt),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}if(d&&!p.length&&Bs(d,u,y,b,w,l)){i.reRender();return}break}case"dependenciesUpdate":{var P=v.map(Se);if(P.some(function(R){return Ur(l.relatedFields,R)})){i.reRender();return}break}default:if(S||(!v.length||p.length||d)&&Bs(d,u,y,b,w,l)){i.reRender();return}break}d===!0&&i.reRender()},i.validateRules=function(u){var c=i.getNamePath(),l=i.getValue(),f=Promise.resolve().then(function(){if(!i.mounted)return[];var d=i.props,h=d.validateFirst,v=h===void 0?!1:h,g=d.messageVariables,y=u||{},p=y.triggerName,b=i.getRules();p&&(b=b.filter(function(S){return S}).filter(function(S){var x=S.validateTrigger;if(!x)return!0;var P=ya(x);return P.includes(p)}));var w=Ap(c,l,b,u,v,g);return w.catch(function(S){return S}).then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nt;if(i.validatePromise===f){var x;i.validatePromise=null;var P=[],R=[];(x=S.forEach)===null||x===void 0||x.call(S,function(F){var k=F.rule.warningOnly,N=F.errors,B=N===void 0?nt:N;k?R.push.apply(R,G(B)):P.push.apply(P,G(B))}),i.errors=P,i.warnings=R,i.triggerMetaEvent(),i.reRender()}}),w});return i.validatePromise=f,i.dirty=!0,i.errors=nt,i.warnings=nt,i.triggerMetaEvent(),i.reRender(),f},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var u=i.props.fieldContext,c=u.getInternalHooks(qt),l=c.getInitialValue;return l(i.getNamePath())!==void 0},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){i.prevValidating=i.isFieldValidating();var u={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return u},i.getOnlyChild=function(u){if(typeof u=="function"){var c=i.getMeta();return A(A({},i.getOnlyChild(u(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var l=sa(u);return l.length!==1||!_.isValidElement(l[0])?{child:l,isFunction:!1}:{child:l[0],isFunction:!1}},i.getValue=function(u){var c=i.props.fieldContext.getFieldsValue,l=i.getNamePath();return Mt(u||c(!0),l)},i.getControlled=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,l=c.trigger,f=c.validateTrigger,d=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,g=c.getValueProps,y=c.fieldContext,p=f!==void 0?f:y.validateTrigger,b=i.getNamePath(),w=y.getInternalHooks,S=y.getFieldsValue,x=w(qt),P=x.dispatch,R=i.getValue(),F=g||function(E){return U({},v,E)},k=u[l],N=A(A({},u),F(R));N[l]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var E,C=arguments.length,O=new Array(C),T=0;T<C;T++)O[T]=arguments[T];d?E=d.apply(void 0,O):E=jp.apply(void 0,[v].concat(O)),h&&(E=h(E,R,S(!0))),P({type:"updateValue",namePath:b,value:E}),k&&k.apply(void 0,O)};var B=ya(p||[]);return B.forEach(function(E){var C=N[E];N[E]=function(){C&&C.apply(void 0,arguments);var O=i.props.rules;O&&O.length&&P({type:"validateField",namePath:b,triggerName:E})}}),N},n.fieldContext){var a=n.fieldContext.getInternalHooks,o=a(qt),s=o.initEntityValue;s(dt(i))}return i}return je(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,u=s(qt),c=u.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){!this.mounted||this.forceUpdate()}},{key:"render",value:function(){this.state.resetCount;var i=this.props.children,a=this.getOnlyChild(i),o=a.child,s=a.isFunction,u;return s?u=o:_.isValidElement(o)?u=_.cloneElement(o,this.getControlled(o.props)):(_e(!o,"`children` of Field is not validate ReactElement."),u=o),I(bc,{children:u})}}]),r}(_.Component);ho.contextType=xr;ho.defaultProps={trigger:"onChange",valuePropName:"value"};function el(e){var t=e.name,r=Nt(e,Mp),n=_.useContext(xr),i=t!==void 0?Se(t):void 0,a="keep";return r.isListField||(a="_".concat((i||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&i.length<=1&&_e(!1,"`preserve` should not apply on Form.List fields."),I(ho,{name:i,...r,fieldContext:n},a)}var Ip=_.createContext(null),Bp=function(t){var r=t.name,n=t.initialValue,i=t.children,a=t.rules,o=t.validateTrigger,s=_.useContext(xr),u=_.useRef({keys:[],id:0}),c=u.current,l=_.useMemo(function(){var v=Se(s.prefixName)||[];return[].concat(G(v),G(Se(r)))},[s.prefixName,r]),f=_.useMemo(function(){return A(A({},s),{},{prefixName:l})},[s,l]),d=_.useMemo(function(){return{getKey:function(g){var y=l.length,p=g[y];return[c.keys[p],g.slice(y+1)]}}},[l]);if(typeof i!="function")return _e(!1,"Form.List only accepts function as children."),null;var h=function(g,y,p){var b=p.source;return b==="internal"?!1:g!==y};return I(Ip.Provider,{value:d,children:I(xr.Provider,{value:f,children:I(el,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:n,isList:!0,children:function(v,g){var y=v.value,p=y===void 0?[]:y,b=v.onChange,w=s.getFieldValue,S=function(){var F=w(l||[]);return F||[]},x={add:function(F,k){var N=S();k>=0&&k<=N.length?(c.keys=[].concat(G(c.keys.slice(0,k)),[c.id],G(c.keys.slice(k))),b([].concat(G(N.slice(0,k)),[F],G(N.slice(k))))):(process.env.NODE_ENV!=="production"&&(k<0||k>N.length)&&_e(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[].concat(G(c.keys),[c.id]),b([].concat(G(N),[F]))),c.id+=1},remove:function(F){var k=S(),N=new Set(Array.isArray(F)?F:[F]);N.size<=0||(c.keys=c.keys.filter(function(B,E){return!N.has(E)}),b(k.filter(function(B,E){return!N.has(E)})))},move:function(F,k){if(F!==k){var N=S();F<0||F>=N.length||k<0||k>=N.length||(c.keys=Ms(c.keys,F,k),b(Ms(N,F,k)))}}},P=p||[];return Array.isArray(P)||(P=[],process.env.NODE_ENV!=="production"&&_e(!1,"Current value of '".concat(l.join(" > "),"' is not an array type."))),i(P.map(function(R,F){var k=c.keys[F];return k===void 0&&(c.keys[F]=c.id,k=c.keys[F],c.id+=1),{name:F,key:k,isListField:!0}}),x,g)}})})})};function zp(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(u){return t=!0,u}).then(function(u){r-=1,n[s]=u,!(r>0)&&(t&&a(n),i(n))})})}):Promise.resolve([])}var tl="__@field_split__";function Mi(e){return e.map(function(t){return"".concat(ne(t),":").concat(t)}).join(tl)}var hr=function(){function e(){Ne(this,e),this.kvs=new Map}return je(e,[{key:"set",value:function(r,n){this.kvs.set(Mi(r),n)}},{key:"get",value:function(r){return this.kvs.get(Mi(r))}},{key:"update",value:function(r,n){var i=this.get(r),a=n(i);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Mi(r))}},{key:"map",value:function(r){return G(this.kvs.entries()).map(function(n){var i=fe(n,2),a=i[0],o=i[1],s=a.split(tl);return r({key:s.map(function(u){var c=u.match(/^([^:]*):(.*)$/),l=fe(c,3),f=l[1],d=l[2];return f==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,a=n.value;return r[i.join(".")]=a,null}),r}}]),e}(),Dp=["name","errors"],Vp=je(function e(t){var r=this;Ne(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(n){return n===qt?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(_e(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(n){r.subscribable=n},this.prevWithoutPreserves=null,this.setInitialValues=function(n,i){if(r.initialValues=n||{},i){var a,o=qr({},n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var u=s.key;o=$t(o,u,Mt(n,u))}),r.prevWithoutPreserves=null,r.updateStore(o)}},this.destroyForm=function(){var n=new hr;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n},this.getInitialValue=function(n){var i=Mt(r.initialValues,n);return n.length?si(i):i},this.setCallbacks=function(n){r.callbacks=n},this.setValidateMessages=function(n){r.validateMessages=n},this.setPreserve=function(n){r.preserve=n},this.watchList=[],this.registerWatch=function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}},this.notifyWatch=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue();r.watchList.forEach(function(a){a(i,n)})}},this.timeoutId=null,this.warningUnhooked=function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||_e(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))},this.updateStore=function(n){r.store=n},this.getFieldEntities=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new hr;return r.getFieldEntities(n).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i},this.getFieldEntitiesForNamePathList=function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(a){var o=Se(a);return i.get(o)||{INVALIDATE_NAME_PATH:Se(a)}})},this.getFieldsValue=function(n,i){if(r.warningUnhooked(),n===!0&&!i)return r.store;var a=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),o=[];return a.forEach(function(s){var u,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!n&&((u=s.isListField)===null||u===void 0?void 0:u.call(s))))if(!i)o.push(c);else{var l="getMeta"in s?s.getMeta():null;i(l)&&o.push(c)}}),$s(r.store,o.map(Se))},this.getFieldValue=function(n){r.warningUnhooked();var i=Se(n);return Mt(r.store,i)},this.getFieldsError=function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Se(n[o]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=Se(n),a=r.getFieldsError([i])[0];return a.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=Se(n),a=r.getFieldsError([i])[0];return a.warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i[0],s=i[1],u,c=!1;i.length===0?u=null:i.length===1?Array.isArray(o)?(u=o.map(Se),c=!1):(u=null,c=o):(u=o.map(Se),c=s);var l=r.getFieldEntities(!0),f=function(y){return y.isFieldTouched()};if(!u)return c?l.every(f):l.some(f);var d=new hr;u.forEach(function(g){d.set(g,[])}),l.forEach(function(g){var y=g.getNamePath();u.forEach(function(p){p.every(function(b,w){return y[w]===b})&&d.update(p,function(b){return[].concat(G(b),[g])})})});var h=function(y){return y.some(f)},v=d.map(function(g){var y=g.value;return y});return c?v.every(h):v.some(h)},this.isFieldTouched=function(n){return r.warningUnhooked(),r.isFieldsTouched([n])},this.isFieldsValidating=function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(o){return o.isFieldValidating()});var a=n.map(Se);return i.some(function(o){var s=o.getNamePath();return Ur(a,s)&&o.isFieldValidating()})},this.isFieldValidating=function(n){return r.warningUnhooked(),r.isFieldsValidating([n])},this.resetWithFieldInitialValue=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new hr,a=r.getFieldEntities(!0);a.forEach(function(u){var c=u.props.initialValue,l=u.getNamePath();if(c!==void 0){var f=i.get(l)||new Set;f.add({entity:u,value:c}),i.set(l,f)}});var o=function(c){c.forEach(function(l){var f=l.props.initialValue;if(f!==void 0){var d=l.getNamePath(),h=r.getInitialValue(d);if(h!==void 0)_e(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var v=i.get(d);if(v&&v.size>1)_e(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var g=r.getFieldValue(d);(!n.skipExist||g===void 0)&&r.updateStore($t(r.store,d,G(v)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(u){var c=i.get(u);if(c){var l;(l=s).push.apply(l,G(G(c).map(function(f){return f.entity})))}})):s=a,o(s)},this.resetFields=function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(qr({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(Se);a.forEach(function(o){var s=r.getInitialValue(o);r.updateStore($t(r.store,o,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(i,a,{type:"reset"}),r.notifyWatch(a)},this.setFields=function(n){r.warningUnhooked();var i=r.store,a=[];n.forEach(function(o){var s=o.name;o.errors;var u=Nt(o,Dp),c=Se(s);a.push(c),"value"in u&&r.updateStore($t(r.store,c,u.value)),r.notifyObservers(i,[c],{type:"setField",data:o})}),r.notifyWatch(a)},this.getFields=function(){var n=r.getFieldEntities(!0),i=n.map(function(a){var o=a.getNamePath(),s=a.getMeta(),u=A(A({},s),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return i},this.initEntityValue=function(n){var i=n.props.initialValue;if(i!==void 0){var a=n.getNamePath(),o=Mt(r.store,a);o===void 0&&r.updateStore($t(r.store,a,i))}},this.isMergedPreserve=function(n){var i=n!==void 0?n:r.preserve;return i!=null?i:!0},this.registerField=function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!o||u.length>1)){var c=o?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==c&&r.fieldEntities.every(function(f){return!Zc(f.getNamePath(),i)})){var l=r.store;r.updateStore($t(l,i,c,!0)),r.notifyObservers(l,[i],{type:"remove"}),r.triggerDependenciesUpdate(l,i)}}r.notifyWatch([i])}},this.dispatch=function(n){switch(n.type){case"updateValue":{var i=n.namePath,a=n.value;r.updateValue(i,a);break}case"validateField":{var o=n.namePath,s=n.triggerName;r.validateFields([o],{triggerName:s});break}}},this.notifyObservers=function(n,i,a){if(r.subscribable){var o=A(A({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var u=s.onStoreChange;u(n,i,o)})}else r.forceRootUpdate()},this.triggerDependenciesUpdate=function(n,i){var a=r.getDependencyChildrenFields(i);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[i].concat(G(a))}),a},this.updateValue=function(n,i){var a=Se(n),o=r.store;r.updateStore($t(r.store,a,i)),r.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(o,a),u=r.callbacks.onValuesChange;if(u){var c=$s(r.store,[a]);u(c,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(G(s)))},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var a=qr(r.store,n);r.updateStore(a)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()},this.setFieldValue=function(n,i){r.setFields([{name:n,value:i}])},this.getDependencyChildrenFields=function(n){var i=new Set,a=[],o=new hr;r.getFieldEntities().forEach(function(u){var c=u.props.dependencies;(c||[]).forEach(function(l){var f=Se(l);o.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(u),d})})});var s=function u(c){var l=o.get(c)||new Set;l.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(a.push(d),u(d))}})};return s(n),a},this.triggerOnFieldsChange=function(n,i){var a=r.callbacks.onFieldsChange;if(a){var o=r.getFields();if(i){var s=new hr;i.forEach(function(c){var l=c.name,f=c.errors;s.set(l,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var u=o.filter(function(c){var l=c.name;return Ur(n,l)});a(u,o)}},this.validateFields=function(n,i){r.warningUnhooked();var a=!!n,o=a?n.map(Se):[],s=[];r.getFieldEntities(!0).forEach(function(l){if(a||o.push(l.getNamePath()),(i==null?void 0:i.recursive)&&a){var f=l.getNamePath();f.every(function(v,g){return n[g]===v||n[g]===void 0})&&o.push(f)}if(!(!l.props.rules||!l.props.rules.length)){var d=l.getNamePath();if(!a||Ur(o,d)){var h=l.validateRules(A({validateMessages:A(A({},Kc),r.validateMessages)},i));s.push(h.then(function(){return{name:d,errors:[],warnings:[]}}).catch(function(v){var g,y=[],p=[];return(g=v.forEach)===null||g===void 0||g.call(v,function(b){var w=b.rule.warningOnly,S=b.errors;w?p.push.apply(p,G(S)):y.push.apply(y,G(S))}),y.length?Promise.reject({name:d,errors:y,warnings:p}):{name:d,errors:y,warnings:p}}))}}});var u=zp(s);r.lastValidatePromise=u,u.catch(function(l){return l}).then(function(l){var f=l.map(function(d){var h=d.name;return h});r.notifyObservers(r.store,f,{type:"validateFinish"}),r.triggerOnFieldsChange(f,l)});var c=u.then(function(){return r.lastValidatePromise===u?Promise.resolve(r.getFieldsValue(o)):Promise.reject([])}).catch(function(l){var f=l.filter(function(d){return d&&d.errors.length});return Promise.reject({values:r.getFieldsValue(o),errorFields:f,outOfDate:r.lastValidatePromise!==u})});return c.catch(function(l){return l}),c},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(a){console.error(a)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})},this.forceRootUpdate=t});function rl(e){var t=_.useRef(),r=_.useState({}),n=fe(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new Vp(a);t.current=o.getForm()}return[t.current]}var _a=_.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),nl=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,a=t.children,o=_.useContext(_a),s=_.useRef({});return I(_a.Provider,{value:A(A({},o),{},{validateMessages:A(A({},o.validateMessages),r),triggerFormChange:function(c,l){n&&n(c,{changedFields:l,forms:s.current}),o.triggerFormChange(c,l)},triggerFormFinish:function(c,l){i&&i(c,{values:l,forms:s.current}),o.triggerFormFinish(c,l)},registerForm:function(c,l){c&&(s.current=A(A({},s.current),{},U({},c,l))),o.registerForm(c,l)},unregisterForm:function(c){var l=A({},s.current);delete l[c],s.current=l,o.unregisterForm(c)}}),children:a})},Hp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Wp=function(t,r){var n=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,u=t.children,c=t.component,l=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,h=d===void 0?"onChange":d,v=t.onValuesChange,g=t.onFieldsChange,y=t.onFinish,p=t.onFinishFailed,b=Nt(t,Hp),w=_.useContext(_a),S=rl(o),x=fe(S,1),P=x[0],R=P.getInternalHooks(qt),F=R.useSubscribe,k=R.setInitialValues,N=R.setCallbacks,B=R.setValidateMessages,E=R.setPreserve,C=R.destroyForm;_.useImperativeHandle(r,function(){return P}),_.useEffect(function(){return w.registerForm(n,P),function(){w.unregisterForm(n)}},[w,P,n]),B(A(A({},w.validateMessages),f)),N({onValuesChange:v,onFieldsChange:function(Y){if(w.triggerFormChange(n,Y),g){for(var ue=arguments.length,Fe=new Array(ue>1?ue-1:0),$e=1;$e<ue;$e++)Fe[$e-1]=arguments[$e];g.apply(void 0,[Y].concat(Fe))}},onFinish:function(Y){w.triggerFormFinish(n,Y),y&&y(Y)},onFinishFailed:p}),E(s);var O=_.useRef(null);k(i,!O.current),O.current||(O.current=!0),_.useEffect(function(){return C},[]);var T,$=typeof u=="function";if($){var L=P.getFieldsValue(!0);T=u(L,P)}else T=u;F(!$);var W=_.useRef();_.useEffect(function(){Np(W.current||[],a||[])||P.setFields(a||[]),W.current=a},[a,P]);var ee=_.useMemo(function(){return A(A({},P),{},{validateTrigger:h})},[P,h]),re=I(xr.Provider,{value:ee,children:T});return l===!1?re:I(l,{...b,onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),P.submit()},onReset:function(Y){var ue;Y.preventDefault(),P.resetFields(),(ue=b.onReset)===null||ue===void 0||ue.call(b,Y)},children:re})};function zs(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Up=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=Z.useRef(t);_e(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function qp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=n===void 0?[]:n,a=t[1],o=Z.useState(),s=fe(o,2),u=s[0],c=s[1],l=Z.useMemo(function(){return zs(u)},[u]),f=Z.useRef(l);f.current=l;var d=Z.useContext(xr),h=a||d,v=h&&h._init;process.env.NODE_ENV!=="production"&&_e(t.length===2?a?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var g=Se(i),y=Z.useRef(g);return y.current=g,Up(g),Z.useEffect(function(){if(!!v){var p=h.getFieldsValue,b=h.getInternalHooks,w=b(qt),S=w.registerWatch,x=S(function(R){var F=Mt(R,y.current),k=zs(F);f.current!==k&&(f.current=k,c(F))}),P=Mt(p(),y.current);return c(P),x}},[v]),u}var Gp=_.forwardRef(Wp),fn=Gp;fn.FormProvider=nl;fn.Field=el;fn.List=Bp;fn.useForm=rl;fn.useWatch=qp;function Kp(){}let il=Kp;process.env.NODE_ENV!=="production"&&(il=(e,t,r)=>{_e(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&qd()});const Xt=il,Yp={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Xp={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Jp={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},al=Jp,Qp={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Xp),timePickerLocale:Object.assign({},al)},Ds=Qp,Xe="${label} is not a valid ${type}",Zp={locale:"en",Pagination:Yp,DatePicker:Ds,TimePicker:al,Calendar:Ds,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Xe,method:Xe,array:Xe,object:Xe,number:Xe,date:Xe,boolean:Xe,integer:Xe,float:Xe,regexp:Xe,email:Xe,url:Xe,hex:Xe},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},po=Zp;let Ii=Object.assign({},po.Modal);function Vs(e){e?Ii=Object.assign(Object.assign({},Ii),e):Ii=Object.assign({},po.Modal)}const eg=Z.createContext(void 0),ol=eg,sl="internalMark",ul=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Xt(n===sl,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),_.useEffect(()=>(Vs(t&&t.Modal),()=>{Vs()}),[t]);const i=_.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return I(ol.Provider,{value:i,children:r})};process.env.NODE_ENV!=="production"&&(ul.displayName="LocaleProvider");const tg=ul,rg="5.3.2";function Ie(e,t){ng(e)&&(e="100%");var r=ig(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function xn(e){return Math.min(1,Math.max(0,e))}function ng(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ig(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Kt(e){return e.length===1?"0"+e:String(e)}function ag(e,t,r){return{r:Ie(e,255)*255,g:Ie(t,255)*255,b:Ie(r,255)*255}}function Hs(e,t,r){e=Ie(e,255),t=Ie(t,255),r=Ie(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var u=n-i;switch(o=s>.5?u/(2-n-i):u/(n+i),n){case e:a=(t-r)/u+(t<r?6:0);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,l:s}}function Bi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function og(e,t,r){var n,i,a;if(e=Ie(e,360),t=Ie(t,100),r=Ie(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=Bi(s,o,e+1/3),i=Bi(s,o,e),a=Bi(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function Wn(e,t,r){e=Ie(e,255),t=Ie(t,255),r=Ie(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,u=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,v:o}}function sg(e,t,r){e=Ie(e,360)*6,t=Ie(t,100),r=Ie(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6,c=[r,o,a,a,s,r][u],l=[s,r,r,o,a,a][u],f=[a,a,s,r,r,o][u];return{r:c*255,g:l*255,b:f*255}}function Un(e,t,r,n){var i=[Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function ug(e,t,r,n,i){var a=[Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16)),Kt(cg(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function cg(e){return Math.round(parseFloat(e)*255).toString(16)}function Ws(e){return Je(e)/255}function Je(e){return parseInt(e,16)}function lg(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ta={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ft(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=hg(e)),typeof e=="object"&&(Et(e.r)&&Et(e.g)&&Et(e.b)?(t=ag(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Et(e.h)&&Et(e.s)&&Et(e.v)?(n=Cn(e.s),i=Cn(e.v),t=sg(e.h,n,i),o=!0,s="hsv"):Et(e.h)&&Et(e.s)&&Et(e.l)&&(n=Cn(e.s),a=Cn(e.l),t=og(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=cl(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var fg="[-\\+]?\\d+%?",dg="[-\\+]?\\d*\\.\\d+%?",It="(?:".concat(dg,")|(?:").concat(fg,")"),zi="[\\s|\\(]+(".concat(It,")[,|\\s]+(").concat(It,")[,|\\s]+(").concat(It,")\\s*\\)?"),Di="[\\s|\\(]+(".concat(It,")[,|\\s]+(").concat(It,")[,|\\s]+(").concat(It,")[,|\\s]+(").concat(It,")\\s*\\)?"),ct={CSS_UNIT:new RegExp(It),rgb:new RegExp("rgb"+zi),rgba:new RegExp("rgba"+Di),hsl:new RegExp("hsl"+zi),hsla:new RegExp("hsla"+Di),hsv:new RegExp("hsv"+zi),hsva:new RegExp("hsva"+Di),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function hg(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ta[e])e=Ta[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ct.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ct.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ct.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ct.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ct.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ct.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ct.hex8.exec(e),r?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),a:Ws(r[4]),format:t?"name":"hex8"}:(r=ct.hex6.exec(e),r?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),format:t?"name":"hex"}:(r=ct.hex4.exec(e),r?{r:Je(r[1]+r[1]),g:Je(r[2]+r[2]),b:Je(r[3]+r[3]),a:Ws(r[4]+r[4]),format:t?"name":"hex8"}:(r=ct.hex3.exec(e),r?{r:Je(r[1]+r[1]),g:Je(r[2]+r[2]),b:Je(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Et(e){return Boolean(ct.CSS_UNIT.exec(String(e)))}var Ze=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=lg(t)),this.originalInput=t;var i=ft(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cl(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Wn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Wn(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Hs(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Hs(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Un(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),ug(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Ie(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Ie(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Un(this.r,this.g,this.b,!1),r=0,n=Object.entries(Ta);r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t!=null?t:this.format;var n=!1,i=this.a<1&&this.a>=0,a=!r&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=xn(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=xn(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=xn(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=xn(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),On=2,Us=.16,pg=.05,gg=.05,vg=.15,ll=5,fl=4,mg=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function qs(e){var t=e.r,r=e.g,n=e.b,i=Wn(t,r,n);return{h:i.h*360,s:i.s,v:i.v}}function En(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Un(t,r,n,!1))}function yg(e,t,r){var n=r/100,i={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return i}function Gs(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-On*t:Math.round(e.h)+On*t:n=r?Math.round(e.h)+On*t:Math.round(e.h)-On*t,n<0?n+=360:n>=360&&(n-=360),n}function Ks(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Us*t:t===fl?n=e.s+Us:n=e.s+pg*t,n>1&&(n=1),r&&t===ll&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Ys(e,t,r){var n;return r?n=e.v+gg*t:n=e.v-vg*t,n>1&&(n=1),Number(n.toFixed(2))}function Jt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=ft(e),i=ll;i>0;i-=1){var a=qs(n),o=En(ft({h:Gs(a,i,!0),s:Ks(a,i,!0),v:Ys(a,i,!0)}));r.push(o)}r.push(En(n));for(var s=1;s<=fl;s+=1){var u=qs(n),c=En(ft({h:Gs(u,s),s:Ks(u,s),v:Ys(u,s)}));r.push(c)}return t.theme==="dark"?mg.map(function(l){var f=l.index,d=l.opacity,h=En(yg(ft(t.backgroundColor||"#141414"),ft(r[f]),d*100));return h}):r}var Vi={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Hi={},Wi={};Object.keys(Vi).forEach(function(e){Hi[e]=Jt(Vi[e]),Hi[e].primary=Hi[e][5],Wi[e]=Jt(Vi[e],{theme:"dark",backgroundColor:"#141414"}),Wi[e].primary=Wi[e][5]});const bg=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Sg=bg;function wg(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const dl={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},xg=Object.assign(Object.assign({},dl),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
59
|
+
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};l.v4=function(C){return C&&C.exact?a:new RegExp(""+t(C)+n+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+o+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',S="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+p+h+m+")"+b+g;return nc=new RegExp("(?:^"+S+"$)","i"),nc},Pb={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ss={integer:function(t){return Ss.number(t)&&parseInt(t,10)===t},float:function(t){return Ss.number(t)&&!Ss.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Ss.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Pb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sT())},hex:function(t){return typeof t=="string"&&!!t.match(Pb.hex)}},lT=function(t,n,r,o,i){if(t.required&&n===void 0){nx(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Ss[s](n)||o.push(cr(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(cr(i.messages.types[s],t.fullField,t.type))},cT=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",p=typeof n=="string",h=Array.isArray(n);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(u=n.length),p&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(cr(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(cr(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(cr(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(cr(i.messages[d].range,t.fullField,t.min,t.max))},Vi="enum",uT=function(t,n,r,o,i){t[Vi]=Array.isArray(t[Vi])?t[Vi]:[],t[Vi].indexOf(n)===-1&&o.push(cr(i.messages[Vi],t.fullField,t[Vi].join(", ")))},dT=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(cr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(cr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ot={required:nx,whitespace:aT,type:lT,range:cT,enum:uT,pattern:dT},fT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n,"string")&&!t.required)return r();Ot.required(t,n,o,a,i,"string"),Nn(n,"string")||(Ot.type(t,n,o,a,i),Ot.range(t,n,o,a,i),Ot.pattern(t,n,o,a,i),t.whitespace===!0&&Ot.whitespace(t,n,o,a,i))}r(a)},pT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),n!==void 0&&Ot.type(t,n,o,a,i)}r(a)},hT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),n!==void 0&&(Ot.type(t,n,o,a,i),Ot.range(t,n,o,a,i))}r(a)},gT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),n!==void 0&&Ot.type(t,n,o,a,i)}r(a)},vT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),Nn(n)||Ot.type(t,n,o,a,i)}r(a)},mT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),n!==void 0&&(Ot.type(t,n,o,a,i),Ot.range(t,n,o,a,i))}r(a)},bT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),n!==void 0&&(Ot.type(t,n,o,a,i),Ot.range(t,n,o,a,i))}r(a)},yT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ot.required(t,n,o,a,i,"array"),n!=null&&(Ot.type(t,n,o,a,i),Ot.range(t,n,o,a,i))}r(a)},ST=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),n!==void 0&&Ot.type(t,n,o,a,i)}r(a)},wT="enum",xT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i),n!==void 0&&Ot[wT](t,n,o,a,i)}r(a)},CT=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n,"string")&&!t.required)return r();Ot.required(t,n,o,a,i),Nn(n,"string")||Ot.pattern(t,n,o,a,i)}r(a)},$T=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n,"date")&&!t.required)return r();if(Ot.required(t,n,o,a,i),!Nn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ot.type(t,l,o,a,i),l&&Ot.range(t,l.getTime(),o,a,i)}}r(a)},OT=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Ot.required(t,n,o,a,i,s),r(a)},of=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Nn(n,a)&&!t.required)return r();Ot.required(t,n,o,s,i,a),Nn(n,a)||Ot.type(t,n,o,s,i)}r(s)},ET=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Nn(n)&&!t.required)return r();Ot.required(t,n,o,a,i)}r(a)},Os={string:fT,method:pT,number:hT,boolean:gT,regexp:vT,integer:mT,float:bT,array:yT,object:ST,enum:xT,pattern:CT,date:$T,url:of,hex:of,email:of,required:OT,any:ET};function Dp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var jp=Dp(),$l=function(){function e(n){this.rules=null,this._messages=jp,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Rb(Dp(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(m){var b=[],g={};function S(w){if(Array.isArray(w)){var y;b=(y=b).concat.apply(y,w)}else b.push(w)}for(var C=0;C<m.length;C++)S(m[C]);b.length?(g=Mp(b),c(b,g)):c(null,s)}if(l.messages){var d=this.messages();d===jp&&(d=Dp()),Rb(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},p=l.keys||Object.keys(this.rules);p.forEach(function(m){var b=a.rules[m],g=s[m];b.forEach(function(S){var C=S;typeof C.transform=="function"&&(s===r&&(s=di({},s)),g=s[m]=C.transform(g)),typeof C=="function"?C={validator:C}:C=di({},C),C.validator=a.getValidationMethod(C),C.validator&&(C.field=m,C.fullField=C.fullField||m,C.type=a.getType(C),f[m]=f[m]||[],f[m].push({rule:C,value:g,source:s,field:m}))})});var h={};return rT(f,l,function(m,b){var g=m.rule,S=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");S=S&&(g.required||!g.required&&m.value),g.field=m.field;function C($,E){return di({},E,{fullField:g.fullField+"."+$,fullFields:g.fullFields?[].concat(g.fullFields,[$]):[$]})}function w($){$===void 0&&($=[]);var E=Array.isArray($)?$:[$];!l.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&g.message!==void 0&&(E=[].concat(g.message));var N=E.map(Nb(g,s));if(l.first&&N.length)return h[g.field]=1,b(N);if(!S)b(N);else{if(g.required&&!m.value)return g.message!==void 0?N=[].concat(g.message).map(Nb(g,s)):l.error&&(N=[l.error(g,cr(l.messages.required,g.field))]),b(N);var P={};g.defaultField&&Object.keys(m.value).map(function(M){P[M]=g.defaultField}),P=di({},P,m.rule.fields);var _={};Object.keys(P).forEach(function(M){var I=P[M],T=Array.isArray(I)?I:[I];_[M]=T.map(C.bind(null,M))});var D=new e(_);D.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),D.validate(m.value,m.rule.options||l,function(M){var I=[];N&&N.length&&I.push.apply(I,N),M&&M.length&&I.push.apply(I,M),b(I.length?I:null)})}}var y;if(g.asyncValidator)y=g.asyncValidator(g,m.value,w,m.source,l);else if(g.validator){try{y=g.validator(g,m.value,w,m.source,l)}catch($){console.error==null||console.error($),l.suppressValidatorError||setTimeout(function(){throw $},0),w($.message)}y===!0?w():y===!1?w(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.field)+" fails"):y instanceof Array?w(y):y instanceof Error&&w(y.message)}y&&y.then&&y.then(function(){return w()},function($){return w($)})},function(m){u(m)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Os.hasOwnProperty(r.type))throw new Error(cr("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?Os.required:Os[this.getType(r)]||void 0},e}();$l.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Os[t]=n};$l.warning=tx;$l.messages=jp;$l.validators=Os;var or="'${name}' is not a valid ${type}",rx={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:or,method:or,array:or,object:or,number:or,date:or,boolean:or,integer:or,float:or,regexp:or,email:or,url:or,hex:or},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function ox(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function wg(e){return Lw(e)||Aw(e)||gg(e)||zw()}function ix(e,t,n,r){if(!t.length)return n;var o=wg(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=we(e):s=L({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=ix(s[i],a,n,r),s}function NT(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ox(e,t.slice(0,-1))?e:ix(e,t,n,r)}function Wu(e){return Array.isArray(e)?PT(e):Ze(e)==="object"&&e!==null?RT(e):e}function RT(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=Wu(e[n]);return t}return e}function PT(e){return e.map(function(t){return Wu(t)})}function pn(e){return Ip(e)}function Ho(e,t){var n=ox(e,t);return n}function zo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=NT(e,t,n,r);return o}function Ib(e,t){var n={};return t.forEach(function(r){var o=Ho(e,r);n=zo(n,r,o)}),n}function Es(e,t){return e&&e.some(function(n){return sx(n,t)})}function _b(e){return Ze(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ax(e,t){var n=Array.isArray(e)?we(e):L({},e);return t&&Object.keys(t).forEach(function(r){var o=n[r],i=t[r],a=_b(o)&&_b(i);n[r]=a?ax(o,i||{}):Wu(i)}),n}function Ns(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(o,i){return ax(o,i)},e)}function sx(e,t){return!e||!t||e.length!==t.length?!1:e.every(function(n,r){return t[r]===n})}function IT(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ze(e)!=="object"||Ze(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return we(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function _T(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ze(t.target)==="object"&&e in t.target?t.target[e]:t}function Tb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(we(e.slice(0,n)),[o],we(e.slice(n,t)),we(e.slice(t+1,r))):i<0?[].concat(we(e.slice(0,t)),we(e.slice(t+1,n+1)),[o],we(e.slice(n+1,r))):e}var TT=$l;function MT(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Mb="CODE_LOGIC_ERROR";function Ap(e,t,n,r,o){return kp.apply(this,arguments)}function kp(){return kp=Oi(Xn().mark(function e(t,n,r,o,i){var a,s,l,c,u,d,f,p,h;return Xn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=L({},r),delete a.ruleIndex,a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(Mb)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new TT(W({},t,[a])),u=Ns({},rx,o.validateMessages),c.messages(u),d=[],b.prev=9,b.next=12,Promise.resolve(c.validate(W({},t,n),L({},o)));case 12:b.next=17;break;case 14:b.prev=14,b.t0=b.catch(9),b.t0.errors&&(d=b.t0.errors.map(function(g,S){var C=g.message,w=C===Mb?u.default:C;return x.isValidElement(w)?x.cloneElement(w,{key:"error_".concat(S)}):w}));case 17:if(!(!d.length&&l)){b.next=22;break}return b.next=20,Promise.all(n.map(function(g,S){return Ap("".concat(t,".").concat(S),g,l,o,i)}));case 20:return f=b.sent,b.abrupt("return",f.reduce(function(g,S){return[].concat(we(g),we(S))},[]));case 22:return p=L(L({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=d.map(function(g){return typeof g=="string"?MT(g,p):g}),b.abrupt("return",h);case 25:case"end":return b.stop()}},e,null,[[9,14]])})),kp.apply(this,arguments)}function DT(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,d){var f=u.validator,p=L(L({},u),{},{ruleIndex:d});return f&&(p.validator=function(h,m,b){var g=!1,S=function(){for(var y=arguments.length,$=new Array(y),E=0;E<y;E++)$[E]=arguments[E];Promise.resolve().then(function(){mt(!g,"Your validator function has already return a promise. `callback` will be ignored."),g||b.apply(void 0,$)})},C=f(h,m,S);g=C&&typeof C.then=="function"&&typeof C.catch=="function",mt(g,"`callback` is deprecated. Please return a promise instead."),g&&C.then(function(){b()}).catch(function(w){b(w||" ")})}),p}).sort(function(u,d){var f=u.warningOnly,p=u.ruleIndex,h=d.warningOnly,m=d.ruleIndex;return!!f==!!h?p-m:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=Oi(Xn().mark(function d(f,p){var h,m,b;return Xn().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:h=0;case 1:if(!(h<s.length)){S.next=12;break}return m=s[h],S.next=5,Ap(a,t,m,r,i);case 5:if(b=S.sent,!b.length){S.next=9;break}return p([{errors:b,rule:m}]),S.abrupt("return");case 9:h+=1,S.next=1;break;case 12:f([]);case 13:case"end":return S.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return Ap(a,t,u,r,i).then(function(d){return{errors:d,rule:u}})});l=(o?AT(c):jT(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function jT(e){return Lp.apply(this,arguments)}function Lp(){return Lp=Oi(Xn().mark(function e(t){return Xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,we(o));return a}));case 1:case"end":return r.stop()}},e)})),Lp.apply(this,arguments)}function AT(e){return zp.apply(this,arguments)}function zp(){return zp=Oi(Xn().mark(function e(t){var n;return Xn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),zp.apply(this,arguments)}var kT=["name"],br=[];function Db(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var xg=function(e){Hr(n,e);var t=$i(n);function n(r){var o;if(Wt(this,n),o=t.call(this,r),o.state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.prevValidating=void 0,o.errors=br,o.warnings=br,o.cancelRegister=function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,pn(d)),o.cancelRegisterFunc=null},o.getNamePath=function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(we(f),we(c)):[]},o.getRules=function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})},o.refresh=function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})},o.triggerMetaEvent=function(l){var c=o.props.onMetaChange;c==null||c(L(L({},o.getMeta()),{},{destroy:l}))},o.onStoreChange=function(l,c,u){var d=o.props,f=d.shouldUpdate,p=d.dependencies,h=p===void 0?[]:p,m=d.onReset,b=u.store,g=o.getNamePath(),S=o.getValue(l),C=o.getValue(b),w=c&&Es(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&S!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=br,o.warnings=br,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=null,o.errors=br,o.warnings=br,o.triggerMetaEvent(),m==null||m(),o.refresh();return}break;case"remove":{if(f){o.reRender();return}break}case"setField":{if(w){var y=u.data;"touched"in y&&(o.touched=y.touched),"validating"in y&&!("originRCField"in y)&&(o.validatePromise=y.validating?Promise.resolve([]):null),"errors"in y&&(o.errors=y.errors||br),"warnings"in y&&(o.warnings=y.warnings||br),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}if(f&&!g.length&&Db(f,l,b,S,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var $=h.map(pn);if($.some(function(E){return Es(u.relatedFields,E)})){o.reRender();return}break}default:if(w||(!h.length||g.length||f)&&Db(f,l,b,S,C,u)){o.reRender();return}break}f===!0&&o.reRender()},o.validateRules=function(l){var c=o.getNamePath(),u=o.getValue(),d=Promise.resolve().then(function(){if(!o.mounted)return[];var f=o.props,p=f.validateFirst,h=p===void 0?!1:p,m=f.messageVariables,b=l||{},g=b.triggerName,S=o.getRules();g&&(S=S.filter(function(w){return w}).filter(function(w){var y=w.validateTrigger;if(!y)return!0;var $=Ip(y);return $.includes(g)}));var C=DT(c,u,S,l,h,m);return C.catch(function(w){return w}).then(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:br;if(o.validatePromise===d){var y;o.validatePromise=null;var $=[],E=[];(y=w.forEach)===null||y===void 0||y.call(w,function(N){var P=N.rule.warningOnly,_=N.errors,D=_===void 0?br:_;P?E.push.apply(E,we(D)):$.push.apply($,we(D))}),o.errors=$,o.warnings=E,o.triggerMetaEvent(),o.reRender()}}),C});return o.validatePromise=d,o.dirty=!0,o.errors=br,o.warnings=br,o.triggerMetaEvent(),o.reRender(),d},o.isFieldValidating=function(){return!!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(ui),u=c.getInitialValue;return u(o.getNamePath())!==void 0},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},o.getMeta=function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l},o.getOnlyChild=function(l){if(typeof l=="function"){var c=o.getMeta();return L(L({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Kn(l);return u.length!==1||!x.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},o.getValue=function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Ho(l||c(!0),u)},o.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,f=c.getValueFromEvent,p=c.normalize,h=c.valuePropName,m=c.getValueProps,b=c.fieldContext,g=d!==void 0?d:b.validateTrigger,S=o.getNamePath(),C=b.getInternalHooks,w=b.getFieldsValue,y=C(ui),$=y.dispatch,E=o.getValue(),N=m||function(M){return W({},h,M)},P=l[u],_=L(L({},l),N(E));_[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,I=arguments.length,T=new Array(I),j=0;j<I;j++)T[j]=arguments[j];f?M=f.apply(void 0,T):M=_T.apply(void 0,[h].concat(T)),p&&(M=p(M,E,w(!0))),$({type:"updateValue",namePath:S,value:M}),P&&P.apply(void 0,T)};var D=Ip(g||[]);return D.forEach(function(M){var I=_[M];_[M]=function(){I&&I.apply(void 0,arguments);var T=o.props.rules;T&&T.length&&$({type:"validateField",namePath:S,triggerName:M})}}),_},r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(ui),s=a.initEntityValue;s(ot(o))}return o}return Ut(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(ui),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){this.state.resetCount;var o=this.props.children,i=this.getOnlyChild(o),a=i.child,s=i.isFunction,l;return s?l=a:x.isValidElement(a)?l=x.cloneElement(a,this.getControlled(a.props)):(mt(!a,"`children` of Field is not validate ReactElement."),l=a),v(Ht,{children:l})}}]),n}(x.Component);xg.contextType=ya;xg.defaultProps={trigger:"onChange",valuePropName:"value"};function lx(e){var t=e.name,n=nt(e,kT),r=x.useContext(ya),o=t!==void 0?pn(t):void 0,i="keep";return n.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&o.length<=1&&mt(!1,"`preserve` should not apply on Form.List fields."),v(xg,{name:o,...n,fieldContext:r},i)}var LT=x.createContext(null),zT=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,s=x.useContext(ya),l=x.useRef({keys:[],id:0}),c=l.current,u=x.useMemo(function(){var h=pn(s.prefixName)||[];return[].concat(we(h),we(pn(n)))},[s.prefixName,n]),d=x.useMemo(function(){return L(L({},s),{},{prefixName:u})},[s,u]),f=x.useMemo(function(){return{getKey:function(m){var b=u.length,g=m[b];return[c.keys[g],m.slice(b+1)]}}},[u]);if(typeof o!="function")return mt(!1,"Form.List only accepts function as children."),null;var p=function(m,b,g){var S=g.source;return S==="internal"?!1:m!==b};return v(LT.Provider,{value:f,children:v(ya.Provider,{value:d,children:v(lx,{name:[],shouldUpdate:p,rules:i,validateTrigger:a,initialValue:r,isList:!0,children:function(h,m){var b=h.value,g=b===void 0?[]:b,S=h.onChange,C=s.getFieldValue,w=function(){var N=C(u||[]);return N||[]},y={add:function(N,P){var _=w();P>=0&&P<=_.length?(c.keys=[].concat(we(c.keys.slice(0,P)),[c.id],we(c.keys.slice(P))),S([].concat(we(_.slice(0,P)),[N],we(_.slice(P))))):(process.env.NODE_ENV!=="production"&&(P<0||P>_.length)&&mt(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[].concat(we(c.keys),[c.id]),S([].concat(we(_),[N]))),c.id+=1},remove:function(N){var P=w(),_=new Set(Array.isArray(N)?N:[N]);_.size<=0||(c.keys=c.keys.filter(function(D,M){return!_.has(M)}),S(P.filter(function(D,M){return!_.has(M)})))},move:function(N,P){if(N!==P){var _=w();N<0||N>=_.length||P<0||P>=_.length||(c.keys=Tb(c.keys,N,P),S(Tb(_,N,P)))}}},$=g||[];return Array.isArray($)||($=[],process.env.NODE_ENV!=="production"&&mt(!1,"Current value of '".concat(u.join(" > "),"' is not an array type."))),o($.map(function(E,N){var P=c.keys[N];return P===void 0&&(c.keys[N]=c.id,P=c.keys[N],c.id+=1),{name:N,key:P,isListField:!0}}),y,m)}})})})};function BT(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var cx="__@field_split__";function af(e){return e.map(function(t){return"".concat(Ze(t),":").concat(t)}).join(cx)}var Hi=function(){function e(){Wt(this,e),this.kvs=new Map}return Ut(e,[{key:"set",value:function(n,r){this.kvs.set(af(n),r)}},{key:"get",value:function(n){return this.kvs.get(af(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(af(n))}},{key:"map",value:function(n){return we(this.kvs.entries()).map(function(r){var o=X(r,2),i=o[0],a=o[1],s=i.split(cx);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=X(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),FT=["name","errors"],VT=Ut(function e(t){var n=this;Wt(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(r){return r===ui?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(mt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r},this.prevWithoutPreserves=null,this.setInitialValues=function(r,o){if(n.initialValues=r||{},o){var i,a=Ns({},r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=zo(a,l,Ho(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}},this.destroyForm=function(){var r=new Hi;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r},this.getInitialValue=function(r){var o=Ho(n.initialValues,r);return r.length?Wu(o):o},this.setCallbacks=function(r){n.callbacks=r},this.setValidateMessages=function(r){n.validateMessages=r},this.setPreserve=function(r){n.preserve=r},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue();n.watchList.forEach(function(i){i(o,r)})}},this.timeoutId=null,this.warningUnhooked=function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||mt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))},this.updateStore=function(r){n.store=r},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Hi;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=pn(i);return o.get(a)||{INVALIDATE_NAME_PATH:pn(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!r&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!o)a.push(c);else{var u="getMeta"in s?s.getMeta():null;o(u)&&a.push(c)}}),Ib(n.store,a.map(pn))},this.getFieldValue=function(r){n.warningUnhooked();var o=pn(r);return Ho(n.store,o)},this.getFieldsError=function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:pn(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=pn(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=pn(r),i=n.getFieldsError([o])[0];return i.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(pn),c=!1):(l=null,c=a):(l=a.map(pn),c=s);var u=n.getFieldEntities(!0),d=function(b){return b.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var f=new Hi;l.forEach(function(m){f.set(m,[])}),u.forEach(function(m){var b=m.getNamePath();l.forEach(function(g){g.every(function(S,C){return b[C]===S})&&f.update(g,function(S){return[].concat(we(S),[m])})})});var p=function(b){return b.some(d)},h=f.map(function(m){var b=m.value;return b});return c?h.every(p):h.some(p)},this.isFieldTouched=function(r){return n.warningUnhooked(),n.isFieldsTouched([r])},this.isFieldsValidating=function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(pn);return o.some(function(a){var s=a.getNamePath();return Es(i,s)&&a.isFieldValidating()})},this.isFieldValidating=function(r){return n.warningUnhooked(),n.isFieldsValidating([r])},this.resetWithFieldInitialValue=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Hi,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)mt(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=o.get(f);if(h&&h.size>1)mt(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var m=n.getFieldValue(f);(!r.skipExist||m===void 0)&&n.updateStore(zo(n.store,f,we(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,we(we(c).map(function(d){return d.entity})))}})):s=i,a(s)},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ns({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(pn);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(zo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)},this.setFields=function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name;a.errors;var l=nt(a,FT),c=pn(s);i.push(c),"value"in l&&n.updateStore(zo(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=L(L({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Ho(n.store,i);a===void 0&&n.updateStore(zo(n.store,i,o))}},this.isMergedPreserve=function(r){var o=r!==void 0?r:n.preserve;return o??!0},this.registerField=function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return!sx(d.getNamePath(),o)})){var u=n.store;n.updateStore(zo(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}},this.dispatch=function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=L(L({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(we(i))}),i},this.updateValue=function(r,o){var i=pn(r),a=n.store;n.updateStore(zo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Ib(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(we(s)))},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=Ns(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(r,o){n.setFields([{name:r,value:o}])},this.getDependencyChildrenFields=function(r){var o=new Set,i=[],a=new Hi;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=pn(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Hi;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Es(r,u)});i(l,a)}},this.validateFields=function(r,o){n.warningUnhooked();var i=!!r,a=i?r.map(pn):[],s=[];n.getFieldEntities(!0).forEach(function(u){if(i||a.push(u.getNamePath()),o!=null&&o.recursive&&i){var d=u.getNamePath();d.every(function(h,m){return r[m]===h||r[m]===void 0})&&a.push(d)}if(!(!u.props.rules||!u.props.rules.length)){var f=u.getNamePath();if(!i||Es(a,f)){var p=u.validateRules(L({validateMessages:L(L({},rx),n.validateMessages)},o));s.push(p.then(function(){return{name:f,errors:[],warnings:[]}}).catch(function(h){var m,b=[],g=[];return(m=h.forEach)===null||m===void 0||m.call(h,function(S){var C=S.rule.warningOnly,w=S.errors;C?g.push.apply(g,we(w)):b.push.apply(b,we(w))}),b.length?Promise.reject({name:f,errors:b,warnings:g}):{name:f,errors:b,warnings:g}}))}}});var l=BT(s);n.lastValidatePromise=l,l.catch(function(u){return u}).then(function(u){var d=u.map(function(f){var p=f.name;return p});n.notifyObservers(n.store,d,{type:"validateFinish"}),n.triggerOnFieldsChange(d,u)});var c=l.then(function(){return n.lastValidatePromise===l?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(u){var d=u.filter(function(f){return f&&f.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:d,outOfDate:n.lastValidatePromise!==l})});return c.catch(function(u){return u}),c},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})},this.forceRootUpdate=t});function ux(e){var t=x.useRef(),n=x.useState({}),r=X(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new VT(i);t.current=a.getForm()}return[t.current]}var Bp=x.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),dx=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=x.useContext(Bp),s=x.useRef({});return v(Bp.Provider,{value:L(L({},a),{},{validateMessages:L(L({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=L(L({},s.current),{},W({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=L({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}}),children:i})},HT=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],WT=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,h=t.onValuesChange,m=t.onFieldsChange,b=t.onFinish,g=t.onFinishFailed,S=nt(t,HT),C=x.useContext(Bp),w=ux(a),y=X(w,1),$=y[0],E=$.getInternalHooks(ui),N=E.useSubscribe,P=E.setInitialValues,_=E.setCallbacks,D=E.setValidateMessages,M=E.setPreserve,I=E.destroyForm;x.useImperativeHandle(n,function(){return $}),x.useEffect(function(){return C.registerForm(r,$),function(){C.unregisterForm(r)}},[C,$,r]),D(L(L({},C.validateMessages),d)),_({onValuesChange:h,onFieldsChange:function(z){if(C.triggerFormChange(r,z),m){for(var k=arguments.length,Q=new Array(k>1?k-1:0),K=1;K<k;K++)Q[K-1]=arguments[K];m.apply(void 0,[z].concat(Q))}},onFinish:function(z){C.triggerFormFinish(r,z),b&&b(z)},onFinishFailed:g}),M(s);var T=x.useRef(null);P(o,!T.current),T.current||(T.current=!0),x.useEffect(function(){return I},[]);var j,A=typeof l=="function";if(A){var B=$.getFieldsValue(!0);j=l(B,$)}else j=l;N(!A);var H=x.useRef();x.useEffect(function(){IT(H.current||[],i||[])||$.setFields(i||[]),H.current=i},[i,$]);var U=x.useMemo(function(){return L(L({},$),{},{validateTrigger:p})},[$,p]),J=v(ya.Provider,{value:U,children:j});return u===!1?J:v(u,{...S,onSubmit:function(z){z.preventDefault(),z.stopPropagation(),$.submit()},onReset:function(z){var k;z.preventDefault(),$.resetFields(),(k=S.onReset)===null||k===void 0||k.call(S,z)},children:J})};function jb(e){try{return JSON.stringify(e)}catch{return Math.random()}}var UT=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=O.useRef(t);mt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function KT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,i=t[1],a=O.useState(),s=X(a,2),l=s[0],c=s[1],u=O.useMemo(function(){return jb(l)},[l]),d=O.useRef(u);d.current=u;var f=O.useContext(ya),p=i||f,h=p&&p._init;process.env.NODE_ENV!=="production"&&mt(t.length===2?i?h:!0:h,"useWatch requires a form instance since it can not auto detect from context.");var m=pn(o),b=O.useRef(m);return b.current=m,UT(m),O.useEffect(function(){if(h){var g=p.getFieldsValue,S=p.getInternalHooks,C=S(ui),w=C.registerWatch,y=w(function(E){var N=Ho(E,b.current),P=jb(N);d.current!==P&&(d.current=P,c(N))}),$=Ho(g(),b.current);return c($),y}},[h]),l}var GT=x.forwardRef(WT),Ol=GT;Ol.FormProvider=dx;Ol.Field=lx;Ol.List=zT;Ol.useForm=ux;Ol.useWatch=KT;function XT(){}let fx=XT;process.env.NODE_ENV!=="production"&&(fx=(e,t,n)=>{mt(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&II()});const xt=fx,qT={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var YT={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const QT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},px=QT,JT={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},YT),timePickerLocale:Object.assign({},px)},Ab=JT,ir="${label} is not a valid ${type}",ZT={locale:"en",Pagination:qT,DatePicker:Ab,TimePicker:px,Calendar:Ab,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},Sa=ZT;let kc=Object.assign({},Sa.Modal);function kb(e){e?kc=Object.assign(Object.assign({},kc),e):kc=Object.assign({},Sa.Modal)}function hx(){return kc}const e2=O.createContext(void 0),Cg=e2,gx="internalMark",vx=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&xt(r===gx,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),x.useEffect(()=>(kb(t&&t.Modal),()=>{kb()}),[t]);const o=x.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v(Cg.Provider,{value:o,children:n})};process.env.NODE_ENV!=="production"&&(vx.displayName="LocaleProvider");const t2=vx,n2="5.3.2",Xs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function jn(e,t){r2(e)&&(e="100%");var n=o2(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function rc(e){return Math.min(1,Math.max(0,e))}function r2(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function o2(e){return typeof e=="string"&&e.indexOf("%")!==-1}function mx(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function oc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function fi(e){return e.length===1?"0"+e:String(e)}function i2(e,t,n){return{r:jn(e,255)*255,g:jn(t,255)*255,b:jn(n,255)*255}}function Lb(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:s}}function sf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function a2(e,t,n){var r,o,i;if(e=jn(e,360),t=jn(t,100),n=jn(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=sf(s,a,e+1/3),o=sf(s,a,e),i=sf(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function eu(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:a}}function s2(e,t,n){e=jn(e,360)*6,t=jn(t,100),n=jn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return{r:c*255,g:u*255,b:d*255}}function tu(e,t,n,r){var o=[fi(Math.round(e).toString(16)),fi(Math.round(t).toString(16)),fi(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function l2(e,t,n,r,o){var i=[fi(Math.round(e).toString(16)),fi(Math.round(t).toString(16)),fi(Math.round(n).toString(16)),fi(c2(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function c2(e){return Math.round(parseFloat(e)*255).toString(16)}function zb(e){return ar(e)/255}function ar(e){return parseInt(e,16)}function u2(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Fp={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function _r(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=p2(e)),typeof e=="object"&&(po(e.r)&&po(e.g)&&po(e.b)?(t=i2(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):po(e.h)&&po(e.s)&&po(e.v)?(r=oc(e.s),o=oc(e.v),t=s2(e.h,r,o),a=!0,s="hsv"):po(e.h)&&po(e.s)&&po(e.l)&&(r=oc(e.s),i=oc(e.l),t=a2(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mx(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var d2="[-\\+]?\\d+%?",f2="[-\\+]?\\d*\\.\\d+%?",Wo="(?:".concat(f2,")|(?:").concat(d2,")"),lf="[\\s|\\(]+(".concat(Wo,")[,|\\s]+(").concat(Wo,")[,|\\s]+(").concat(Wo,")\\s*\\)?"),cf="[\\s|\\(]+(".concat(Wo,")[,|\\s]+(").concat(Wo,")[,|\\s]+(").concat(Wo,")[,|\\s]+(").concat(Wo,")\\s*\\)?"),Pr={CSS_UNIT:new RegExp(Wo),rgb:new RegExp("rgb"+lf),rgba:new RegExp("rgba"+cf),hsl:new RegExp("hsl"+lf),hsla:new RegExp("hsla"+cf),hsv:new RegExp("hsv"+lf),hsva:new RegExp("hsva"+cf),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function p2(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Fp[e])e=Fp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Pr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Pr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Pr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Pr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Pr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Pr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Pr.hex8.exec(e),n?{r:ar(n[1]),g:ar(n[2]),b:ar(n[3]),a:zb(n[4]),format:t?"name":"hex8"}:(n=Pr.hex6.exec(e),n?{r:ar(n[1]),g:ar(n[2]),b:ar(n[3]),format:t?"name":"hex"}:(n=Pr.hex4.exec(e),n?{r:ar(n[1]+n[1]),g:ar(n[2]+n[2]),b:ar(n[3]+n[3]),a:zb(n[4]+n[4]),format:t?"name":"hex8"}:(n=Pr.hex3.exec(e),n?{r:ar(n[1]+n[1]),g:ar(n[2]+n[2]),b:ar(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function po(e){return!!Pr.CSS_UNIT.exec(String(e))}var un=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=u2(t)),this.originalInput=t;var o=_r(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=mx(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=eu(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=eu(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Lb(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Lb(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),tu(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),l2(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(jn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(jn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+tu(this.r,this.g,this.b,!1),n=0,r=Object.entries(Fp);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=rc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=rc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=rc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=rc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ic=2,Bb=.16,h2=.05,g2=.05,v2=.15,bx=5,yx=4,m2=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Fb(e){var t=e.r,n=e.g,r=e.b,o=eu(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function ac(e){var t=e.r,n=e.g,r=e.b;return"#".concat(tu(t,n,r,!1))}function b2(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Vb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ic*t:Math.round(e.h)+ic*t:r=n?Math.round(e.h)+ic*t:Math.round(e.h)-ic*t,r<0?r+=360:r>=360&&(r-=360),r}function Hb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Bb*t:t===yx?r=e.s+Bb:r=e.s+h2*t,r>1&&(r=1),n&&t===bx&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Wb(e,t,n){var r;return n?r=e.v+g2*t:r=e.v-v2*t,r>1&&(r=1),Number(r.toFixed(2))}function No(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=_r(e),o=bx;o>0;o-=1){var i=Fb(r),a=ac(_r({h:Vb(i,o,!0),s:Hb(i,o,!0),v:Wb(i,o,!0)}));n.push(a)}n.push(ac(r));for(var s=1;s<=yx;s+=1){var l=Fb(r),c=ac(_r({h:Vb(l,s),s:Hb(l,s),v:Wb(l,s)}));n.push(c)}return t.theme==="dark"?m2.map(function(u){var d=u.index,f=u.opacity,p=ac(b2(_r(t.backgroundColor||"#141414"),_r(n[d]),f*100));return p}):n}var uf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},df={},ff={};Object.keys(uf).forEach(function(e){df[e]=No(uf[e]),df[e].primary=df[e][5],ff[e]=No(uf[e],{theme:"dark",backgroundColor:"#141414"}),ff[e].primary=ff[e][5]});const y2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Sx=y2;function S2(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const $g={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},w2=Object.assign(Object.assign({},$g),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
60
60
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
61
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),
|
|
61
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),Uu=w2;function wx(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),p=n(i),h=n(a),m=n(s),b=r(c,u);return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new un("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const x2=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},C2=x2;function $2(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},C2(r))}const ho=(e,t)=>new un(e).setAlpha(t).toRgbString(),as=(e,t)=>new un(e).darken(t).toHexString(),O2=e=>{const t=No(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},E2=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ho(r,.88),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.15),colorFillSecondary:ho(r,.06),colorFillTertiary:ho(r,.04),colorFillQuaternary:ho(r,.02),colorBgLayout:as(n,4),colorBgContainer:as(n,0),colorBgElevated:as(n,0),colorBgSpotlight:ho(r,.85),colorBorder:as(n,15),colorBorderSecondary:as(n,6)}};function N2(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const R2=e=>{const t=N2(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},xx=R2;function Ku(e){const t=Object.keys($g).map(n=>{const r=No(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wx(e,{generateColorPalettes:O2,generateNeutralColorPalettes:E2})),xx(e.fontSize)),S2(e)),Sx(e)),$2(e))}function pf(e){return e>=0&&e<=255}function sc(e,t){const{r:n,g:r,b:o,a:i}=new un(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new un(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(pf(u)&&pf(d)&&pf(f))return new un({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new un({r:n,g:r,b:o,a:1}).toRgbString()}var P2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function I2(e){const{override:t}=e,n=P2(e,["override"]),r=Object.assign({},t);Object.keys(Uu).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:sc(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:sc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:sc(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:sc(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
62
62
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
63
63
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
64
64
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -70,10 +70,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
70
70
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
71
71
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
72
72
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
73
|
-
`,screenXS:
|
|
74
|
-
0 1px 2px -2px ${new
|
|
75
|
-
0 3px 6px 0 ${new
|
|
76
|
-
0 5px 12px 4px ${new
|
|
73
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
74
|
+
0 1px 2px -2px ${new un("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
75
|
+
0 3px 6px 0 ${new un("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
76
|
+
0 5px 12px 4px ${new un("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
77
77
|
`,boxShadowDrawerRight:`
|
|
78
78
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
79
79
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
@@ -90,13 +90,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
90
90
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
91
91
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
92
92
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
93
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}const $g=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),
|
|
94
|
-
&:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),
|
|
93
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function Cx(e,t){return Xs.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const _2=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*i-u,p=d,h=2*i-l,m=c,b=2*i-a,g=s,S=i*Math.sqrt(2)+n*(Math.sqrt(2)-2);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${p} L ${h} ${m} A ${n} ${n} 0 0 0 ${b} ${g} Z')`,content:'""'},"&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},$o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Rn=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Aa=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Xo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),T2=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active,
|
|
94
|
+
&:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),M2=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},$x=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),yi=e=>({"&:focus-visible":Object.assign({},$x(e))}),Og="anticon",D2=(e,t)=>t||(e?`ant-${e}`:"ant"),et=x.createContext({getPrefixCls:D2,iconPrefixCls:Og});function xn(e,t,n){return r=>{const[o,i,a]=ka(),{getPrefixCls:s,iconPrefixCls:l}=O.useContext(et),c=s();return Pp({theme:o,token:i,hashId:a,path:["Shared",c]},()=>[{"&":T2(i)}]),[Pp({theme:o,token:i,hashId:a,path:[e,r,l]},()=>{const{token:u,flush:d}=A2(i),f=typeof n=="function"?n(u):n,p=Object.assign(Object.assign({},f),i[e]),h=`.${r}`,m=Tt(u,{componentCls:h,prefixCls:r,iconCls:`.${l}`,antCls:`.${c}`},p),b=t(m,{hashId:a,prefixCls:r,rootPrefixCls:c,iconPrefixCls:l,overrideComponentToken:i[e]});return d(e,p),[M2(i,r),b]}),a]}}const Ox=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Vp=!0;function Tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ox)return Object.assign.apply(Object,[{}].concat(t));Vp=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),Vp=!0,r}function j2(){}function A2(e){let t,n=e,r=j2;return Ox&&(t=new Set,n=new Proxy(e,{get(o,i){return Vp&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t)}),{token:n,keys:t,flush:r}}const k2=ex(Ku),nu={token:Uu,hashed:!0},Ex=O.createContext(nu);function ka(){const{token:e,hashed:t,theme:n,components:r}=O.useContext(Ex),o=`${n2}-${t||""}`,i=n||k2,[a,s]=C_(i,[Uu,e],{salt:o,override:Object.assign({override:e},r),formatToken:I2});return[i,a,t?s:""]}const L2=`-ant-${Date.now()}-${Math.random()}`;function z2(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new un(a),c=No(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new un(t.primaryColor),s=No(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new un(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
95
95
|
:root {
|
|
96
|
-
${Object.keys(
|
|
96
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
97
97
|
`)}
|
|
98
98
|
}
|
|
99
|
-
`.trim()}function
|
|
99
|
+
`.trim()}function B2(e,t){const n=z2(e,t);Gn()?bi(n,`${L2}-dynamic-theme`):process.env.NODE_ENV!=="production"&&xt(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Hp=x.createContext(!1),F2=e=>{let{children:t,disabled:n}=e;const r=x.useContext(Hp);return v(Hp.Provider,{value:n??r,children:t})},Ei=Hp,Wp=x.createContext(void 0),V2=e=>{let{children:t,size:n}=e;const r=x.useContext(Wp);return v(Wp.Provider,{value:n||r,children:t})},gr=Wp;function H2(){const e=O.useContext(Ei),t=O.useContext(gr);return{componentDisabled:e,componentSize:t}}function W2(e,t){const n=e||{},r=n.inherit===!1||!t?nu:t;return Cl(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((s,l)=>{const c=a[l];return!Bu(s,c,!0)}))}const U2=e=>{const[t,n]=ka();return Pp({theme:t,token:n,hashId:"",path:["ant-design-icons",e]},()=>[{[`.${e}`]:Object.assign(Object.assign({},Aa()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},K2=U2;var G2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Up=!1;const Nx=process.env.NODE_ENV!=="production"?e=>{process.env.NODE_ENV!=="production"&&xt(!Up,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,X2=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],q2="ant";let ru,Rx;function Lc(){return ru||q2}function Y2(){return Rx||Og}const Q2=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(ru=t),n!==void 0&&(Rx=n),r&&B2(Lc(),r)},Eg=()=>({getPrefixCls:(e,t)=>t||(e?`${Lc()}-${e}`:Lc()),getIconPrefixCls:Y2,getRootPrefixCls:()=>ru||Lc()}),J2=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,legacyLocale:d,parentContext:f,iconPrefixCls:p,theme:h,componentDisabled:m}=e,b=x.useCallback((I,T)=>{const{prefixCls:j}=e;if(T)return T;const A=j||f.getPrefixCls("");return I?`${A}-${I}`:A},[f.getPrefixCls,e.prefixCls]),g=p||f.iconPrefixCls||Og,S=g!==f.iconPrefixCls,C=n||f.csp,w=K2(g),y=W2(h,f.theme);process.env.NODE_ENV!=="production"&&(Up=Up||!!y);const $={csp:C,autoInsertSpaceInButton:r,locale:i||d,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,getPrefixCls:b,iconPrefixCls:g,theme:y},E=Object.assign({},f);Object.keys($).forEach(I=>{$[I]!==void 0&&(E[I]=$[I])}),X2.forEach(I=>{const T=e[I];T&&(E[I]=T)});const N=Cl(()=>E,E,(I,T)=>{const j=Object.keys(I),A=Object.keys(T);return j.length!==A.length||j.some(B=>I[B]!==T[B])}),P=x.useMemo(()=>({prefixCls:g,csp:C}),[g,C]);let _=S?w(t):t;const D=x.useMemo(()=>{var I,T,j;return Ns({},((I=Sa.Form)===null||I===void 0?void 0:I.defaultValidateMessages)||{},((j=(T=N.locale)===null||T===void 0?void 0:T.Form)===null||j===void 0?void 0:j.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[N,o==null?void 0:o.validateMessages]);Object.keys(D).length>0&&(_=v(dx,{validateMessages:D,children:t})),i&&(_=v(t2,{locale:i,_ANT_MARK__:gx,children:_})),(g||C)&&(_=v(Sg.Provider,{value:P,children:_})),a&&(_=v(V2,{size:a,children:_}));const M=x.useMemo(()=>{const I=y||{},{algorithm:T,token:j}=I,A=G2(I,["algorithm","token"]),B=T&&(!Array.isArray(T)||T.length>0)?ex(T):void 0;return Object.assign(Object.assign({},A),{theme:B,token:Object.assign(Object.assign({},Uu),j)})},[y]);return h&&(_=v(Ex.Provider,{value:M,children:_})),m!==void 0&&(_=v(F2,{disabled:m,children:_})),v(et.Provider,{value:N,children:_})},Ni=e=>{const t=x.useContext(et),n=x.useContext(Cg);return v(J2,{...Object.assign({parentContext:t,legacyLocale:n},e)})};Ni.ConfigContext=et;Ni.SizeContext=gr;Ni.config=Q2;Ni.useConfig=H2;Object.defineProperty(Ni,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&xt(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),gr)});process.env.NODE_ENV!=="production"&&(Ni.displayName="ConfigProvider");const Cn=Ni;var Px=function(t){return+setTimeout(t,16)},Ix=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Px=function(t){return window.requestAnimationFrame(t)},Ix=function(t){return window.cancelAnimationFrame(t)});var Ub=0,Ng=new Map;function _x(e){Ng.delete(e)}var Rt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ub+=1;var r=Ub;function o(i){if(i===0)_x(r),t();else{var a=Px(function(){o(i-1)});Ng.set(r,a)}}return o(n),r};Rt.cancel=function(e){var t=Ng.get(e);return _x(t),Ix(t)};function ws(e,t,n,r){var o=ln.unstable_batchedUpdates?function(a){ln.unstable_batchedUpdates(n,a)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}var Z2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const eM=Z2;function tM(e,t){mt(e,"[@ant-design/icons] ".concat(t))}function Kb(e){return Ze(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ze(e.icon)==="object"||typeof e.icon=="function")}function Gb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t},{})}function Kp(e,t,n){return n?O.createElement(e.tag,L(L({key:t},Gb(e.attrs)),n),(e.children||[]).map(function(r,o){return Kp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):O.createElement(e.tag,L({key:t},Gb(e.attrs)),(e.children||[]).map(function(r,o){return Kp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Tx(e){return No(e)[0]}function Mx(e){return e?Array.isArray(e)?e:[e]:[]}var nM=`
|
|
100
100
|
.anticon {
|
|
101
101
|
display: inline-block;
|
|
102
102
|
color: inherit;
|
|
@@ -150,9 +150,174 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
150
150
|
transform: rotate(360deg);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
`,sv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ov,r=Z.useContext(fo),n=r.csp,i=r.prefixCls,a=t;i&&(a=a.replace(/anticon/g,i)),Z.useEffect(function(){Sr(a,"@ant-design-icons",{prepend:!0,csp:n})},[])},uv=["icon","className","onClick","style","primaryColor","secondaryColor"],Gr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function cv(e){var t=e.primaryColor,r=e.secondaryColor;Gr.primaryColor=t,Gr.secondaryColor=r||Cl(t),Gr.calculated=!!r}function lv(){return A({},Gr)}var fi=function(t){var r=t.icon,n=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,u=Nt(t,uv),c=Gr;if(o&&(c={primaryColor:o,secondaryColor:s||Cl(o)}),sv(),av(Js(r),"icon should be icon definiton, but got ".concat(r)),!Js(r))return null;var l=r;return l&&typeof l.icon=="function"&&(l=A(A({},l),{},{icon:l.icon(c.primaryColor,c.secondaryColor)})),Aa(l.icon,"svg-".concat(l.name),A({className:n,onClick:i,style:a,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};fi.displayName="IconReact";fi.getTwoToneColors=lv;fi.setTwoToneColors=cv;const mo=fi;function El(e){var t=Ol(e),r=fe(t,2),n=r[0],i=r[1];return mo.setTwoToneColors({primaryColor:n,secondaryColor:i})}function fv(){var e=mo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var dv=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];El("#1890ff");var di=_.forwardRef(function(e,t){var r,n=e.className,i=e.icon,a=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,c=e.twoToneColor,l=Nt(e,dv),f=_.useContext(fo),d=f.prefixCls,h=d===void 0?"anticon":d,v=f.rootClassName,g=Dt(v,h,(r={},U(r,"".concat(h,"-").concat(i.name),!!i.name),U(r,"".concat(h,"-spin"),!!a||i.name==="loading"),r),n),y=s;y===void 0&&u&&(y=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,b=Ol(c),w=fe(b,2),S=w[0],x=w[1];return I("span",{...A(A({role:"img","aria-label":i.name},l),{},{ref:t,tabIndex:y,onClick:u,className:g}),children:I(mo,{icon:i,primaryColor:S,secondaryColor:x,style:p})})});di.displayName="AntdIcon";di.getTwoToneColor=fv;di.setTwoToneColor=El;const hv=di;var pv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const gv=pv;function Zs(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function vv(e,t){var r={animationend:Zs("Animation","AnimationEnd"),transitionend:Zs("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var mv=vv(tr(),typeof window<"u"?window:{}),Pl={};if(tr()){var yv=document.createElement("div");Pl=yv.style}var Rn={};function Rl(e){if(Rn[e])return Rn[e];var t=mv[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var a=r[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Pl)return Rn[e]=t[a],Rn[e]}return""}var _l=Rl("animationend"),Tl=Rl("transitionend"),Nl=!!(_l&&Tl),eu=_l||"animationend",tu=Tl||"transitionend";function ru(e,t){if(!e)return null;if(ne(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var vr="none",_n="appear",Tn="enter",Nn="leave",nu="none",_t="prepare",mr="start",yr="active",yo="end";function Dn(e){var t=_.useRef(!1),r=_.useState(e),n=fe(r,2),i=n[0],a=n[1];_.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,u){u&&t.current||a(s)}return[i,o]}const bv=function(){var e=_.useRef(null);function t(){tn.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=tn(function(){i<=1?n({isCanceled:function(){return a!==e.current}}):r(n,i-1)});e.current=a}return _.useEffect(function(){return function(){t()}},[]),[r,t]};var jl=tr()?Z.useLayoutEffect:Z.useEffect,iu=[_t,mr,yr,yo],Fl=!1,Sv=!0;function kl(e){return e===yr||e===yo}const wv=function(e,t){var r=Dn(nu),n=fe(r,2),i=n[0],a=n[1],o=bv(),s=fe(o,2),u=s[0],c=s[1];function l(){a(_t,!0)}return jl(function(){if(i!==nu&&i!==yo){var f=iu.indexOf(i),d=iu[f+1],h=t(i);h===Fl?a(d,!0):u(function(v){function g(){v.isCanceled()||a(d,!0)}h===!0?g():Promise.resolve(h).then(g)})}},[e,i]),_.useEffect(function(){return function(){c()}},[]),[l,i]},xv=function(e){var t=Z.useRef(),r=Z.useRef(e);r.current=e;var n=_.useCallback(function(o){r.current(o)},[]);function i(o){o&&(o.removeEventListener(tu,n),o.removeEventListener(eu,n))}function a(o){t.current&&t.current!==o&&i(t.current),o&&o!==t.current&&(o.addEventListener(tu,n),o.addEventListener(eu,n),t.current=o)}return _.useEffect(function(){return function(){i(t.current)}},[]),[a,i]};function Cv(e,t,r,n){var i=n.motionEnter,a=i===void 0?!0:i,o=n.motionAppear,s=o===void 0?!0:o,u=n.motionLeave,c=u===void 0?!0:u,l=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,h=n.onEnterPrepare,v=n.onLeavePrepare,g=n.onAppearStart,y=n.onEnterStart,p=n.onLeaveStart,b=n.onAppearActive,w=n.onEnterActive,S=n.onLeaveActive,x=n.onAppearEnd,P=n.onEnterEnd,R=n.onLeaveEnd,F=n.onVisibleChanged,k=Dn(),N=fe(k,2),B=N[0],E=N[1],C=Dn(vr),O=fe(C,2),T=O[0],$=O[1],L=Dn(null),W=fe(L,2),ee=W[0],re=W[1],Q=Z.useRef(!1),Y=Z.useRef(null);function ue(){return r()}var Fe=Z.useRef(!1);function $e(me){var ye=ue();if(!(me&&!me.deadline&&me.target!==ye)){var Pe=Fe.current,sr;T===_n&&Pe?sr=x==null?void 0:x(ye,me):T===Tn&&Pe?sr=P==null?void 0:P(ye,me):T===Nn&&Pe&&(sr=R==null?void 0:R(ye,me)),T!==vr&&Pe&&sr!==!1&&($(vr,!0),re(null,!0))}}var De=xv($e),Be=fe(De,1),qe=Be[0],Le=_.useMemo(function(){var me,ye,Pe;switch(T){case _n:return me={},U(me,_t,d),U(me,mr,g),U(me,yr,b),me;case Tn:return ye={},U(ye,_t,h),U(ye,mr,y),U(ye,yr,w),ye;case Nn:return Pe={},U(Pe,_t,v),U(Pe,mr,p),U(Pe,yr,S),Pe;default:return{}}},[T]),Ve=wv(T,function(me){if(me===_t){var ye=Le[_t];return ye?ye(ue()):Fl}if(de in Le){var Pe;re(((Pe=Le[de])===null||Pe===void 0?void 0:Pe.call(Le,ue(),null))||null)}return de===yr&&(qe(ue()),l>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){$e({deadline:!0})},l))),Sv}),ze=fe(Ve,2),z=ze[0],de=ze[1],Me=kl(de);Fe.current=Me,jl(function(){E(t);var me=Q.current;if(Q.current=!0,!!e){var ye;!me&&t&&s&&(ye=_n),me&&t&&a&&(ye=Tn),(me&&!t&&c||!me&&f&&!t&&c)&&(ye=Nn),ye&&($(ye),z())}},[t]),Z.useEffect(function(){(T===_n&&!s||T===Tn&&!a||T===Nn&&!c)&&$(vr)},[s,a,c]),Z.useEffect(function(){return function(){Q.current=!1,clearTimeout(Y.current)}},[]);var st=_.useRef(!1);Z.useEffect(function(){B&&(st.current=!0),B!==void 0&&T===vr&&((st.current||B)&&(F==null||F(B)),st.current=!0)},[B,T]);var At=ee;return Le[_t]&&de===mr&&(At=A({transition:"none"},At)),[T,de,At,B!=null?B:t]}var Ov=function(e){er(r,e);var t=io(r);function r(){return Ne(this,r),t.apply(this,arguments)}return je(r,[{key:"render",value:function(){return this.props.children}}]),r}(_.Component);function Ev(e){var t=e;ne(e)==="object"&&(t=e.transitionSupport);function r(i){return!!(i.motionName&&t)}var n=_.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,u=i.removeOnLeave,c=u===void 0?!0:u,l=i.forceRender,f=i.children,d=i.motionName,h=i.leavedClassName,v=i.eventProps,g=r(i),y=Z.useRef(),p=Z.useRef();function b(){try{return y.current instanceof HTMLElement?y.current:Xd(p.current)}catch{return null}}var w=Cv(g,s,b,i),S=fe(w,4),x=S[0],P=S[1],R=S[2],F=S[3],k=_.useRef(F);F&&(k.current=!0);var N=_.useCallback(function(L){y.current=L,Oc(a,L)},[a]),B,E=A(A({},v),{},{visible:s});if(!f)B=null;else if(x===vr||!r(i))F?B=f(A({},E),N):!c&&k.current&&h?B=f(A(A({},E),{},{className:h}),N):l||!c&&!h?B=f(A(A({},E),{},{style:{display:"none"}}),N):B=null;else{var C,O;P===_t?O="prepare":kl(P)?O="active":P===mr&&(O="start"),B=f(A(A({},E),{},{className:Dt(ru(d,x),(C={},U(C,ru(d,"".concat(x,"-").concat(O)),O),U(C,d,typeof d=="string"),C)),style:R}),N)}if(_.isValidElement(B)&&Ec(B)){var T=B,$=T.ref;$||(B=_.cloneElement(B,{ref:N}))}return I(Ov,{ref:p,children:B})});return n.displayName="CSSMotion",n}const bo=Ev(Nl);var $a="add",La="keep",Ma="remove",qi="removed";function Pv(e){var t;return e&&ne(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function Ia(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Pv)}function Rv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,a=Ia(e),o=Ia(t);a.forEach(function(c){for(var l=!1,f=n;f<i;f+=1){var d=o[f];if(d.key===c.key){n<f&&(r=r.concat(o.slice(n,f).map(function(h){return A(A({},h),{},{status:$a})})),n=f),r.push(A(A({},d),{},{status:La})),n+=1,l=!0;break}}l||r.push(A(A({},c),{},{status:Ma}))}),n<i&&(r=r.concat(o.slice(n).map(function(c){return A(A({},c),{},{status:$a})})));var s={};r.forEach(function(c){var l=c.key;s[l]=(s[l]||0)+1});var u=Object.keys(s).filter(function(c){return s[c]>1});return u.forEach(function(c){r=r.filter(function(l){var f=l.key,d=l.status;return f!==c||d!==Ma}),r.forEach(function(l){l.key===c&&(l.status=La)})}),r}var _v=["component","children","onVisibleChanged","onAllRemoved"],Tv=["status"],Nv=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bo,r=function(n){er(a,n);var i=io(a);function a(){var o;Ne(this,a);for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return o=i.call.apply(i,[this].concat(u)),U(dt(o),"state",{keyEntities:[]}),U(dt(o),"removeKey",function(l){var f=o.state.keyEntities,d=f.map(function(h){return h.key!==l?h:A(A({},h),{},{status:qi})});return o.setState({keyEntities:d}),d.filter(function(h){var v=h.status;return v!==qi}).length}),o}return je(a,[{key:"render",value:function(){var s=this,u=this.state.keyEntities,c=this.props,l=c.component,f=c.children,d=c.onVisibleChanged,h=c.onAllRemoved,v=Nt(c,_v),g=l||_.Fragment,y={};return Nv.forEach(function(p){y[p]=v[p],delete v[p]}),delete v.keys,I(g,{...v,children:u.map(function(p){var b=p.status,w=Nt(p,Tv),S=b===$a||b===La;return Z.createElement(t,{...y,key:w.key,visible:S,eventProps:w,onVisibleChanged:function(P){if(d==null||d(P,{key:w.key}),!P){var R=s.removeKey(w.key);R===0&&h&&h()}}},f)})})}}],[{key:"getDerivedStateFromProps",value:function(s,u){var c=s.keys,l=u.keyEntities,f=Ia(c),d=Rv(l,f);return{keyEntities:d.filter(function(h){var v=l.find(function(g){var y=g.key;return h.key===y});return!(v&&v.status===qi&&h.status===Ma)})}}}]),a}(_.Component);return U(r,"defaultProps",{component:"div"}),r}jv(Nl);const{isValidElement:Al}=_;function Fv(e){return e&&Al(e)&&e.type===_.Fragment}function kv(e,t,r){return Al(e)?_.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function $l(e,t){return kv(e,e,t)}var Av={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const $v=Av;var Ll=function(t,r){return I(hv,{...A(A({},t),{},{ref:r,icon:$v})})};Ll.displayName="LoadingOutlined";const au=_.forwardRef(Ll);var dn=A({},cd),Lv=dn.version,Mv=dn.render,Iv=dn.unmountComponentAtNode,hi;try{var Bv=Number((Lv||"").split(".")[0]);Bv>=18&&(hi=dn.createRoot)}catch{}function ou(e){var t=dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ne(t)==="object"&&(t.usingClientEntryPoint=e)}var qn="__rc_react_root__";function zv(e,t){ou(!0);var r=t[qn]||hi(t);ou(!1),r.render(e),t[qn]=r}function Dv(e,t){Mv(e,t)}function Vv(e,t){if(hi){zv(e,t);return}Dv(e,t)}function Hv(e){return Ba.apply(this,arguments)}function Ba(){return Ba=Tr(et().mark(function e(t){return et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[qn])===null||i===void 0||i.unmount(),delete t[qn]}));case 1:case"end":return n.stop()}},e)})),Ba.apply(this,arguments)}function Wv(e){Iv(e)}function Uv(e){return za.apply(this,arguments)}function za(){return za=Tr(et().mark(function e(t){return et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(hi===void 0){n.next=2;break}return n.abrupt("return",Hv(t));case 2:Wv(t);case 3:case"end":return n.stop()}},e)})),za.apply(this,arguments)}globalThis&&globalThis.__rest;const qv=_.createContext(null),Gv=(e,t)=>{const r=_.useContext(qv),n=_.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=r,s=i==="vertical"?"-vertical-":"-";return Dt({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},Kv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},Yv=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},Xv=pl("Wave",e=>[Yv(e)]);function Jv(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Gi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Jv(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Qv(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Gi(t)?t:Gi(r)?r:Gi(n)?n:null}function Ki(e){return Number.isNaN(e)?0:e}const Zv=e=>{const{className:t,target:r}=e,n=_.useRef(null),[i,a]=_.useState(null),[o,s]=_.useState([]),[u,c]=_.useState(0),[l,f]=_.useState(0),[d,h]=_.useState(0),[v,g]=_.useState(0),[y,p]=_.useState(!1),b={left:u,top:l,width:d,height:v,borderRadius:o.map(S=>`${S}px`).join(" ")};i&&(b["--wave-color"]=i);function w(){const S=getComputedStyle(r);a(Qv(r));const x=S.position==="static",{borderLeftWidth:P,borderTopWidth:R}=S;c(x?r.offsetLeft:Ki(-parseFloat(P))),f(x?r.offsetTop:Ki(-parseFloat(R))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:F,borderTopRightRadius:k,borderBottomLeftRadius:N,borderBottomRightRadius:B}=S;s([F,k,B,N].map(E=>Ki(parseFloat(E))))}return _.useEffect(()=>{if(r){const S=tn(()=>{w(),p(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(w),x.observe(r)),()=>{tn.cancel(S),x==null||x.disconnect()}}},[]),y?I(bo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(S,x)=>{var P;if(x.deadline||x.propertyName==="opacity"){const R=(P=n.current)===null||P===void 0?void 0:P.parentElement;Uv(R).then(()=>{var F;(F=R.parentElement)===null||F===void 0||F.removeChild(R)})}return!1},children:S=>{let{className:x}=S;return I("div",{ref:n,className:Dt(t,x),style:b})}}):null};function em(e,t){const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),Vv(I(Zv,{target:e,className:t}),r)}function tm(e,t){function r(){const n=e.current;em(n,t)}return r}const Ml=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=Z.useContext(rr),i=Z.useRef(null),a=n("wave"),[,o]=Xv(a),s=tm(i,Dt(a,o));if(ke.default.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||r)return;const l=f=>{f.target.tagName==="INPUT"||!Kv(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s()};return c.addEventListener("click",l,!0),()=>{c.removeEventListener("click",l,!0)}},[r]),!ke.default.isValidElement(t))return t!=null?t:null;const u=Ec(t)?Kd(t.ref,i):i;return $l(t,{ref:u})};process.env.NODE_ENV!=="production"&&(Ml.displayName="Wave");const rm=Ml;var nm=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Il=_.createContext(void 0),im=e=>{const{getPrefixCls:t,direction:r}=_.useContext(rr),{prefixCls:n,size:i,className:a}=e,o=nm(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,u]=go();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break;case"middle":case void 0:break;default:process.env.NODE_ENV!=="production"&&Xt(!i,"Button.Group","Invalid prop `size`.")}const l=Dt(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},a,u);return I(Il.Provider,{value:i,children:I("div",{...Object.assign({},o,{className:l})})})},am=im,su=/^[\u4e00-\u9fa5]{2}$/,Da=su.test.bind(su);function om(e){return typeof e=="string"}function jn(e){return e==="text"||e==="link"}function sm(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&om(e.type)&&Da(e.props.children)?$l(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?Da(e)?I("span",{children:e.split("").join(r)}):I("span",{children:e}):Fv(e)?I("span",{children:e}):e}function um(e,t){let r=!1;const n=[];return ke.default.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(r&&o){const s=n.length-1,u=n[s];n[s]=`${u}${i}`}else n.push(i);r=o}),ke.default.Children.map(n,i=>sm(i,t))}const Yi=()=>({width:0,opacity:0,transform:"scale(0)"}),Xi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cm=e=>{let{prefixCls:t,loading:r,existIcon:n}=e;const i=!!r;return n?I("span",{className:`${t}-loading-icon`,children:I(au,{})}):I(bo,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Yi,onAppearActive:Xi,onEnterStart:Yi,onEnterActive:Xi,onLeaveStart:Xi,onLeaveActive:Yi,children:(a,o)=>{let{className:s,style:u}=a;return I("span",{className:`${t}-loading-icon`,style:u,ref:o,children:I(au,{className:s})})}})},lm=cm,uu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fm=e=>{const{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover,
|
|
153
|
+
`,rM=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nM,n=O.useContext(Sg),r=n.csp,o=n.prefixCls,i=t;o&&(i=i.replace(/anticon/g,o)),O.useEffect(function(){bi(i,"@ant-design-icons",{prepend:!0,csp:r})},[])},oM=["icon","className","onClick","style","primaryColor","secondaryColor"],Rs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function iM(e){var t=e.primaryColor,n=e.secondaryColor;Rs.primaryColor=t,Rs.secondaryColor=n||Tx(t),Rs.calculated=!!n}function aM(){return L({},Rs)}var Gu=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=nt(t,oM),c=Rs;if(a&&(c={primaryColor:a,secondaryColor:s||Tx(a)}),rM(),tM(Kb(n),"icon should be icon definiton, but got ".concat(n)),!Kb(n))return null;var u=n;return u&&typeof u.icon=="function"&&(u=L(L({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Kp(u.icon,"svg-".concat(u.name),L({className:r,onClick:o,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};Gu.displayName="IconReact";Gu.getTwoToneColors=aM;Gu.setTwoToneColors=iM;const Rg=Gu;function Dx(e){var t=Mx(e),n=X(t,2),r=n[0],o=n[1];return Rg.setTwoToneColors({primaryColor:r,secondaryColor:o})}function sM(){var e=Rg.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var lM=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Dx("#1890ff");var Xu=x.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=nt(e,lM),d=x.useContext(Sg),f=d.prefixCls,p=f===void 0?"anticon":f,h=d.rootClassName,m=Z(h,p,(n={},W(n,"".concat(p,"-").concat(o.name),!!o.name),W(n,"".concat(p,"-spin"),!!i||o.name==="loading"),n),r),b=s;b===void 0&&l&&(b=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=Mx(c),C=X(S,2),w=C[0],y=C[1];return v("span",{...L(L({role:"img","aria-label":o.name},u),{},{ref:t,tabIndex:b,onClick:l,className:m}),children:v(Rg,{icon:o,primaryColor:w,secondaryColor:y,style:g})})});Xu.displayName="AntdIcon";Xu.getTwoToneColor=sM;Xu.setTwoToneColor=Dx;const Tn=Xu;var jx=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:eM})})};jx.displayName="CheckCircleFilled";const Ax=x.forwardRef(jx);var cM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const uM=cM;var kx=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:uM})})};kx.displayName="CloseCircleFilled";const El=x.forwardRef(kx);var dM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const Lx=dM;var zx=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:Lx})})};zx.displayName="CloseOutlined";const qu=x.forwardRef(zx);var fM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const pM=fM;var Bx=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:pM})})};Bx.displayName="ExclamationCircleFilled";const Fx=x.forwardRef(Bx);var hM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const gM=hM;var Vx=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:gM})})};Vx.displayName="InfoCircleFilled";const Hx=x.forwardRef(Vx);function Xb(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function vM(e,t){var n={animationend:Xb("Animation","AnimationEnd"),transitionend:Xb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var mM=vM(Gn(),typeof window<"u"?window:{}),Wx={};if(Gn()){var bM=document.createElement("div");Wx=bM.style}var lc={};function Ux(e){if(lc[e])return lc[e];var t=mM[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Wx)return lc[e]=t[i],lc[e]}return""}var Kx=Ux("animationend"),Gx=Ux("transitionend"),Xx=!!(Kx&&Gx),qb=Kx||"animationend",Yb=Gx||"transitionend";function Qb(e,t){if(!e)return null;if(Ze(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}var oa="none",cc="appear",uc="enter",dc="leave",Jb="none",bo="prepare",la="start",ca="active",Pg="end";function Ko(e){var t=x.useRef(!1),n=x.useState(e),r=X(n,2),o=r[0],i=r[1];x.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}const yM=function(){var e=x.useRef(null);function t(){Rt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Rt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return x.useEffect(function(){return function(){t()}},[]),[n,t]};var qx=Gn()?O.useLayoutEffect:O.useEffect,Zb=[bo,la,ca,Pg],Yx=!1,SM=!0;function Qx(e){return e===ca||e===Pg}const wM=function(e,t){var n=Ko(Jb),r=X(n,2),o=r[0],i=r[1],a=yM(),s=X(a,2),l=s[0],c=s[1];function u(){i(bo,!0)}return qx(function(){if(o!==Jb&&o!==Pg){var d=Zb.indexOf(o),f=Zb[d+1],p=t(o);p===Yx?i(f,!0):l(function(h){function m(){h.isCanceled()||i(f,!0)}p===!0?m():Promise.resolve(p).then(m)})}},[e,o]),x.useEffect(function(){return function(){c()}},[]),[u,o]},xM=function(e){var t=O.useRef(),n=O.useRef(e);n.current=e;var r=x.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(Yb,r),a.removeEventListener(qb,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(Yb,r),a.addEventListener(qb,r),t.current=a)}return x.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};function CM(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,m=r.onAppearStart,b=r.onEnterStart,g=r.onLeaveStart,S=r.onAppearActive,C=r.onEnterActive,w=r.onLeaveActive,y=r.onAppearEnd,$=r.onEnterEnd,E=r.onLeaveEnd,N=r.onVisibleChanged,P=Ko(),_=X(P,2),D=_[0],M=_[1],I=Ko(oa),T=X(I,2),j=T[0],A=T[1],B=Ko(null),H=X(B,2),U=H[0],J=H[1],F=O.useRef(!1),z=O.useRef(null);function k(){return n()}var Q=O.useRef(!1);function K(ye){var me=k();if(!(ye&&!ye.deadline&&ye.target!==me)){var Ee=Q.current,Oe;j===cc&&Ee?Oe=y==null?void 0:y(me,ye):j===uc&&Ee?Oe=$==null?void 0:$(me,ye):j===dc&&Ee&&(Oe=E==null?void 0:E(me,ye)),j!==oa&&Ee&&Oe!==!1&&(A(oa,!0),J(null,!0))}}var Y=xM(K),te=X(Y,1),re=te[0],ce=x.useMemo(function(){var ye,me,Ee;switch(j){case cc:return ye={},W(ye,bo,f),W(ye,la,m),W(ye,ca,S),ye;case uc:return me={},W(me,bo,p),W(me,la,b),W(me,ca,C),me;case dc:return Ee={},W(Ee,bo,h),W(Ee,la,g),W(Ee,ca,w),Ee;default:return{}}},[j]),ne=wM(j,function(ye){if(ye===bo){var me=ce[bo];return me?me(k()):Yx}if(q in ce){var Ee;J(((Ee=ce[q])===null||Ee===void 0?void 0:Ee.call(ce,k(),null))||null)}return q===ca&&(re(k()),u>0&&(clearTimeout(z.current),z.current=setTimeout(function(){K({deadline:!0})},u))),SM}),he=X(ne,2),ee=he[0],q=he[1],oe=Qx(q);Q.current=oe,qx(function(){M(t);var ye=F.current;if(F.current=!0,!!e){var me;!ye&&t&&s&&(me=cc),ye&&t&&i&&(me=uc),(ye&&!t&&c||!ye&&d&&!t&&c)&&(me=dc),me&&(A(me),ee())}},[t]),O.useEffect(function(){(j===cc&&!s||j===uc&&!i||j===dc&&!c)&&A(oa)},[s,i,c]),O.useEffect(function(){return function(){F.current=!1,clearTimeout(z.current)}},[]);var ve=x.useRef(!1);O.useEffect(function(){D&&(ve.current=!0),D!==void 0&&j===oa&&((ve.current||D)&&(N==null||N(D)),ve.current=!0)},[D,j]);var fe=U;return ce[bo]&&q===la&&(fe=L({transition:"none"},fe)),[j,q,fe,D??t]}var $M=function(e){Hr(n,e);var t=$i(n);function n(){return Wt(this,n),t.apply(this,arguments)}return Ut(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component);function OM(e){var t=e;Ze(e)==="object"&&(t=e.transitionSupport);function n(o){return!!(o.motionName&&t)}var r=x.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,p=o.leavedClassName,h=o.eventProps,m=n(o),b=O.useRef(),g=O.useRef();function S(){try{return b.current instanceof HTMLElement?b.current:Ws(g.current)}catch{return null}}var C=CM(m,s,S,o),w=X(C,4),y=w[0],$=w[1],E=w[2],N=w[3],P=x.useRef(N);N&&(P.current=!0);var _=x.useCallback(function(B){b.current=B,hg(i,B)},[i]),D,M=L(L({},h),{},{visible:s});if(!d)D=null;else if(y===oa||!n(o))N?D=d(L({},M),_):!c&&P.current&&p?D=d(L(L({},M),{},{className:p}),_):u||!c&&!p?D=d(L(L({},M),{},{style:{display:"none"}}),_):D=null;else{var I,T;$===bo?T="prepare":Qx($)?T="active":$===la&&(T="start"),D=d(L(L({},M),{},{className:Z(Qb(f,y),(I={},W(I,Qb(f,"".concat(y,"-").concat(T)),T),W(I,f,typeof f=="string"),I)),style:E}),_)}if(x.isValidElement(D)&&Da(D)){var j=D,A=j.ref;A||(D=x.cloneElement(D,{ref:_}))}return v($M,{ref:g,children:D})});return r.displayName="CSSMotion",r}const vr=OM(Xx);var Gp="add",Xp="keep",qp="remove",hf="removed";function EM(e){var t;return e&&Ze(e)==="object"&&"key"in e?t=e:t={key:e},L(L({},t),{},{key:String(t.key)})}function Yp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(EM)}function NM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Yp(e),a=Yp(t);i.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=a[d];if(f.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(p){return L(L({},p),{},{status:Gp})})),r=d),n.push(L(L({},f),{},{status:Xp})),r+=1,u=!0;break}}u||n.push(L(L({},c),{},{status:qp}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return L(L({},c),{},{status:Gp})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==qp}),n.forEach(function(u){u.key===c&&(u.status=Xp)})}),n}var RM=["component","children","onVisibleChanged","onAllRemoved"],PM=["status"],IM=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function _M(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vr,n=function(r){Hr(i,r);var o=$i(i);function i(){var a;Wt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),W(ot(a),"state",{keyEntities:[]}),W(ot(a),"removeKey",function(u){var d=a.state.keyEntities,f=d.map(function(p){return p.key!==u?p:L(L({},p),{},{status:hf})});return a.setState({keyEntities:f}),f.filter(function(p){var h=p.status;return h!==hf}).length}),a}return Ut(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,p=c.onAllRemoved,h=nt(c,RM),m=u||x.Fragment,b={};return IM.forEach(function(g){b[g]=h[g],delete h[g]}),delete h.keys,v(m,{...h,children:l.map(function(g){var S=g.status,C=nt(g,PM),w=S===Gp||S===Xp;return O.createElement(t,{...b,key:C.key,visible:w,eventProps:C,onVisibleChanged:function($){if(f==null||f($,{key:C.key}),!$){var E=s.removeKey(C.key);E===0&&p&&p()}}},d)})})}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Yp(c),f=NM(u,d);return{keyEntities:f.filter(function(p){var h=u.find(function(m){var b=m.key;return p.key===b});return!(h&&h.status===hf&&p.status===qp)})}}}]),i}(x.Component);return W(n,"defaultProps",{component:"div"}),n}const TM=_M(Xx),{isValidElement:Ro}=x;function Jx(e){return e&&Ro(e)&&e.type===x.Fragment}function MM(e,t,n){return Ro(e)?x.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function er(e,t){return MM(e,e,t)}function sr(e){var t=x.useRef();t.current=e;var n=x.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}var ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ie.F1&&n<=ie.F12)return!1;switch(n){case ie.ALT:case ie.CAPS_LOCK:case ie.CONTEXT_MENU:case ie.CTRL:case ie.DOWN:case ie.END:case ie.ESC:case ie.HOME:case ie.INSERT:case ie.LEFT:case ie.MAC_FF_META:case ie.META:case ie.NUMLOCK:case ie.NUM_CENTER:case ie.PAGE_DOWN:case ie.PAGE_UP:case ie.PAUSE:case ie.PRINT_SCREEN:case ie.RIGHT:case ie.SHIFT:case ie.UP:case ie.WIN_KEY:case ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ie.ZERO&&t<=ie.NINE||t>=ie.NUM_ZERO&&t<=ie.NUM_MULTIPLY||t>=ie.A&&t<=ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ie.SPACE:case ie.QUESTION_MARK:case ie.NUM_PLUS:case ie.NUM_MINUS:case ie.NUM_PERIOD:case ie.NUM_DIVISION:case ie.SEMICOLON:case ie.DASH:case ie.EQUALS:case ie.COMMA:case ie.PERIOD:case ie.SLASH:case ie.APOSTROPHE:case ie.SINGLE_QUOTE:case ie.OPEN_SQUARE_BRACKET:case ie.BACKSLASH:case ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},DM=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,d=u===void 0?"x":u,f=e.props,p=e.onClick,h=e.onNoticeClose,m=e.times,b=x.useState(!1),g=X(b,2),S=g[0],C=g[1],w=function(){h(s)},y=function(N){(N.key==="Enter"||N.code==="Enter"||N.keyCode===ie.ENTER)&&w()};x.useEffect(function(){if(!S&&a>0){var E=setTimeout(function(){w()},a*1e3);return function(){clearTimeout(E)}}},[a,S,m]);var $="".concat(n,"-notice");return ae("div",{...f,ref:t,className:Z($,o,W({},"".concat($,"-closable"),c)),style:r,onMouseEnter:function(){C(!0)},onMouseLeave:function(){C(!1)},onClick:p,children:[v("div",{className:"".concat($,"-content"),children:l}),c&&v("a",{tabIndex:0,className:"".concat($,"-close"),onKeyDown:y,onClick:function(N){N.preventDefault(),N.stopPropagation(),w()},children:d})]})});const Zx=DM;var eC=x.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=x.useState([]),d=X(u,2),f=d[0],p=d[1],h=function(E){var N,P=f.find(function(_){return _.key===E});P==null||(N=P.onClose)===null||N===void 0||N.call(P),p(function(_){return _.filter(function(D){return D.key!==E})})};x.useImperativeHandle(t,function(){return{open:function(E){p(function(N){var P=we(N),_=P.findIndex(function(I){return I.key===E.key}),D=L({},E);if(_>=0){var M;D.times=(((M=N[_])===null||M===void 0?void 0:M.times)||0)+1,P[_]=D}else D.times=0,P.push(D);return a>0&&P.length>a&&(P=P.slice(-a)),P})},close:function(E){h(E)},destroy:function(){p([])}}});var m=x.useState({}),b=X(m,2),g=b[0],S=b[1];x.useEffect(function(){var $={};f.forEach(function(E){var N=E.placement,P=N===void 0?"topRight":N;P&&($[P]=$[P]||[],$[P].push(E))}),Object.keys(g).forEach(function(E){$[E]=$[E]||[]}),S($)},[f]);var C=function(E){S(function(N){var P=L({},N),_=P[E]||[];return _.length||delete P[E],P})},w=x.useRef(!1);if(x.useEffect(function(){Object.keys(g).length>0?w.current=!0:w.current&&(c==null||c(),w.current=!1)},[g]),!o)return null;var y=Object.keys(g);return ln.createPortal(v(Ht,{children:y.map(function($){var E=g[$],N=E.map(function(_){return{config:_,key:_.key}}),P=typeof i=="function"?i($):i;return v(TM,{className:Z(r,"".concat(r,"-").concat($),s==null?void 0:s($)),style:l==null?void 0:l($),keys:N,motionAppear:!0,...P,onAllRemoved:function(){C($)},children:function(_,D){var M=_.config,I=_.className,T=_.style,j=M.key,A=M.times,B=M.className,H=M.style;return O.createElement(Zx,{...M,ref:D,prefixCls:r,className:Z(I,B),style:L(L({},T),H),times:A,key:j,eventKey:j,onNoticeClose:h})}},$)})}),o)});process.env.NODE_ENV!=="production"&&(eC.displayName="Notifications");var jM=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],AM=function(){return document.body},ey=0;function kM(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function LM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?AM:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=nt(e,jM),u=x.useState(),d=X(u,2),f=d[0],p=d[1],h=x.useRef(),m=v(eC,{container:f,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l}),b=x.useState([]),g=X(b,2),S=g[0],C=g[1],w=x.useMemo(function(){return{open:function($){var E=kM(c,$);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(ey),ey+=1),C(function(N){return[].concat(we(N),[{type:"open",config:E}])})},close:function($){C(function(E){return[].concat(we(E),[{type:"close",key:$}])})},destroy:function(){C(function($){return[].concat(we($),[{type:"destroy"}])})}}},[]);return x.useEffect(function(){p(n())}),x.useEffect(function(){h.current&&S.length&&(S.forEach(function(y){switch(y.type){case"open":h.current.open(y.config);break;case"close":h.current.close(y.key);break;case"destroy":h.current.destroy();break}}),C([]))},[S]),[w,m]}const zM=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorBgElevated:i,colorSuccess:a,colorError:s,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:h,borderRadiusLG:m,zIndexPopup:b,messageNoticeContentPadding:g}=e,S=new Pt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),C=new Pt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Rn(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
154
|
+
${t}-move-up-appear,
|
|
155
|
+
${t}-move-up-enter
|
|
156
|
+
`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
157
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
158
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
159
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:h,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:g,background:i,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:l},[`
|
|
160
|
+
${t}-info > ${n},
|
|
161
|
+
${t}-loading > ${n}`]:{color:c}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},tC=xn("Message",e=>{const t=Tt(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[zM(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));function BM(e,t){return{motionName:t??`${e}-move-up`}}function Ig(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var FM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const VM=FM;var nC=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:VM})})};nC.displayName="LoadingOutlined";const qs=x.forwardRef(nC);var HM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WM={info:v(Hx,{}),success:v(Ax,{}),error:v(El,{}),warning:v(Fx,{}),loading:v(qs,{})};function rC(e){let{prefixCls:t,type:n,icon:r,children:o}=e;return ae("div",{className:Z(`${t}-custom-content`,`${t}-${n}`),children:[r||WM[n],v("span",{children:o})]})}function UM(e){const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=HM(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=x.useContext(et),l=t||s("message"),[,c]=tC(l);return v(Zx,{...Object.assign({},a,{prefixCls:l,className:Z(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:v(rC,{prefixCls:l,type:r,icon:o,children:i})})})}var KM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const GM=8,XM=3,qM=x.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=XM,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d}=x.useContext(et),f=r||u("message"),[,p]=tC(f),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??GM}),m=()=>Z(p,s?`${f}-rtl`:""),b=()=>BM(f,l),g=v("span",{className:`${f}-close-x`,children:v(qu,{className:`${f}-close-icon`})}),[S,C]=LM({prefixCls:f,style:h,className:m,motion:b,closable:!1,closeIcon:g,duration:a,getContainer:()=>(o==null?void 0:o())||(d==null?void 0:d())||document.body,maxCount:i,onAllRemoved:c});return x.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:f,hashId:p})),C});let ty=0;function oC(e){const t=x.useRef(null);return[x.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){process.env.NODE_ENV!=="production"&&xt(!1,"Message","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const y=()=>{};return y.then=()=>{},y}const{open:c,prefixCls:u,hashId:d}=t.current,f=`${u}-notice`,{content:p,icon:h,type:m,key:b,className:g,onClose:S}=l,C=KM(l,["content","icon","type","key","className","onClose"]);let w=b;return w==null&&(ty+=1,w=`antd-message-${ty}`),Ig(y=>(c(Object.assign(Object.assign({},C),{key:w,content:v(rC,{prefixCls:u,type:m,icon:h,children:p}),placement:"top",className:Z(m&&`${f}-${m}`,d,g),onClose:()=>{S==null||S(),y()}})),()=>{r(w)}))},a={open:o,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,d,f)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let h,m;typeof d=="function"?m=d:(h=d,m=f);const b=Object.assign(Object.assign({onClose:m,duration:h},p),{type:l});return o(b)};a[l]=c}),a},[]),v(qM,{...Object.assign({key:"message-holder"},e,{ref:t})})]}function YM(e){return oC(e)}function QM(){const[e,t]=x.useState([]),n=x.useCallback(r=>(t(o=>[].concat(we(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}var Nl=L({},HP),JM=Nl.version,ZM=Nl.render,eD=Nl.unmountComponentAtNode,Yu;try{var tD=Number((JM||"").split(".")[0]);tD>=18&&(Yu=Nl.createRoot)}catch{}function ny(e){var t=Nl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ze(t)==="object"&&(t.usingClientEntryPoint=e)}var ou="__rc_react_root__";function nD(e,t){ny(!0);var n=t[ou]||Yu(t);ny(!1),n.render(e),t[ou]=n}function rD(e,t){ZM(e,t)}function _g(e,t){if(Yu){nD(e,t);return}rD(e,t)}function oD(e){return Qp.apply(this,arguments)}function Qp(){return Qp=Oi(Xn().mark(function e(t){return Xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ou])===null||o===void 0||o.unmount(),delete t[ou]}));case 1:case"end":return r.stop()}},e)})),Qp.apply(this,arguments)}function iD(e){eD(e)}function iC(e){return Jp.apply(this,arguments)}function Jp(){return Jp=Oi(Xn().mark(function e(t){return Xn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Yu===void 0){r.next=2;break}return r.abrupt("return",oD(t));case 2:iD(t);case 3:case"end":return r.stop()}},e)})),Jp.apply(this,arguments)}const aD=(e,t)=>{const n=x.useContext(Cg),r=x.useMemo(()=>{var i;const a=t||Sa[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=x.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Sa.locale:i},[n]);return[r,o]},Qu=aD,sD=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},lD=sD,cD=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}},aC=xn("Space",e=>[cD(e),lD(e)]);var sC=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ju=x.createContext(null),La=(e,t)=>{const n=x.useContext(Ju),r=x.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return Z({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},wa=e=>{let{children:t}=e;return v(Ju.Provider,{value:null,children:t})},uD=e=>{var{children:t}=e,n=sC(e,["children"]);return v(Ju.Provider,{value:n,children:t})},dD=e=>{const{getPrefixCls:t,direction:n}=x.useContext(et),{size:r="middle",direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=sC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=t("space-compact",a),[f,p]=aC(d),h=Z(d,p,{[`${d}-rtl`]:n==="rtl",[`${d}-block`]:i,[`${d}-vertical`]:o==="vertical"},s,l),m=x.useContext(Ju),b=Kn(c),g=x.useMemo(()=>b.map((S,C)=>{const w=S&&S.key||`${d}-item-${C}`;return v(uD,{compactSize:r,compactDirection:o,isFirstItem:C===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:C===b.length-1&&(!m||(m==null?void 0:m.isLastItem)),children:S},w)}),[r,b,m]);return b.length===0?null:f(v("div",{...Object.assign({className:h},u),children:g}))},Zu=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},fD=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},pD=xn("Wave",e=>[fD(e)]);function hD(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function gf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&hD(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function gD(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return gf(t)?t:gf(n)?n:gf(r)?r:null}function vf(e){return Number.isNaN(e)?0:e}const vD=e=>{const{className:t,target:n}=e,r=x.useRef(null),[o,i]=x.useState(null),[a,s]=x.useState([]),[l,c]=x.useState(0),[u,d]=x.useState(0),[f,p]=x.useState(0),[h,m]=x.useState(0),[b,g]=x.useState(!1),S={left:l,top:u,width:f,height:h,borderRadius:a.map(w=>`${w}px`).join(" ")};o&&(S["--wave-color"]=o);function C(){const w=getComputedStyle(n);i(gD(n));const y=w.position==="static",{borderLeftWidth:$,borderTopWidth:E}=w;c(y?n.offsetLeft:vf(-parseFloat($))),d(y?n.offsetTop:vf(-parseFloat(E))),p(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:P,borderBottomLeftRadius:_,borderBottomRightRadius:D}=w;s([N,P,D,_].map(M=>vf(parseFloat(M))))}return x.useEffect(()=>{if(n){const w=Rt(()=>{C(),g(!0)});let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver(C),y.observe(n)),()=>{Rt.cancel(w),y==null||y.disconnect()}}},[]),b?v(vr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,y)=>{var $;if(y.deadline||y.propertyName==="opacity"){const E=($=r.current)===null||$===void 0?void 0:$.parentElement;iC(E).then(()=>{var N;(N=E.parentElement)===null||N===void 0||N.removeChild(E)})}return!1},children:w=>{let{className:y}=w;return v("div",{ref:r,className:Z(t,y),style:S})}}):null};function mD(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),_g(v(vD,{target:e,className:t}),n)}function bD(e,t){function n(){const r=e.current;mD(r,t)}return n}const lC=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=O.useContext(et),o=O.useRef(null),i=r("wave"),[,a]=pD(i),s=bD(o,Z(i,a));if(O.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const u=d=>{d.target.tagName==="INPUT"||!Zu(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s()};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0)}},[n]),!O.isValidElement(t))return t??null;const l=Da(t)?Wr(t.ref,o):o;return er(t,{ref:l})};process.env.NODE_ENV!=="production"&&(lC.displayName="Wave");const cC=lC;var yD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uC=x.createContext(void 0),SD=e=>{const{getPrefixCls:t,direction:n}=x.useContext(et),{prefixCls:r,size:o,className:i}=e,a=yD(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=ka();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break;case"middle":case void 0:break;default:process.env.NODE_ENV!=="production"&&xt(!o,"Button.Group","Invalid prop `size`.")}const u=Z(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return v(uC.Provider,{value:o,children:v("div",{...Object.assign({},a,{className:u})})})},wD=SD,ry=/^[\u4e00-\u9fa5]{2}$/,Zp=ry.test.bind(ry);function xD(e){return typeof e=="string"}function fc(e){return e==="text"||e==="link"}function CD(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&xD(e.type)&&Zp(e.props.children)?er(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Zp(e)?v("span",{children:e.split("").join(n)}):v("span",{children:e}):Jx(e)?v("span",{children:e}):e}function $D(e,t){let n=!1;const r=[];return O.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),O.Children.map(r,o=>CD(o,t))}const mf=()=>({width:0,opacity:0,transform:"scale(0)"}),bf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),OD=e=>{let{prefixCls:t,loading:n,existIcon:r}=e;const o=!!n;return r?v("span",{className:`${t}-loading-icon`,children:v(qs,{})}):v(vr,{visible:o,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:mf,onAppearActive:bf,onEnterStart:mf,onEnterActive:bf,onLeaveStart:bf,onLeaveActive:mf,children:(i,a)=>{let{className:s,style:l}=i;return v("span",{className:`${t}-loading-icon`,style:l,ref:a,children:v(qs,{className:s})})}})},ED=OD,oy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ND=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover,
|
|
154
162
|
&:focus,
|
|
155
|
-
&:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},uu(`${t}-primary`,i),uu(`${t}-danger`,a)]}},dm=fm;function hm(e,t,r){const{focusElCls:n,focus:i,borderElCls:a}=r,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function pm(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function gm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},hm(e,n,t)),pm(r,n,t))}}function vm(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function mm(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ym(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},vm(e,t)),mm(e.componentCls,t))}}const bm=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Bg(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},jt=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),Sm=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),wm=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Va=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Gn=(e,t,r,n,i,a,o)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},jt(Object.assign({backgroundColor:"transparent"},a),Object.assign({backgroundColor:"transparent"},o))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),So=e=>({"&:disabled":Object.assign({},Va(e))}),Bl=e=>Object.assign({},So(e)),Kn=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),zl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bl(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),jt({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Gn(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},jt({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Gn(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),So(e))}),xm=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bl(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),jt({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Gn(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},jt({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Gn(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),So(e))}),Cm=e=>Object.assign(Object.assign({},zl(e)),{borderStyle:"dashed"}),Om=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},jt({color:e.colorLinkHover},{color:e.colorLinkActive})),Kn(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},jt({color:e.colorErrorHover},{color:e.colorErrorActive})),Kn(e))}),Em=e=>Object.assign(Object.assign(Object.assign({},jt({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Kn(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Kn(e)),jt({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Pm=e=>Object.assign(Object.assign({},Va(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Va(e))}),Rm=e=>{const{componentCls:t}=e;return{[`${t}-default`]:zl(e),[`${t}-primary`]:xm(e),[`${t}-dashed`]:Cm(e),[`${t}-link`]:Om(e),[`${t}-text`]:Em(e),[`${t}-disabled`]:Pm(e)}},wo=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,iconCls:n,controlHeight:i,fontSize:a,lineHeight:o,lineWidth:s,borderRadius:u,buttonPaddingHorizontal:c}=e,l=Math.max(0,(i-a*o)/2-s),f=c-s,d=`${r}-icon-only`;return[{[`${r}${t}`]:{fontSize:a,height:i,padding:`${l}px ${f}px`,borderRadius:u,[`&${d}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${d}) ${r}-loading-icon > ${n}`]:{marginInlineEnd:e.marginXS}}},{[`${r}${r}-circle${t}`]:Sm(e)},{[`${r}${r}-round${t}`]:wm(e)}]},_m=e=>wo(e),Tm=e=>{const t=ci(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return wo(t,`${e.componentCls}-sm`)},Nm=e=>{const t=ci(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return wo(t,`${e.componentCls}-lg`)},jm=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Fm=pl("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=ci(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return[bm(n),Tm(n),_m(n),Nm(n),jm(n),Rm(n),dm(n),gm(e),ym(e)]});var km=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function Am(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return{loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return{loading:!!e,delay:0}}const $m=(e,t)=>{const{loading:r=!1,prefixCls:n,type:i="default",danger:a,shape:o="default",size:s,disabled:u,className:c,rootClassName:l,children:f,icon:d,ghost:h=!1,block:v=!1,htmlType:g="button"}=e,y=km(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:p,autoInsertSpaceInButton:b,direction:w}=_.useContext(rr),S=p("btn",n),[x,P]=Fm(S),R=_.useContext(li),F=_.useContext(yl),k=u!=null?u:F,N=_.useContext(Il),B=_.useMemo(()=>Am(r),[r]),[E,C]=_.useState(B.loading),[O,T]=_.useState(!1),$=t||_.createRef(),L=()=>_.Children.count(f)===1&&!d&&!jn(i),W=()=>{if(!$||!$.current||b===!1)return;const de=$.current.textContent;L()&&Da(de)?O||T(!0):O&&T(!1)};_.useEffect(()=>{let de=null;B.delay>0?de=window.setTimeout(()=>{de=null,C(!0)},B.delay):C(B.loading);function Me(){de&&(window.clearTimeout(de),de=null)}return Me},[B]),_.useEffect(W,[$]);const ee=de=>{const{onClick:Me}=e;if(E||k){de.preventDefault();return}Me==null||Me(de)};process.env.NODE_ENV!=="production"&&Xt(!(typeof d=="string"&&d.length>2),"Button",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${d}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Xt(!(h&&jn(i)),"Button","`link` or `text` button can't be a `ghost` button.");const re=b!==!1,{compactSize:Q,compactItemClassnames:Y}=Gv(S,w),ue={large:"lg",small:"sm",middle:void 0},Fe=Q||N||s||R,$e=Fe&&ue[Fe]||"",De=E?"loading":d,Be=Jd(y,["navigate"]),qe=Be.href!==void 0&&k,Le=Dt(S,P,{[`${S}-${o}`]:o!=="default"&&o,[`${S}-${i}`]:i,[`${S}-${$e}`]:$e,[`${S}-icon-only`]:!f&&f!==0&&!!De,[`${S}-background-ghost`]:h&&!jn(i),[`${S}-loading`]:E,[`${S}-two-chinese-chars`]:O&&re&&!E,[`${S}-block`]:v,[`${S}-dangerous`]:!!a,[`${S}-rtl`]:w==="rtl",[`${S}-disabled`]:qe},Y,c,l),Ve=d&&!E?d:I(lm,{existIcon:!!d,prefixCls:S,loading:!!E}),ze=f||f===0?um(f,L()&&re):null;if(Be.href!==void 0)return x(lt("a",{...Object.assign({},Be,{className:Le,onClick:ee,ref:$}),children:[Ve,ze]}));let z=lt("button",{...Object.assign({},y,{type:g,className:Le,onClick:ee,disabled:k,ref:$}),children:[Ve,ze]});return jn(i)||(z=I(rm,{disabled:!!E,children:z})),x(z)},pi=_.forwardRef($m);process.env.NODE_ENV!=="production"&&(pi.displayName="Button");pi.Group=am;pi.__ANT_BUTTON=!0;const cu=pi;var Lm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Mm=Lm;var Im={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 00-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 01-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z"}}]},name:"pushpin",theme:"outlined"};const Bm=Im;var zm=Z.createContext({});const Dl=zm;var Fn=2,lu=.16,Dm=.05,Vm=.05,Hm=.15,Vl=5,Hl=4,Wm=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function fu(e){var t=e.r,r=e.g,n=e.b,i=Wn(t,r,n);return{h:i.h*360,s:i.s,v:i.v}}function kn(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Un(t,r,n,!1))}function Um(e,t,r){var n=r/100,i={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return i}function du(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Fn*t:Math.round(e.h)+Fn*t:n=r?Math.round(e.h)+Fn*t:Math.round(e.h)-Fn*t,n<0?n+=360:n>=360&&(n-=360),n}function hu(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-lu*t:t===Hl?n=e.s+lu:n=e.s+Dm*t,n>1&&(n=1),r&&t===Vl&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function pu(e,t,r){var n;return r?n=e.v+Vm*t:n=e.v-Hm*t,n>1&&(n=1),Number(n.toFixed(2))}function Ha(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=ft(e),i=Vl;i>0;i-=1){var a=fu(n),o=kn(ft({h:du(a,i,!0),s:hu(a,i,!0),v:pu(a,i,!0)}));r.push(o)}r.push(kn(n));for(var s=1;s<=Hl;s+=1){var u=fu(n),c=kn(ft({h:du(u,s),s:hu(u,s),v:pu(u,s)}));r.push(c)}return t.theme==="dark"?Wm.map(function(l){var f=l.index,d=l.opacity,h=kn(Um(ft(t.backgroundColor||"#141414"),ft(r[f]),d*100));return h}):r}var Ji={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Qi={},Zi={};Object.keys(Ji).forEach(function(e){Qi[e]=Ha(Ji[e]),Qi[e].primary=Qi[e][5],Zi[e]=Ha(Ji[e],{theme:"dark",backgroundColor:"#141414"}),Zi[e].primary=Zi[e][5]});function qm(e,t){_e(e,"[@ant-design/icons] ".concat(t))}function gu(e){return ne(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ne(e.icon)==="object"||typeof e.icon=="function")}function vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:t[r]=n}return t},{})}function Wa(e,t,r){return r?ke.default.createElement(e.tag,A(A({key:t},vu(e.attrs)),r),(e.children||[]).map(function(n,i){return Wa(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ke.default.createElement(e.tag,A({key:t},vu(e.attrs)),(e.children||[]).map(function(n,i){return Wa(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Wl(e){return Ha(e)[0]}function Ul(e){return e?Array.isArray(e)?e:[e]:[]}var Gm=`
|
|
163
|
+
&:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},oy(`${t}-primary`,o),oy(`${t}-danger`,i)]}},RD=ND;function PD(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function ID(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ed(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},PD(e,r,t)),ID(n,r,t))}}function _D(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function TD(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function MD(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_D(e,t)),TD(e.componentCls,t))}}const DD=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},yi(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Po=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),jD=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),AD=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),eh=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),iu=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Po(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),Tg=e=>({"&:disabled":Object.assign({},eh(e))}),dC=e=>Object.assign({},Tg(e)),au=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),fC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Po({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),iu(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Po({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),iu(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Tg(e))}),kD=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Po({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),iu(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Po({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),iu(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Tg(e))}),LD=e=>Object.assign(Object.assign({},fC(e)),{borderStyle:"dashed"}),zD=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Po({color:e.colorLinkHover},{color:e.colorLinkActive})),au(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Po({color:e.colorErrorHover},{color:e.colorErrorActive})),au(e))}),BD=e=>Object.assign(Object.assign(Object.assign({},Po({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),au(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},au(e)),Po({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),FD=e=>Object.assign(Object.assign({},eh(e)),{[`&${e.componentCls}:hover`]:Object.assign({},eh(e))}),VD=e=>{const{componentCls:t}=e;return{[`${t}-default`]:fC(e),[`${t}-primary`]:kD(e),[`${t}-dashed`]:LD(e),[`${t}-link`]:zD(e),[`${t}-text`]:BD(e),[`${t}-disabled`]:FD(e)}},Mg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c}=e,u=Math.max(0,(o-i*a)/2-s),d=c-s,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:o,padding:`${u}px ${d}px`,borderRadius:l,[`&${f}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:jD(e)},{[`${n}${n}-round${t}`]:AD(e)}]},HD=e=>Mg(e),WD=e=>{const t=Tt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Mg(t,`${e.componentCls}-sm`)},UD=e=>{const t=Tt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Mg(t,`${e.componentCls}-lg`)},KD=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},GD=xn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Tt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[DD(r),WD(r),HD(r),UD(r),KD(r),VD(r),RD(r),ed(e),MD(e)]});var XD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function pC(e){return e==="danger"?{danger:!0}:{type:e}}function qD(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return{loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return{loading:!!e,delay:0}}const YD=(e,t)=>{const{loading:n=!1,prefixCls:r,type:o="default",danger:i,shape:a="default",size:s,disabled:l,className:c,rootClassName:u,children:d,icon:f,ghost:p=!1,block:h=!1,htmlType:m="button"}=e,b=XD(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:g,autoInsertSpaceInButton:S,direction:C}=x.useContext(et),w=g("btn",r),[y,$]=GD(w),E=x.useContext(gr),N=x.useContext(Ei),P=l??N,_=x.useContext(uC),D=x.useMemo(()=>qD(n),[n]),[M,I]=x.useState(D.loading),[T,j]=x.useState(!1),A=t||x.createRef(),B=()=>x.Children.count(d)===1&&!f&&!fc(o),H=()=>{if(!A||!A.current||S===!1)return;const q=A.current.textContent;B()&&Zp(q)?T||j(!0):T&&j(!1)};x.useEffect(()=>{let q=null;D.delay>0?q=window.setTimeout(()=>{q=null,I(!0)},D.delay):I(D.loading);function oe(){q&&(window.clearTimeout(q),q=null)}return oe},[D]),x.useEffect(H,[A]);const U=q=>{const{onClick:oe}=e;if(M||P){q.preventDefault();return}oe==null||oe(q)};process.env.NODE_ENV!=="production"&&xt(!(typeof f=="string"&&f.length>2),"Button",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${f}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&xt(!(p&&fc(o)),"Button","`link` or `text` button can't be a `ghost` button.");const J=S!==!1,{compactSize:F,compactItemClassnames:z}=La(w,C),k={large:"lg",small:"sm",middle:void 0},Q=F||_||s||E,K=Q&&k[Q]||"",Y=M?"loading":f,te=wn(b,["navigate"]),re=te.href!==void 0&&P,ce=Z(w,$,{[`${w}-${a}`]:a!=="default"&&a,[`${w}-${o}`]:o,[`${w}-${K}`]:K,[`${w}-icon-only`]:!d&&d!==0&&!!Y,[`${w}-background-ghost`]:p&&!fc(o),[`${w}-loading`]:M,[`${w}-two-chinese-chars`]:T&&J&&!M,[`${w}-block`]:h,[`${w}-dangerous`]:!!i,[`${w}-rtl`]:C==="rtl",[`${w}-disabled`]:re},z,c,u),ne=f&&!M?f:v(ED,{existIcon:!!f,prefixCls:w,loading:!!M}),he=d||d===0?$D(d,B()&&J):null;if(te.href!==void 0)return y(ae("a",{...Object.assign({},te,{className:ce,onClick:U,ref:A}),children:[ne,he]}));let ee=ae("button",{...Object.assign({},b,{type:m,className:ce,onClick:U,disabled:P,ref:A}),children:[ne,he]});return fc(o)||(ee=v(cC,{disabled:!!M,children:ee})),y(ee)},td=x.forwardRef(YD);process.env.NODE_ENV!=="production"&&(td.displayName="Button");td.Group=wD;td.__ANT_BUTTON=!0;const Ln=td;function iy(e){return!!(e&&e.then)}const QD=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=x.useRef(!1),d=x.useRef(null),[f,p]=Ko(!1),h=function(){i==null||i.apply(void 0,arguments)};x.useEffect(()=>{let g=null;return a&&(g=setTimeout(()=>{var S;(S=d.current)===null||S===void 0||S.focus()})),()=>{g&&clearTimeout(g)}},[]);const m=g=>{iy(g)&&(p(!0),g.then(function(){p(!1,!0),h.apply(void 0,arguments),u.current=!1},S=>(p(!1,!0),u.current=!1,Promise.reject(S))))},b=g=>{if(u.current)return;if(u.current=!0,!c){h();return}let S;if(s){if(S=c(g),l&&!iy(S)){u.current=!1,h(g);return}}else if(c.length)S=c(i),u.current=!1;else if(S=c(),!S){h();return}m(S)};return v(Ln,{...Object.assign({},pC(t),{onClick:b,loading:f,prefixCls:r},o,{ref:d}),children:n})},ay=QD,yf=()=>({height:0,opacity:0}),sy=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},JD=e=>({height:e?e.offsetHeight:0}),Sf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",hC=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:yf,onEnterStart:yf,onAppearActive:sy,onEnterActive:sy,onLeaveStart:JD,onLeaveActive:yf,onAppearEnd:Sf,onEnterEnd:Sf,onLeaveEnd:Sf,motionDeadline:500}},ZD=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",qo=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var gC=x.createContext(null),en=process.env.NODE_ENV!=="test"&&Gn()?x.useLayoutEffect:x.useEffect,da=function(t,n){var r=x.useRef(!0);en(function(){if(!r.current)return t()},n),en(function(){return r.current=!1,function(){r.current=!0}},[])},ly=[];function ej(e,t){var n=x.useState(function(){if(!Gn())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),r=X(n,1),o=r[0],i=x.useRef(!1),a=x.useContext(gC),s=x.useState(ly),l=X(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(h){u(function(m){var b=[h].concat(we(m));return b})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return en(function(){return e?a?a(f):f():p(),p},[e]),en(function(){c.length&&(c.forEach(function(h){return h()}),u(ly))},[c]),[o,d]}var wf;function tj(e){if(typeof document>"u")return 0;if(e||wf===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),wf=o-i}return wf}function nj(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var rj="rc-util-locker-".concat(Date.now()),cy=0;function oj(e){var t=!!e,n=x.useState(function(){return cy+=1,"".concat(rj,"_").concat(cy)}),r=X(n,1),o=r[0];en(function(){if(t){var i=tj(),a=nj();bi(`
|
|
164
|
+
html body {
|
|
165
|
+
overflow-y: hidden;
|
|
166
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
167
|
+
}`),o)}else Jc(o);return function(){Jc(o)}},[t,o])}var uy=!1;function ij(e){return typeof e=="boolean"&&(uy=e),uy}var dy=function(t){return t===!1?!1:!Gn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},nd=x.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=x.useState(n),u=X(c,2),d=u[0],f=u[1],p=d||n;x.useEffect(function(){(s||n)&&f(n)},[n,s]);var h=x.useState(function(){return dy(o)}),m=X(h,2),b=m[0],g=m[1];x.useEffect(function(){var M=dy(o);g(M??null)});var S=ej(p&&!b,i),C=X(S,2),w=C[0],y=C[1],$=b??w;oj(r&&n&&Gn()&&($===w||$===document.body));var E=null;if(l&&Da(l)&&t){var N=l;E=N.ref}var P=Lu(E,t);if(!p||!Gn()||b===void 0)return null;var _=$===!1||ij(),D=l;return t&&(D=x.cloneElement(l,{ref:P})),v(gC.Provider,{value:y,children:_?D:ln.createPortal(D,$)})});process.env.NODE_ENV!=="production"&&(nd.displayName="Portal");function aj(){var e=L({},x);return e.useId}var fy=0;function vC(e){var t=x.useState("ssr-id"),n=X(t,2),r=n[0],o=n[1],i=aj(),a=i==null?void 0:i();return x.useEffect(function(){if(!i){var s=fy;fy+=1,o("rc_unique_".concat(s))}},[]),e||(process.env.NODE_ENV==="test"?"test-id":a||r)}var sj=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
168
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
169
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
170
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
171
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
172
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
173
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
174
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
175
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
176
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
177
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
178
|
+
summary tabIndex target title type useMap value width wmode wrap`,lj=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
179
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
180
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
181
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
182
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
183
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
184
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,cj="".concat(sj," ").concat(lj).split(/[\s\n]+/),uj="aria-",dj="data-";function py(e,t){return e.indexOf(t)===0}function Ys(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=L({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||py(o,uj))||n.data&&py(o,dj)||n.attr&&cj.includes(o))&&(r[o]=e[o])}),r}function fj(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName;return v(vr,{visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden"),children:function(a,s){var l=a.className,c=a.style;return v("div",{ref:s,style:L(L({},c),n),className:Z("".concat(t,"-mask"),l),...o})}},"mask")}function hy(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function gy(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function pj(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=gy(o),n.top+=gy(o,!0),n}const hj=x.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var vy={width:0,height:0,overflow:"hidden",outline:"none"},Dg=O.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,m=e.onMouseDown,b=e.onMouseUp,g=e.holderRef,S=e.visible,C=e.forceRender,w=e.width,y=e.height,$=O.useRef(),E=O.useRef();O.useImperativeHandle(t,function(){return{focus:function(){var T;(T=$.current)===null||T===void 0||T.focus()},changeActive:function(T){var j=document,A=j.activeElement;T&&A===E.current?$.current.focus():!T&&A===$.current&&E.current.focus()}}});var N={};w!==void 0&&(N.width=w),y!==void 0&&(N.height=y);var P;s&&(P=v("div",{className:"".concat(n,"-footer"),children:s}));var _;i&&(_=v("div",{className:"".concat(n,"-header"),children:v("div",{className:"".concat(n,"-title"),id:a,children:i})}));var D;l&&(D=v("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close"),children:c||v("span",{className:"".concat(n,"-close-x")})}));var M=ae("div",{className:"".concat(n,"-content"),children:[D,_,v("div",{className:"".concat(n,"-body"),style:f,...p,children:d}),P]});return ae("div",{role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:g,style:L(L({},o),N),className:Z(n,r),onMouseDown:m,onMouseUp:b,children:[v("div",{tabIndex:0,ref:$,style:vy,"aria-hidden":"true"}),v(hj,{shouldUpdate:S||C,children:h?h(M):M}),v("div",{tabIndex:0,ref:E,style:vy,"aria-hidden":"true"})]},"dialog-element")});process.env.NODE_ENV!=="production"&&(Dg.displayName="Panel");var mC=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=O.useRef(),h=x.useState(),m=X(h,2),b=m[0],g=m[1],S={};b&&(S.transformOrigin=b);function C(){var w=pj(p.current);g(f?"".concat(f.x-w.left,"px ").concat(f.y-w.top,"px"):"")}return v(vr,{visible:a,onVisibleChanged:d,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:c,removeOnLeave:l,ref:p,children:function(w,y){var $=w.className,E=w.style;return v(Dg,{...e,ref:t,title:r,ariaId:u,prefixCls:n,holderRef:y,style:L(L(L({},E),o),S),className:Z(i,$)})}})});mC.displayName="Content";function gj(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,i=o===void 0?!1:o,a=e.keyboard,s=a===void 0?!0:a,l=e.focusTriggerAfterClose,c=l===void 0?!0:l,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,h=e.afterClose,m=e.transitionName,b=e.animation,g=e.closable,S=g===void 0?!0:g,C=e.mask,w=C===void 0?!0:C,y=e.maskTransitionName,$=e.maskAnimation,E=e.maskClosable,N=E===void 0?!0:E,P=e.maskStyle,_=e.maskProps,D=e.rootClassName,M=O.useRef(),I=O.useRef(),T=O.useRef(),j=x.useState(i),A=X(j,2),B=A[0],H=A[1],U=vC();function J(){gi(I.current,document.activeElement)||(M.current=document.activeElement)}function F(){if(!gi(I.current,document.activeElement)){var ne;(ne=T.current)===null||ne===void 0||ne.focus()}}function z(ne){if(ne)F();else{if(H(!1),w&&M.current&&c){try{M.current.focus({preventScroll:!0})}catch{}M.current=null}B&&(h==null||h())}}function k(ne){p==null||p(ne)}var Q=O.useRef(!1),K=O.useRef(),Y=function(){clearTimeout(K.current),Q.current=!0},te=function(){K.current=setTimeout(function(){Q.current=!1})},re=null;N&&(re=function(he){Q.current?Q.current=!1:I.current===he.target&&k(he)});function ce(ne){if(s&&ne.keyCode===ie.ESC){ne.stopPropagation(),k(ne);return}i&&ne.keyCode===ie.TAB&&T.current.changeActive(!ne.shiftKey)}return O.useEffect(function(){i&&(H(!0),J())},[i]),O.useEffect(function(){return function(){clearTimeout(K.current)}},[]),ae("div",{className:Z("".concat(n,"-root"),D),...Ys(e,{data:!0}),children:[v(fj,{prefixCls:n,visible:w&&i,motionName:hy(n,y,$),style:L({zIndex:r},P),maskProps:_}),v("div",{tabIndex:-1,onKeyDown:ce,className:Z("".concat(n,"-wrap"),d),ref:I,onClick:re,style:L(L({zIndex:r},u),{},{display:B?null:"none"}),...f,children:v(mC,{...e,onMouseDown:Y,onMouseUp:te,ref:T,closable:S,ariaId:U,prefixCls:n,visible:i&&B,onClose:k,onVisibleChanged:z,motionName:hy(n,m,b)})})]})}var bC=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=x.useState(n),c=X(l,2),u=c[0],d=c[1];return x.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!u?null:v(nd,{open:n||o||u,autoDestroy:!1,getContainer:r,autoLock:n||u,children:v(gj,{...t,destroyOnClose:a,afterClose:function(){s==null||s(),d(!1)}})})};bC.displayName="Dialog";const Yo=x.createContext({}),Qs=e=>{let{children:t,status:n,override:r}=e;const o=O.useContext(Yo),i=O.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return v(Yo.Provider,{value:i,children:t})},yC=()=>Gn()&&window.document.documentElement;let pc;const vj=()=>{if(!yC())return!1;if(pc!==void 0)return pc;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),pc=e.scrollHeight===1,document.body.removeChild(e),pc},mj=e=>({animationDuration:e,animationFillMode:"both"}),bj=e=>({animationDuration:e,animationFillMode:"both"}),rd=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
185
|
+
${i}${e}-enter,
|
|
186
|
+
${i}${e}-appear
|
|
187
|
+
`]:Object.assign(Object.assign({},mj(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},bj(r)),{animationPlayState:"paused"}),[`
|
|
188
|
+
${i}${e}-enter${e}-enter-active,
|
|
189
|
+
${i}${e}-appear${e}-appear-active
|
|
190
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},yj=new Pt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Sj=new Pt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),wj=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[rd(r,yj,Sj,e.motionDurationMid,t),{[`
|
|
191
|
+
${o}${r}-enter,
|
|
192
|
+
${o}${r}-appear
|
|
193
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},xj=new Pt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Cj=new Pt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),$j=new Pt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Oj=new Pt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ej=new Pt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nj=new Pt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Rj=new Pt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Pj=new Pt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Ij={"move-up":{inKeyframes:Rj,outKeyframes:Pj},"move-down":{inKeyframes:xj,outKeyframes:Cj},"move-left":{inKeyframes:$j,outKeyframes:Oj},"move-right":{inKeyframes:Ej,outKeyframes:Nj}},su=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ij[t];return[rd(r,o,i,e.motionDurationMid),{[`
|
|
194
|
+
${r}-enter,
|
|
195
|
+
${r}-appear
|
|
196
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jg=new Pt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ag=new Pt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),kg=new Pt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Lg=new Pt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_j=new Pt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Tj=new Pt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mj=new Pt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Dj=new Pt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),jj={"slide-up":{inKeyframes:jg,outKeyframes:Ag},"slide-down":{inKeyframes:kg,outKeyframes:Lg},"slide-left":{inKeyframes:_j,outKeyframes:Tj},"slide-right":{inKeyframes:Mj,outKeyframes:Dj}},Qo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=jj[t];return[rd(r,o,i,e.motionDurationMid),{[`
|
|
197
|
+
${r}-enter,
|
|
198
|
+
${r}-appear
|
|
199
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Aj=new Pt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),kj=new Pt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),my=new Pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),by=new Pt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Lj=new Pt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zj=new Pt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Bj=new Pt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Fj=new Pt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Vj=new Pt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Hj=new Pt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Wj=new Pt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Uj=new Pt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Kj={zoom:{inKeyframes:Aj,outKeyframes:kj},"zoom-big":{inKeyframes:my,outKeyframes:by},"zoom-big-fast":{inKeyframes:my,outKeyframes:by},"zoom-left":{inKeyframes:Bj,outKeyframes:Fj},"zoom-right":{inKeyframes:Vj,outKeyframes:Hj},"zoom-up":{inKeyframes:Lj,outKeyframes:zj},"zoom-down":{inKeyframes:Wj,outKeyframes:Uj}},Rl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Kj[t];return[rd(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
200
|
+
${r}-enter,
|
|
201
|
+
${r}-appear
|
|
202
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Gj=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
203
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
204
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),SC=Gj;function yy(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Xj=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},yy("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},yy("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:wj(e)}]},qj=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Rn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},yi(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
205
|
+
${t}-body,
|
|
206
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Yj=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},Xo()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},
|
|
207
|
+
${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Qj=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Jj=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},wC=xn("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=Tt(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[qj(o),Yj(o),Qj(o),Xj(o),e.wireframe&&Jj(o),Rl(o,"zoom")]});var Zj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xC(e,t){return v("span",{className:`${e}-close-x`,children:t||v(qu,{className:`${e}-close-icon`})})}const CC=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l}=e,[c]=Qu("Modal",hx());return ae(Ht,{children:[v(Ln,{...Object.assign({onClick:a},l),children:r||(c==null?void 0:c.cancelText)}),v(Ln,{...Object.assign({},pC(n),{loading:o,onClick:i},s),children:t||(c==null?void 0:c.okText)})]})},eA=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,l=Zj(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=x.useContext(et),u=c(),d=t||c("modal"),[,f]=wC(d),p=`${d}-confirm`;let h={};return i?h={closable:o??!1,title:"",footer:"",children:v(OC,{...Object.assign({},e,{confirmPrefixCls:p,rootPrefixCls:u,content:s})})}:h={closable:o??!0,title:a,footer:e.footer===void 0?v(CC,{...Object.assign({},e)}):e.footer,children:s},v(Dg,{...Object.assign({prefixCls:d,className:Z(f,`${d}-pure-panel`,i&&p,i&&`${p}-${i}`,n)},l,{closeIcon:xC(d,r),closable:o},h)})},tA=eA;var nA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let th;const rA=e=>{th={x:e.pageX,y:e.pageY},setTimeout(()=>{th=null},100)};yC()&&document.documentElement.addEventListener("click",rA,!0);const oA=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o}=x.useContext(et),i=_=>{const{onCancel:D}=e;D==null||D(_)},a=_=>{const{onOk:D}=e;D==null||D(_)};process.env.NODE_ENV!=="production"&&xt(!("visible"in e),"Modal","`visible` will be removed in next major version, please use `open` instead.");const{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,closeIcon:h,focusTriggerAfterClose:m=!0,visible:b,width:g=520,footer:S}=e,C=nA(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),w=r("modal",s),y=r(),[$,E]=wC(w),N=Z(d,{[`${w}-centered`]:!!f,[`${w}-wrap-rtl`]:o==="rtl"});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&xt(!("visible"in e),"Modal","`visible` is deprecated, please use `open` instead.");const P=S===void 0?v(CC,{...Object.assign({},e,{onOk:a,onCancel:i})}):S;return $(v(wa,{children:v(Qs,{status:!0,override:!0,children:v(bC,{...Object.assign({width:g},C,{getContainer:p===void 0?n:p,prefixCls:w,rootClassName:Z(E,c),wrapClassName:N,footer:P,visible:u??b,mousePosition:(t=C.mousePosition)!==null&&t!==void 0?t:th,onClose:i,closeIcon:xC(w,h),focusTriggerAfterClose:m,transitionName:qo(y,"zoom",e.transitionName),maskTransitionName:qo(y,"fade",e.maskTransitionName),className:Z(E,l)})})})}))},$C=oA;function OC(e){const{icon:t,onCancel:n,onOk:r,close:o,okText:i,okButtonProps:a,cancelText:s,cancelButtonProps:l,confirmPrefixCls:c,rootPrefixCls:u,type:d,okCancel:f,footer:p,locale:h}=e;process.env.NODE_ENV!=="production"&&xt(!(typeof t=="string"&&t.length>2),"Modal",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${t}\` at https://ant.design/components/icon`);let m=t;if(!t&&t!==null)switch(d){case"info":m=v(Hx,{});break;case"success":m=v(Ax,{});break;case"error":m=v(El,{});break;default:m=v(Fx,{})}const b=e.okType||"primary",g=f??d==="confirm",S=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[C]=Qu("Modal"),w=h||C,y=g&&v(ay,{actionFn:n,close:o,autoFocus:S==="cancel",buttonProps:l,prefixCls:`${u}-btn`,children:s||(w==null?void 0:w.cancelText)});return ae("div",{className:`${c}-body-wrapper`,children:[ae("div",{className:`${c}-body`,children:[m,e.title===void 0?null:v("span",{className:`${c}-title`,children:e.title}),v("div",{className:`${c}-content`,children:e.content})]}),p===void 0?ae("div",{className:`${c}-btns`,children:[y,v(ay,{type:b,actionFn:r,close:o,autoFocus:S==="ok",buttonProps:a,prefixCls:`${u}-btn`,children:i||(g?w==null?void 0:w.okText:w==null?void 0:w.justOkText)})]}):p]})}const zg=e=>{const{close:t,zIndex:n,afterClose:r,visible:o,open:i,keyboard:a,centered:s,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,iconPrefixCls:h,bodyStyle:m,closable:b=!1,closeIcon:g,modalRender:S,focusTriggerAfterClose:C}=e;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&xt(o===void 0,"Modal","`visible` is deprecated, please use `open` instead.");const w=`${d}-confirm`,y=e.width||416,$=e.style||{},E=e.mask===void 0?!0:e.mask,N=e.maskClosable===void 0?!1:e.maskClosable,P=Z(w,`${w}-${e.type}`,{[`${w}-rtl`]:u==="rtl"},e.className);return v(Cn,{prefixCls:p,iconPrefixCls:h,direction:u,children:v($C,{prefixCls:d,className:P,wrapClassName:Z({[`${w}-centered`]:!!e.centered},f),onCancel:()=>t==null?void 0:t({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:qo(p,"zoom",e.transitionName),maskTransitionName:qo(p,"fade",e.maskTransitionName),mask:E,maskClosable:N,maskStyle:c,style:$,bodyStyle:m,width:y,zIndex:n,afterClose:r,keyboard:a,centered:s,getContainer:l,closable:b,closeIcon:g,modalRender:S,focusTriggerAfterClose:C,children:v(OC,{...Object.assign({},e,{confirmPrefixCls:w})})})})};process.env.NODE_ENV!=="production"&&(zg.displayName="ConfirmDialog");const iA=[],pi=iA;var aA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let EC="";function sA(){return EC}function Pl(e){process.env.NODE_ENV!=="production"&&Nx("Modal");const t=document.createDocumentFragment();let n=Object.assign(Object.assign({},e),{close:a,open:!0}),r;function o(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];const d=c.some(f=>f&&f.triggerCancel);e.onCancel&&d&&e.onCancel.apply(e,[()=>{}].concat(we(c.slice(1))));for(let f=0;f<pi.length;f++)if(pi[f]===a){pi.splice(f,1);break}iC(t)}function i(l){var{okText:c,cancelText:u,prefixCls:d}=l,f=aA(l,["okText","cancelText","prefixCls"]);clearTimeout(r),r=setTimeout(()=>{const p=hx(),{getPrefixCls:h,getIconPrefixCls:m}=Eg(),b=h(void 0,sA()),g=d||`${b}-modal`,S=m();_g(v(zg,{...Object.assign({},f,{prefixCls:g,rootPrefixCls:b,iconPrefixCls:S,okText:c,locale:p,cancelText:u||p.cancelText})}),t)})}function a(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];n=Object.assign(Object.assign({},n),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,c)}}),n.visible&&delete n.visible,i(n)}function s(l){typeof l=="function"?n=l(n):n=Object.assign(Object.assign({},n),l),i(n)}return i(n),pi.push(a),{destroy:a,update:s}}function NC(e){return Object.assign(Object.assign({},e),{type:"warning"})}function RC(e){return Object.assign(Object.assign({},e),{type:"info"})}function PC(e){return Object.assign(Object.assign({},e),{type:"success"})}function IC(e){return Object.assign(Object.assign({},e),{type:"error"})}function _C(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function lA(e){let{rootPrefixCls:t}=e;process.env.NODE_ENV!=="production"&&xt(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),EC=t}const cA=(e,t)=>{let{afterClose:n,config:r}=e;var o;const[i,a]=x.useState(!0),[s,l]=x.useState(r),{direction:c,getPrefixCls:u}=x.useContext(et),d=u("modal"),f=u(),p=function(){a(!1);for(var b=arguments.length,g=new Array(b),S=0;S<b;S++)g[S]=arguments[S];const C=g.some(w=>w&&w.triggerCancel);s.onCancel&&C&&s.onCancel.apply(s,[()=>{}].concat(we(g.slice(1))))};x.useImperativeHandle(t,()=>({destroy:p,update:b=>{l(g=>Object.assign(Object.assign({},g),b))}}));const h=(o=s.okCancel)!==null&&o!==void 0?o:s.type==="confirm",[m]=Qu("Modal",Sa.Modal);return v(zg,{...Object.assign({prefixCls:d,rootPrefixCls:f},s,{close:p,open:i,afterClose:n,okText:s.okText||(h?m==null?void 0:m.okText:m==null?void 0:m.justOkText),direction:c,cancelText:s.cancelText||(m==null?void 0:m.cancelText)})})},uA=x.forwardRef(cA);let Sy=0;const dA=x.memo(x.forwardRef((e,t)=>{const[n,r]=QM();return x.useImperativeHandle(t,()=>({patchElement:r}),[]),v(Ht,{children:n})}));function fA(){const e=x.useRef(null),[t,n]=x.useState([]);x.useEffect(()=>{t.length&&(we(t).forEach(a=>{a()}),n([]))},[t]);const r=x.useCallback(i=>function(s){var l;Sy+=1;const c=x.createRef();let u;const d=v(uA,{config:i(s),ref:c,afterClose:()=>{u==null||u()}},`modal-${Sy}`);return u=(l=e.current)===null||l===void 0?void 0:l.patchElement(d),u&&pi.push(u),{destroy:()=>{function f(){var p;(p=c.current)===null||p===void 0||p.destroy()}c.current?f():n(p=>[].concat(we(p),[f]))},update:f=>{function p(){var h;(h=c.current)===null||h===void 0||h.update(f)}c.current?p():n(h=>[].concat(we(h),[p]))}}},[]);return[x.useMemo(()=>({info:r(RC),success:r(PC),error:r(IC),warning:r(NC),confirm:r(_C)}),[]),v(dA,{ref:e},"modal-holder")]}function xf(e){return e!==void 0}function An(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ko(function(){return xf(o)?o:xf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=X(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,p=sr(i),h=Ko([d]),m=X(h,2),b=m[0],g=m[1];da(function(){var C=b[0];c!==C&&p(c,C)},[b]),da(function(){xf(o)||u(o)},[o]);var S=sr(function(C,w){u(C,w),g([d],w)});return[f,S]}const Il=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var TC=x.createContext(null);function pA(){return x.useContext(TC)}function hA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=x.useState(!1),n=X(t,2),r=n[0],o=n[1],i=x.useRef(null),a=function(){window.clearTimeout(i.current)};x.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[r,s,a]}function MC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=x.useRef(null),n=x.useRef(null);x.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function gA(e,t,n,r){var o=x.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},x.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var vA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Wi=void 0;function mA(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,m=e.component,b=m===void 0?"div":m,g=nt(e,vA),S=a&&!p;function C(N){l(c,N)}x.useEffect(function(){return function(){C(null)}},[]);var w=i&&o!==Wi?i(o):f,y;r||(y={opacity:S?0:1,height:S?0:Wi,overflowY:S?"hidden":Wi,order:a?h:Wi,pointerEvents:S?"none":Wi,position:S?"absolute":Wi});var $={};S&&($["aria-hidden"]=!0);var E=v(b,{className:Z(!r&&n,u),style:L(L({},y),d),...$,...g,ref:t,children:w});return a&&(E=v(no,{onResize:function(P){var _=P.offsetWidth;C(_)},disabled:s,children:E})),E}var Ps=x.forwardRef(mA);Ps.displayName="Item";function bA(e){if(typeof MessageChannel>"u")Rt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function yA(){var e=x.useRef(null),t=function(r){e.current||(e.current=[],bA(function(){ln.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ss(e,t){var n=x.useState(t),r=X(n,2),o=r[0],i=r[1],a=sr(function(s){e(function(){i(s)})});return[o,a]}var SA=["component"],wA=["className"],xA=["className"],CA=function(t,n){var r=x.useContext(lu);if(!r){var o=t.component,i=o===void 0?"div":o,a=nt(t,SA);return v(i,{...a,ref:n})}var s=r.className,l=nt(r,wA),c=t.className,u=nt(t,xA);return v(lu.Provider,{value:null,children:v(Ps,{ref:n,className:Z(s,c),...l,...u})})},DC=x.forwardRef(CA);DC.displayName="RawItem";var $A=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],lu=x.createContext(null),jC="responsive",AC="invalidate";function OA(e){return"+ ".concat(e.length," ...")}function EA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,m=e.renderRest,b=e.renderRawRest,g=e.suffix,S=e.component,C=S===void 0?"div":S,w=e.itemComponent,y=e.onVisibleChange,$=nt(e,$A),E=d==="full",N=yA(),P=ss(N,null),_=X(P,2),D=_[0],M=_[1],I=D||0,T=ss(N,new Map),j=X(T,2),A=j[0],B=j[1],H=ss(N,0),U=X(H,2),J=U[0],F=U[1],z=ss(N,0),k=X(z,2),Q=k[0],K=k[1],Y=ss(N,0),te=X(Y,2),re=te[0],ce=te[1],ne=O.useState(null),he=X(ne,2),ee=he[0],q=he[1],oe=O.useState(null),ve=X(oe,2),fe=ve[0],ye=ve[1],me=x.useMemo(function(){return fe===null&&E?Number.MAX_SAFE_INTEGER:fe||0},[fe,D]),Ee=O.useState(!1),Oe=X(Ee,2),bt=Oe[0],pt=Oe[1],rt="".concat(r,"-item"),st=Math.max(J,Q),We=h===jC,Ue=i.length&&We,tt=h===AC,qe=Ue||typeof h=="number"&&i.length>h,Ie=O.useMemo(function(){var se=i;return Ue?D===null&&E?se=i:se=i.slice(0,Math.min(i.length,I/u)):typeof h=="number"&&(se=i.slice(0,h)),se},[i,u,D,h,Ue]),_e=O.useMemo(function(){return Ue?i.slice(me+1):i.slice(Ie.length)},[i,Ie,Ue,me]),lt=O.useCallback(function(se,pe){var ge;return typeof l=="function"?l(se):(ge=l&&(se==null?void 0:se[l]))!==null&&ge!==void 0?ge:pe},[l]),Ct=O.useCallback(a||function(se){return se},[a]);function Ce(se,pe,ge){fe===se&&(pe===void 0||pe===ee)||(ye(se),ge||(pt(se<i.length-1),y==null||y(se)),pe!==void 0&&q(pe))}function Te(se,pe){M(pe.clientWidth)}function Ye(se,pe){B(function(ge){var Me=new Map(ge);return pe===null?Me.delete(se):Me.set(se,pe),Me})}function Qe(se,pe){K(pe),F(Q)}function Et(se,pe){ce(pe)}function It(se){return A.get(lt(Ie[se],se))}en(function(){if(I&&typeof st=="number"&&Ie){var se=re,pe=Ie.length,ge=pe-1;if(!pe){Ce(0,null);return}for(var Me=0;Me<pe;Me+=1){var Xe=It(Me);if(E&&(Xe=Xe||0),Xe===void 0){Ce(Me-1,void 0,!0);break}if(se+=Xe,ge===0&&se<=I||Me===ge-1&&se+It(ge)<=I){Ce(ge,null);break}else if(se+st>I){Ce(Me-1,se-Xe-re+Q);break}}g&&It(0)+re>I&&q(null)}},[I,A,Q,re,lt,Ie]);var Ne=bt&&!!_e.length,Re={};ee!==null&&Ue&&(Re={position:"absolute",left:ee,top:0});var Se={prefixCls:rt,responsive:Ue,component:w,invalidate:tt},xe=s?function(se,pe){var ge=lt(se,pe);return v(lu.Provider,{value:L(L({},Se),{},{order:pe,item:se,itemKey:ge,registerSize:Ye,display:pe<=me}),children:s(se,pe)},ge)}:function(se,pe){var ge=lt(se,pe);return O.createElement(Ps,{...Se,order:pe,key:ge,item:se,renderItem:Ct,itemKey:ge,registerSize:Ye,display:pe<=me})},Pe,Ge={order:Ne?me:Number.MAX_SAFE_INTEGER,className:"".concat(rt,"-rest"),registerSize:Qe,display:Ne};if(b)b&&(Pe=v(lu.Provider,{value:L(L({},Se),Ge),children:b(_e)}));else{var ht=m||OA;Pe=v(Ps,{...Se,...Ge,children:typeof ht=="function"?ht(_e):ht})}var ut=ae(C,{className:Z(!tt&&r,p),style:f,ref:t,...$,children:[Ie.map(xe),qe?Pe:null,g&&v(Ps,{...Se,responsive:We,responsiveDisabled:!Ue,order:me,className:"".concat(rt,"-suffix"),registerSize:Et,display:!0,style:Re,children:g})]});return We&&(ut=v(no,{onResize:Te,disabled:!Ue,children:ut})),ut}var eo=x.forwardRef(EA);eo.displayName="Overflow";eo.Item=DC;eo.RESPONSIVE=jC;eo.INVALIDATE=AC;var cu=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,v("span",{className:n,onMouseDown:function(u){u.preventDefault(),i&&i(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0,children:l!==void 0?l:v("span",{className:Z(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")})),children:s})})},NA=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,p=t.activeDescendantId,h=t.value,m=t.maxLength,b=t.onKeyDown,g=t.onMouseDown,S=t.onChange,C=t.onPaste,w=t.onCompositionStart,y=t.onCompositionEnd,$=t.open,E=t.attrs,N=s||v("input",{}),P=N,_=P.ref,D=P.props,M=D.onKeyDown,I=D.onChange,T=D.onMouseDown,j=D.onCompositionStart,A=D.onCompositionEnd,B=D.style;return Hs(!("maxLength"in N.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),N=x.cloneElement(N,L(L(L({type:"search"},D),{},{id:a,ref:Wr(n,_),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:Z("".concat(i,"-selection-search-input"),(r=N)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":$,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":p},E),{},{value:f?h:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:L(L({},B),{},{opacity:f?null:0}),onKeyDown:function(U){b(U),M&&M(U)},onMouseDown:function(U){g(U),T&&T(U)},onChange:function(U){S(U),I&&I(U)},onCompositionStart:function(U){w(U),j&&j(U)},onCompositionEnd:function(U){y(U),A&&A(U)},onPaste:C})),N},Bg=x.forwardRef(NA);Bg.displayName="Input";function Fg(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var RA=typeof window<"u"&&window.document&&window.document.documentElement,PA=process.env.NODE_ENV!=="test"&&RA;function IA(e){return e!=null}function wy(e){return["string","number"].includes(Ze(e))}function kC(e){var t=void 0;return e&&(wy(e.title)?t=e.title.toString():wy(e.label)&&(t=e.label.toString())),t}function _A(e,t){PA?x.useLayoutEffect(e,t):x.useEffect(e,t)}function TA(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var xy=function(t){t.preventDefault(),t.stopPropagation()},MA=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,f=t.showSearch,p=t.autoFocus,h=t.autoComplete,m=t.activeDescendantId,b=t.tabIndex,g=t.removeIcon,S=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,y=w===void 0?function(q){return"+ ".concat(q.length," ...")}:w,$=t.tagRender,E=t.onToggleOpen,N=t.onRemove,P=t.onInputChange,_=t.onInputPaste,D=t.onInputKeyDown,M=t.onInputMouseDown,I=t.onInputCompositionStart,T=t.onInputCompositionEnd,j=x.useRef(null),A=O.useState(0),B=X(A,2),H=B[0],U=B[1],J=O.useState(!1),F=X(J,2),z=F[0],k=F[1],Q="".concat(r,"-selection"),K=i||d==="multiple"&&s===!1||d==="tags"?a:"",Y=d==="tags"||d==="multiple"&&s===!1||f&&(i||z);_A(function(){U(j.current.scrollWidth)},[K]);function te(q,oe,ve,fe,ye){return ae("span",{className:Z("".concat(Q,"-item"),W({},"".concat(Q,"-item-disabled"),ve)),title:kC(q),children:[v("span",{className:"".concat(Q,"-item-content"),children:oe}),fe&&v(cu,{className:"".concat(Q,"-item-remove"),onMouseDown:xy,onClick:ye,customizeIcon:g,children:"×"})]})}function re(q,oe,ve,fe,ye){var me=function(Oe){xy(Oe),E(!i)};return v("span",{onMouseDown:me,children:$({label:oe,value:q,disabled:ve,closable:fe,onClose:ye})})}function ce(q){var oe=q.disabled,ve=q.label,fe=q.value,ye=!u&&!oe,me=ve;if(typeof C=="number"&&(typeof ve=="string"||typeof ve=="number")){var Ee=String(me);Ee.length>C&&(me="".concat(Ee.slice(0,C),"..."))}var Oe=function(pt){pt&&pt.stopPropagation(),N(q)};return typeof $=="function"?re(fe,me,oe,ye,Oe):te(q,me,oe,ye,Oe)}function ne(q){var oe=typeof y=="function"?y(q):y;return te({title:oe},oe,!1)}var he=ae("div",{className:"".concat(Q,"-search"),style:{width:H},onFocus:function(){k(!0)},onBlur:function(){k(!1)},children:[v(Bg,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:h,editable:Y,activeDescendantId:m,value:K,onKeyDown:D,onMouseDown:M,onChange:P,onPaste:_,onCompositionStart:I,onCompositionEnd:T,tabIndex:b,attrs:Ys(t,!0)}),ae("span",{ref:j,className:"".concat(Q,"-search-mirror"),"aria-hidden":!0,children:[K," "]})]}),ee=v(eo,{prefixCls:"".concat(Q,"-overflow"),data:o,renderItem:ce,renderRest:ne,suffix:he,itemKey:TA,maxCount:S});return ae(Ht,{children:[ee,!o.length&&!K&&v("span",{className:"".concat(Q,"-placeholder"),children:c})]})},DA=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,p=t.placeholder,h=t.tabIndex,m=t.showSearch,b=t.searchValue,g=t.activeValue,S=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,y=t.onInputChange,$=t.onInputPaste,E=t.onInputCompositionStart,N=t.onInputCompositionEnd,P=x.useState(!1),_=X(P,2),D=_[0],M=_[1],I=u==="combobox",T=I||m,j=f[0],A=b||"";I&&g&&!D&&(A=g),x.useEffect(function(){I&&M(!1)},[I,g]);var B=u!=="combobox"&&!d&&!m?!1:!!A,H=kC(j),U=function(){if(j)return null;var F=B?{visibility:"hidden"}:void 0;return v("span",{className:"".concat(r,"-selection-placeholder"),style:F,children:p})};return ae(Ht,{children:[v("span",{className:"".concat(r,"-selection-search"),children:v(Bg,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:A,onKeyDown:C,onMouseDown:w,onChange:function(F){M(!0),y(F)},onPaste:$,onCompositionStart:E,onCompositionEnd:N,tabIndex:h,attrs:Ys(t,!0),maxLength:I?S:void 0})}),!I&&j&&!B&&v("span",{className:"".concat(r,"-selection-item"),title:H,children:j.label}),U()]})};function jA(e){return![ie.ESC,ie.SHIFT,ie.BACKSPACE,ie.TAB,ie.WIN_KEY,ie.ALT,ie.META,ie.WIN_KEY_RIGHT,ie.CTRL,ie.SEMICOLON,ie.EQUALS,ie.CAPS_LOCK,ie.CONTEXT_MENU,ie.F1,ie.F2,ie.F3,ie.F4,ie.F5,ie.F6,ie.F7,ie.F8,ie.F9,ie.F10,ie.F11,ie.F12].includes(e)}var AA=function(t,n){var r=O.useRef(null),o=O.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,p=t.onToggleOpen,h=t.onInputKeyDown,m=t.domRef;x.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var b=MC(0),g=X(b,2),S=g[0],C=g[1],w=function(B){var H=B.which;(H===ie.UP||H===ie.DOWN)&&B.preventDefault(),h&&h(B),H===ie.ENTER&&s==="tags"&&!o.current&&!a&&(f==null||f(B.target.value)),jA(H)&&p(!0)},y=function(){C(!0)},$=O.useRef(null),E=function(B){d(B,!0,o.current)!==!1&&p(!0)},N=function(){o.current=!0},P=function(B){o.current=!1,s!=="combobox"&&E(B.target.value)},_=function(B){var H=B.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var U=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(U,$.current)}$.current=null,E(H)},D=function(B){var H=B.clipboardData,U=H.getData("text");$.current=U},M=function(B){var H=B.target;if(H!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},I=function(B){var H=S();B.target!==r.current&&!H&&s!=="combobox"&&B.preventDefault(),(s!=="combobox"&&(!l||!H)||!a)&&(a&&u!==!1&&d("",!0,!1),p())},T={inputRef:r,onInputKeyDown:w,onInputMouseDown:y,onInputChange:_,onInputPaste:D,onInputCompositionStart:N,onInputCompositionEnd:P},j=s==="multiple"||s==="tags"?v(MA,{...t,...T}):v(DA,{...t,...T});return v("div",{ref:m,className:"".concat(i,"-selector"),onClick:M,onMouseDown:I,children:j})},LC=x.forwardRef(AA);LC.displayName="Selector";var Cy=x.createContext(null);function $y(e){return e?Array.isArray(e)?e:[e]:[]}function kA(e,t,n,r){return x.useMemo(function(){var o=$y(n??t),i=$y(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function LA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function zA(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(LA((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function Oy(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function od(e){return e.ownerDocument.defaultView}function nh(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","auto"];n;){var o=od(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY;(r.includes(i)||r.includes(a))&&t.push(n),n=n.parentElement}return t}function hc(e){return Number.isNaN(e)?1:e}function Ey(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ui(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function ko(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function BA(e,t,n,r,o,i,a){var s=x.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=X(s,2),c=l[0],u=l[1],d=x.useRef(0),f=x.useMemo(function(){return t?nh(t):[]},[t]),p=sr(function(){if(t&&n&&e){let nr=function(mn,tn){var kn=mn+J,Ur=tn+U,rr=Math.max(mn,k.left),fo=Math.max(tn,k.top),Kr=Math.min(kn,k.right),mr=Math.min(Ur,k.bottom);return(Kr-rr)*(mr-fo)};var b=t,g=b.style.left,S=b.style.top,C=b.ownerDocument,w=od(b),y=L(L({},o[r]),i);b.style.left="0",b.style.top="0";var $;if(Array.isArray(n))$={x:n[0],y:n[1],width:0,height:0};else{var E=n.getBoundingClientRect();$={x:E.x,y:E.y,width:E.width,height:E.height}}var N=b.getBoundingClientRect(),P=w.getComputedStyle(b),_=P.width,D=P.height,M=C.documentElement,I=M.clientWidth,T=M.clientHeight,j=M.scrollWidth,A=M.scrollHeight,B=M.scrollTop,H=M.scrollLeft,U=N.height,J=N.width,F=$.height,z=$.width,k=y.htmlRegion==="scroll"?{left:-H,top:-B,right:j-H,bottom:A-B}:{left:0,top:0,right:I,bottom:T};(f||[]).forEach(function(mn){if(!(mn instanceof HTMLBodyElement)){var tn=mn.getBoundingClientRect(),kn=mn.offsetHeight,Ur=mn.clientHeight,rr=mn.offsetWidth,fo=mn.clientWidth,Kr=hc(Math.round(tn.width/rr*1e3)/1e3),mr=hc(Math.round(tn.height/kn*1e3)/1e3),at=(rr-fo)*Kr,Je=(kn-Ur)*mr,cn=tn.x+tn.width-at,dn=tn.y+tn.height-Je;k.left=Math.max(k.left,tn.left),k.top=Math.max(k.top,tn.top),k.right=Math.min(k.right,cn),k.bottom=Math.min(k.bottom,dn)}}),b.style.left=g,b.style.top=S;var Q=hc(Math.round(J/parseFloat(_)*1e3)/1e3),K=hc(Math.round(U/parseFloat(D)*1e3)/1e3);if(Q===0||K===0||Xc(n)&&!Zu(n))return;var Y=y.offset,te=y.targetOffset,re=Y||[],ce=X(re,2),ne=ce[0],he=ne===void 0?0:ne,ee=ce[1],q=ee===void 0?0:ee,oe=te||[],ve=X(oe,2),fe=ve[0],ye=fe===void 0?0:fe,me=ve[1],Ee=me===void 0?0:me;$.x+=ye,$.y+=Ee;var Oe=y.points||[],bt=X(Oe,2),pt=bt[0],rt=bt[1],st=Ey(rt),We=Ey(pt),Ue=Ui($,st),tt=Ui(N,We),qe=L({},y),Ie=Ue.x-tt.x+he,_e=Ue.y-tt.y+q,lt=nr(Ie,_e),Ct=Ui($,["t","l"]),Ce=Ui(N,["t","l"]),Te=Ui($,["b","r"]),Ye=Ui(N,["b","r"]),Qe=y.overflow||{},Et=Qe.adjustX,It=Qe.adjustY,Ne=Qe.shiftX,Re=Qe.shiftY,Se=function(tn){return typeof tn=="boolean"?tn:tn>=0},xe=N.y+_e,Pe=xe+U,Ge=Se(It),ht=We[0]===st[0];if(Ge&&We[0]==="t"&&Pe>k.bottom){var ut=_e;ht?ut-=U-F:ut=Ct.y-Ye.y-q,nr(Ie,ut)>lt&&(_e=ut,qe.points=[ko(We,0),ko(st,0)])}if(Ge&&We[0]==="b"&&xe<k.top){var se=_e;ht?se+=U-F:se=Te.y-Ce.y-q,nr(Ie,se)>lt&&(_e=se,qe.points=[ko(We,0),ko(st,0)])}var pe=N.x+Ie,ge=pe+J,Me=Se(Et),Xe=We[1]===st[1];if(Me&&We[1]==="l"&&ge>k.right){var it=Ie;Xe?it-=J-z:it=Ct.x-Ye.x-he,nr(it,_e)>lt&&(Ie=it,qe.points=[ko(We,1),ko(st,1)])}if(Me&&We[1]==="r"&&pe<k.left){var Dt=Ie;Xe?Dt+=J-z:Dt=Te.x-Ce.x-he,nr(Dt,_e)>lt&&(Ie=Dt,qe.points=[ko(We,1),ko(st,1)])}var wt=Ne===!0?0:Ne;typeof wt=="number"&&(pe<k.left&&(Ie-=pe-k.left,$.x+z<k.left+wt&&(Ie+=$.x-k.left+z-wt)),ge>k.right&&(Ie-=ge-k.right,$.x>k.right-wt&&(Ie+=$.x-k.right+wt)));var Mt=Re===!0?0:Re;typeof Mt=="number"&&(xe<k.top&&(_e-=xe-k.top,$.y+F<k.top+Mt&&(_e+=$.y-k.top+F-Mt)),Pe>k.bottom&&(_e-=Pe-k.bottom,$.y>k.bottom-Mt&&(_e+=$.y-k.bottom+Mt)));var ct=N.x+Ie,R=ct+J,V=N.y+_e,G=V+U,ue=$.x,be=ue+z,$e=$.y,de=$e+F,le=Math.max(ct,ue),De=Math.min(R,be),je=(le+De)/2,Ve=je-ct,dt=Math.max(V,$e),on=Math.min(G,de),Yn=(dt+on)/2,_t=Yn-V;a==null||a(t,qe),u({ready:!0,offsetX:Ie/Q,offsetY:_e/K,arrowX:Ve/Q,arrowY:_t/K,scaleX:Q,scaleY:K,align:qe})}}),h=function(){d.current+=1;var g=d.current;Promise.resolve().then(function(){d.current===g&&p()})},m=function(){u(function(g){return L(L({},g),{},{ready:!1})})};return en(m,[r]),en(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function FA(e,t,n,r){en(function(){if(e&&t&&n){let u=function(){r()};var o=t,i=n,a=nh(o),s=nh(i),l=od(i),c=new Set([l].concat(we(a),we(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,n])}function VA(e){var t=e.prefixCls,n=e.align,r=e.arrowX,o=r===void 0?0:r,i=e.arrowY,a=i===void 0?0:i,s=x.useRef();if(!n||!n.points)return null;var l={position:"absolute"};if(n.autoArrow!==!1){var c=n.points[0],u=n.points[1],d=c[0],f=c[1],p=u[0],h=u[1];d===p||!["t","b"].includes(d)?l.top=a:d==="t"?l.top=0:l.bottom=0,f===h||!["l","r"].includes(f)?l.left=o:f==="l"?l.left=0:l.right=0}return v("div",{ref:s,className:"".concat(t,"-arrow"),style:l})}function HA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?React.createElement(vr,mp({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return React.createElement("div",{style:{zIndex:r},className:Z("".concat(t,"-mask"),s)})}):null}var zC=x.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,f=e.arrow,p=e.align,h=e.arrowX,m=e.arrowY,b=e.motion,g=e.maskMotion,S=e.forceRender,C=e.getPopupContainer,w=e.autoDestroy,y=e.portal,$=e.zIndex,E=e.onMouseEnter,N=e.onMouseLeave,P=e.ready,_=e.offsetX,D=e.offsetY,M=e.onAlign,I=e.onPrepare,T=e.stretch,j=e.targetWidth,A=e.targetHeight,B=typeof n=="function"?n():n,H=l||c,U=(C==null?void 0:C.length)>0,J=x.useState(!C||!U),F=X(J,2),z=F[0],k=F[1];if(en(function(){!z&&U&&a&&k(!0)},[z,U,a]),!z)return null;var Q=P||!l?{left:_,top:D}:{left:"-1000vw",top:"-1000vh"},K={};return T&&(T.includes("height")&&A?K.height=A:T.includes("minHeight")&&A&&(K.minHeight=A),T.includes("width")&&j?K.width=j:T.includes("minWidth")&&j&&(K.minWidth=j)),l||(K.pointerEvents="none"),ae(y,{open:S||H,getContainer:C&&function(){return C(a)},autoDestroy:w,children:[v(HA,{prefixCls:o,open:l,zIndex:$,mask:d,motion:g}),v(no,{onResize:M,disabled:!l,children:function(Y){return v(vr,{motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(o,"-hidden"),...b,onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(re){var ce;b==null||(ce=b.onVisibleChanged)===null||ce===void 0||ce.call(b,re),s(re)},children:function(te,re){var ce=te.className,ne=te.style,he=Z(o,ce,r);return ae("div",{ref:Wr(Y,t,re),className:he,style:L(L(L(L({},Q),K),ne),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:E,onMouseLeave:N,onClick:u,children:[f&&v(VA,{prefixCls:o,align:p,arrowX:h,arrowY:m}),B]})}})}})]})});process.env.NODE_ENV!=="production"&&(zC.displayName="Popup");var BC=x.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Da(n),i=x.useCallback(function(s){hg(t,r?r(s):s)},[r]),a=Lu(i,n.ref);return o?x.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(BC.displayName="TriggerWrapper");var WA=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function UA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nd,t=x.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,m=n.mouseEnterDelay,b=n.mouseLeaveDelay,g=b===void 0?.1:b,S=n.focusDelay,C=n.blurDelay,w=n.mask,y=n.maskClosable,$=y===void 0?!0:y,E=n.getPopupContainer,N=n.forceRender,P=n.autoDestroy,_=n.destroyPopupOnHide,D=n.popup,M=n.popupClassName,I=n.popupStyle,T=n.popupPlacement,j=n.builtinPlacements,A=j===void 0?{}:j,B=n.popupAlign,H=n.zIndex,U=n.stretch,J=n.getPopupClassNameFromAlign,F=n.alignPoint,z=n.onPopupClick,k=n.onPopupAlign,Q=n.arrow,K=n.popupMotion,Y=n.maskMotion,te=n.popupTransitionName,re=n.popupAnimation,ce=n.maskTransitionName,ne=n.maskAnimation,he=n.className,ee=n.getTriggerDOMNode,q=nt(n,WA),oe=P||_||!1,ve=x.useState(!1),fe=X(ve,2),ye=fe[0],me=fe[1];en(function(){me(Il())},[]);var Ee=x.useRef({}),Oe=x.useContext(Cy),bt=x.useMemo(function(){return{registerSubPopup:function(gt,At){Ee.current[gt]=At,Oe==null||Oe.registerSubPopup(gt,At)}}},[Oe]),pt=vC(),rt=x.useState(null),st=X(rt,2),We=st[0],Ue=st[1],tt=sr(function(Ke){Xc(Ke)&&We!==Ke&&Ue(Ke),Oe==null||Oe.registerSubPopup(pt,Ke)}),qe=x.useState(null),Ie=X(qe,2),_e=Ie[0],lt=Ie[1],Ct=sr(function(Ke){Xc(Ke)&&_e!==Ke&<(Ke)}),Ce=x.Children.only(a),Te=(Ce==null?void 0:Ce.props)||{},Ye={},Qe=sr(function(Ke){var gt,At,Yt=_e;return(Yt==null?void 0:Yt.contains(Ke))||(Yt==null||(gt=Yt.getRootNode())===null||gt===void 0?void 0:gt.host)===Ke||Ke===Yt||(We==null?void 0:We.contains(Ke))||(We==null||(At=We.getRootNode())===null||At===void 0?void 0:At.host)===Ke||Ke===We||Object.values(Ee.current).some(function(an){return an.contains(Ke)||Ke===an})}),Et=Oy(i,K,re,te),It=Oy(i,Y,ne,ce),Ne=x.useState(f||!1),Re=X(Ne,2),Se=Re[0],xe=Re[1],Pe=d??Se,Ge=sr(function(Ke){d===void 0&&xe(Ke)});en(function(){xe(d||!1)},[d]);var ht=x.useRef(Pe);ht.current=Pe;var ut=sr(function(Ke){Pe!==Ke&&(Ge(Ke),p==null||p(Ke))}),se=x.useRef(),pe=function(){clearTimeout(se.current)},ge=function(gt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;pe(),At===0?ut(gt):se.current=setTimeout(function(){ut(gt)},At*1e3)};x.useEffect(function(){return pe},[]);var Me=x.useState(!1),Xe=X(Me,2),it=Xe[0],Dt=Xe[1],wt=x.useRef(!0);en(function(){(!wt.current||Pe)&&Dt(!0),wt.current=!0},[Pe]);var Mt=x.useState(null),ct=X(Mt,2),R=ct[0],V=ct[1],G=x.useState([0,0]),ue=X(G,2),be=ue[0],$e=ue[1],de=function(gt){$e([gt.clientX,gt.clientY])},le=BA(Pe,We,F?be:_e,T,A,B,k),De=X(le,9),je=De[0],Ve=De[1],dt=De[2],on=De[3],Yn=De[4],_t=De[5],nr=De[6],mn=De[7],tn=De[8],kn=sr(function(){it||tn()});FA(Pe,_e,We,kn),en(function(){kn()},[be]),en(function(){Pe&&!(A!=null&&A[T])&&kn()},[JSON.stringify(B)]);var Ur=x.useMemo(function(){var Ke=zA(A,i,mn,F);return Z(Ke,J==null?void 0:J(mn))},[mn,J,A,i,F]);x.useImperativeHandle(r,function(){return{forceAlign:kn}});var rr=function(gt){Dt(!1),tn(),h==null||h(gt)},fo=function(){return new Promise(function(gt){V(function(){return gt})})};en(function(){R&&(tn(),R(),V(null))},[R]);var Kr=x.useState(0),mr=X(Kr,2),at=mr[0],Je=mr[1],cn=x.useState(0),dn=X(cn,2),nn=dn[0],Dn=dn[1],Bn=function(gt,At){if(kn(),U){var Yt=At.getBoundingClientRect();Je(Yt.width),Dn(Yt.height)}},jt=kA(ye,l,c,u),yt=X(jt,2),$t=yt[0],Ft=yt[1],fn=function(gt,At,Yt,an){Ye[gt]=function(Jd){var zi;an==null||an(Jd),ge(At,Yt);for(var rs=arguments.length,rb=new Array(rs>1?rs-1:0),ql=1;ql<rs;ql++)rb[ql-1]=arguments[ql];(zi=Te[gt])===null||zi===void 0||zi.call.apply(zi,[Te,Jd].concat(rb))}},Gr=$t.has("click"),Xr=Ft.has("click")||Ft.has("contextMenu");(Gr||Xr)&&(Ye.onClick=function(Ke){var gt;ht.current&&Xr?ge(!1):!ht.current&&Gr&&(de(Ke),ge(!0));for(var At=arguments.length,Yt=new Array(At>1?At-1:0),an=1;an<At;an++)Yt[an-1]=arguments[an];(gt=Te.onClick)===null||gt===void 0||gt.call.apply(gt,[Te,Ke].concat(Yt))}),x.useEffect(function(){if(Xr&&We&&(!w||$)){var Ke=function(zi){var rs=zi.target;ht.current&&!Qe(rs)&&ge(!1)},gt=od(We),At=_e==null?void 0:_e.getRootNode();gt.addEventListener("click",Ke);var Yt=At&&At!==_e.ownerDocument;if(Yt&&At.addEventListener("click",Ke),process.env.NODE_ENV!=="production"){var an=We.getRootNode();mt(At===an,"trigger element and popup element should in same shadow root.")}return function(){gt.removeEventListener("click",Ke),Yt&&At.removeEventListener("click",Ke)}}},[Xr,_e,We,w,$]);var Yd=$t.has("hover"),kP=Ft.has("hover"),eb,tb;Yd&&(fn("onMouseEnter",!0,m,function(Ke){de(Ke)}),eb=function(){ge(!0,m)},F&&(Ye.onMouseMove=function(Ke){var gt;(gt=Te.onMouseMove)===null||gt===void 0||gt.call(Te,Ke)})),kP&&(fn("onMouseLeave",!1,g),tb=function(){ge(!1,g)}),$t.has("focus")&&fn("onFocus",!0,S),Ft.has("focus")&&fn("onBlur",!1,C),$t.has("contextMenu")&&(Ye.onContextMenu=function(Ke){var gt;de(Ke),ge(!0),Ke.preventDefault();for(var At=arguments.length,Yt=new Array(At>1?At-1:0),an=1;an<At;an++)Yt[an-1]=arguments[an];(gt=Te.onContextMenu)===null||gt===void 0||gt.call.apply(gt,[Te,Ke].concat(Yt))}),he&&(Ye.className=Z(Te.className,he));var Qd=L(L({},Te),Ye),nb={},LP=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];LP.forEach(function(Ke){q[Ke]&&(nb[Ke]=function(){for(var gt,At=arguments.length,Yt=new Array(At),an=0;an<At;an++)Yt[an]=arguments[an];(gt=Qd[Ke])===null||gt===void 0||gt.call.apply(gt,[Qd].concat(Yt)),q[Ke].apply(q,Yt)})});var zP=x.cloneElement(Ce,L(L({},Qd),nb));return ae(Ht,{children:[v(no,{disabled:!Pe,ref:Ct,onResize:Bn,children:v(BC,{getTriggerDOMNode:ee,children:zP})}),v(Cy.Provider,{value:bt,children:v(zC,{portal:e,ref:tt,prefixCls:i,popup:D,className:Z(M,Ur),style:I,target:_e,onMouseEnter:eb,onMouseLeave:tb,zIndex:H,open:Pe,keepDom:it,onClick:z,mask:w,motion:Et,maskMotion:It,onVisibleChanged:rr,onPrepare:fo,forceRender:N,autoDestroy:oe,getPopupContainer:E,align:mn,arrow:Q,ready:je,offsetX:Ve,offsetY:dt,arrowX:on,arrowY:Yn,onAlign:kn,stretch:U,targetWidth:at/_t,targetHeight:nn/nr})})]})});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const FC=UA(nd);var KA=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],GA=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},XA=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,p=f===void 0?"ltr":f,h=t.placement,m=t.dropdownMatchSelectWidth,b=t.dropdownRender,g=t.dropdownAlign,S=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,y=t.onPopupVisibleChange,$=t.onPopupMouseEnter,E=nt(t,KA),N="".concat(r,"-dropdown"),P=a;b&&(P=b(a));var _=x.useMemo(function(){return GA(m)},[m]),D=l?"".concat(N,"-").concat(l):c,M=x.useRef(null);x.useImperativeHandle(n,function(){return{getPopupElement:function(){return M.current}}});var I=L({minWidth:s},u);return typeof m=="number"?I.width=m:m&&(I.width=s),v(FC,{...E,showAction:y?["click"]:[],hideAction:y?["click"]:[],popupPlacement:h||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:N,popupTransitionName:D,popup:v("div",{ref:M,onMouseEnter:$,children:P}),popupAlign:g,popupVisible:o,getPopupContainer:S,popupClassName:Z(d,W({},"".concat(N,"-empty"),C)),popupStyle:I,getTriggerDOMNode:w,onPopupVisibleChange:y,children:i})},VC=x.forwardRef(XA);VC.displayName="SelectTrigger";function Ny(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function HC(e,t){var n=e||{},r=n.label,o=n.value,i=n.options;return{label:r||(t?"children":"label"),value:o||"value",options:i||"options"}}function qA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=HC(n,!1),a=i.label,s=i.value,l=i.options;function c(u,d){u.forEach(function(f){var p=f[a];if(d||!(l in f)){var h=f[s];o.push({key:Ny(f,o.length),groupOption:d,data:f,label:p,value:h})}else{var m=p;m===void 0&&r&&(m=f.label),o.push({key:Ny(f,o.length),group:!0,data:f,label:m}),c(f[l],!0)}})}return c(e,!1),o}function rh(e){var t=L({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return mt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function YA(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=wg(a),l=s[0],c=s.slice(1);if(!l)return[i];var u=i.split(l);return n=n||u.length>1,u.reduce(function(d,f){return[].concat(we(d),we(r(f,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var QA=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],JA=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function uu(e){return e==="tags"||e==="multiple"}var WC=x.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,m=h===void 0?"Not Found":h,b=e.onClear,g=e.mode,S=e.disabled,C=e.loading,w=e.getInputElement,y=e.getRawInputElement,$=e.open,E=e.defaultOpen,N=e.onDropdownVisibleChange,P=e.activeValue,_=e.onActiveValueChange,D=e.activeDescendantId,M=e.searchValue,I=e.autoClearSearchValue,T=e.onSearch,j=e.onSearchSplit,A=e.tokenSeparators,B=e.allowClear,H=e.showArrow,U=e.inputIcon,J=e.clearIcon,F=e.OptionList,z=e.animation,k=e.transitionName,Q=e.dropdownStyle,K=e.dropdownClassName,Y=e.dropdownMatchSelectWidth,te=e.dropdownRender,re=e.dropdownAlign,ce=e.placement,ne=e.getPopupContainer,he=e.showAction,ee=he===void 0?[]:he,q=e.onFocus,oe=e.onBlur,ve=e.onKeyUp,fe=e.onKeyDown,ye=e.onMouseDown,me=nt(e,QA),Ee=uu(g),Oe=(s!==void 0?s:Ee)||g==="combobox",bt=L({},me);JA.forEach(function(at){delete bt[at]}),u==null||u.forEach(function(at){delete bt[at]});var pt=x.useState(!1),rt=X(pt,2),st=rt[0],We=rt[1];x.useEffect(function(){We(Il())},[]);var Ue=x.useRef(null),tt=x.useRef(null),qe=x.useRef(null),Ie=x.useRef(null),_e=x.useRef(null),lt=hA(),Ct=X(lt,3),Ce=Ct[0],Te=Ct[1],Ye=Ct[2];x.useImperativeHandle(t,function(){var at,Je;return{focus:(at=Ie.current)===null||at===void 0?void 0:at.focus,blur:(Je=Ie.current)===null||Je===void 0?void 0:Je.blur,scrollTo:function(dn){var nn;return(nn=_e.current)===null||nn===void 0?void 0:nn.scrollTo(dn)}}});var Qe=x.useMemo(function(){var at;if(g!=="combobox")return M;var Je=(at=d[0])===null||at===void 0?void 0:at.value;return typeof Je=="string"||typeof Je=="number"?String(Je):""},[M,g,d]),Et=g==="combobox"&&typeof w=="function"&&w()||null,It=typeof y=="function"&&y(),Ne=Lu(tt,It==null||(n=It.props)===null||n===void 0?void 0:n.ref),Re=An(void 0,{defaultValue:E,value:$}),Se=X(Re,2),xe=Se[0],Pe=Se[1],Ge=xe,ht=!m&&p;(S||ht&&Ge&&g==="combobox")&&(Ge=!1);var ut=ht?!1:Ge,se=x.useCallback(function(at){var Je=at!==void 0?at:!Ge;S||(Pe(Je),Ge!==Je&&(N==null||N(Je)))},[S,Ge,Pe,N]),pe=x.useMemo(function(){return(A||[]).some(function(at){return[`
|
|
208
|
+
`,`\r
|
|
209
|
+
`].includes(at)})},[A]),ge=function(Je,cn,dn){var nn=!0,Dn=Je;_==null||_(null);var Bn=dn?null:YA(Je,A);return g!=="combobox"&&Bn&&(Dn="",j==null||j(Bn),se(!1),nn=!1),T&&Qe!==Dn&&T(Dn,{source:cn?"typing":"effect"}),nn},Me=function(Je){!Je||!Je.trim()||T(Je,{source:"submit"})};x.useEffect(function(){!Ge&&!Ee&&g!=="combobox"&&ge("",!1,!1)},[Ge]),x.useEffect(function(){xe&&S&&Pe(!1),S&&Te(!1)},[S]);var Xe=MC(),it=X(Xe,2),Dt=it[0],wt=it[1],Mt=function(Je){var cn=Dt(),dn=Je.which;if(dn===ie.ENTER&&(g!=="combobox"&&Je.preventDefault(),Ge||se(!0)),wt(!!Qe),dn===ie.BACKSPACE&&!cn&&Ee&&!Qe&&d.length){for(var nn=we(d),Dn=null,Bn=nn.length-1;Bn>=0;Bn-=1){var jt=nn[Bn];if(!jt.disabled){nn.splice(Bn,1),Dn=jt;break}}Dn&&f(nn,{type:"remove",values:[Dn]})}for(var yt=arguments.length,$t=new Array(yt>1?yt-1:0),Ft=1;Ft<yt;Ft++)$t[Ft-1]=arguments[Ft];if(Ge&&_e.current){var fn;(fn=_e.current).onKeyDown.apply(fn,[Je].concat($t))}fe==null||fe.apply(void 0,[Je].concat($t))},ct=function(Je){for(var cn=arguments.length,dn=new Array(cn>1?cn-1:0),nn=1;nn<cn;nn++)dn[nn-1]=arguments[nn];if(Ge&&_e.current){var Dn;(Dn=_e.current).onKeyUp.apply(Dn,[Je].concat(dn))}ve==null||ve.apply(void 0,[Je].concat(dn))},R=function(Je){var cn=d.filter(function(dn){return dn!==Je});f(cn,{type:"remove",values:[Je]})},V=x.useRef(!1),G=function(){Te(!0),S||(q&&!V.current&&q.apply(void 0,arguments),ee.includes("focus")&&se(!0)),V.current=!0},ue=function(){Te(!1,function(){V.current=!1,se(!1)}),!S&&(Qe&&(g==="tags"?T(Qe,{source:"submit"}):g==="multiple"&&T("",{source:"blur"})),oe&&oe.apply(void 0,arguments))},be=[];x.useEffect(function(){return function(){be.forEach(function(at){return clearTimeout(at)}),be.splice(0,be.length)}},[]);var $e=function(Je){var cn,dn=Je.target,nn=(cn=qe.current)===null||cn===void 0?void 0:cn.getPopupElement();if(nn&&nn.contains(dn)){var Dn=setTimeout(function(){var $t=be.indexOf(Dn);if($t!==-1&&be.splice($t,1),Ye(),!st&&!nn.contains(document.activeElement)){var Ft;(Ft=Ie.current)===null||Ft===void 0||Ft.focus()}});be.push(Dn)}for(var Bn=arguments.length,jt=new Array(Bn>1?Bn-1:0),yt=1;yt<Bn;yt++)jt[yt-1]=arguments[yt];ye==null||ye.apply(void 0,[Je].concat(jt))},de=x.useState(null),le=X(de,2),De=le[0],je=le[1],Ve=x.useState({}),dt=X(Ve,2),on=dt[1];function Yn(){on({})}en(function(){if(ut){var at,Je=Math.ceil((at=Ue.current)===null||at===void 0?void 0:at.offsetWidth);De!==Je&&!Number.isNaN(Je)&&je(Je)}},[ut]);var _t;It&&(_t=function(Je){se(Je)}),gA(function(){var at;return[Ue.current,(at=qe.current)===null||at===void 0?void 0:at.getPopupElement()]},ut,se,!!It);var nr=x.useMemo(function(){return L(L({},e),{},{notFoundContent:m,open:Ge,triggerOpen:ut,id:o,showSearch:Oe,multiple:Ee,toggleOpen:se})},[e,m,ut,Ge,o,Oe,Ee,se]),mn=H!==void 0?H:C||!Ee&&g!=="combobox",tn;mn&&(tn=v(cu,{className:Z("".concat(i,"-arrow"),W({},"".concat(i,"-arrow-loading"),C)),customizeIcon:U,customizeIconProps:{loading:C,searchValue:Qe,open:Ge,focused:Ce,showSearch:Oe}}));var kn,Ur=function(){var Je;b==null||b(),(Je=Ie.current)===null||Je===void 0||Je.focus(),f([],{type:"clear",values:d}),ge("",!1,!1)};!S&&B&&(d.length||Qe)&&!(g==="combobox"&&Qe==="")&&(kn=v(cu,{className:"".concat(i,"-clear"),onMouseDown:Ur,customizeIcon:J,children:"×"}));var rr=v(F,{ref:_e}),fo=Z(i,a,(r={},W(r,"".concat(i,"-focused"),Ce),W(r,"".concat(i,"-multiple"),Ee),W(r,"".concat(i,"-single"),!Ee),W(r,"".concat(i,"-allow-clear"),B),W(r,"".concat(i,"-show-arrow"),mn),W(r,"".concat(i,"-disabled"),S),W(r,"".concat(i,"-loading"),C),W(r,"".concat(i,"-open"),Ge),W(r,"".concat(i,"-customize-input"),Et),W(r,"".concat(i,"-show-search"),Oe),r)),Kr=v(VC,{ref:qe,disabled:S,prefixCls:i,visible:ut,popupElement:rr,containerWidth:De,animation:z,transitionName:k,dropdownStyle:Q,dropdownClassName:K,direction:c,dropdownMatchSelectWidth:Y,dropdownRender:te,dropdownAlign:re,placement:ce,getPopupContainer:ne,empty:p,getTriggerDOMNode:function(){return tt.current},onPopupVisibleChange:_t,onPopupMouseEnter:Yn,children:It?x.cloneElement(It,{ref:Ne}):v(LC,{...e,domRef:tt,prefixCls:i,inputElement:Et,ref:Ie,id:o,showSearch:Oe,autoClearSearchValue:I,mode:g,activeDescendantId:D,tagRender:l,values:d,open:Ge,onToggleOpen:se,activeValue:P,searchValue:Qe,onSearch:ge,onSearchSubmit:Me,onRemove:R,tokenWithEnter:pe})}),mr;return It?mr=Kr:mr=ae("div",{className:fo,...bt,ref:Ue,onMouseDown:$e,onKeyDown:Mt,onKeyUp:ct,onFocus:G,onBlur:ue,children:[Ce&&!Ge&&v("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite",children:"".concat(d.map(function(at){var Je=at.label,cn=at.value;return["number","string"].includes(Ze(Je))?Je:cn}).join(", "))}),Kr,tn,kn]}),v(TC.Provider,{value:nr,children:mr})});process.env.NODE_ENV!=="production"&&(WC.displayName="BaseSelect");const ZA=function(e,t){var n=x.useRef({values:new Map,options:new Map}),r=x.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var f;return L(L({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=x.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function Cf(e,t){return Fg(e).join("").toUpperCase().includes(t)}const ek=function(e,t,n,r,o){return x.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,h){return o?Cf(h[o],u):h[i]?Cf(h[a!=="children"?a:"label"],u):Cf(h[s],u)},f=c?function(p){return rh(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var h=d(n,f(p));if(h)l.push(p);else{var m=p[i].filter(function(b){return d(n,f(b))});m.length&&l.push(L(L({},p),{},W({},i,m)))}return}d(n,f(p))&&l.push(p)}),l},[e,r,o,n,t])};var Ry=0,tk=process.env.NODE_ENV!=="test"&&Gn();function nk(){var e;return tk?(e=Ry,Ry+=1):e="TEST_OR_SSR",e}function rk(e){var t=x.useState(),n=X(t,2),r=n[0],o=n[1];return x.useEffect(function(){o("rc_select_".concat(nk()))},[]),e||r}var ok=["children","value"],ik=["children"];function ak(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=nt(r,ok);return L({key:n,value:i!==void 0?i:n,children:o},a)}function Vg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Kn(e).map(function(n,r){if(!x.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=nt(s,ik);return t||!i?ak(n):L(L({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Vg(l)})}).filter(function(n){return n})}function sk(e,t,n,r,o){return x.useMemo(function(){var i=e,a=!e;a&&(i=Vg(t));var s=new Map,l=new Map,c=function(f,p,h){h&&typeof h=="string"&&f.set(p[h],p)};function u(d){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p<d.length;p+=1){var h=d[p];!h[n.options]||f?(s.set(h[n.value],h),c(l,h,n.label),c(l,h,r),c(l,h,o)):u(h[n.options],!0)}}return u(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Py(e){var t=x.useRef();t.current=e;var n=x.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Hg=function(){return null};Hg.isSelectOptGroup=!0;var Wg=function(){return null};Wg.isSelectOption=!0;var UC=x.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,s=e.innerProps,l={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:n,position:"relative",overflow:"hidden"},c=L(L({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),v("div",{style:l,children:v(no,{onResize:function(d){var f=d.offsetHeight;f&&a&&a()},children:v("div",{style:c,className:Z(W({},"".concat(i,"-holder-inner"),i)),ref:t,...s,children:o})})})});UC.displayName="Filler";var lk=20;function Iy(e){return"touches"in e?e.touches[0].pageY:e.pageY}var ck=function(e){Hr(n,e);var t=$i(n);function n(){var r;Wt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.moveRaf=null,r.scrollbarRef=x.createRef(),r.thumbRef=x.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1})},2e3)},r.onScrollbarTouchStart=function(s){s.preventDefault()},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault()},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp)},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),Rt.cancel(r.moveRaf)},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:Iy(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault()},r.onMouseMove=function(s){var l=r.state,c=l.dragging,u=l.pageY,d=l.startTop,f=r.props.onScroll;if(Rt.cancel(r.moveRaf),c){var p=Iy(s)-u,h=d+p,m=r.getEnableScrollRange(),b=r.getEnableHeightRange(),g=b?h/b:0,S=Math.ceil(g*m);r.moveRaf=Rt(function(){f(S)})}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents()},r.getSpinHeight=function(){var s=r.props,l=s.height,c=s.count,u=l/c*10;return u=Math.max(u,lk),u=Math.min(u,l/2),Math.floor(u)},r.getEnableScrollRange=function(){var s=r.props,l=s.scrollHeight,c=s.height;return l-c||0},r.getEnableHeightRange=function(){var s=r.props.height,l=r.getSpinHeight();return s-l||0},r.getTop=function(){var s=r.props.scrollTop,l=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(s===0||l===0)return 0;var u=s/l;return u*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return Ut(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,s=this.props.prefixCls,l=this.getSpinHeight(),c=this.getTop(),u=this.showScroll(),d=u&&a;return v("div",{ref:this.scrollbarRef,className:Z("".concat(s,"-scrollbar"),W({},"".concat(s,"-scrollbar-show"),u)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:d?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden,children:v("div",{ref:this.thumbRef,className:Z("".concat(s,"-scrollbar-thumb"),W({},"".concat(s,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:l,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown})})}}]),n}(x.Component);function uk(e){var t=e.children,n=e.setRef,r=x.useCallback(function(o){n(o)},[]);return x.cloneElement(t,{ref:r})}function dk(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=a(s);return v(uk,{setRef:function(p){return r(s,p)},children:u},d)})}var fk=function(){function e(){Wt(this,e),this.maps=void 0,this.maps=Object.create(null)}return Ut(e,[{key:"set",value:function(n,r){this.maps[n]=r}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function pk(e,t,n){var r=x.useState(0),o=X(r,2),i=o[0],a=o[1],s=O.useRef(new Map),l=O.useRef(new fk),c=O.useRef();function u(){Rt.cancel(c.current)}function d(){u(),c.current=Rt(function(){s.current.forEach(function(p,h){if(p&&p.offsetParent){var m=Ws(p),b=m.offsetHeight;l.current.get(h)!==b&&l.current.set(h,m.offsetHeight)}}),a(function(p){return p+1})})}function f(p,h){var m=e(p),b=s.current.get(m);h?(s.current.set(m,h),d()):s.current.delete(m),!b!=!h&&(h?t==null||t(p):n==null||n(p))}return O.useEffect(function(){return u},[]),[f,d,l.current,i]}function hk(e,t,n,r,o,i,a,s){var l=x.useRef();return function(c){if(c==null){s();return}if(Rt.cancel(l.current),typeof c=="number")a(c);else if(c&&Ze(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(m){return o(m)===c.key});var f=c.offset,p=f===void 0?0:f,h=function m(b,g){if(!(b<0||!e.current)){var S=e.current.clientHeight,C=!1,w=g;if(S){for(var y=g||d,$=0,E=0,N=0,P=Math.min(t.length,u),_=0;_<=P;_+=1){var D=o(t[_]);E=$;var M=n.get(D);N=E+(M===void 0?r:M),$=N,_===u&&M===void 0&&(C=!0)}var I=null;switch(y){case"top":I=E-p;break;case"bottom":I=N-S+p;break;default:{var T=e.current.scrollTop,j=T+S;E<T?w="top":N>j&&(w="bottom")}}I!==null&&I!==e.current.scrollTop&&a(I)}l.current=Rt(function(){C&&i(),m(b-1,w)},2)}};h(3)}}}function gk(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var f=l(i[d]),p=l(a[d]);if(f!==p){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function vk(e,t,n){var r=x.useState(e),o=X(r,2),i=o[0],a=o[1],s=x.useState(null),l=X(s,2),c=l[0],u=l[1];return x.useEffect(function(){var d=gk(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),a(e)},[e]),[c]}var mk=(typeof navigator>"u"?"undefined":Ze(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const KC=function(e,t){var n=O.useRef(!1),r=O.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=O.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function bk(e,t,n,r){var o=O.useRef(0),i=O.useRef(null),a=O.useRef(null),s=O.useRef(!1),l=KC(t,n);function c(d){if(e){Rt.cancel(i.current);var f=d.deltaY;o.current+=f,a.current=f,!l(f)&&(mk||d.preventDefault(),i.current=Rt(function(){var p=s.current?10:1;r(o.current*p),o.current=0}))}}function u(d){e&&(s.current=d.detail===a.current)}return[c,u]}var yk=14/15;function Sk(e,t,n){var r=O.useRef(!1),o=O.useRef(0),i=O.useRef(null),a=O.useRef(null),s,l=function(f){if(r.current){var p=Math.ceil(f.touches[0].pageY),h=o.current-p;o.current=p,n(h)&&f.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){h*=yk,(!n(h,!0)||Math.abs(h)<=.1)&&clearInterval(a.current)},16)}},c=function(){r.current=!1,s()},u=function(f){s(),f.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(f.touches[0].pageY),i.current=f.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c))};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c))},en(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(a.current)}},[e])}var wk=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],xk=[],Ck={overflowY:"auto",overflowAnchor:"none"};function $k(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.component,m=h===void 0?"div":h,b=e.onScroll,g=e.onVisibleChange,S=e.innerProps,C=nt(e,wk),w=!!(p!==!1&&i&&a),y=w&&u&&a*u.length>i,$=O.useState(0),E=X($,2),N=E[0],P=E[1],_=O.useState(!1),D=X(_,2),M=D[0],I=D[1],T=Z(r,o),j=u||xk,A=O.useRef(),B=O.useRef(),H=O.useRef(),U=x.useCallback(function(Ce){return typeof f=="function"?f(Ce):Ce==null?void 0:Ce[f]},[f]),J={getKey:U};function F(Ce){P(function(Te){var Ye;typeof Ce=="function"?Ye=Ce(Te):Ye=Ce;var Qe=Oe(Ye);return A.current.scrollTop=Qe,Qe})}var z=O.useRef({start:0,end:j.length}),k=O.useRef(),Q=vk(j,U),K=X(Q,1),Y=K[0];k.current=Y;var te=pk(U,null,null),re=X(te,4),ce=re[0],ne=re[1],he=re[2],ee=re[3],q=x.useMemo(function(){if(!w)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!y){var Ce;return{scrollHeight:((Ce=B.current)===null||Ce===void 0?void 0:Ce.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var Te=0,Ye,Qe,Et,It=j.length,Ne=0;Ne<It;Ne+=1){var Re=j[Ne],Se=U(Re),xe=he.get(Se),Pe=Te+(xe===void 0?a:xe);Pe>=N&&Ye===void 0&&(Ye=Ne,Qe=Te),Pe>N+i&&Et===void 0&&(Et=Ne),Te=Pe}return Ye===void 0&&(Ye=0,Qe=0,Et=Math.ceil(i/a)),Et===void 0&&(Et=j.length-1),Et=Math.min(Et+1,j.length),{scrollHeight:Te,start:Ye,end:Et,offset:Qe}},[y,w,N,j,ee,i]),oe=q.scrollHeight,ve=q.start,fe=q.end,ye=q.offset;z.current.start=ve,z.current.end=fe;var me=oe-i,Ee=O.useRef(me);Ee.current=me;function Oe(Ce){var Te=Ce;return Number.isNaN(Ee.current)||(Te=Math.min(Te,Ee.current)),Te=Math.max(Te,0),Te}var bt=N<=0,pt=N>=me,rt=KC(bt,pt);function st(Ce){var Te=Ce;F(Te)}function We(Ce){var Te=Ce.currentTarget.scrollTop;Te!==N&&F(Te),b==null||b(Ce)}var Ue=bk(w,bt,pt,function(Ce){F(function(Te){var Ye=Te+Ce;return Ye})}),tt=X(Ue,2),qe=tt[0],Ie=tt[1];Sk(w,A,function(Ce,Te){return rt(Ce,Te)?!1:(qe({preventDefault:function(){},deltaY:Ce}),!0)}),en(function(){function Ce(Te){w&&Te.preventDefault()}return A.current.addEventListener("wheel",qe),A.current.addEventListener("DOMMouseScroll",Ie),A.current.addEventListener("MozMousePixelScroll",Ce),function(){A.current&&(A.current.removeEventListener("wheel",qe),A.current.removeEventListener("DOMMouseScroll",Ie),A.current.removeEventListener("MozMousePixelScroll",Ce))}},[w]);var _e=hk(A,j,he,a,U,ne,F,function(){var Ce;(Ce=H.current)===null||Ce===void 0||Ce.delayHidden()});x.useImperativeHandle(t,function(){return{scrollTo:_e}}),en(function(){if(g){var Ce=j.slice(ve,fe+1);g(Ce,j)}},[ve,fe,j]);var lt=dk(j,ve,fe,ce,d,J),Ct=null;return i&&(Ct=L(W({},l?"height":"maxHeight",i),Ck),w&&(Ct.overflowY="hidden",M&&(Ct.pointerEvents="none"))),ae("div",{style:L(L({},c),{},{position:"relative"}),className:T,...C,children:[v(m,{className:"".concat(r,"-holder"),style:Ct,ref:A,onScroll:We,children:v(UC,{prefixCls:r,height:oe,offset:ye,onInnerResize:ne,ref:B,innerProps:S,children:lt})}),w&&v(ck,{ref:H,prefixCls:r,scrollTop:N,height:i,scrollHeight:oe,count:j.length,onScroll:st,onStartMove:function(){I(!0)},onStopMove:function(){I(!1)}})]})}var GC=x.forwardRef($k);GC.displayName="List";var XC=x.createContext(null);function Ok(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ek=["disabled","title","children","style","className"];function _y(e){return typeof e=="string"||typeof e=="number"}var Nk=function(t,n){var r=pA(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=x.useContext(XC),h=p.flattenOptions,m=p.onActiveValue,b=p.defaultActiveFirstOption,g=p.onSelect,S=p.menuItemSelectedIcon,C=p.rawValues,w=p.fieldNames,y=p.virtual,$=p.listHeight,E=p.listItemHeight,N="".concat(o,"-item"),P=Cl(function(){return h},[a,h],function(Y,te){return te[0]&&Y[1]!==te[1]}),_=x.useRef(null),D=function(te){te.preventDefault()},M=function(te){_.current&&_.current.scrollTo(typeof te=="number"?{index:te}:te)},I=function(te){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ce=P.length,ne=0;ne<ce;ne+=1){var he=(te+ne*re+ce)%ce,ee=P[he],q=ee.group,oe=ee.data;if(!q&&!oe.disabled)return he}return-1},T=x.useState(function(){return I(0)}),j=X(T,2),A=j[0],B=j[1],H=function(te){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;B(te);var ce={source:re?"keyboard":"mouse"},ne=P[te];if(!ne){m(null,-1,ce);return}m(ne.value,te,ce)};O.useEffect(function(){H(b!==!1?I(0):-1)},[P.length,c]);var U=x.useCallback(function(Y){return C.has(Y)&&l!=="combobox"},[l,we(C).toString(),C.size]);O.useEffect(function(){var Y=setTimeout(function(){if(!s&&a&&C.size===1){var re=Array.from(C)[0],ce=P.findIndex(function(ne){var he=ne.data;return he.value===re});ce!==-1&&(H(ce),M(ce))}});if(a){var te;(te=_.current)===null||te===void 0||te.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[a,c,h.length]);var J=function(te){te!==void 0&&g(te,{selected:!C.has(te)}),s||u(!1)};if(x.useImperativeHandle(n,function(){return{onKeyDown:function(te){var re=te.which,ce=te.ctrlKey;switch(re){case ie.N:case ie.P:case ie.UP:case ie.DOWN:{var ne=0;if(re===ie.UP?ne=-1:re===ie.DOWN?ne=1:Ok()&&ce&&(re===ie.N?ne=1:re===ie.P&&(ne=-1)),ne!==0){var he=I(A+ne,ne);M(he),H(he,!0)}break}case ie.ENTER:{var ee=P[A];ee&&!ee.data.disabled?J(ee.value):J(void 0),a&&te.preventDefault();break}case ie.ESC:u(!1),a&&te.stopPropagation()}},onKeyUp:function(){},scrollTo:function(te){M(te)}}}),P.length===0)return v("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(N,"-empty"),onMouseDown:D,children:d});var F=Object.keys(w).map(function(Y){return w[Y]}),z=function(te){return te.label};function k(Y,te){var re=Y.group;return{role:re?"presentation":"option",id:"".concat(i,"_list_").concat(te)}}var Q=function(te){var re=P[te];if(!re)return null;var ce=re.data||{},ne=ce.value,he=re.group,ee=Ys(ce,!0),q=z(re);return re?O.createElement("div",{"aria-label":typeof q=="string"&&!he?q:null,...ee,key:te,...k(re,te),"aria-selected":U(ne)},ne):null},K={role:"listbox",id:"".concat(i,"_list")};return ae(Ht,{children:[y&&ae("div",{...K,style:{height:0,width:0,overflow:"hidden"},children:[Q(A-1),Q(A),Q(A+1)]}),v(GC,{itemKey:"key",ref:_,data:P,height:$,itemHeight:E,fullHeight:!1,onMouseDown:D,onScroll:f,virtual:y,innerProps:y?null:K,children:function(Y,te){var re,ce=Y.group,ne=Y.groupOption,he=Y.data,ee=Y.label,q=Y.value,oe=he.key;if(ce){var ve,fe=(ve=he.title)!==null&&ve!==void 0?ve:_y(ee)?ee.toString():void 0;return v("div",{className:Z(N,"".concat(N,"-group")),title:fe,children:ee!==void 0?ee:oe})}var ye=he.disabled,me=he.title;he.children;var Ee=he.style,Oe=he.className,bt=nt(he,Ek),pt=wn(bt,F),rt=U(q),st="".concat(N,"-option"),We=Z(N,st,Oe,(re={},W(re,"".concat(st,"-grouped"),ne),W(re,"".concat(st,"-active"),A===te&&!ye),W(re,"".concat(st,"-disabled"),ye),W(re,"".concat(st,"-selected"),rt),re)),Ue=z(Y),tt=!S||typeof S=="function"||rt,qe=typeof Ue=="number"?Ue:Ue||q,Ie=_y(qe)?qe.toString():void 0;return me!==void 0&&(Ie=me),ae("div",{...Ys(pt),...y?{}:k(Y,te),"aria-selected":rt,className:We,title:Ie,onMouseMove:function(){A===te||ye||H(te)},onClick:function(){ye||J(q)},style:Ee,children:[v("div",{className:"".concat(st,"-content"),children:qe}),x.isValidElement(S)||rt,tt&&v(cu,{className:"".concat(N,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:rt},children:rt?"✓":null})]})}})]})},qC=x.forwardRef(Nk);qC.displayName="OptionList";function Rk(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,s=e.getInputElement,l=e.showSearch,c=e.onSearch,u=e.defaultOpen,d=e.autoFocus,f=e.labelInValue,p=e.value,h=e.inputValue,m=e.optionLabelProp,b=uu(t),g=l!==void 0?l:b||t==="combobox",S=n||Vg(r);if(mt(t!=="tags"||S.every(function($){return!$.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var C=S.some(function($){return $.options?$.options.some(function(E){return typeof("value"in E?E.value:E.key)=="number"}):typeof("value"in $?$.value:$.key)=="number"});mt(!C,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(mt(t!=="combobox"||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),mt(t==="combobox"||!o,"`backfill` only works with `combobox` mode."),mt(t==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),gb(t!=="combobox"||!s||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!g&&t!=="combobox"&&t!=="tags"&&mt(!1,"`onSearch` should work with `showSearch` instead of use alone."),gb(!u||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),p!=null){var w=Fg(p);mt(!f||w.every(function($){return Ze($)==="object"&&("key"in $||"value"in $)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),mt(!b||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var y=null;Kn(r).some(function($){if(!x.isValidElement($)||!$.type)return!1;var E=$,N=E.type;if(N.isSelectOption)return!1;if(N.isSelectOptGroup){var P=Kn($.props.children).every(function(_){return!x.isValidElement(_)||!$.type||_.type.isSelectOption?!0:(y=_.type,!1)});return!P}return y=N,!0}),y&&mt(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(y.displayName||y.name||y,"`.")),mt(h===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Pk(e,t){if(e){var n=function r(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;a<o.length;a++){var s=o[a];if(s[t==null?void 0:t.value]===null)return mt(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(s[t==null?void 0:t.options])&&r(s[t==null?void 0:t.options],!0))break}};n(e)}}var Ik=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],_k=["inputValue"];function Tk(e){return!e||Ze(e)!=="object"}var YC=x.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=d===void 0?!0:d,p=e.onSelect,h=e.onDeselect,m=e.dropdownMatchSelectWidth,b=m===void 0?!0:m,g=e.filterOption,S=e.filterSort,C=e.optionFilterProp,w=e.optionLabelProp,y=e.options,$=e.children,E=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,P=e.virtual,_=e.listHeight,D=_===void 0?200:_,M=e.listItemHeight,I=M===void 0?20:M,T=e.value,j=e.defaultValue,A=e.labelInValue,B=e.onChange,H=nt(e,Ik),U=rk(n),J=uu(r),F=!!(!y&&$),z=x.useMemo(function(){return g===void 0&&r==="combobox"?!1:g},[g,r]),k=x.useMemo(function(){return HC(s,F)},[JSON.stringify(s),F]),Q=An("",{value:c!==void 0?c:l,postState:function(pe){return pe||""}}),K=X(Q,2),Y=K[0],te=K[1],re=sk(y,$,k,C,w),ce=re.valueOptions,ne=re.labelOptions,he=re.options,ee=x.useCallback(function(se){var pe=Fg(se);return pe.map(function(ge){var Me,Xe,it,Dt,wt;if(Tk(ge))Me=ge;else{var Mt;it=ge.key,Xe=ge.label,Me=(Mt=ge.value)!==null&&Mt!==void 0?Mt:it}var ct=ce.get(Me);if(ct){var R;if(Xe===void 0&&(Xe=ct==null?void 0:ct[w||k.label]),it===void 0&&(it=(R=ct==null?void 0:ct.key)!==null&&R!==void 0?R:Me),Dt=ct==null?void 0:ct.disabled,wt=ct==null?void 0:ct.title,process.env.NODE_ENV!=="production"&&!w){var V=ct==null?void 0:ct[k.label];V!==void 0&&V!==Xe&&mt(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Xe,value:Me,key:it,disabled:Dt,title:wt}})},[k,w,ce]),q=An(j,{value:T}),oe=X(q,2),ve=oe[0],fe=oe[1],ye=x.useMemo(function(){var se,pe=ee(ve);return r==="combobox"&&!((se=pe[0])!==null&&se!==void 0&&se.value)?[]:pe},[ve,ee,r]),me=ZA(ye,ce),Ee=X(me,2),Oe=Ee[0],bt=Ee[1],pt=x.useMemo(function(){if(!r&&Oe.length===1){var se=Oe[0];if(se.value===null&&(se.label===null||se.label===void 0))return[]}return Oe.map(function(pe){var ge;return L(L({},pe),{},{label:(ge=pe.label)!==null&&ge!==void 0?ge:pe.value})})},[r,Oe]),rt=x.useMemo(function(){return new Set(Oe.map(function(se){return se.value}))},[Oe]);x.useEffect(function(){if(r==="combobox"){var se,pe=(se=Oe[0])===null||se===void 0?void 0:se.value;te(IA(pe)?String(pe):"")}},[Oe]);var st=Py(function(se,pe){var ge,Me=pe??se;return ge={},W(ge,k.value,se),W(ge,k.label,Me),ge}),We=x.useMemo(function(){if(r!=="tags")return he;var se=we(he),pe=function(Me){return ce.has(Me)};return we(Oe).sort(function(ge,Me){return ge.value<Me.value?-1:1}).forEach(function(ge){var Me=ge.value;pe(Me)||se.push(st(Me,ge.label))}),se},[st,he,ce,Oe,r]),Ue=ek(We,k,Y,z,C),tt=x.useMemo(function(){return r!=="tags"||!Y||Ue.some(function(se){return se[C||"value"]===Y})?Ue:[st(Y)].concat(we(Ue))},[st,C,r,Ue,Y]),qe=x.useMemo(function(){return S?we(tt).sort(function(se,pe){return S(se,pe)}):tt},[tt,S]),Ie=x.useMemo(function(){return qA(qe,{fieldNames:k,childrenAsData:F})},[qe,k,F]),_e=function(pe){var ge=ee(pe);if(fe(ge),B&&(ge.length!==Oe.length||ge.some(function(it,Dt){var wt;return((wt=Oe[Dt])===null||wt===void 0?void 0:wt.value)!==(it==null?void 0:it.value)}))){var Me=A?ge:ge.map(function(it){return it.value}),Xe=ge.map(function(it){return rh(bt(it.value))});B(J?Me:Me[0],J?Xe:Xe[0])}},lt=x.useState(null),Ct=X(lt,2),Ce=Ct[0],Te=Ct[1],Ye=x.useState(0),Qe=X(Ye,2),Et=Qe[0],It=Qe[1],Ne=E!==void 0?E:r!=="combobox",Re=x.useCallback(function(se,pe){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Me=ge.source,Xe=Me===void 0?"keyboard":Me;It(pe),a&&r==="combobox"&&se!==null&&Xe==="keyboard"&&Te(String(se))},[a,r]),Se=function(pe,ge,Me){var Xe=function(){var be,$e=bt(pe);return[A?{label:$e==null?void 0:$e[k.label],value:pe,key:(be=$e==null?void 0:$e.key)!==null&&be!==void 0?be:pe}:pe,rh($e)]};if(ge&&p){var it=Xe(),Dt=X(it,2),wt=Dt[0],Mt=Dt[1];p(wt,Mt)}else if(!ge&&h&&Me!=="clear"){var ct=Xe(),R=X(ct,2),V=R[0],G=R[1];h(V,G)}},xe=Py(function(se,pe){var ge,Me=J?pe.selected:!0;Me?ge=J?[].concat(we(Oe),[se]):[se]:ge=Oe.filter(function(Xe){return Xe.value!==se}),_e(ge),Se(se,Me),r==="combobox"?Te(""):(!uu||f)&&(te(""),Te(""))}),Pe=function(pe,ge){_e(pe);var Me=ge.type,Xe=ge.values;(Me==="remove"||Me==="clear")&&Xe.forEach(function(it){Se(it.value,!1,Me)})},Ge=function(pe,ge){if(te(pe),Te(null),ge.source==="submit"){var Me=(pe||"").trim();if(Me){var Xe=Array.from(new Set([].concat(we(rt),[Me])));_e(Xe),Se(Me,!0),te("")}return}ge.source!=="blur"&&(r==="combobox"&&_e(pe),u==null||u(pe))},ht=function(pe){var ge=pe;r!=="tags"&&(ge=pe.map(function(Xe){var it=ne.get(Xe);return it==null?void 0:it.value}).filter(function(Xe){return Xe!==void 0}));var Me=Array.from(new Set([].concat(we(rt),we(ge))));_e(Me),Me.forEach(function(Xe){Se(Xe,!0)})},ut=x.useMemo(function(){var se=P!==!1&&b!==!1;return L(L({},re),{},{flattenOptions:Ie,onActiveValue:Re,defaultActiveFirstOption:Ne,onSelect:xe,menuItemSelectedIcon:N,rawValues:rt,fieldNames:k,virtual:se,listHeight:D,listItemHeight:I,childrenAsData:F})},[re,Ie,Re,Ne,xe,N,rt,k,P,b,D,I,F]);return process.env.NODE_ENV!=="production"&&(Rk(e),Pk(he,k)),v(XC.Provider,{value:ut,children:v(WC,{...H,id:U,prefixCls:i,ref:t,omitDomProps:_k,mode:r,displayValues:pt,onDisplayValuesChange:Pe,searchValue:Y,onSearch:Ge,autoClearSearchValue:f,onSearchSplit:ht,dropdownMatchSelectWidth:b,OptionList:qC,emptyOptions:!Ie.length,activeValue:Ce,activeDescendantId:"".concat(U,"_list_").concat(Et)})})});process.env.NODE_ENV!=="production"&&(YC.displayName="Select");var Ug=YC;Ug.Option=Wg;Ug.OptGroup=Hg;const QC=()=>{const[,e]=ka(),t=new un(e.colorBgBase);let n={};return t.toHsl().l<.5&&(n={opacity:.65}),v("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg",children:ae("g",{fill:"none",fillRule:"evenodd",children:[ae("g",{transform:"translate(24 31.67)",children:[v("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),v("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),v("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),v("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),v("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})]}),v("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ae("g",{transform:"translate(149.65 15.383)",fill:"#FFF",children:[v("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),v("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"})]})]})})};process.env.NODE_ENV!=="production"&&(QC.displayName="EmptyImage");const Mk=QC,JC=()=>{const[,e]=ka(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=O.useMemo(()=>({borderColor:new un(t).onBackground(o).toHexShortString(),shadowColor:new un(n).onBackground(o).toHexShortString(),contentColor:new un(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return v("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg",children:ae("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd",children:[v("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),ae("g",{fillRule:"nonzero",stroke:i,children:[v("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),v("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s})]})]})})};process.env.NODE_ENV!=="production"&&(JC.displayName="SimpleImage");const Dk=JC,jk=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Ak=xn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Tt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[jk(r)]});var kk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZC=v(Mk,{}),e$=v(Dk,{}),id=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=ZC,description:i,children:a,imageStyle:s}=e,l=kk(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=x.useContext(et),d=c("empty",r),[f,p]=Ak(d),[h]=Qu("Empty"),m=typeof i<"u"?i:h==null?void 0:h.description,b=typeof m=="string"?m:"empty";let g=null;return typeof o=="string"?g=v("img",{alt:b,src:o}):g=o,f(ae("div",{...Object.assign({className:Z(p,d,{[`${d}-normal`]:o===e$,[`${d}-rtl`]:u==="rtl"},t,n)},l),children:[v("div",{className:`${d}-image`,style:s,children:g}),m&&v("div",{className:`${d}-description`,children:m}),a&&v("div",{className:`${d}-footer`,children:a})]}))};id.PRESENTED_IMAGE_DEFAULT=ZC;id.PRESENTED_IMAGE_SIMPLE=e$;process.env.NODE_ENV!=="production"&&(id.displayName="Empty");const li=id,Lk=e=>{const{componentName:t}=e,{getPrefixCls:n}=O.useContext(et),r=n("empty");switch(t){case"Table":case"List":return v(li,{image:li.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v(li,{image:li.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return v(li,{})}},zk=Lk;function Oo(e,t,n){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ad=(e,t)=>t||e;var Bk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const Fk=Bk;var t$=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:Fk})})};t$.displayName="CheckOutlined";const Vk=x.forwardRef(t$);var Hk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Wk=Hk;var n$=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:Wk})})};n$.displayName="DownOutlined";const r$=x.forwardRef(n$);var Uk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const Kk=Uk;var o$=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:Kk})})};o$.displayName="SearchOutlined";const i$=x.forwardRef(o$);function Gk(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=n??v(El,{}),f=b=>ae(Ht,{children:[c!==!1&&b,s&&u]});let p=null;if(t!==void 0)p=f(t);else if(i)p=f(v(qs,{spin:!0}));else{const b=`${l}-suffix`;p=g=>{let{open:S,showSearch:C}=g;return f(S&&C?v(i$,{className:b}):v(r$,{className:b}))}}let h=null;r!==void 0?h=r:a?h=v(Vk,{}):h=null;let m=null;return o!==void 0?m=o:m=v(qu,{}),{clearIcon:d,suffixIcon:p,itemIcon:h,removeIcon:m}}function Kg(e,t,n){return function(o){const{prefixCls:i,style:a}=o,s=x.useRef(null),[l,c]=x.useState(0),[u,d]=x.useState(0),[f,p]=An(!1,{value:o.open}),{getPrefixCls:h}=x.useContext(et),m=h(t||"select",i);return x.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(S=>{const C=S[0].target;c(C.offsetHeight+8),d(C.offsetWidth)}),g=setInterval(()=>{var S;const C=n?`.${n(m)}`:`.${m}-dropdown`,w=(S=s.current)===null||S===void 0?void 0:S.querySelector(C);w&&(clearInterval(g),b.observe(w))},10);return()=>{clearInterval(g),b.disconnect()}}},[]),v(Cn,{theme:{token:{motionDurationFast:"0.01s",motionDurationMid:"0.01s",motionDurationSlow:"0.01s"}},children:v("div",{ref:s,style:{paddingBottom:l,position:"relative",width:"fit-content",minWidth:u},children:v(e,{...Object.assign({},o,{style:Object.assign(Object.assign({},a),{margin:0}),open:f,visible:f,getPopupContainer:()=>s.current})})})})}}const Ty=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Xk=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Rn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
210
|
+
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
211
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
|
|
212
|
+
`]:{animationName:jg},[`
|
|
213
|
+
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
214
|
+
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft
|
|
215
|
+
`]:{animationName:kg},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Ag},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Lg},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:Object.assign(Object.assign({},Ty(e)),{color:e.colorTextDisabled}),[`${r}`]:Object.assign(Object.assign({},Ty(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign(Object.assign({flex:"auto"},$o),{"> *":Object.assign({},$o)}),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Qo(e,"slide-up"),Qo(e,"slide-down"),su(e,"move-up"),su(e,"move-down")]},qk=Xk,Ki=2;function a$(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]}function $f(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=a$(e),s=t?`${n}-${t}`:"";return{[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-Ki}px ${Ki*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ki}px 0`,lineHeight:`${i}px`,content:'"\\a0"'}},[`
|
|
216
|
+
&${n}-show-arrow ${n}-selector,
|
|
217
|
+
&${n}-allow-clear ${n}-selector
|
|
218
|
+
`]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Ki,marginBottom:Ki,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ki*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Aa()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[`
|
|
219
|
+
&-input,
|
|
220
|
+
&-mirror
|
|
221
|
+
`]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function Yk(e){const{componentCls:t}=e,n=Tt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=a$(e);return[$f(e),$f(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:r}}},$f(Tt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Of(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},Rn(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
|
|
222
|
+
${n}-selection-item,
|
|
223
|
+
${n}-selection-placeholder
|
|
224
|
+
`]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
225
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
226
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
227
|
+
`]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function Qk(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Of(e),Of(Tt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
|
|
228
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
229
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
230
|
+
`]:{paddingInlineEnd:e.fontSize*1.5}}}},Of(Tt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Jk=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},Ef=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},Zk=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},eL=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},Rn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},Jk(e)),Zk(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},$o),{"> *":Object.assign({lineHeight:"inherit"},$o)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},$o),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Aa()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},tL=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},eL(e),Qk(e),Yk(e),qk(e),{[`${t}-rtl`]:{direction:"rtl"}},Ef(t,Tt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Ef(`${t}-status-error`,Tt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Ef(`${t}-status-warning`,Tt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),ed(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},nL=xn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Tt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[tL(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));function rL(e){return e??!0}var oL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s$="SECRET_COMBOBOX_MODE_DO_NOT_USE",l$=(e,t)=>{var{prefixCls:n,bordered:r=!0,className:o,rootClassName:i,getPopupContainer:a,popupClassName:s,dropdownClassName:l,listHeight:c=256,placement:u,listItemHeight:d=24,size:f,disabled:p,notFoundContent:h,status:m,showArrow:b}=e,g=oL(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]);const{getPopupContainer:S,getPrefixCls:C,renderEmpty:w,direction:y,virtual:$,dropdownMatchSelectWidth:E,select:N}=x.useContext(et),P=x.useContext(gr),_=C("select",n),D=C(),{compactSize:M,compactItemClassnames:I}=La(_,y),[T,j]=nL(_),A=x.useMemo(()=>{const{mode:fe}=g;if(fe!=="combobox")return fe===s$?"combobox":fe},[g.mode]),B=A==="multiple"||A==="tags",H=rL(b),{status:U,hasFeedback:J,isFormItemInput:F,feedbackIcon:z}=x.useContext(Yo),k=ad(U,m);let Q;h!==void 0?Q=h:A==="combobox"?Q=null:Q=(w==null?void 0:w("Select"))||v(zk,{componentName:"Select"});const{suffixIcon:K,itemIcon:Y,removeIcon:te,clearIcon:re}=Gk(Object.assign(Object.assign({},g),{multiple:B,hasFeedback:J,feedbackIcon:z,showArrow:H,prefixCls:_})),ce=wn(g,["suffixIcon","itemIcon"]),ne=Z(s||l,{[`${_}-dropdown-${y}`]:y==="rtl"},i,j),he=M||f||P,ee=x.useContext(Ei),q=p??ee,oe=Z({[`${_}-lg`]:he==="large",[`${_}-sm`]:he==="small",[`${_}-rtl`]:y==="rtl",[`${_}-borderless`]:!r,[`${_}-in-form-item`]:F},Oo(_,k,J),I,o,i,j),ve=()=>u!==void 0?u:y==="rtl"?"bottomRight":"bottomLeft";return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&xt(!l,"Select","`dropdownClassName` is deprecated. Please use `popupClassName` instead."),T(v(Ug,{...Object.assign({ref:t,virtual:$,dropdownMatchSelectWidth:E,showSearch:N==null?void 0:N.showSearch},ce,{transitionName:qo(D,ZD(u),g.transitionName),listHeight:c,listItemHeight:d,mode:A,prefixCls:_,placement:ve(),direction:y,inputIcon:K,menuItemSelectedIcon:Y,removeIcon:te,clearIcon:re,notFoundContent:Q,className:oe,getPopupContainer:a||S,dropdownClassName:ne,showArrow:J||H,disabled:q})}))};process.env.NODE_ENV!=="production"&&(l$.displayName="Select");const za=x.forwardRef(l$),iL=Kg(za);za.SECRET_COMBOBOX_MODE_DO_NOT_USE=s$;za.Option=Wg;za.OptGroup=Hg;za._InternalPanelDoNotUseOrYouWillBeFired=iL;const du=za,{Option:oh}=du;function My(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const c$=(e,t)=>{const{prefixCls:n,className:r,popupClassName:o,dropdownClassName:i,children:a,dataSource:s}=e,l=Kn(a);let c;l.length===1&&Ro(l[0])&&!My(l[0])&&([c]=l);const u=c?()=>c:void 0;let d;l.length&&My(l[0])?d=a:d=s?s.map(h=>{if(Ro(h))return h;switch(typeof h){case"string":return v(oh,{value:h,children:h},h);case"object":{const{value:m}=h;return v(oh,{value:m,children:h.text},m)}default:process.env.NODE_ENV!=="production"&&xt(!1,"AutoComplete","`dataSource` is only supports type `string[] | Object[]`.");return}}):[],process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&xt(!("dataSource"in e),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),process.env.NODE_ENV!=="production"&&xt(!c||!("size"in e),"AutoComplete","You need to control style self instead of setting `size` when using customize input."),process.env.NODE_ENV!=="production"&&xt(!i,"AutoComplete","`dropdownClassName` is deprecated, please use `popupClassName` instead."));const{getPrefixCls:f}=x.useContext(et),p=f("select",n);return v(du,{...Object.assign({ref:t,showArrow:!1},wn(e,["dataSource","dropdownClassName"]),{prefixCls:p,popupClassName:o||i,className:Z(`${p}-auto-complete`,r),mode:du.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:u}),children:d})},sd=x.forwardRef(c$),aL=Kg(sd);sd.Option=oh;sd._InternalPanelDoNotUseOrYouWillBeFired=aL;process.env.NODE_ENV!=="production"&&(c$.displayName="AutoComplete");const fu=sd;var Gi={shiftX:64,adjustY:1},Xi={adjustX:1,shiftY:!0},yr=[0,0],sL={left:{points:["cr","cl"],overflow:Xi,offset:[-4,0],targetOffset:yr},right:{points:["cl","cr"],overflow:Xi,offset:[4,0],targetOffset:yr},top:{points:["bc","tc"],overflow:Gi,offset:[0,-4],targetOffset:yr},bottom:{points:["tc","bc"],overflow:Gi,offset:[0,4],targetOffset:yr},topLeft:{points:["bl","tl"],overflow:Gi,offset:[0,-4],targetOffset:yr},leftTop:{points:["tr","tl"],overflow:Xi,offset:[-4,0],targetOffset:yr},topRight:{points:["br","tr"],overflow:Gi,offset:[0,-4],targetOffset:yr},rightTop:{points:["tl","tr"],overflow:Xi,offset:[4,0],targetOffset:yr},bottomRight:{points:["tr","br"],overflow:Gi,offset:[0,4],targetOffset:yr},rightBottom:{points:["bl","br"],overflow:Xi,offset:[4,0],targetOffset:yr},bottomLeft:{points:["tl","bl"],overflow:Gi,offset:[0,4],targetOffset:yr},leftBottom:{points:["br","bl"],overflow:Xi,offset:[-4,0],targetOffset:yr}};function Gg(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return v("div",{className:Z("".concat(n,"-content"),i),style:a,children:v("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o,children:typeof t=="function"?t():t})})}var lL=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],cL=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,h=t.onVisibleChange,m=t.afterVisibleChange,b=t.transitionName,g=t.animation,S=t.motion,C=t.placement,w=C===void 0?"right":C,y=t.align,$=y===void 0?{}:y,E=t.destroyTooltipOnHide,N=E===void 0?!1:E,P=t.defaultVisible,_=t.getTooltipContainer,D=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,I=t.id,T=t.showArrow,j=T===void 0?!0:T,A=nt(t,lL),B=O.useRef(null);O.useImperativeHandle(n,function(){return B.current});var H=L({},A);"visible"in t&&(H.popupVisible=t.visible);var U=function(){return v(Gg,{prefixCls:f,id:I,overlayInnerStyle:D,children:M},"content")};return v(FC,{popupClassName:r,prefixCls:f,popup:U,action:i,builtinPlacements:sL,popupPlacement:w,ref:B,popupAlign:$,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:b,popupAnimation:g,popupMotion:S,defaultPopupVisible:P,autoDestroy:N,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:j,...H,children:p})};const uL=O.forwardRef(cL),Lo=(e,t)=>new un(e).setAlpha(t).toRgbString(),qi=(e,t)=>new un(e).lighten(t).toHexString(),dL=e=>{const t=No(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},fL=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Lo(r,.85),colorTextSecondary:Lo(r,.65),colorTextTertiary:Lo(r,.45),colorTextQuaternary:Lo(r,.25),colorFill:Lo(r,.18),colorFillSecondary:Lo(r,.12),colorFillTertiary:Lo(r,.08),colorFillQuaternary:Lo(r,.04),colorBgElevated:qi(n,12),colorBgContainer:qi(n,8),colorBgLayout:qi(n,0),colorBgSpotlight:qi(n,26),colorBorder:qi(n,26),colorBorderSecondary:qi(n,19)}},pL=(e,t)=>{const n=Object.keys($g).map(o=>{const i=No(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??Ku(e);return Object.assign(Object.assign(Object.assign({},r),n),wx(e,{generateColorPalettes:dL,generateNeutralColorPalettes:fL}))},hL=pL;function gL(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const vL=(e,t)=>{const n=t??Ku(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),gL(t??e)),xx(r)),{controlHeight:o}),Sx(Object.assign(Object.assign({},n),{controlHeight:o})))},mL=vL;function bL(){const[e,t,n]=ka();return{theme:e,token:t,hashId:n}}const u$={defaultConfig:nu,defaultSeed:nu.token,useToken:bL,defaultAlgorithm:Ku,darkAlgorithm:hL,compactAlgorithm:mL},d$=8;function Xg(e){const t=d$,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function gc(e,t){return e?t:{}}function qg(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=Xg({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},_2(r,o,i,s,a)),{"&:before":{background:s}})]},gc(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),gc(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),gc(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),gc(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}function yL(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Dy={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},SL={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},wL=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function f$(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i}=e,a=t/2,s={};return Object.keys(Dy).forEach(l=>{const c=r&&SL[l]||Dy[l],u=Object.assign(Object.assign({},c),{offset:[0,0]});switch(s[l]=u,wL.has(l)&&(u.autoArrow=!1),l){case"top":case"topLeft":case"topRight":u.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=a+o;break}const d=Xg({contentRadius:i,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+a;break}u.overflow=yL(l,d,t,n)}),s}const xL=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,d$)}},[`${t}-content`]:{position:"relative"}}),Cx(e,(f,p)=>{let{darkColor:h}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},qg(Tt(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},p$=(e,t)=>xn("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=Tt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return[xL(l),Rl(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}})(e),CL=Xs.map(e=>`${e}-inverse`);function $L(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(we(CL),we(Xs)).includes(e):Xs.includes(e)}function h$(e,t){const n=$L(t),r=Z({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function OL(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=x.useContext(et),l=s("tooltip",t),[c,u]=p$(l,!0),d=h$(l,i),f=Object.assign(Object.assign({},a),d.overlayStyle),p=d.arrowStyle;return c(ae("div",{className:Z(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className),style:p,children:[v("div",{className:`${l}-arrow`}),v(Gg,{...Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),children:o})]}))}var EL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{useToken:NL}=u$,RL=(e,t)=>{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o])}),{picked:n,omitted:r}};function PL(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=RL(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=er(e,{style:a,className:null});return v("span",{style:i,className:Z(e.props.className,`${t}-disabled-compatible-wrapper`),children:s})}return e}const Yg=x.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0}=e,m=!!h,{token:b}=NL(),{getPopupContainer:g,getPrefixCls:S,direction:C}=x.useContext(et),w=x.useRef(null),y=()=>{var q;(q=w.current)===null||q===void 0||q.forceAlign()};x.useImperativeHandle(t,()=>({forceAlign:y,forcePopupAlign:()=>{process.env.NODE_ENV!=="production"&&xt(!1,"Tooltip","`forcePopupAlign` is align to `forceAlign` instead."),y()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow"]].forEach(q=>{let[oe,ve]=q;process.env.NODE_ENV!=="production"&&xt(!(oe in e),"Tooltip",`\`${oe}\` is deprecated, please use \`${ve}\` instead.`)}),process.env.NODE_ENV!=="production"&&xt(!p||typeof p=="boolean","Tooltip","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&xt(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"Tooltip","`arrowPointAtCenter` in `arrow` is deprecated, please use `pointAtCenter` instead."));const[$,E]=An(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),N=()=>{const{title:q,overlay:oe}=e;return!q&&!oe&&q!==0},P=q=>{var oe,ve;E(N()?!1:q),N()||((oe=e.onOpenChange)===null||oe===void 0||oe.call(e,q),(ve=e.onVisibleChange)===null||ve===void 0||ve.call(e,q))},_=()=>{var q,oe;const{builtinPlacements:ve,arrowPointAtCenter:fe=!1,autoAdjustOverflow:ye=!0}=e;let me=fe;return typeof h=="object"&&(me=(oe=(q=h.pointAtCenter)!==null&&q!==void 0?q:h.arrowPointAtCenter)!==null&&oe!==void 0?oe:fe),ve||f$({arrowPointAtCenter:me,autoAdjustOverflow:ye,arrowWidth:m?b.sizePopupArrow:0,borderRadius:b.borderRadius,offset:b.marginXXS})},D=(q,oe)=>{const ve=_(),fe=Object.keys(ve).find(ye=>{var me,Ee;return ve[ye].points[0]===((me=oe.points)===null||me===void 0?void 0:me[0])&&ve[ye].points[1]===((Ee=oe.points)===null||Ee===void 0?void 0:Ee[1])});if(fe){const ye=q.getBoundingClientRect(),me={top:"50%",left:"50%"};/top|Bottom/.test(fe)?me.top=`${ye.height-oe.offset[1]}px`:/Top|bottom/.test(fe)&&(me.top=`${-oe.offset[1]}px`),/left|Right/.test(fe)?me.left=`${ye.width-oe.offset[0]}px`:/right|Left/.test(fe)&&(me.left=`${-oe.offset[0]}px`),q.style.transformOrigin=`${me.left} ${me.top}`}},M=()=>{const{title:q,overlay:oe}=e;return q===0?q:oe||q||""},{getPopupContainer:I,placement:T="top",mouseEnterDelay:j=.1,mouseLeaveDelay:A=.1,overlayStyle:B,rootClassName:H}=e,U=EL(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=S("tooltip",o),F=S(),z=e["data-popover-inject"];let k=$;!("open"in e)&&!("visible"in e)&&N()&&(k=!1);const Q=PL(Ro(u)&&!Jx(u)?u:v("span",{children:u}),J),K=Q.props,Y=!K.className||typeof K.className=="string"?Z(K.className,{[i||`${J}-open`]:!0}):K.className,[te,re]=p$(J,!z),ce=h$(J,l),ne=Object.assign(Object.assign({},c),ce.overlayStyle),he=ce.arrowStyle,ee=Z(s,{[`${J}-rtl`]:C==="rtl"},ce.className,H,re);return te(v(uL,{...Object.assign({},U,{showArrow:m,placement:T,mouseEnterDelay:j,mouseLeaveDelay:A,prefixCls:J,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},he),B),getTooltipContainer:I||a||g,ref:w,builtinPlacements:_(),overlay:M(),visible:k,onVisibleChange:P,afterVisibleChange:d??f,onPopupAlign:D,overlayInnerStyle:ne,arrowContent:v("span",{className:`${J}-arrow-content`}),motion:{motionName:qo(F,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),children:k?er(Q,{className:Y}):Q}))});process.env.NODE_ENV!=="production"&&(Yg.displayName="Tooltip");Yg._InternalPanelDoNotUseOrYouWillBeFired=OL;const Qg=Yg,pu=e=>e?typeof e=="function"?e():e:null,IL=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:i,popoverPadding:a,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:f}=e;return[{[t]:Object.assign(Object.assign({},Rn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:a},[`${t}-title`]:{minWidth:o,marginBottom:d,color:l,fontWeight:i},[`${t}-inner-content`]:{color:r}})},qg(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},_L=e=>{const{componentCls:t}=e;return{[t]:Xs.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},TL=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,f=u/2-n,p=c;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${p}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${p}px`}}}},g$=xn("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=Tt(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[IL(o),_L(o),r&&TL(o),Rl(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}});var ML=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const DL=(e,t,n)=>{if(!(!t&&!n))return ae(Ht,{children:[t&&v("div",{className:`${e}-title`,children:pu(t)}),v("div",{className:`${e}-inner-content`,children:pu(n)})]})};function jL(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return ae("div",{className:Z(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o,children:[v("div",{className:`${n}-arrow`}),v(Gg,{...Object.assign({},e,{className:t,prefixCls:n}),children:l||DL(n,a,s)})]})}function AL(e){const{prefixCls:t}=e,n=ML(e,["prefixCls"]),{getPrefixCls:r}=x.useContext(et),o=r("popover",t),[i,a]=g$(o);return i(v(jL,{...Object.assign({},n,{prefixCls:o,hashId:a})}))}var kL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LL=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:ae(Ht,{children:[t&&v("div",{className:`${r}-title`,children:pu(t)}),v("div",{className:`${r}-inner-content`,children:pu(n)})]})},Jg=x.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=kL(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=x.useContext(et),p=f("popover",n),[h,m]=g$(p),b=f(),g=Z(i,m);return h(v(Qg,{...Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:p,overlayClassName:g,ref:t,overlay:v(LL,{prefixCls:p,title:r,content:o}),transitionName:qo(b,"zoom-big",d.transitionName),"data-popover-inject":!0})}))});process.env.NODE_ENV!=="production"&&(Jg.displayName="Popover");Jg._InternalPanelDoNotUseOrYouWillBeFired=AL;const zL=Jg;var BL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const v$=BL;var m$=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:v$})})};m$.displayName="RightOutlined";const hu=x.forwardRef(m$);var FL=O.forwardRef(function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=O.useRef(),a=O.useRef();O.useImperativeHandle(t,function(){return{}});var s=O.useRef(!1);return!s.current&&Gn()&&(a.current=r(),i.current=a.current.parentNode,s.current=!0),O.useEffect(function(){n==null||n(e)}),O.useEffect(function(){return a.current.parentNode===null&&i.current!==null&&i.current.appendChild(a.current),function(){var l,c;(l=a.current)===null||l===void 0||(c=l.parentNode)===null||c===void 0||c.removeChild(a.current)}},[]),a.current?ln.createPortal(o,a.current):null});function VL(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function HL(e,t,n){var r=e[t]||{};return L(L({},r),n)}function WL(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(VL(e[s].points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function b$(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function UL(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,o=e.mask,i=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!o)return null;var l={};return(i||s||a)&&(l=L({motionAppear:!0},b$({motion:i,prefixCls:t,transitionName:s,animation:a}))),v(vr,{...l,visible:n,removeOnLeave:!0,children:function(c){var u=c.className;return v("div",{style:{zIndex:r},className:Z("".concat(t,"-mask"),u)})}})}function jy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ay(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jy(Object(n),!0).forEach(function(r){KL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ih(e){return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}function KL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ls,GL={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function gu(){if(ls!==void 0)return ls;ls="";var e=document.createElement("p").style,t="Transform";for(var n in GL)n+t in e&&(ls=n);return ls}function y$(){return gu()?"".concat(gu(),"TransitionProperty"):"transitionProperty"}function ld(){return gu()?"".concat(gu(),"Transform"):"transform"}function ky(e,t){var n=y$();n&&(e.style[n]=t,n!=="transitionProperty"&&(e.style.transitionProperty=t))}function Nf(e,t){var n=ld();n&&(e.style[n]=t,n!=="transform"&&(e.style.transform=t))}function XL(e){return e.style.transitionProperty||e.style[y$()]}function qL(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(ld());if(n&&n!=="none"){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var YL=/matrix\((.*)\)/,QL=/matrix3d\((.*)\)/;function JL(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(ld());if(r&&r!=="none"){var o,i=r.match(YL);if(i)i=i[1],o=i.split(",").map(function(s){return parseFloat(s,10)}),o[4]=t.x,o[5]=t.y,Nf(e,"matrix(".concat(o.join(","),")"));else{var a=r.match(QL)[1];o=a.split(",").map(function(s){return parseFloat(s,10)}),o[12]=t.x,o[13]=t.y,Nf(e,"matrix3d(".concat(o.join(","),")"))}}else Nf(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var ZL=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,_l;function Ly(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function fa(e,t,n){var r=n;if(ih(t)==="object"){for(var o in t)t.hasOwnProperty(o)&&fa(e,o,t[o]);return}if(typeof r<"u"){typeof r=="number"&&(r="".concat(r,"px")),e.style[t]=r;return}return _l(e,t)}function ez(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),n-=a.clientLeft||i.clientLeft||0,r-=a.clientTop||i.clientTop||0,{left:n,top:r}}function S$(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function w$(e){return S$(e)}function x$(e){return S$(e,!0)}function Js(e){var t=ez(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=w$(r),t.top+=x$(r),t}function Zg(e){return e!=null&&e==e.window}function C$(e){return Zg(e)?e.document:e.nodeType===9?e:e.ownerDocument}function tz(e,t,n){var r=n,o="",i=C$(e);return r=r||i.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}var nz=new RegExp("^(".concat(ZL,")(?!px)[a-z%]+$"),"i"),rz=/^(top|right|bottom|left)$/,Rf="currentStyle",Pf="runtimeStyle",ri="left",oz="px";function iz(e,t){var n=e[Rf]&&e[Rf][t];if(nz.test(n)&&!rz.test(t)){var r=e.style,o=r[ri],i=e[Pf][ri];e[Pf][ri]=e[Rf][ri],r[ri]=t==="fontSize"?"1em":n||0,n=r.pixelLeft+oz,r[ri]=o,e[Pf][ri]=i}return n===""?"auto":n}typeof window<"u"&&(_l=window.getComputedStyle?tz:iz);function vc(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function zy(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function By(e,t,n){fa(e,"position")==="static"&&(e.style.position="relative");var r=-999,o=-999,i=vc("left",n),a=vc("top",n),s=zy(i),l=zy(a);i!=="left"&&(r=999),a!=="top"&&(o=999);var c="",u=Js(e);("left"in t||"top"in t)&&(c=XL(e)||"",ky(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),Ly(e);var d=Js(e),f={};for(var p in t)if(t.hasOwnProperty(p)){var h=vc(p,n),m=p==="left"?r:o,b=u[p]-d[p];h===p?f[h]=m+b:f[h]=m-b}fa(e,f),Ly(e),("left"in t||"top"in t)&&ky(e,c);var g={};for(var S in t)if(t.hasOwnProperty(S)){var C=vc(S,n),w=t[S]-u[S];S===C?g[C]=f[C]+w:g[C]=f[C]-w}fa(e,g)}function az(e,t){var n=Js(e),r=qL(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),JL(e,o)}function sz(e,t,n){if(n.ignoreShake){var r=Js(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?By(e,t,n):n.useCssTransform&&ld()in document.body.style?az(e,t):By(e,t,n)}function ev(e,t){for(var n=0;n<e.length;n++)t(e[n])}function $$(e){return _l(e,"boxSizing")==="border-box"}var lz=["margin","border","padding"],ah=-1,cz=2,sh=1,uz=0;function dz(e,t,n){var r={},o=e.style,i;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);n.call(e);for(i in t)t.hasOwnProperty(i)&&(o[i]=r[i])}function xs(e,t,n){var r=0,o,i,a;for(i=0;i<t.length;i++)if(o=t[i],o)for(a=0;a<n.length;a++){var s=void 0;o==="border"?s="".concat(o).concat(n[a],"Width"):s=o+n[a],r+=parseFloat(_l(e,s))||0}return r}var Jr={getParent:function(t){var n=t;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};ev(["Width","Height"],function(e){Jr["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Jr["viewport".concat(e)](n))},Jr["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement,a=i[n];return r.compatMode==="CSS1Compat"&&a||o&&o[n]||a}});function Fy(e,t,n){var r=n;if(Zg(e))return t==="width"?Jr.viewportWidth(e):Jr.viewportHeight(e);if(e.nodeType===9)return t==="width"?Jr.docWidth(e):Jr.docHeight(e);var o=t==="width"?["Left","Right"]:["Top","Bottom"],i=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),a=$$(e),s=0;(i==null||i<=0)&&(i=void 0,s=_l(e,t),(s==null||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),r===void 0&&(r=a?sh:ah);var l=i!==void 0||a,c=i||s;return r===ah?l?c-xs(e,["border","padding"],o):s:l?r===sh?c:c+(r===cz?-xs(e,["border"],o):xs(e,["margin"],o)):s+xs(e,lz.slice(r),o)}var fz={position:"absolute",visibility:"hidden",display:"block"};function Vy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return o.offsetWidth!==0?r=Fy.apply(void 0,t):dz(o,fz,function(){r=Fy.apply(void 0,t)}),r}ev(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Jr["outer".concat(t)]=function(r,o){return r&&Vy(r,e,o?uz:sh)};var n=e==="width"?["Left","Right"]:["Top","Bottom"];Jr[e]=function(r,o){var i=o;if(i!==void 0){if(r){var a=$$(r);return a&&(i+=xs(r,["padding","border"],n)),fa(r,e,i)}return}return r&&Vy(r,e,ah)}});function O$(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var ft={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var n=t.ownerDocument||t;return n.defaultView||n.parentWindow},getDocument:C$,offset:function(t,n,r){if(typeof n<"u")sz(t,n,r||{});else return Js(t)},isWindow:Zg,each:ev,css:fa,clone:function(t){var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);var o=t.overflow;if(o)for(n in t)t.hasOwnProperty(n)&&(r.overflow[n]=t.overflow[n]);return r},mix:O$,getWindowScrollLeft:function(t){return w$(t)},getWindowScrollTop:function(t){return x$(t)},merge:function(){for(var t={},n=0;n<arguments.length;n++)ft.mix(t,n<0||arguments.length<=n?void 0:arguments[n]);return t},viewportWidth:0,viewportHeight:0};O$(ft,Jr);var If=ft.getParent;function lh(e){if(ft.isWindow(e)||e.nodeType===9)return null;var t=ft.getDocument(e),n=t.body,r,o=ft.css(e,"position"),i=o==="fixed"||o==="absolute";if(!i)return e.nodeName.toLowerCase()==="html"?null:If(e);for(r=If(e);r&&r!==n&&r.nodeType!==9;r=If(r))if(o=ft.css(r,"position"),o!=="static")return r;return null}var Hy=ft.getParent;function pz(e){if(ft.isWindow(e)||e.nodeType===9)return!1;var t=ft.getDocument(e),n=t.body,r=null;for(r=Hy(e);r&&r!==n&&r!==t;r=Hy(r)){var o=ft.css(r,"position");if(o==="fixed")return!0}return!1}function tv(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=lh(e),o=ft.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;r;){if((navigator.userAgent.indexOf("MSIE")===-1||r.clientWidth!==0)&&r!==a&&r!==s&&ft.css(r,"overflow")!=="visible"){var l=ft.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}else if(r===a||r===s)break;r=lh(r)}var c=null;if(!ft.isWindow(e)&&e.nodeType!==9){c=e.style.position;var u=ft.css(e,"position");u==="absolute"&&(e.style.position="fixed")}var d=ft.getWindowScrollLeft(i),f=ft.getWindowScrollTop(i),p=ft.viewportWidth(i),h=ft.viewportHeight(i),m=s.scrollWidth,b=s.scrollHeight,g=window.getComputedStyle(a);if(g.overflowX==="hidden"&&(m=i.innerWidth),g.overflowY==="hidden"&&(b=i.innerHeight),e.style&&(e.style.position=c),t||pz(e))n.left=Math.max(n.left,d),n.top=Math.max(n.top,f),n.right=Math.min(n.right,d+p),n.bottom=Math.min(n.bottom,f+h);else{var S=Math.max(m,d+p);n.right=Math.min(n.right,S);var C=Math.max(b,f+h);n.bottom=Math.min(n.bottom,C)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function hz(e,t,n,r){var o=ft.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),ft.mix(o,i)}function nv(e){var t,n,r;if(!ft.isWindow(e)&&e.nodeType!==9)t=ft.offset(e),n=ft.outerWidth(e),r=ft.outerHeight(e);else{var o=ft.getWindow(e);t={left:ft.getWindowScrollLeft(o),top:ft.getWindowScrollTop(o)},n=ft.viewportWidth(o),r=ft.viewportHeight(o)}return t.width=n,t.height=r,t}function Wy(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?a+=o/2:r==="r"&&(a+=o),{left:a,top:s}}function mc(e,t,n,r,o){var i=Wy(t,n[1]),a=Wy(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function Uy(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ky(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function gz(e,t,n){return e.left>n.right||e.left+t.width<n.left}function vz(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function bc(e,t,n){var r=[];return ft.each(e,function(o){r.push(o.replace(t,function(i){return n[i]}))}),r}function yc(e,t){return e[t]=-e[t],e}function Gy(e,t){var n;return/%$/.test(e)?n=parseInt(e.substring(0,e.length-1),10)/100*t:n=parseInt(e,10),n||0}function Xy(e,t){e[0]=Gy(e[0],t.width),e[1]=Gy(e[1],t.height)}function E$(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a),s=s||{};var c={},u=0,d=!!(s&&s.alwaysByViewport),f=tv(l,d),p=nv(l);Xy(i,p),Xy(a,t);var h=mc(p,t,o,i,a),m=ft.merge(p,h);if(f&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&Uy(h,p,f)){var b=bc(o,/[lr]/gi,{l:"r",r:"l"}),g=yc(i,0),S=yc(a,0),C=mc(p,t,b,g,S);gz(C,p,f)||(u=1,o=b,i=g,a=S)}if(s.adjustY&&Ky(h,p,f)){var w=bc(o,/[tb]/gi,{t:"b",b:"t"}),y=yc(i,1),$=yc(a,1),E=mc(p,t,w,y,$);vz(E,p,f)||(u=1,o=w,i=y,a=$)}u&&(h=mc(p,t,o,i,a),ft.mix(m,h));var N=Uy(h,p,f),P=Ky(h,p,f);if(N||P){var _=o;N&&(_=bc(o,/[lr]/gi,{l:"r",r:"l"})),P&&(_=bc(o,/[tb]/gi,{t:"b",b:"t"})),o=_,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=s.adjustX&&N,c.adjustY=s.adjustY&&P,(c.adjustX||c.adjustY)&&(m=hz(h,p,f,c))}return m.width!==p.width&&ft.css(l,"width",ft.width(l)+m.width-p.width),m.height!==p.height&&ft.css(l,"height",ft.height(l)+m.height-p.height),ft.offset(l,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function mz(e,t){var n=tv(e,t),r=nv(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function rv(e,t,n){var r=n.target||t,o=nv(r),i=!mz(r,n.overflow&&n.overflow.alwaysByViewport);return E$(e,o,n,i)}rv.__getOffsetParent=lh;rv.__getVisibleRectForElement=tv;function bz(e,t,n){var r,o,i=ft.getDocument(e),a=i.defaultView||i.parentWindow,s=ft.getWindowScrollLeft(a),l=ft.getWindowScrollTop(a),c=ft.viewportWidth(a),u=ft.viewportHeight(a);"pageX"in t?r=t.pageX:r=s+t.clientX,"pageY"in t?o=t.pageY:o=l+t.clientY;var d={left:r,top:o,width:0,height:0},f=r>=0&&r<=s+c&&o>=0&&o<=l+u,p=[n.points[0],"cc"];return E$(e,d,Ay(Ay({},n),{},{points:p}),f)}const yz=function(e,t){var n=O.useRef(!1),r=O.useRef(null);function o(){window.clearTimeout(r.current)}function i(a){if(o(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}else r.current=window.setTimeout(function(){n.current=!1,i()},t)}return[i,function(){n.current=!1,o()}]};function Sz(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function wz(e,t){e!==document.activeElement&&gi(t,e)&&typeof e.focus=="function"&&e.focus()}function qy(e,t){var n=null,r=null;function o(a){var s=X(a,1),l=s[0].target;if(document.documentElement.contains(l)){var c=l.getBoundingClientRect(),u=c.width,d=c.height,f=Math.floor(u),p=Math.floor(d);(n!==f||r!==p)&&Promise.resolve().then(function(){t({width:f,height:p})}),n=f,r=p}}var i=new Tw(o);return e&&i.observe(e),function(){i.disconnect()}}function Yy(e){return typeof e!="function"?null:e()}function Qy(e){return Ze(e)!=="object"||!e?null:e}var xz=function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,s=t.onAlign,l=t.monitorWindowResize,c=t.monitorBufferTime,u=c===void 0?0:c,d=O.useRef({}),f=O.useRef(),p=O.Children.only(r),h=O.useRef({});h.current.disabled=o,h.current.target=i,h.current.align=a,h.current.onAlign=s;var m=yz(function(){var D=h.current,M=D.disabled,I=D.target,T=D.align,j=D.onAlign,A=f.current;if(!M&&I&&A){var B,H=Yy(I),U=Qy(I);d.current.element=H,d.current.point=U,d.current.align=T;var J=document,F=J.activeElement;return H&&Zu(H)?B=rv(A,H,T):U&&(B=bz(A,U,T)),wz(F,A),j&&B&&j(A,B),!0}return!1},u),b=X(m,2),g=b[0],S=b[1],C=O.useState(),w=X(C,2),y=w[0],$=w[1],E=O.useState(),N=X(E,2),P=N[0],_=N[1];return en(function(){$(Yy(i)),_(Qy(i))}),O.useEffect(function(){(d.current.element!==y||!Sz(d.current.point,P)||!Bu(d.current.align,a))&&g()}),O.useEffect(function(){var D=qy(f.current,g);return D},[f.current]),O.useEffect(function(){var D=qy(y,g);return D},[y]),O.useEffect(function(){o?S():g()},[o]),O.useEffect(function(){if(l){var D=ws(window,"resize",g);return D.remove}},[l]),O.useEffect(function(){return function(){S()}},[]),O.useImperativeHandle(n,function(){return{forceAlign:function(){return g(!0)}}}),O.isValidElement(p)&&(p=O.cloneElement(p,{ref:Wr(p.ref,f)})),p},N$=O.forwardRef(xz);N$.displayName="Align";var Jy=["measure","alignPre","align",null,"motion"];const Cz=function(e,t){var n=Ko(null),r=X(n,2),o=r[0],i=r[1],a=O.useRef();function s(u){i(u,!0)}function l(){Rt.cancel(a.current)}function c(u){l(),a.current=Rt(function(){s(function(d){switch(o){case"align":return"motion";case"motion":return"stable"}return d}),u==null||u()})}return O.useEffect(function(){s("measure")},[e]),O.useEffect(function(){switch(o){case"measure":t();break}o&&(a.current=Rt(Oi(Xn().mark(function u(){var d,f;return Xn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:d=Jy.indexOf(o),f=Jy[d+1],f&&d!==-1&&s(f);case 3:case"end":return h.stop()}},u)}))))},[o]),O.useEffect(function(){return function(){l()}},[]),[o,c]},$z=function(e){var t=x.useState({width:0,height:0}),n=X(t,2),r=n[0],o=n[1];function i(s){var l=s.offsetWidth,c=s.offsetHeight,u=s.getBoundingClientRect(),d=u.width,f=u.height;Math.abs(l-d)<1&&Math.abs(c-f)<1&&(l=d,c=f),o({width:l,height:c})}var a=x.useMemo(function(){var s={};if(e){var l=r.width,c=r.height;e.indexOf("height")!==-1&&c?s.height=c:e.indexOf("minHeight")!==-1&&c&&(s.minHeight=c),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l)}return s},[e,r]);return[a,i]};var R$=x.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,f=e.point,p=e.getRootDomNode,h=e.getClassNameFromAlign,m=e.onAlign,b=e.onMouseEnter,g=e.onMouseLeave,S=e.onMouseDown,C=e.onTouchStart,w=e.onClick,y=O.useRef(),$=O.useRef(),E=O.useState(),N=X(E,2),P=N[0],_=N[1],D=$z(l),M=X(D,2),I=M[0],T=M[1];function j(){l&&T(p())}var A=Cz(n,j),B=X(A,2),H=B[0],U=B[1],J=O.useState(0),F=X(J,2),z=F[0],k=F[1],Q=O.useRef();en(function(){H==="alignPre"&&k(0)},[H]);function K(){return f||p}function Y(){var q;(q=y.current)===null||q===void 0||q.forceAlign()}function te(q,oe){var ve=h(oe);P!==ve&&_(ve),k(function(fe){return fe+1}),H==="align"&&(m==null||m(q,oe))}en(function(){H==="align"&&(z<3?Y():U(function(){var q;(q=Q.current)===null||q===void 0||q.call(Q)}))},[z]);var re=L({},b$(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(q){var oe=re[q];re[q]=function(ve,fe){return U(),oe==null?void 0:oe(ve,fe)}});function ce(){return new Promise(function(q){Q.current=q})}x.useEffect(function(){!re.motionName&&H==="motion"&&U()},[re.motionName,H]),x.useImperativeHandle(t,function(){return{forceAlign:Y,getElement:function(){return $.current}}});var ne=L(L({},I),{},{zIndex:s,opacity:H==="motion"||H==="stable"||!n?void 0:0,pointerEvents:!n&&H!=="stable"?"none":void 0},i),he=!0;d!=null&&d.points&&(H==="align"||H==="stable")&&(he=!1);var ee=a;return x.Children.count(a)>1&&(ee=v("div",{className:"".concat(r,"-content"),children:a})),v(vr,{visible:n,ref:$,leavedClassName:"".concat(r,"-hidden"),...re,onAppearPrepare:ce,onEnterPrepare:ce,removeOnLeave:c,forceRender:u,children:function(q,oe){var ve=q.className,fe=q.style,ye=Z(r,o,P,ve);return v(N$,{target:K(),ref:y,monitorWindowResize:!0,disabled:he,align:d,onAlign:te,children:v("div",{ref:oe,className:ye,onMouseEnter:b,onMouseLeave:g,onMouseDownCapture:S,onTouchStartCapture:C,onClick:w,style:L(L({},fe),ne),children:ee})},"popup")}})});R$.displayName="PopupInner";var P$=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile;a=a===void 0?{}:a;var s=a.popupClassName,l=a.popupStyle,c=a.popupMotion,u=c===void 0?{}:c,d=a.popupRender,f=e.onClick,p=x.useRef();x.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return p.current}}});var h=L({zIndex:o},l),m=i;return x.Children.count(i)>1&&(m=v("div",{className:"".concat(n,"-content"),children:i})),d&&(m=d(m)),v(vr,{visible:r,ref:p,removeOnLeave:!0,...u,children:function(b,g){var S=b.className,C=b.style,w=Z(n,s,S);return v("div",{ref:g,className:w,onClick:f,style:L(L({},C),h),children:m})}})});P$.displayName="MobilePopupInner";var Oz=["visible","mobile"],I$=x.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=nt(e,Oz),i=O.useState(n),a=X(i,2),s=a[0],l=a[1],c=O.useState(!1),u=X(c,2),d=u[0],f=u[1],p=L(L({},o),{},{visible:s});O.useEffect(function(){l(n),n&&r&&f(Il())},[n,r]);var h=d?v(P$,{...p,mobile:r,ref:t}):v(R$,{...p,ref:t});return ae("div",{children:[v(UL,{...p}),h]})});I$.displayName="Popup";var Zy=x.createContext(null);function _f(){}function Ez(){return""}function Nz(e){return e?e.ownerDocument:window.document}var Rz=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Pz(e){var t=function(n){Hr(o,n);var r=$i(o);function o(i){var a;Wt(this,o),a=r.call(this,i),W(ot(a),"popupRef",x.createRef()),W(ot(a),"triggerRef",x.createRef()),W(ot(a),"portalContainer",void 0),W(ot(a),"attachId",void 0),W(ot(a),"clickOutsideHandler",void 0),W(ot(a),"touchOutsideHandler",void 0),W(ot(a),"contextMenuOutsideHandler1",void 0),W(ot(a),"contextMenuOutsideHandler2",void 0),W(ot(a),"mouseDownTimeout",void 0),W(ot(a),"focusTime",void 0),W(ot(a),"preClickTime",void 0),W(ot(a),"preTouchTime",void 0),W(ot(a),"delayTimer",void 0),W(ot(a),"hasPopupMouseDown",void 0),W(ot(a),"onMouseEnter",function(l){var c=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",l),a.delaySetPopupVisible(!0,c,c?null:l)}),W(ot(a),"onMouseMove",function(l){a.fireEvents("onMouseMove",l),a.setPoint(l)}),W(ot(a),"onMouseLeave",function(l){a.fireEvents("onMouseLeave",l),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),W(ot(a),"onPopupMouseEnter",function(){a.clearDelayTimer()}),W(ot(a),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&gi((c=a.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),W(ot(a),"onFocus",function(l){a.fireEvents("onFocus",l),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay))}),W(ot(a),"onMouseDown",function(l){a.fireEvents("onMouseDown",l),a.preClickTime=Date.now()}),W(ot(a),"onTouchStart",function(l){a.fireEvents("onTouchStart",l),a.preTouchTime=Date.now()}),W(ot(a),"onBlur",function(l){a.fireEvents("onBlur",l),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay)}),W(ot(a),"onContextMenu",function(l){l.preventDefault(),a.fireEvents("onContextMenu",l),a.setPopupVisible(!0,l)}),W(ot(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close()}),W(ot(a),"onClick",function(l){if(a.fireEvents("onClick",l),a.focusTime){var c;if(a.preClickTime&&a.preTouchTime?c=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?c=a.preClickTime:a.preTouchTime&&(c=a.preTouchTime),Math.abs(c-a.focusTime)<20)return;a.focusTime=0}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var u=!a.state.popupVisible;(a.isClickToHide()&&!u||u&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,l)}),W(ot(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1},0),a.context){var l;(l=a.context).onPopupMouseDown.apply(l,arguments)}}),W(ot(a),"onDocumentClick",function(l){if(!(a.props.mask&&!a.props.maskClosable)){var c=l.target,u=a.getRootDomNode(),d=a.getPopupDomNode();(!gi(u,c)||a.isContextMenuOnly())&&!gi(d,c)&&!a.hasPopupMouseDown&&a.close()}}),W(ot(a),"getRootDomNode",function(){var l=a.props.getTriggerDOMNode;if(l)return l(a.triggerRef.current);try{var c=Ws(a.triggerRef.current);if(c)return c}catch{}return ln.findDOMNode(ot(a))}),W(ot(a),"getPopupClassNameFromAlign",function(l){var c=[],u=a.props,d=u.popupPlacement,f=u.builtinPlacements,p=u.prefixCls,h=u.alignPoint,m=u.getPopupClassNameFromAlign;return d&&f&&c.push(WL(f,p,l,h)),m&&c.push(m(l)),c.join(" ")}),W(ot(a),"getComponent",function(){var l=a.props,c=l.prefixCls,u=l.destroyPopupOnHide,d=l.popupClassName,f=l.onPopupAlign,p=l.popupMotion,h=l.popupAnimation,m=l.popupTransitionName,b=l.popupStyle,g=l.mask,S=l.maskAnimation,C=l.maskTransitionName,w=l.maskMotion,y=l.zIndex,$=l.popup,E=l.stretch,N=l.alignPoint,P=l.mobile,_=l.forceRender,D=l.onPopupClick,M=a.state,I=M.popupVisible,T=M.point,j=a.getPopupAlign(),A={};return a.isMouseEnterToShow()&&(A.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(A.onMouseLeave=a.onPopupMouseLeave),A.onMouseDown=a.onPopupMouseDown,A.onTouchStart=a.onPopupMouseDown,v(I$,{prefixCls:c,destroyPopupOnHide:u,visible:I,point:N&&T,className:d,align:j,onAlign:f,animation:h,getClassNameFromAlign:a.getPopupClassNameFromAlign,...A,stretch:E,getRootDomNode:a.getRootDomNode,style:b,mask:g,zIndex:y,transitionName:m,maskAnimation:S,maskTransitionName:C,maskMotion:w,ref:a.popupRef,motion:p,mobile:P,forceRender:_,onClick:D,children:typeof $=="function"?$():$})}),W(ot(a),"attachParent",function(l){Rt.cancel(a.attachId);var c=a.props,u=c.getPopupContainer,d=c.getDocument,f=a.getRootDomNode(),p;u?(f||u.length===0)&&(p=u(f)):p=d(a.getRootDomNode()).body,p?p.appendChild(l):a.attachId=Rt(function(){a.attachParent(l)})}),W(ot(a),"getContainer",function(){if(!a.portalContainer){var l=a.props.getDocument,c=l(a.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",a.portalContainer=c}return a.attachParent(a.portalContainer),a.portalContainer}),W(ot(a),"setPoint",function(l){var c=a.props.alignPoint;!c||!l||a.setState({point:{pageX:l.pageX,pageY:l.pageY}})}),W(ot(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible)}),W(ot(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var s;return"popupVisible"in i?s=!!i.popupVisible:s=!!i.defaultPopupVisible,a.state={prevPopupVisible:s,popupVisible:s},Rz.forEach(function(l){a["fire".concat(l)]=function(c){a.fireEvents(l,c)}}),a}return Ut(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var a=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=ws(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=ws(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=ws(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=ws(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Rt.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var a;return((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,s=a.popupPlacement,l=a.popupAlign,c=a.builtinPlacements;return s&&c?HL(c,s,l):l}},{key:"setPopupVisible",value:function(a,s){var l=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:c}),this.props.onPopupVisibleChange(a)),l&&s&&a&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(a,s,l){var c=this,u=s*1e3;if(this.clearDelayTimer(),u){var d=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(a,d),c.clearDelayTimer()},u)}else this.setPopupVisible(a,l)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(a){var s=this.props.children.props,l=this.props;return s[a]&&l[a]?this["fire".concat(a)]:s[a]||l[a]}},{key:"isClickToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign()}}},{key:"fireEvents",value:function(a,s){var l=this.props.children.props[a];l&&l(s);var c=this.props[a];c&&c(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var a=this.state.popupVisible,s=this.props,l=s.children,c=s.forceRender,u=s.alignPoint,d=s.className,f=s.autoDestroy,p=x.Children.only(l),h={key:"trigger"};this.isContextMenuToShow()?h.onContextMenu=this.onContextMenu:h.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(h.onClick=this.onClick,h.onMouseDown=this.onMouseDown,h.onTouchStart=this.onTouchStart):(h.onClick=this.createTwoChains("onClick"),h.onMouseDown=this.createTwoChains("onMouseDown"),h.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(h.onMouseEnter=this.onMouseEnter,u&&(h.onMouseMove=this.onMouseMove)):h.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?h.onMouseLeave=this.onMouseLeave:h.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(h.onFocus=this.onFocus,h.onBlur=this.onBlur):(h.onFocus=this.createTwoChains("onFocus"),h.onBlur=this.createTwoChains("onBlur"));var m=Z(p&&p.props&&p.props.className,d);m&&(h.className=m);var b=L({},h);Da(p)&&(b.ref=Wr(this.triggerRef,p.ref));var g=x.cloneElement(p,b),S;return(a||this.popupRef.current||c)&&(S=v(e,{getContainer:this.getContainer,didUpdate:this.handlePortalUpdate,children:this.getComponent()},"portal")),!a&&f&&(S=null),ae(Zy.Provider,{value:this.triggerContextValue,children:[g,S]})}}],[{key:"getDerivedStateFromProps",value:function(a,s){var l=a.popupVisible,c={};return l!==void 0&&s.popupVisible!==l&&(c.popupVisible=l,c.prevPopupVisible=s.popupVisible),c}}]),o}(x.Component);return W(t,"contextType",Zy),W(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ez,getDocument:Nz,onPopupVisibleChange:_f,afterPopupVisibleChange:_f,onPopupAlign:_f,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const _$=Pz(FL);var Yi={adjustX:1,adjustY:1},Qi=[0,0],Iz={topLeft:{points:["bl","tl"],overflow:Yi,offset:[0,-4],targetOffset:Qi},topCenter:{points:["bc","tc"],overflow:Yi,offset:[0,-4],targetOffset:Qi},topRight:{points:["br","tr"],overflow:Yi,offset:[0,-4],targetOffset:Qi},bottomLeft:{points:["tl","bl"],overflow:Yi,offset:[0,4],targetOffset:Qi},bottomCenter:{points:["tc","bc"],overflow:Yi,offset:[0,4],targetOffset:Qi},bottomRight:{points:["tr","br"],overflow:Yi,offset:[0,4],targetOffset:Qi}};function e0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Zu(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function T$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=we(e.querySelectorAll("*")).filter(function(r){return e0(r,t)});return e0(e,t)&&n.unshift(e),n}var _z=ie.ESC,Tz=ie.TAB;function Mz(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=x.useRef(!1),s=function(){if(t&&r.current){var d,f,p,h;(d=r.current)===null||d===void 0||(f=d.triggerRef)===null||f===void 0||(p=f.current)===null||p===void 0||(h=p.focus)===null||h===void 0||h.call(p),n(!1),typeof o=="function"&&o(!1)}},l=function(){var d,f,p,h,m=T$((d=r.current)===null||d===void 0||(f=d.popupRef)===null||f===void 0||(p=f.current)===null||p===void 0||(h=p.getElement)===null||h===void 0?void 0:h.call(p)),b=m[0];return b!=null&&b.focus?(b.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case _z:s();break;case Tz:{var f=!1;a.current||(f=l()),f?d.preventDefault():s();break}}};x.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Rt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var Dz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function jz(e,t){var n=e.arrow,r=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,a=e.transitionName,s=e.animation,l=e.align,c=e.placement,u=c===void 0?"bottomLeft":c,d=e.placements,f=d===void 0?Iz:d,p=e.getPopupContainer,h=e.showAction,m=e.hideAction,b=e.overlayClassName,g=e.overlayStyle,S=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,y=e.autoFocus,$=nt(e,Dz),E=x.useState(),N=X(E,2),P=N[0],_=N[1],D="visible"in e?S:P,M=x.useRef(null);x.useImperativeHandle(t,function(){return M.current}),Mz({visible:D,setTriggerVisible:_,triggerRef:M,onVisibleChange:e.onVisibleChange,autoFocus:y});var I=function(){var k=e.overlay,Q;return typeof k=="function"?Q=k():Q=k,Q},T=function(k){var Q=e.onOverlayClick;_(!1),Q&&Q(k)},j=function(k){var Q=e.onVisibleChange;_(k),typeof Q=="function"&&Q(k)},A=function(){var k=I();return ae(Ht,{children:[r&&v("div",{className:"".concat(i,"-arrow")}),k]})},B=function(){var k=e.overlay;return typeof k=="function"?A:A()},H=function(){var k=e.minOverlayWidthMatchTrigger,Q=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?k:!Q},U=function(){var k=e.openClassName;return k!==void 0?k:"".concat(i,"-open")},J=function(){var k=e.children,Q=k.props?k.props:{},K=Z(Q.className,U());return D&&k?x.cloneElement(k,{className:K}):k},F=m;return!F&&w.indexOf("contextMenu")!==-1&&(F=["click"]),v(_$,{...L(L({builtinPlacements:f},$),{},{prefixCls:i,ref:M,popupClassName:Z(b,W({},"".concat(i,"-show-arrow"),r)),popupStyle:g,action:w,showAction:h,hideAction:F||[],popupPlacement:u,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:D,stretch:H()?"minWidth":"",popup:B(),onPopupVisibleChange:j,onPopupClick:T,getPopupContainer:p}),children:J()})}const M$=x.forwardRef(jz);var D$=x.createContext(null);function ov(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function j$(e){var t=x.useContext(D$);return ov(t,e)}var Az=["children","locked"],zr=x.createContext(null);function kz(e,t){var n=L({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Zs(e){var t=e.children,n=e.locked,r=nt(e,Az),o=x.useContext(zr),i=Cl(function(){return kz(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!Bu(a[1],s[1],!0))});return v(zr.Provider,{value:i,children:t})}var Lz=[],A$=x.createContext(null);function cd(){return x.useContext(A$)}var k$=x.createContext(Lz);function Ba(e){var t=x.useContext(k$);return x.useMemo(function(){return e!==void 0?[].concat(we(t),[e]):t},[t,e])}var L$=x.createContext(null),iv=x.createContext({}),ch=ie.LEFT,uh=ie.RIGHT,dh=ie.UP,zc=ie.DOWN,Bc=ie.ENTER,z$=ie.ESC,cs=ie.HOME,us=ie.END,t0=[dh,zc,ch,uh];function zz(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Bc)return{inlineTrigger:!0};var f=(o={},W(o,dh,l),W(o,zc,c),o),p=(i={},W(i,ch,n?c:l),W(i,uh,n?l:c),W(i,zc,u),W(i,Bc,u),i),h=(a={},W(a,dh,l),W(a,zc,c),W(a,Bc,u),W(a,z$,d),W(a,ch,n?u:d),W(a,uh,n?d:u),a),m={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h},b=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(b){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function Bz(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Fz(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function B$(e,t){var n=T$(e,!0);return n.filter(function(r){return t.has(r)})}function n0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=B$(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function Vz(e,t,n,r,o,i,a,s,l,c){var u=x.useRef(),d=x.useRef();d.current=t;var f=function(){Rt.cancel(u.current)};return x.useEffect(function(){return function(){f()}},[]),function(p){var h=p.which;if([].concat(t0,[Bc,z$,cs,us]).includes(h)){var m,b,g,S=function(){m=new Set,b=new Map,g=new Map;var j=i();return j.forEach(function(A){var B=document.querySelector("[data-menu-id='".concat(ov(r,A),"']"));B&&(m.add(B),g.set(B,A),b.set(A,B))}),m};S();var C=b.get(t),w=Fz(C,m),y=g.get(w),$=zz(e,a(y,!0).length===1,n,h);if(!$&&h!==cs&&h!==us)return;(t0.includes(h)||[cs,us].includes(h))&&p.preventDefault();var E=function(j){if(j){var A=j,B=j.querySelector("a");B!=null&&B.getAttribute("href")&&(A=B);var H=g.get(j);s(H),f(),u.current=Rt(function(){d.current===H&&A.focus()})}};if([cs,us].includes(h)||$.sibling||!w){var N;!w||e==="inline"?N=o.current:N=Bz(w);var P,_=B$(N,m);h===cs?P=_[0]:h===us?P=_[_.length-1]:P=n0(N,m,w,$.offset),E(P)}else if($.inlineTrigger)l(y);else if($.offset>0)l(y,!0),f(),u.current=Rt(function(){S();var T=w.getAttribute("aria-controls"),j=document.getElementById(T),A=n0(j,m);E(A)},5);else if($.offset<0){var D=a(y,!0),M=D[D.length-2],I=b.get(M);l(M,!1),E(I)}}c==null||c(p)}}function Hz(e){Promise.resolve().then(e)}var av="__RC_UTIL_PATH_SPLIT__",r0=function(t){return t.join(av)},Wz=function(t){return t.split(av)},fh="rc-menu-more";function Uz(){var e=x.useState({}),t=X(e,2),n=t[1],r=O.useRef(new Map),o=O.useRef(new Map),i=x.useState([]),a=X(i,2),s=a[0],l=a[1],c=O.useRef(0),u=O.useRef(!1),d=function(){u.current||n({})},f=O.useCallback(function(C,w){process.env.NODE_ENV!=="production"&&mt(!r.current.has(C),"Duplicated key '".concat(C,"' used in Menu by path [").concat(w.join(" > "),"]"));var y=r0(w);o.current.set(y,C),r.current.set(C,y),c.current+=1;var $=c.current;Hz(function(){$===c.current&&d()})},[]),p=O.useCallback(function(C,w){var y=r0(w);o.current.delete(y),r.current.delete(C)},[]),h=O.useCallback(function(C){l(C)},[]),m=O.useCallback(function(C,w){var y=r.current.get(C)||"",$=Wz(y);return w&&s.includes($[0])&&$.unshift(fh),$},[s]),b=O.useCallback(function(C,w){return C.some(function(y){var $=m(y,!0);return $.includes(w)})},[m]),g=function(){var w=we(r.current.keys());return s.length&&w.push(fh),w},S=O.useCallback(function(C){var w="".concat(r.current.get(C)).concat(av),y=new Set;return we(o.current.keys()).forEach(function($){$.startsWith(w)&&y.add(o.current.get($))}),y},[]);return x.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:h,isSubPathKey:b,getKeyPath:m,getKeys:g,getSubPathKeys:S}}function ia(e){var t=x.useRef(e);t.current=e;var n=x.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var Kz=Math.random().toFixed(5).toString().slice(2),o0=0;function Gz(e){var t=An(e,{value:e}),n=X(t,2),r=n[0],o=n[1];return x.useEffect(function(){o0+=1;var i=process.env.NODE_ENV==="test"?"test":"".concat(Kz,"-").concat(o0);o("rc-menu-uuid-".concat(i))},[]),r}function F$(e,t,n,r){var o=x.useContext(zr),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}var Xz=["item"];function vu(e){var t=e.item,n=nt(e,Xz);return Object.defineProperty(n,"item",{get:function(){return mt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function V$(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=x.createElement(t,L({},n)):o=t,o||r||null}function H$(e){var t=x.useContext(zr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}var qz=["title","attribute","elementRef"],Yz=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Qz=["active"],Jz=function(e){Hr(n,e);var t=$i(n);function n(){return Wt(this,n),t.apply(this,arguments)}return Ut(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=nt(o,qz),c=wn(l,["eventKey"]);return mt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v(eo.Item,{...a,title:typeof i=="string"?i:void 0,...c,ref:s})}}]),n}(x.Component),Zz=function(t){var n,r=t.style,o=t.className,i=t.eventKey,a=t.warnKey,s=t.disabled,l=t.itemIcon,c=t.children,u=t.role,d=t.onMouseEnter,f=t.onMouseLeave,p=t.onClick,h=t.onKeyDown,m=t.onFocus,b=nt(t,Yz),g=j$(i),S=x.useContext(zr),C=S.prefixCls,w=S.onItemClick,y=S.disabled,$=S.overflowDisabled,E=S.itemIcon,N=S.selectedKeys,P=S.onActive,_=x.useContext(iv),D=_._internalRenderMenuItem,M="".concat(C,"-item"),I=x.useRef(),T=x.useRef(),j=y||s,A=Ba(i);process.env.NODE_ENV!=="production"&&a&&mt(!1,"MenuItem should not leave undefined `key`.");var B=function(ne){return{key:i,keyPath:we(A).reverse(),item:I.current,domEvent:ne}},H=l||E,U=F$(i,j,d,f),J=U.active,F=nt(U,Qz),z=N.includes(i),k=H$(A.length),Q=function(ne){if(!j){var he=B(ne);p==null||p(vu(he)),w(he)}},K=function(ne){if(h==null||h(ne),ne.which===ie.ENTER){var he=B(ne);p==null||p(vu(he)),w(he)}},Y=function(ne){P(i),m==null||m(ne)},te={};t.role==="option"&&(te["aria-selected"]=z);var re=ae(Jz,{ref:I,elementRef:T,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":$&&g?null:g,...b,...F,...te,component:"li","aria-disabled":s,style:L(L({},k),r),className:Z(M,(n={},W(n,"".concat(M,"-active"),J),W(n,"".concat(M,"-selected"),z),W(n,"".concat(M,"-disabled"),j),n),o),onClick:Q,onKeyDown:K,onFocus:Y,children:[c,v(V$,{props:L(L({},t),{},{isSelected:z}),icon:H})]});return D&&(re=D(re,t,{selected:z})),re};function Tl(e){var t=e.eventKey,n=cd(),r=Ba(t);return x.useEffect(function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}},[r]),n?null:v(Zz,{...e})}var e6=["className","children"],t6=function(t,n){var r=t.className,o=t.children,i=nt(t,e6),a=x.useContext(zr),s=a.prefixCls,l=a.mode,c=a.rtl;return v("ul",{className:Z(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu",...i,"data-menu-list":!0,ref:n,children:o})},sv=x.forwardRef(t6);sv.displayName="SubMenuList";var n6=["label","children","key","type"];function lv(e,t){return Kn(e).map(function(n,r){if(x.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(we(t),[r]).join("-")));var c={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),x.cloneElement(n,c)}return n})}function ph(e){return(e||[]).map(function(t,n){if(t&&Ze(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=nt(r,n6),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?v(dd,{...l,title:o,children:ph(i)},c):v(ud,{...l,title:o,children:ph(i)},c):s==="divider"?v(cv,{...l},c):v(Tl,{...l,children:o},c)}return null}).filter(function(t){return t})}function r6(e,t,n){var r=e;return t&&(r=ph(t)),lv(r,n)}var Uo={adjustX:1,adjustY:1},o6={topLeft:{points:["bl","tl"],overflow:Uo,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Uo,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Uo,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Uo,offset:[4,0]}},i6={topLeft:{points:["bl","tl"],overflow:Uo,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Uo,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Uo,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Uo,offset:[4,0]}};function W$(e,t,n){if(t)return t;if(n)return n[e]||n.other}var a6={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function s6(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=x.useContext(zr),d=u.getPopupContainer,f=u.rtl,p=u.subMenuOpenDelay,h=u.subMenuCloseDelay,m=u.builtinPlacements,b=u.triggerSubMenuAction,g=u.forceSubMenuRender,S=u.rootClassName,C=u.motion,w=u.defaultMotions,y=x.useState(!1),$=X(y,2),E=$[0],N=$[1],P=L(f?L({},i6):L({},o6),m),_=a6[l],D=W$(l,C,w),M=x.useRef(D);l!=="inline"&&(M.current=D);var I=L(L({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=x.useRef();return x.useEffect(function(){return T.current=Rt(function(){N(n)}),function(){Rt.cancel(T.current)}},[n]),v(_$,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),W({},"".concat(t,"-rtl"),f),i,S),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:P,popupPlacement:_,popupVisible:E,popup:o,popupAlign:a&&{offset:a},action:s?[]:[b],mouseEnterDelay:p,mouseLeaveDelay:h,onPopupVisibleChange:c,forceRender:g,popupMotion:I,children:r})}function l6(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=x.useContext(zr),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=x.useRef(!1);f.current=d===i;var p=x.useState(!f.current),h=X(p,2),m=h[0],b=h[1],g=f.current?n:!1;x.useEffect(function(){f.current&&b(!1)},[d]);var S=L({},W$(i,c,u));r.length>1&&(S.motionAppear=!1);var C=S.onVisibleChanged;return S.onVisibleChanged=function(w){return!f.current&&!w&&b(!0),C==null?void 0:C(w)},m?null:v(Zs,{mode:i,locked:!f.current,children:v(vr,{visible:g,...S,forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden"),children:function(w){var y=w.className,$=w.style;return v(sv,{id:t,className:y,style:$,children:o})}})})}var c6=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],u6=["active"],d6=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey,s=t.warnKey,l=t.disabled,c=t.internalPopupClose,u=t.children,d=t.itemIcon,f=t.expandIcon,p=t.popupClassName,h=t.popupOffset,m=t.onClick,b=t.onMouseEnter,g=t.onMouseLeave,S=t.onTitleClick,C=t.onTitleMouseEnter,w=t.onTitleMouseLeave,y=nt(t,c6),$=j$(a),E=x.useContext(zr),N=E.prefixCls,P=E.mode,_=E.openKeys,D=E.disabled,M=E.overflowDisabled,I=E.activeKey,T=E.selectedKeys,j=E.itemIcon,A=E.expandIcon,B=E.onItemClick,H=E.onOpenChange,U=E.onActive,J=x.useContext(iv),F=J._internalRenderSubMenuItem,z=x.useContext(L$),k=z.isSubPathKey,Q=Ba(),K="".concat(N,"-submenu"),Y=D||l,te=x.useRef(),re=x.useRef();process.env.NODE_ENV!=="production"&&s&&mt(!1,"SubMenu should not leave undefined `key`.");var ce=d||j,ne=f||A,he=_.includes(a),ee=!M&&he,q=k(T,a),oe=F$(a,Y,C,w),ve=oe.active,fe=nt(oe,u6),ye=x.useState(!1),me=X(ye,2),Ee=me[0],Oe=me[1],bt=function(Qe){Y||Oe(Qe)},pt=function(Qe){bt(!0),b==null||b({key:a,domEvent:Qe})},rt=function(Qe){bt(!1),g==null||g({key:a,domEvent:Qe})},st=x.useMemo(function(){return ve||(P!=="inline"?Ee||k([I],a):!1)},[P,ve,I,Ee,a,k]),We=H$(Q.length),Ue=function(Qe){Y||(S==null||S({key:a,domEvent:Qe}),P==="inline"&&H(a,!he))},tt=ia(function(Ye){m==null||m(vu(Ye)),B(Ye)}),qe=function(Qe){P!=="inline"&&H(a,Qe)},Ie=function(){U(a)},_e=$&&"".concat($,"-popup"),lt=ae("div",{role:"menuitem",style:We,className:"".concat(K,"-title"),tabIndex:Y?null:-1,ref:te,title:typeof i=="string"?i:null,"data-menu-id":M&&$?null:$,"aria-expanded":ee,"aria-haspopup":!0,"aria-controls":_e,"aria-disabled":Y,onClick:Ue,onFocus:Ie,...fe,children:[i,v(V$,{icon:P!=="horizontal"?ne:null,props:L(L({},t),{},{isOpen:ee,isSubMenu:!0}),children:v("i",{className:"".concat(K,"-arrow")})})]}),Ct=x.useRef(P);if(P!=="inline"&&Q.length>1?Ct.current="vertical":Ct.current=P,!M){var Ce=Ct.current;lt=v(s6,{mode:Ce,prefixCls:K,visible:!c&&ee&&P!=="inline",popupClassName:p,popupOffset:h,popup:v(Zs,{mode:Ce==="horizontal"?"vertical":Ce,children:v(sv,{id:_e,ref:re,children:u})}),disabled:Y,onVisibleChange:qe,children:lt})}var Te=ae(eo.Item,{role:"none",...y,component:"li",style:r,className:Z(K,"".concat(K,"-").concat(P),o,(n={},W(n,"".concat(K,"-open"),ee),W(n,"".concat(K,"-active"),st),W(n,"".concat(K,"-selected"),q),W(n,"".concat(K,"-disabled"),Y),n)),onMouseEnter:pt,onMouseLeave:rt,children:[lt,!M&&v(l6,{id:_e,open:ee,keyPath:Q,children:u})]});return F&&(Te=F(Te,t,{selected:q,active:st,open:ee,disabled:Y})),v(Zs,{onItemClick:tt,mode:P==="horizontal"?"vertical":P,itemIcon:ce,expandIcon:ne,children:Te})};function ud(e){var t=e.eventKey,n=e.children,r=Ba(t),o=lv(n,r),i=cd();x.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=v(d6,{...e,children:o}),v(k$.Provider,{value:r,children:a})}var f6=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ji=[],p6=x.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,f=o.items,p=o.children,h=o.direction,m=o.id,b=o.mode,g=b===void 0?"vertical":b,S=o.inlineCollapsed,C=o.disabled,w=o.disabledOverflow,y=o.subMenuOpenDelay,$=y===void 0?.1:y,E=o.subMenuCloseDelay,N=E===void 0?.1:E,P=o.forceSubMenuRender,_=o.defaultOpenKeys,D=o.openKeys,M=o.activeKey,I=o.defaultActiveFirst,T=o.selectable,j=T===void 0?!0:T,A=o.multiple,B=A===void 0?!1:A,H=o.defaultSelectedKeys,U=o.selectedKeys,J=o.onSelect,F=o.onDeselect,z=o.inlineIndent,k=z===void 0?24:z,Q=o.motion,K=o.defaultMotions,Y=o.triggerSubMenuAction,te=Y===void 0?"hover":Y,re=o.builtinPlacements,ce=o.itemIcon,ne=o.expandIcon,he=o.overflowedIndicator,ee=he===void 0?"...":he,q=o.overflowedIndicatorPopupClassName,oe=o.getPopupContainer,ve=o.onClick,fe=o.onOpenChange,ye=o.onKeyDown,me=o.openAnimation,Ee=o.openTransitionName,Oe=o._internalRenderMenuItem,bt=o._internalRenderSubMenuItem,pt=nt(o,f6),rt=x.useMemo(function(){return r6(p,f,Ji)},[p,f]),st=x.useState(!1),We=X(st,2),Ue=We[0],tt=We[1],qe=x.useRef(),Ie=Gz(m),_e=h==="rtl";process.env.NODE_ENV!=="production"&&mt(!me&&!Ee,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var lt=An(_,{value:D,postState:function(yt){return yt||Ji}}),Ct=X(lt,2),Ce=Ct[0],Te=Ct[1],Ye=function(yt){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ft(){Te(yt),fe==null||fe(yt)}$t?ln.flushSync(Ft):Ft()},Qe=x.useState(Ce),Et=X(Qe,2),It=Et[0],Ne=Et[1],Re=x.useRef(!1),Se=x.useMemo(function(){return(g==="inline"||g==="vertical")&&S?["vertical",S]:[g,!1]},[g,S]),xe=X(Se,2),Pe=xe[0],Ge=xe[1],ht=Pe==="inline",ut=x.useState(Pe),se=X(ut,2),pe=se[0],ge=se[1],Me=x.useState(Ge),Xe=X(Me,2),it=Xe[0],Dt=Xe[1];x.useEffect(function(){ge(Pe),Dt(Ge),Re.current&&(ht?Te(It):Ye(Ji))},[Pe,Ge]);var wt=x.useState(0),Mt=X(wt,2),ct=Mt[0],R=Mt[1],V=ct>=rt.length-1||pe!=="horizontal"||w;x.useEffect(function(){ht&&Ne(Ce)},[Ce]),x.useEffect(function(){return Re.current=!0,function(){Re.current=!1}},[]);var G=Uz(),ue=G.registerPath,be=G.unregisterPath,$e=G.refreshOverflowKeys,de=G.isSubPathKey,le=G.getKeyPath,De=G.getKeys,je=G.getSubPathKeys,Ve=x.useMemo(function(){return{registerPath:ue,unregisterPath:be}},[ue,be]),dt=x.useMemo(function(){return{isSubPathKey:de}},[de]);x.useEffect(function(){$e(V?Ji:rt.slice(ct+1).map(function(jt){return jt.key}))},[ct,V]);var on=An(M||I&&((n=rt[0])===null||n===void 0?void 0:n.key),{value:M}),Yn=X(on,2),_t=Yn[0],nr=Yn[1],mn=ia(function(jt){nr(jt)}),tn=ia(function(){nr(void 0)});O.useImperativeHandle(t,function(){return{list:qe.current,focus:function(yt){var $t,Ft=_t??(($t=rt.find(function(Yd){return!Yd.props.disabled}))===null||$t===void 0?void 0:$t.key);if(Ft){var fn,Gr,Xr;(fn=qe.current)===null||fn===void 0||(Gr=fn.querySelector("li[data-menu-id='".concat(ov(Ie,Ft),"']")))===null||Gr===void 0||(Xr=Gr.focus)===null||Xr===void 0||Xr.call(Gr,yt)}}}});var kn=An(H||[],{value:U,postState:function(yt){return Array.isArray(yt)?yt:yt==null?Ji:[yt]}}),Ur=X(kn,2),rr=Ur[0],fo=Ur[1],Kr=function(yt){if(j){var $t=yt.key,Ft=rr.includes($t),fn;B?Ft?fn=rr.filter(function(Xr){return Xr!==$t}):fn=[].concat(we(rr),[$t]):fn=[$t],fo(fn);var Gr=L(L({},yt),{},{selectedKeys:fn});Ft?F==null||F(Gr):J==null||J(Gr)}!B&&Ce.length&&pe!=="inline"&&Ye(Ji)},mr=ia(function(jt){ve==null||ve(vu(jt)),Kr(jt)}),at=ia(function(jt,yt){var $t=Ce.filter(function(fn){return fn!==jt});if(yt)$t.push(jt);else if(pe!=="inline"){var Ft=je(jt);$t=$t.filter(function(fn){return!Ft.has(fn)})}Bu(Ce,$t,!0)||Ye($t,!0)}),Je=ia(oe),cn=function(yt,$t){var Ft=$t??!Ce.includes(yt);at(yt,Ft)},dn=Vz(pe,_t,_e,Ie,qe,De,le,nr,cn,ye);x.useEffect(function(){tt(!0)},[]);var nn=x.useMemo(function(){return{_internalRenderMenuItem:Oe,_internalRenderSubMenuItem:bt}},[Oe,bt]),Dn=pe!=="horizontal"||w?rt:rt.map(function(jt,yt){return v(Zs,{overflowDisabled:yt>ct,children:jt},jt.key)}),Bn=v(eo,{id:m,ref:qe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Tl,className:Z(a,"".concat(a,"-root"),"".concat(a,"-").concat(pe),c,(r={},W(r,"".concat(a,"-inline-collapsed"),it),W(r,"".concat(a,"-rtl"),_e),r),s),dir:h,style:l,role:"menu",tabIndex:d,data:Dn,renderRawItem:function(yt){return yt},renderRawRest:function(yt){var $t=yt.length,Ft=$t?rt.slice(-$t):null;return v(ud,{eventKey:fh,title:ee,disabled:V,internalPopupClose:$t===0,popupClassName:q,children:Ft})},maxCount:pe!=="horizontal"||w?eo.INVALIDATE:eo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(yt){R(yt)},onKeyDown:dn,...pt});return v(iv.Provider,{value:nn,children:v(D$.Provider,{value:Ie,children:ae(Zs,{prefixCls:a,rootClassName:s,mode:pe,openKeys:Ce,rtl:_e,disabled:C,motion:Ue?Q:null,defaultMotions:Ue?K:null,activeKey:_t,onActive:mn,onInactive:tn,selectedKeys:rr,inlineIndent:k,subMenuOpenDelay:$,subMenuCloseDelay:N,forceSubMenuRender:P,builtinPlacements:re,triggerSubMenuAction:te,getPopupContainer:Je,itemIcon:ce,expandIcon:ne,onItemClick:mr,onOpenChange:at,children:[v(L$.Provider,{value:dt,children:Bn}),v("div",{style:{display:"none"},"aria-hidden":!0,children:v(A$.Provider,{value:Ve,children:rt})})]})})})}),h6=["className","title","eventKey","children"],g6=["children"],v6=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=nt(t,h6),a=x.useContext(zr),s=a.prefixCls,l="".concat(s,"-item-group");return ae("li",{role:"presentation",...i,onClick:function(u){return u.stopPropagation()},className:Z(l,n),children:[v("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0,children:r}),v("ul",{role:"group",className:"".concat(l,"-list"),children:o})]})};function dd(e){var t=e.children,n=nt(e,g6),r=Ba(n.eventKey),o=lv(t,r),i=cd();return i?o:v(v6,{...wn(n,["warnKey"]),children:o})}function cv(e){var t=e.className,n=e.style,r=x.useContext(zr),o=r.prefixCls,i=cd();return i?null:v("li",{className:Z("".concat(o,"-item-divider"),t),style:n})}var Fa=p6;Fa.Item=Tl;Fa.SubMenu=ud;Fa.ItemGroup=dd;Fa.Divider=cv;var m6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const b6=m6;var U$=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:b6})})};U$.displayName="EllipsisOutlined";const uv=x.forwardRef(U$),y6=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:i,lineType:a,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
|
|
231
|
+
> ${t}-item-active,
|
|
232
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},S6=y6,w6=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
|
|
233
|
+
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},x6=w6,i0=e=>Object.assign({},$x(e)),C6=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:i,colorItemBg:a,colorSubItemBg:s,colorItemBgSelected:l,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,menuItemPaddingInline:m,motionDurationMid:b,colorItemTextHover:g,lineType:S,colorSplit:C,colorItemTextDisabled:w,colorDangerItemText:y,colorDangerItemTextHover:$,colorDangerItemTextSelected:E,colorDangerItemBgActive:N,colorDangerItemBgSelected:P,colorItemBgHover:_,menuSubMenuBg:D,colorItemTextSelectedHorizontal:M,colorItemBgSelectedHorizontal:I}=e;return{[`${n}-${t}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},i0(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:g}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:y,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:P}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},i0(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:c,borderBottomColor:M}},["&-selected"]:{color:M,backgroundColor:I,"&::after":{borderBottomWidth:c,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${h}`,`opacity ${b} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${p}`,`opacity ${b} ${p}`].join(",")}}}}}},a0=C6,s0=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,marginXXS:s}=e,l=o+i+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,
|
|
234
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
|
|
235
|
+
${t}-submenu-title`]:{paddingInlineEnd:l}}},$6=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h}=e,m={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:Object.assign({[`&${t}-root`]:{boxShadow:"none"}},s0(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},s0(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:r*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
|
236
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
237
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
238
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[`
|
|
239
|
+
${t}-submenu-arrow,
|
|
240
|
+
${t}-submenu-expand-icon
|
|
241
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},$o),{paddingInline:p})}}]},O6=$6,l0=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:i,motionEaseOut:a,iconCls:s,controlHeightSM:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${i}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${a}`,`margin ${r} ${i}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${i}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Aa()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},c0=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},E6=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:s,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,radiusSubMenuItem:h,menuArrowSize:m,menuArrowOffset:b,lineType:g,menuPanelMaskInset:S}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Xo()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),Xo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:[`background ${o}`,`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`].join(","),["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:r,lineHeight:s,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),l0(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:p,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},l0(e)),c0(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),c0(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
242
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${m*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},N6=(e,t)=>xn("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if(t===!1)return[];const{colorBgElevated:a,colorPrimary:s,colorError:l,colorErrorHover:c,colorTextLightSolid:u}=r,{controlHeightLG:d,fontSize:f}=r,p=f/7*5,h=Tt(r,{menuItemHeight:d,menuItemPaddingInline:r.margin,menuArrowSize:p,menuHorizontalHeight:d*1.15,menuArrowOffset:`${p*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),m=new un(u).setAlpha(.65).toRgbString(),b=Tt(h,{colorItemText:m,colorItemTextHover:u,colorGroupTitle:m,colorItemTextSelected:u,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:s,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new un(u).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:c,colorDangerItemTextSelected:u,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:s},Object.assign({},i));return[E6(h),S6(h),O6(h),a0(h,"light"),a0(b,"dark"),x6(h),SC(h),Qo(h,"slide-up"),Qo(h,"slide-down"),Rl(h,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:b}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:o,colorGroupTitle:c,colorItemTextSelected:o,colorItemTextSelectedHorizontal:o,colorItemBg:u,colorItemBgHover:b,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:m,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:h,colorActiveBarBorderSize:p,colorItemTextDisabled:a,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,itemMarginInline:r.marginXXS}})(e);var R6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mu=x.createContext(null),P6=e=>{const{children:t}=e,n=R6(e,["children"]),r=x.useContext(mu),o=x.useMemo(()=>Object.assign(Object.assign({},r),n),[r,n.prefixCls,n.mode,n.selectable]);return v(mu.Provider,{value:o,children:t})};var I6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _6=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=I6(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=x.useContext(et),a=i("menu",t),s=Z({[`${a}-item-divider-dashed`]:!!r},n);return v(cv,{...Object.assign({className:s},o)})},K$=_6;var T6={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const M6=T6;var G$=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:M6})})};G$.displayName="BarsOutlined";const D6=x.forwardRef(G$);var j6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const A6=j6;var X$=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:A6})})};X$.displayName="LeftOutlined";const u0=x.forwardRef(X$),k6=e=>!isNaN(parseFloat(e))&&isFinite(e),L6=k6,z6=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:r,colorText:o}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:o,background:n},[`${t}-sider-zero-width-trigger`]:{color:o,background:n,border:`1px solid ${r}`,borderInlineStart:0}}}},B6=z6,F6=e=>{const{antCls:t,componentCls:n,colorText:r,colorTextLightSolid:o,colorBgHeader:i,colorBgBody:a,colorBgTrigger:s,layoutHeaderHeight:l,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:p,motionDurationMid:h,motionDurationSlow:m,fontSize:b,borderRadius:g}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:a,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${h}`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:`${f}px`,textAlign:"center",background:s,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:-p,zIndex:1,width:p,height:p,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-p,borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}}}},B6(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,paddingInline:c,color:u,lineHeight:`${l}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:b,background:a},[`${n}-content`]:{flex:"auto",minHeight:0}}},q$=xn("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:r,controlHeightLG:o,marginXXS:i}=e,a=o*1.25,s=Tt(e,{layoutHeaderHeight:r*2,layoutHeaderPaddingInline:a,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${a}px`,layoutTriggerHeight:o+i*2,layoutZeroTriggerSize:o});return[F6(s)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}});var Y$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Q$=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function fd(e){let{suffixCls:t,tagName:n,displayName:r}=e;return o=>{const i=x.forwardRef((a,s)=>v(o,{...Object.assign({ref:s,suffixCls:t,tagName:n},a)}));return process.env.NODE_ENV!=="production"&&(i.displayName=r),i}}const dv=x.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=Y$(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=x.useContext(et),l=s("layout",n),[c,u]=q$(l),d=r?`${l}-${r}`:l;return c(v(i,{...Object.assign({className:Z(n||d,o,u),ref:t},a)}))}),V6=x.forwardRef((e,t)=>{const{direction:n}=x.useContext(et),[r,o]=x.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u}=e,d=Y$(e,["prefixCls","className","rootClassName","children","hasSider","tagName"]),f=wn(d,["suffixCls"]),{getPrefixCls:p}=x.useContext(et),h=p("layout",i),[m,b]=q$(h),g=Z(h,{[`${h}-has-sider`]:typeof c=="boolean"?c:r.length>0,[`${h}-rtl`]:n==="rtl"},a,s,b),S=x.useMemo(()=>({siderHook:{addSider:C=>{o(w=>[].concat(we(w),[C]))},removeSider:C=>{o(w=>w.filter(y=>y!==C))}}}),[]);return m(v(Q$.Provider,{value:S,children:v(u,{...Object.assign({ref:t,className:g},f),children:l})}))});fd({tagName:"section",displayName:"Layout"})(V6);fd({suffixCls:"header",tagName:"header",displayName:"Header"})(dv);fd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(dv);fd({suffixCls:"content",tagName:"main",displayName:"Content"})(dv);var H6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d0={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},fv=x.createContext({}),W6=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),U6=x.forwardRef((e,t)=>{var{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:m,onBreakpoint:b}=e,g=H6(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]);const{siderHook:S}=O.useContext(Q$),[C,w]=O.useState("collapsed"in g?g.collapsed:a),[y,$]=O.useState(!1);O.useEffect(()=>{"collapsed"in g&&w(g.collapsed)},[g.collapsed]);const E=(I,T)=>{"collapsed"in g||w(I),m==null||m(I,T)},N=O.useRef();N.current=I=>{$(I.matches),b==null||b(I.matches),C!==I.matches&&E(I.matches,"responsive")},O.useEffect(()=>{function I(j){return N.current(j)}let T;if(typeof window<"u"){const{matchMedia:j}=window;if(j&&h&&h in d0){T=j(`(max-width: ${d0[h]})`);try{T.addEventListener("change",I)}catch{T.addListener(I)}I(T)}}return()=>{try{T==null||T.removeEventListener("change",I)}catch{T==null||T.removeListener(I)}}},[h]),O.useEffect(()=>{const I=W6("ant-sider-");return S.addSider(I),()=>S.removeSider(I)},[]);const P=()=>{E(!C,"clickTrigger")},{getPrefixCls:_}=O.useContext(et),D=()=>{const I=_("layout-sider",n),T=wn(g,["collapsed"]),j=C?f:d,A=L6(j)?`${j}px`:String(j),B=parseFloat(String(f||0))===0?v("span",{onClick:P,className:Z(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${u?"right":"left"}`),style:p,children:o||v(D6,{})}):null,J={expanded:u?v(hu,{}):v(u0,{}),collapsed:u?v(u0,{}):v(hu,{})}[C?"collapsed":"expanded"],F=o!==null?B||v("div",{className:`${I}-trigger`,onClick:P,style:{width:A},children:o||J}):null,z=Object.assign(Object.assign({},l),{flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A}),k=Z(I,`${I}-${s}`,{[`${I}-collapsed`]:!!C,[`${I}-has-trigger`]:c&&o!==null&&!B,[`${I}-below`]:!!y,[`${I}-zero-width`]:parseFloat(A)===0},r);return ae("aside",{...Object.assign({className:k},T,{style:z,ref:t}),children:[v("div",{className:`${I}-children`,children:i}),c||y&&B?F:null]})},M=x.useMemo(()=>({siderCollapsed:C}),[C]);return v(fv.Provider,{value:M,children:D()})});process.env.NODE_ENV!=="production"&&(U6.displayName="Sider");const K6=O.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),bu=K6,G6=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=x.useContext(bu),f=S=>{const C=v("span",{className:`${s}-title-content`,children:r});return(!o||Ro(r)&&r.type==="span")&&r&&S&&l&&typeof r=="string"?v("div",{className:`${s}-inline-collapsed-noicon`,children:r.charAt(0)}):C},{siderCollapsed:p}=x.useContext(fv);let h=i;typeof i>"u"?h=l?r:"":i===!1&&(h="");const m={title:h};!p&&!d&&(m.title=null,m.open=!1);const b=Kn(r).length;let g=ae(Tl,{...Object.assign({},wn(e,["title","icon","danger"]),{className:Z({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),children:[er(o,{className:Z(Ro(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d)]});return u||(g=v(Qg,{...Object.assign({},m,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),children:g})),g},J$=G6,X6=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=x.useContext(bu),{prefixCls:s,inlineCollapsed:l,theme:c,mode:u}=a,d=Ba();let f;if(!r)f=l&&!d.length&&o&&typeof o=="string"?v("div",{className:`${s}-inline-collapsed-noicon`,children:o.charAt(0)}):v("span",{className:`${s}-title-content`,children:o});else{const m=Ro(o)&&o.type==="span";f=ae(Ht,{children:[er(r,{className:Z(Ro(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?o:v("span",{className:`${s}-title-content`,children:o})]})}const p=x.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),h=u==="horizontal"?[0,8]:[10,0];return v(bu.Provider,{value:p,children:v(ud,{...Object.assign({popupOffset:h},wn(e,["icon"]),{title:f,popupClassName:Z(s,n,`${s}-${i||c}`)})})})},Z$=X6;var q6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hh(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,l=q6(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?v(dd,{...Object.assign({key:c},l,{title:o}),children:hh(i)}):v(Z$,{...Object.assign({key:c},l,{title:o}),children:hh(i)}):s==="divider"?v(K$,{...Object.assign({key:c},l)}):v(J$,{...Object.assign({key:c},l),children:o})}return null}).filter(t=>t)}function Y6(e){return x.useMemo(()=>e&&hh(e),[e])}var Q6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const J6=O.forwardRef((e,t)=>{var n,r;const o=x.useContext(mu),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l}=x.useContext(et),c=a(),{prefixCls:u,className:d,theme:f="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:m,siderCollapsed:b,items:g,children:S,rootClassName:C,mode:w,selectable:y,onClick:$}=e,E=Q6(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick"]),N=wn(E,["collapsedWidth"]),P=Y6(g)||S;process.env.NODE_ENV!=="production"&&xt(!("inlineCollapsed"in e&&w!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),process.env.NODE_ENV!=="production"&&xt(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),process.env.NODE_ENV!=="production"&&xt("items"in e&&!S,"Menu","`children` will be removed in next major version. Please use `items` instead."),(n=i.validator)===null||n===void 0||n.call(i,{mode:w});const _=sr(function(){var F;$==null||$.apply(void 0,arguments),(F=i.onClick)===null||F===void 0||F.call(i)}),D=i.mode||w,M=y??i.selectable,I=x.useMemo(()=>b!==void 0?b:m,[m,b]),T={horizontal:{motionName:`${c}-slide-up`},inline:hC(c),other:{motionName:`${c}-zoom-big`}},j=a("menu",u||i.prefixCls),[A,B]=N6(j,!o),H=Z(`${j}-${f}`,d);let U;if(typeof p=="function")U=p;else{const F=p||i.expandIcon;U=er(F,{className:Z(`${j}-submenu-expand-icon`,(r=F==null?void 0:F.props)===null||r===void 0?void 0:r.className)})}const J=x.useMemo(()=>({prefixCls:j,inlineCollapsed:I||!1,direction:l,firstLevel:!0,theme:f,mode:D,disableMenuItemTitleTooltip:h}),[j,I,l,h,f]);return A(v(mu.Provider,{value:null,children:v(bu.Provider,{value:J,children:v(Fa,{...Object.assign({getPopupContainer:s,overflowedIndicator:v(uv,{}),overflowedIndicatorPopupClassName:`${j}-${f}`,mode:D,selectable:M,onClick:_},N,{inlineCollapsed:I,className:H,prefixCls:j,direction:l,defaultMotions:T,expandIcon:U,ref:t,rootClassName:Z(C,B)}),children:P})})}))}),Z6=J6,Va=O.forwardRef((e,t)=>{const n=O.useRef(null),r=x.useContext(fv);return O.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),v(Z6,{...Object.assign({ref:n},e,r)})});Va.Item=J$;Va.SubMenu=Z$;Va.Divider=K$;Va.ItemGroup=dd;process.env.NODE_ENV!=="production"&&(Va.displayName="Menu");const e8=Va,t8=()=>{const[e,t]=x.useState(!1);return x.useEffect(()=>{t(vj())},[]),e};function n8(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s}=e;const{horizontalSize:l,verticalSize:c,latestIndex:u,supportFlexGap:d}=x.useContext(eO);let f={};return d||(n==="vertical"?r<u&&(f={marginBottom:l/(a?2:1)}):f=Object.assign(Object.assign({},r<u&&{[o]:l/(a?2:1)}),s&&{paddingBottom:c})),i==null?null:ae(Ht,{children:[v("div",{className:t,style:f,children:i}),r<u&&a&&v("span",{className:`${t}-split`,style:f,children:a})]})}var r8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eO=x.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),o8={small:8,middle:16,large:24};function i8(e){return typeof e=="string"?o8[e]:e||0}const tO=e=>{const{getPrefixCls:t,space:n,direction:r}=x.useContext(et),{size:o=(n==null?void 0:n.size)||"small",align:i,className:a,rootClassName:s,children:l,direction:c="horizontal",prefixCls:u,split:d,style:f,wrap:p=!1}=e,h=r8(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),m=t8(),[b,g]=x.useMemo(()=>(Array.isArray(o)?o:[o,o]).map(T=>i8(T)),[o]),S=Kn(l,{keepEmpty:!0}),C=i===void 0&&c==="horizontal"?"center":i,w=t("space",u),[y,$]=aC(w),E=Z(w,$,`${w}-${c}`,{[`${w}-rtl`]:r==="rtl",[`${w}-align-${C}`]:C},a,s),N=`${w}-item`,P=r==="rtl"?"marginLeft":"marginRight";let _=0;const D=S.map((T,j)=>{T!=null&&(_=j);const A=T&&T.key||`${N}-${j}`;return v(n8,{className:N,direction:c,index:j,marginDirection:P,split:d,wrap:p,children:T},A)}),M=x.useMemo(()=>({horizontalSize:b,verticalSize:g,latestIndex:_,supportFlexGap:m}),[b,g,_,m]);if(S.length===0)return null;const I={};return p&&(I.flexWrap="wrap",m||(I.marginBottom=-g)),m&&(I.columnGap=b,I.rowGap=g),y(v("div",{...Object.assign({className:E,style:Object.assign(Object.assign({},I),f)},h),children:v(eO.Provider,{value:M,children:D})}))};process.env.NODE_ENV!=="production"&&(tO.displayName="Space");const nO=tO;nO.Compact=dD;const rO=nO,a8=e=>{const{componentCls:t,antCls:n,paddingXS:r,opacityLoading:o}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:o},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},s8=a8,l8=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},c8=l8,u8=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:m}=e;return[{[t]:Object.assign(Object.assign({},Rn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},[`
|
|
243
|
+
&-hidden,
|
|
244
|
+
&-menu-hidden,
|
|
245
|
+
&-menu-submenu-hidden
|
|
246
|
+
`]:{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
247
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
248
|
+
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
|
249
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
|
250
|
+
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
|
251
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:jg},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
|
252
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
|
253
|
+
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
|
254
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
|
255
|
+
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
|
256
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:kg},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
257
|
+
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
|
258
|
+
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ag},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
|
259
|
+
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
|
260
|
+
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Lg}})},qg(e,{colorBg:m,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},yi(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${h}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},yi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Qo(e,"slide-up"),Qo(e,"slide-down"),su(e,"move-up"),su(e,"move-down"),Rl(e,"zoom-big")]]},oO=xn("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(i-a*s)/2,{dropdownArrowOffset:f}=Xg({contentRadius:u}),p=Tt(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:f,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return[u8(p),s8(p),c8(p)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var d8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iO=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=x.useContext(et),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:p,arrow:h,autoFocus:m,overlay:b,trigger:g,align:S,open:C,onOpenChange:w,placement:y,getPopupContainer:$,href:E,icon:N=v(uv,{}),title:P,buttonsRender:_=ne=>ne,mouseEnterDelay:D,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:T,destroyPopupOnHide:j,dropdownRender:A}=e,B=d8(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),H=n("dropdown",o),U=`${H}-button`,[J,F]=oO(H),z={menu:p,arrow:h,autoFocus:m,align:S,disabled:s,trigger:s?[]:g,onOpenChange:w,getPopupContainer:$||t,mouseEnterDelay:D,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:T,destroyPopupOnHide:j,dropdownRender:A},{compactSize:k,compactItemClassnames:Q}=La(H,r),K=Z(U,Q,f,F);"overlay"in e&&(z.overlay=b),"open"in e&&(z.open=C),"placement"in e?z.placement=y:z.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=v(Ln,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:E,title:P,children:d}),te=v(Ln,{type:i,danger:a,icon:N}),[re,ce]=_([Y,te]);return J(ae(rO.Compact,{...Object.assign({className:K,size:k,block:!0},B),children:[re,v(pv,{...Object.assign({},z),children:ce})]}))};iO.__ANT_BUTTON=!0;const f8=iO,Ml=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=x.useContext(et);process.env.NODE_ENV!=="production"&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach(z=>{let[k,Q]=z;process.env.NODE_ENV!=="production"&&xt(!(k in e),"Dropdown",`\`${k}\` is deprecated which will be removed in next major version, please use \`${Q}\` instead.`)}),process.env.NODE_ENV!=="production"&&xt(!("overlay"in e),"Dropdown","`overlay` is deprecated. Please use `menu` instead."));const o=()=>{const z=n(),{placement:k="",transitionName:Q}=e;return Q!==void 0?Q:k.includes("top")?`${z}-slide-down`:`${z}-slide-up`},i=()=>{const{placement:z}=e;if(!z)return r==="rtl"?"bottomRight":"bottomLeft";if(z.includes("Center")){const k=z.slice(0,z.indexOf("Center"));return process.env.NODE_ENV!=="production"&&xt(!z.includes("Center"),"Dropdown",`You are using '${z}' placement in Dropdown, which is deprecated. Try to use '${k}' instead.`),k}return z},{menu:a,arrow:s,prefixCls:l,children:c,trigger:u,disabled:d,dropdownRender:f,getPopupContainer:p,overlayClassName:h,rootClassName:m,open:b,onOpenChange:g,visible:S,onVisibleChange:C,mouseEnterDelay:w=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:$=!0}=e;process.env.NODE_ENV!=="production"&&[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(z=>{let[k,Q]=z;process.env.NODE_ENV!=="production"&&xt(!(k in e),"Dropdown",`\`${k}\` is deprecated, please use \`${Q}\` instead.`)});const E=n("dropdown",l),[N,P]=oO(E),{token:_}=u$.useToken(),D=x.Children.only(c),M=er(D,{className:Z(`${E}-trigger`,{[`${E}-rtl`]:r==="rtl"},D.props.className),disabled:d}),I=d?[]:u;let T;I&&I.includes("contextMenu")&&(T=!0);const[j,A]=An(!1,{value:b??S}),B=sr(z=>{g==null||g(z),C==null||C(z),A(z)}),H=Z(h,m,P,{[`${E}-rtl`]:r==="rtl"}),U=f$({arrowPointAtCenter:typeof s=="object"&&s.pointAtCenter,autoAdjustOverflow:$,offset:_.marginXXS,arrowWidth:s?_.sizePopupArrow:0,borderRadius:_.borderRadius}),J=x.useCallback(()=>{A(!1)},[]),F=()=>{const{overlay:z}=e;let k;return a!=null&&a.items?k=v(e8,{...Object.assign({},a)}):typeof z=="function"?k=z():k=z,f&&(k=f(k)),k=x.Children.only(typeof k=="string"?v("span",{children:k}):k),v(P6,{prefixCls:`${E}-menu`,expandIcon:v("span",{className:`${E}-menu-submenu-arrow`,children:v(hu,{className:`${E}-menu-submenu-arrow-icon`})}),mode:"vertical",selectable:!1,onClick:J,validator:Q=>{let{mode:K}=Q;process.env.NODE_ENV!=="production"&&xt(!K||K==="vertical","Dropdown",`mode="${K}" is not supported for Dropdown's Menu.`)},children:v(wa,{children:k})})};return N(v(M$,{...Object.assign({alignPoint:T},wn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:y,visible:j,builtinPlacements:U,arrow:!!s,overlayClassName:H,prefixCls:E,getPopupContainer:p||t,transitionName:o(),trigger:I,overlay:F,placement:i(),onVisibleChange:B}),children:M}))};Ml.Button=f8;const p8=Kg(Ml,"dropdown",e=>e),h8=e=>v(p8,{...Object.assign({},e),children:v("span",{})});Ml._InternalPanelDoNotUseOrYouWillBeFired=h8;process.env.NODE_ENV!=="production"&&(Ml.displayName="Dropdown");const pv=Ml,aO=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Dl=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),yu=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),hv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Dl(Tt(e,{inputBorderHoverColor:e.colorBorder})))}),sO=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},lO=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),pd=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},yu(Tt(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},yu(Tt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},hd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},aO(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Dl(e)),"&:focus, &-focused":Object.assign({},yu(e)),"&-disabled, &[disabled]":Object.assign({},hv(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},sO(e)),"&-sm":Object.assign({},lO(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),cO=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},sO(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},lO(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Xo()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
261
|
+
& > ${n}-select-auto-complete ${t},
|
|
262
|
+
& > ${n}-cascader-picker ${t},
|
|
263
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
264
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
265
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
266
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
267
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
268
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
269
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g8=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),hd(e)),pd(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},v8=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},m8=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hd(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Dl(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),v8(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),pd(e,`${t}-affix-wrapper`))}},b8=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Rn(e)),cO(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},hv(e))}}})}},y8=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
270
|
+
> ${t},
|
|
271
|
+
${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function uO(e){return Tt(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const S8=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none",float:"right",marginBottom:-e.fontSize*e.lineHeight},"&-rtl":{[`${t}-data-count`]:{float:"left"}}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},gv=xn("Input",e=>{const t=uO(e);return[g8(t),S8(t),m8(t),b8(t),y8(t),ed(t)]}),w8=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=Z({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=Z({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=x.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return v("span",{className:Z(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},gd=w8,x8=new Pt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),vd=e=>({height:e,lineHeight:`${e}px`}),pa=e=>Object.assign({width:e},vd(e)),C8=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:x8,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Tf=e=>Object.assign({width:e*5,minWidth:e*5},vd(e)),$8=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},pa(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},pa(o)),[`${t}${t}-sm`]:Object.assign({},pa(i))}},O8=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,color:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Tf(t)),[`${r}-lg`]:Object.assign({},Tf(o)),[`${r}-sm`]:Object.assign({},Tf(i))}},f0=e=>Object.assign({width:e},vd(e)),E8=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},f0(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},f0(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Mf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Df=e=>Object.assign({width:e*2,minWidth:e*2},vd(e)),N8=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,color:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:r*2,minWidth:r*2},Df(r))},Mf(e,r,n)),{[`${n}-lg`]:Object.assign({},Df(o))}),Mf(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Df(i))}),Mf(e,i,`${n}-sm`))},R8=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,color:d,padding:f,marginSM:p,borderRadius:h,skeletonTitleHeight:m,skeletonBlockRadius:b,skeletonParagraphLineHeight:g,controlHeightXS:S,skeletonParagraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},pa(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},pa(c)),[`${n}-sm`]:Object.assign({},pa(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:b,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:d,borderRadius:b,"+ li":{marginBlockStart:S}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},N8(e)),$8(e)),O8(e)),E8(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
272
|
+
${r},
|
|
273
|
+
${o} > li,
|
|
274
|
+
${n},
|
|
275
|
+
${i},
|
|
276
|
+
${a},
|
|
277
|
+
${s}
|
|
278
|
+
`]:Object.assign({},C8(e))}}},Ha=xn("Skeleton",e=>{const{componentCls:t}=e,n=Tt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[R8(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),P8=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=x.useContext(et),l=s("skeleton",t),[c,u]=Ha(l),d=wn(e,["prefixCls","className"]),f=Z(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(v("div",{className:f,children:v(gd,{...Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d)})}))},I8=P8,_8=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=x.useContext(et),l=s("skeleton",t),[c,u]=Ha(l),d=wn(e,["prefixCls"]),f=Z(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(v("div",{className:f,children:v(gd,{...Object.assign({prefixCls:`${l}-button`,size:a},d)})}))},T8=_8;var M8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const D8=M8;var dO=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:D8})})};dO.displayName="DotChartOutlined";const j8=x.forwardRef(dO),A8=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=x.useContext(et),l=s("skeleton",t),[c,u]=Ha(l),d=Z(l,`${l}-element`,{[`${l}-active`]:i},u,n,r),f=a??v(j8,{});return c(v("div",{className:d,children:v("div",{className:Z(`${l}-image`,n),style:o,children:f})}))},k8=A8,L8="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",z8=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=x.useContext(et),s=a("skeleton",t),[l,c]=Ha(s),u=Z(s,`${s}-element`,{[`${s}-active`]:i},n,r,c);return l(v("div",{className:u,children:v("div",{className:Z(`${s}-image`,n),style:o,children:v("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`,children:v("path",{d:L8,className:`${s}-image-path`})})})}))},B8=z8,F8=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=x.useContext(et),l=s("skeleton",t),[c,u]=Ha(l),d=wn(e,["prefixCls"]),f=Z(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(v("div",{className:f,children:v(gd,{...Object.assign({prefixCls:`${l}-input`,size:a},d)})}))},V8=F8,H8=e=>{const t=s=>{const{width:l,rows:c=2}=e;if(Array.isArray(l))return l[s];if(c-1===s)return l},{prefixCls:n,className:r,style:o,rows:i}=e,a=we(Array(i)).map((s,l)=>v("li",{style:{width:t(l)}},l));return v("ul",{className:Z(n,r),style:o,children:a})},W8=H8,U8=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return v("h3",{className:Z(t,n),style:Object.assign({width:r},o)})},K8=U8;function jf(e){return e&&typeof e=="object"?e:{}}function G8(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function X8(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function q8(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ri=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p}=x.useContext(et),h=f("skeleton",t),[m,b]=Ha(h);if(n||!("loading"in e)){const g=!!s,S=!!l,C=!!c;let w;if(g){const E=Object.assign(Object.assign({prefixCls:`${h}-avatar`},G8(S,C)),jf(s));w=v("div",{className:`${h}-header`,children:v(gd,{...Object.assign({},E)})})}let y;if(S||C){let E;if(S){const P=Object.assign(Object.assign({prefixCls:`${h}-title`},X8(g,C)),jf(l));E=v(K8,{...Object.assign({},P)})}let N;if(C){const P=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},q8(g,S)),jf(c));N=v(W8,{...Object.assign({},P)})}y=ae("div",{className:`${h}-content`,children:[E,N]})}const $=Z(h,{[`${h}-with-avatar`]:g,[`${h}-active`]:u,[`${h}-rtl`]:p==="rtl",[`${h}-round`]:d},r,o,b);return m(ae("div",{className:$,style:i,children:[w,y]}))}return typeof a<"u"?a:null};Ri.Button=T8;Ri.Avatar=I8;Ri.Input=V8;Ri.Image=B8;Ri.Node=k8;process.env.NODE_ENV!=="production"&&(Ri.displayName="Skeleton");const Y8=Ri;var Q8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const fO=Q8;var pO=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:fO})})};pO.displayName="PlusOutlined";const J8=x.forwardRef(pO),md=O.createContext(null);var vv=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return v("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:Z(n,a&&"".concat(n,"-active"),r),ref:t,children:l})});process.env.NODE_ENV!=="production"&&(vv.displayName="TabPane");var Z8=["key","forceRender","style","className"];function e4(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=x.useContext(md),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return v("div",{className:Z("".concat(s,"-content-holder")),children:v("div",{className:Z("".concat(s,"-content"),"".concat(s,"-content-").concat(o),W({},"".concat(s,"-content-animated"),c)),children:l.map(function(d){var f=d.key,p=d.forceRender,h=d.style,m=d.className,b=nt(d,Z8),g=f===n;return v(vr,{visible:g,forceRender:p,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden"),...r.tabPaneMotion,children:function(S,C){var w=S.style,y=S.className;return v(vv,{...b,prefixCls:u,id:t,tabKey:f,animated:c,active:g,style:L(L({},h),w),className:Z(m,y),ref:C})}},f)})})})}var p0={width:0,height:0,left:0,top:0};function t4(e,t,n){return O.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||p0,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||p0}var d=o.get(l)||L({},c);d.right=a-d.left-d.width,o.set(l,d)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function h0(e,t){var n=x.useRef(e),r=x.useState({}),o=X(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,a]}var n4=.1,g0=.01,Fc=20,v0=Math.pow(.995,Fc);function r4(e,t){var n=O.useState(),r=X(n,2),o=r[0],i=r[1],a=O.useState(0),s=X(a,2),l=s[0],c=s[1],u=O.useState(0),d=X(u,2),f=d[0],p=d[1],h=O.useState(),m=X(h,2),b=m[0],g=m[1],S=O.useRef();function C(P){var _=P.touches[0],D=_.screenX,M=_.screenY;i({x:D,y:M}),window.clearInterval(S.current)}function w(P){if(o){P.preventDefault();var _=P.touches[0],D=_.screenX,M=_.screenY;i({x:D,y:M});var I=D-o.x,T=M-o.y;t(I,T);var j=Date.now();c(j),p(j-l),g({x:I,y:T})}}function y(){if(o&&(i(null),g(null),b)){var P=b.x/f,_=b.y/f,D=Math.abs(P),M=Math.abs(_);if(Math.max(D,M)<n4)return;var I=P,T=_;S.current=window.setInterval(function(){if(Math.abs(I)<g0&&Math.abs(T)<g0){window.clearInterval(S.current);return}I*=v0,T*=v0,t(I*Fc,T*Fc)},Fc)}}var $=O.useRef();function E(P){var _=P.deltaX,D=P.deltaY,M=0,I=Math.abs(_),T=Math.abs(D);I===T?M=$.current==="x"?_:D:I>T?(M=_,$.current="x"):(M=D,$.current="y"),t(-M,-M)&&P.preventDefault()}var N=O.useRef(null);N.current={onTouchStart:C,onTouchMove:w,onTouchEnd:y,onWheel:E},x.useEffect(function(){function P(I){N.current.onTouchStart(I)}function _(I){N.current.onTouchMove(I)}function D(I){N.current.onTouchEnd(I)}function M(I){N.current.onWheel(I)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",D,{passive:!1}),e.current.addEventListener("touchstart",P,{passive:!1}),e.current.addEventListener("wheel",M),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",D)}},[])}function hO(e){var t=O.useState(0),n=X(t,2),r=n[0],o=n[1],i=O.useRef(0),a=O.useRef();return a.current=e,da(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function o4(e){var t=O.useRef([]),n=O.useState({}),r=X(n,2),o=r[1],i=O.useRef(typeof e=="function"?e():e),a=hO(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var m0={width:0,height:0,left:0,top:0,right:0};function i4(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),O.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,h=p,m=0;m<p;m+=1){var b=e.get(s[m].key)||m0;if(b[d]+b[u]>f+t){h=m-1;break}}for(var g=0,S=p-1;S>=0;S-=1){var C=e.get(s[S].key)||m0;if(C[d]<f){g=S+1;break}}return[g,h]},[e,t,r,o,i,f,l,s.map(function(p){return p.key}).join("_"),c])}function b0(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var a4="TABS_DQ";function gO(e){return String(e).replace(/"/g,a4)}function s4(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:v("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})},children:r.addIcon||"+"})}const vO=x.forwardRef(s4);var gh=x.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Ze(o)==="object"&&!x.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?v("div",{className:"".concat(r,"-extra-content"),ref:t,children:i}):null});process.env.NODE_ENV!=="production"&&(gh.displayName="ExtraContent");function l4(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,b=e.onTabClick,g=e.getPopupContainer,S=e.popupClassName,C=O.useState(!1),w=X(C,2),y=w[0],$=w[1],E=O.useState(null),N=X(E,2),P=N[0],_=N[1],D="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),I=P!==null?"".concat(D,"-").concat(P):null,T=i==null?void 0:i.dropdownAriaLabel;function j(z,k){z.preventDefault(),z.stopPropagation(),f.onEdit("remove",{key:k,event:z})}var A=v(Fa,{onClick:function(k){var Q=k.key,K=k.domEvent;b(Q,K),$(!1)},prefixCls:"".concat(M,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[P],"aria-label":T!==void 0?T:"expanded dropdown",children:o.map(function(z){var k=f&&z.closable!==!1&&!z.disabled;return ae(Tl,{id:"".concat(D,"-").concat(z.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(z.key),disabled:z.disabled,children:[v("span",{children:z.label}),k&&v("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(K){K.stopPropagation(),j(K,z.key)},children:z.closeIcon||f.removeIcon||"×"})]},z.key)})});function B(z){for(var k=o.filter(function(re){return!re.disabled}),Q=k.findIndex(function(re){return re.key===P})||0,K=k.length,Y=0;Y<K;Y+=1){Q=(Q+z+K)%K;var te=k[Q];if(!te.disabled){_(te.key);return}}}function H(z){var k=z.which;if(!y){[ie.DOWN,ie.SPACE,ie.ENTER].includes(k)&&($(!0),z.preventDefault());return}switch(k){case ie.UP:B(-1),z.preventDefault();break;case ie.DOWN:B(1),z.preventDefault();break;case ie.ESC:$(!1);break;case ie.SPACE:case ie.ENTER:P!==null&&b(P,z);break}}O.useEffect(function(){var z=document.getElementById(I);z&&z.scrollIntoView&&z.scrollIntoView(!1)},[P]),O.useEffect(function(){y||_(null)},[y]);var U=W({},h?"marginRight":"marginLeft",p);o.length||(U.visibility="hidden",U.order=1);var J=Z(W({},"".concat(M,"-rtl"),h)),F=a?null:v(M$,{prefixCls:M,overlay:A,trigger:["hover"],visible:o.length?y:!1,transitionName:c,onVisibleChange:$,overlayClassName:Z(J,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g,children:v("button",{type:"button",className:"".concat(n,"-nav-more"),style:U,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":D,id:"".concat(r,"-more"),"aria-expanded":y,onKeyDown:H,children:l})});return ae("div",{className:Z("".concat(n,"-nav-operations"),d),style:u,ref:t,children:[F,v(vO,{prefixCls:n,locale:i,editable:f})]})}const c4=x.memo(x.forwardRef(l4),function(e,t){return t.tabMoving});function u4(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,p=e.editable,h=e.onClick,m=e.onFocus,b=e.style,g="".concat(n,"-tab"),S=p&&u!==!1&&!l;function C($){l||h($)}function w($){$.preventDefault(),$.stopPropagation(),p.onEdit("remove",{key:a,event:$})}var y=ae("div",{"data-node-key":gO(a),className:Z(g,(t={},W(t,"".concat(g,"-with-remove"),S),W(t,"".concat(g,"-active"),o),W(t,"".concat(g,"-disabled"),l),t)),style:b,onClick:C,children:[v("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(g,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(E){E.stopPropagation(),C(E)},onKeyDown:function(E){[ie.SPACE,ie.ENTER].includes(E.which)&&(E.preventDefault(),C(E))},onFocus:m,children:s}),S&&v("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(g,"-remove"),onClick:function(E){E.stopPropagation(),w(E)},children:c||p.removeIcon||"×"})]},a);return d?d(y):y}var Zi=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;return[o,a]},Sc=function(t,n){return t[n?0:1]};function d4(e,t){var n,r=x.useContext(md),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,f=e.extra,p=e.editable,h=e.locale,m=e.tabPosition,b=e.tabBarGutter,g=e.children,S=e.onTabClick,C=e.onTabScroll,w=O.useRef(),y=O.useRef(),$=O.useRef(),E=O.useRef(),N=O.useRef(),P=O.useRef(),_=O.useRef(),D=m==="top"||m==="bottom",M=h0(0,function(de,le){D&&C&&C({direction:de>le?"left":"right"})}),I=X(M,2),T=I[0],j=I[1],A=h0(0,function(de,le){!D&&C&&C({direction:de>le?"top":"bottom"})}),B=X(A,2),H=B[0],U=B[1],J=O.useState([0,0]),F=X(J,2),z=F[0],k=F[1],Q=O.useState([0,0]),K=X(Q,2),Y=K[0],te=K[1],re=O.useState([0,0]),ce=X(re,2),ne=ce[0],he=ce[1],ee=O.useState([0,0]),q=X(ee,2),oe=q[0],ve=q[1],fe=o4(new Map),ye=X(fe,2),me=ye[0],Ee=ye[1],Oe=t4(i,me,Y[0]),bt=Sc(z,D),pt=Sc(Y,D),rt=Sc(ne,D),st=Sc(oe,D),We=bt<pt+rt,Ue=We?bt-st:bt-rt,tt="".concat(o,"-nav-operations-hidden"),qe=0,Ie=0;D&&d?(qe=0,Ie=Math.max(0,pt-Ue)):(qe=Math.min(0,Ue-pt),Ie=0);function _e(de){return de<qe?qe:de>Ie?Ie:de}var lt=O.useRef(),Ct=O.useState(),Ce=X(Ct,2),Te=Ce[0],Ye=Ce[1];function Qe(){Ye(Date.now())}function Et(){window.clearTimeout(lt.current)}r4(E,function(de,le){function De(je,Ve){je(function(dt){var on=_e(dt+Ve);return on})}return We?(D?De(j,de):De(U,le),Et(),Qe(),!0):!1}),O.useEffect(function(){return Et(),Te&&(lt.current=window.setTimeout(function(){Ye(0)},100)),Et},[Te]);var It=i4(Oe,Ue,D?T:H,pt,rt,st,L(L({},e),{},{tabs:i})),Ne=X(It,2),Re=Ne[0],Se=Ne[1],xe=sr(function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,le=Oe.get(de)||{width:0,height:0,left:0,right:0,top:0};if(D){var De=T;d?le.right<T?De=le.right:le.right+le.width>T+Ue&&(De=le.right+le.width-Ue):le.left<-T?De=-le.left:le.left+le.width>-T+Ue&&(De=-(le.left+le.width-Ue)),U(0),j(_e(De))}else{var je=H;le.top<-H?je=-le.top:le.top+le.height>-H+Ue&&(je=-(le.top+le.height-Ue)),j(0),U(_e(je))}}),Pe={};m==="top"||m==="bottom"?Pe[d?"marginRight":"marginLeft"]=b:Pe.marginTop=b;var Ge=i.map(function(de,le){var De=de.key;return v(u4,{id:l,prefixCls:o,tab:de,style:le===0?void 0:Pe,closable:de.closable,editable:p,active:De===u,renderWrapper:g,removeAriaLabel:h==null?void 0:h.removeAriaLabel,onClick:function(Ve){S(De,Ve)},onFocus:function(){xe(De),Qe(),E.current&&(d||(E.current.scrollLeft=0),E.current.scrollTop=0)}},De)}),ht=function(){return Ee(function(){var le=new Map;return i.forEach(function(De){var je,Ve=De.key,dt=(je=N.current)===null||je===void 0?void 0:je.querySelector('[data-node-key="'.concat(gO(Ve),'"]'));dt&&le.set(Ve,{width:dt.offsetWidth,height:dt.offsetHeight,left:dt.offsetLeft,top:dt.offsetTop})}),le})};O.useEffect(function(){ht()},[i.map(function(de){return de.key}).join("_")]);var ut=hO(function(){var de=Zi(w),le=Zi(y),De=Zi($);k([de[0]-le[0]-De[0],de[1]-le[1]-De[1]]);var je=Zi(_);he(je);var Ve=Zi(P);ve(Ve);var dt=Zi(N);te([dt[0]-je[0],dt[1]-je[1]]),ht()}),se=i.slice(0,Re),pe=i.slice(Se+1),ge=[].concat(we(se),we(pe)),Me=O.useState(),Xe=X(Me,2),it=Xe[0],Dt=Xe[1],wt=Oe.get(u),Mt=O.useRef();function ct(){Rt.cancel(Mt.current)}O.useEffect(function(){var de={};return wt&&(D?(d?de.right=wt.right:de.left=wt.left,de.width=wt.width):(de.top=wt.top,de.height=wt.height)),ct(),Mt.current=Rt(function(){Dt(de)}),ct},[wt,D,d]),O.useEffect(function(){xe()},[u,qe,Ie,b0(wt),b0(Oe),D]),O.useEffect(function(){ut()},[d]);var R=!!ge.length,V="".concat(o,"-nav-wrap"),G,ue,be,$e;return D?d?(ue=T>0,G=T!==Ie):(G=T<0,ue=T!==qe):(be=H<0,$e=H!==qe),v(no,{onResize:ut,children:ae("div",{ref:Lu(t,w),role:"tablist",className:Z("".concat(o,"-nav"),a),style:s,onKeyDown:function(){Qe()},children:[v(gh,{ref:y,position:"left",extra:f,prefixCls:o}),v("div",{className:Z(V,(n={},W(n,"".concat(V,"-ping-left"),G),W(n,"".concat(V,"-ping-right"),ue),W(n,"".concat(V,"-ping-top"),be),W(n,"".concat(V,"-ping-bottom"),$e),n)),ref:E,children:v(no,{onResize:ut,children:ae("div",{ref:N,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(T,"px, ").concat(H,"px)"),transition:Te?"none":void 0},children:[Ge,v(vO,{ref:_,prefixCls:o,locale:h,editable:p,style:L(L({},Ge.length===0?void 0:Pe),{},{visibility:R?"hidden":null})}),v("div",{className:Z("".concat(o,"-ink-bar"),W({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:it})]})})}),v(c4,{...e,removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:P,prefixCls:o,tabs:ge,className:!R&&tt,tabMoving:!!Te}),v(gh,{ref:$,position:"right",extra:f,prefixCls:o})]})})}const y0=x.forwardRef(d4);var f4=["renderTabBar"],p4=["label","key"];function h4(e){var t=e.renderTabBar,n=nt(e,f4),r=x.useContext(md),o=r.tabs;if(t){var i=L(L({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=nt(a,p4);return v(vv,{tab:s,tabKey:l,...c},l)})});return t(i,y0)}return v(y0,{...n})}function g4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=L({inkBar:!0},Ze(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&mt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var v4=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],S0=0;function m4(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=p===void 0?"top":p,m=e.tabBarGutter,b=e.tabBarStyle,g=e.tabBarExtraContent,S=e.locale,C=e.moreIcon,w=e.moreTransitionName,y=e.destroyInactiveTabPane,$=e.renderTabBar,E=e.onChange,N=e.onTabClick,P=e.onTabScroll,_=e.getPopupContainer,D=e.popupClassName,M=nt(e,v4),I=x.useMemo(function(){return(s||[]).filter(function(fe){return fe&&Ze(fe)==="object"&&"key"in fe})},[s]),T=l==="rtl",j=g4(f),A=O.useState(!1),B=X(A,2),H=B[0],U=B[1];O.useEffect(function(){U(Il())},[]);var J=An(function(){var fe;return(fe=I[0])===null||fe===void 0?void 0:fe.key},{value:c,defaultValue:u}),F=X(J,2),z=F[0],k=F[1],Q=O.useState(function(){return I.findIndex(function(fe){return fe.key===z})}),K=X(Q,2),Y=K[0],te=K[1];O.useEffect(function(){var fe=I.findIndex(function(me){return me.key===z});if(fe===-1){var ye;fe=Math.max(0,Math.min(Y,I.length-1)),k((ye=I[fe])===null||ye===void 0?void 0:ye.key)}te(fe)},[I.map(function(fe){return fe.key}).join("_"),z,Y]);var re=An(null,{value:r}),ce=X(re,2),ne=ce[0],he=ce[1];O.useEffect(function(){r||(he("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":S0)),S0+=1)},[]);function ee(fe,ye){N==null||N(fe,ye);var me=fe!==z;k(fe),me&&(E==null||E(fe))}var q={id:ne,activeKey:z,animated:j,tabPosition:h,rtl:T,mobile:H},oe,ve=L(L({},q),{},{editable:d,locale:S,moreIcon:C,moreTransitionName:w,tabBarGutter:m,onTabClick:ee,onTabScroll:P,extra:g,style:b,panes:null,getPopupContainer:_,popupClassName:D});return v(md.Provider,{value:{tabs:I,prefixCls:i},children:ae("div",{ref:t,id:r,className:Z(i,"".concat(i,"-").concat(h),(n={},W(n,"".concat(i,"-mobile"),H),W(n,"".concat(i,"-editable"),d),W(n,"".concat(i,"-rtl"),T),n),a),...M,children:[oe,v(h4,{...ve,renderTabBar:$}),v(e4,{destroyInactiveTabPane:y,...q,animated:j})]})})}var mO=x.forwardRef(m4);process.env.NODE_ENV!=="production"&&(mO.displayName="Tabs");const b4={motionAppear:!1,motionEnter:!0,motionLeave:!0};function y4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},b4),{motionName:qo(e,"switch")})),n}var S4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function w4(e){return e.filter(t=>t)}function x4(e,t){if(e)return e;process.env.NODE_ENV!=="production"&&xt(!t,"Tabs","Tabs.TabPane is deprecated. Please use `items` directly.");const n=Kn(t).map(r=>{if(x.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=S4(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return w4(n)}const bO=()=>null;process.env.NODE_ENV!=="production"&&(bO.displayName="DeprecatedTabPane");const C4=bO,$4=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Qo(e,"slide-up"),Qo(e,"slide-down")]]},O4=$4,E4=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},N4=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Rn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},$o),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},R4=e=>{const{componentCls:t,margin:n,colorSplit:r}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
279
|
+
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
280
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},P4=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},I4=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:i}=e,a=`${t}-tab`;return{[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},yi(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},_4=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},T4=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:i,tabsActiveColor:a,colorSplit:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},yi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),I4(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},M4=xn("Tabs",e=>{const t=e.controlHeightLG,n=Tt(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[P4(n),_4(n),R4(n),N4(n),E4(n),T4(n),O4(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var D4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jl(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f}=e,p=D4(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:h,moreIcon:m=v(uv,{})}=p,{direction:b,getPrefixCls:g,getPopupContainer:S}=x.useContext(et),C=g("tabs",h),[w,y]=M4(C);let $;t==="editable-card"&&($={onEdit:(M,I)=>{let{key:T,event:j}=I;i==null||i(M==="add"?j:T,M)},removeIcon:v(qu,{}),addIcon:l||v(J8,{}),showAdd:a!==!0});const E=g();process.env.NODE_ENV!=="production"&&xt(!("onPrevClick"in p)&&!("onNextClick"in p),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.");const N=x4(d,u),P=y4(C,f),_=x.useContext(gr),D=o!==void 0?o:_;return w(v(mO,{...Object.assign({direction:b,getPopupContainer:S,moreTransitionName:`${E}-slide-up`},p,{items:N,className:Z({[`${C}-${D}`]:D,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:s},n,r,y),popupClassName:Z(c,y),editable:$,moreIcon:m,prefixCls:C,animated:P})}))}jl.TabPane=C4;process.env.NODE_ENV!=="production"&&(jl.displayName="Tabs");var j4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A4=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=j4(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=x.useContext(et),a=i("card",t),s=Z(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return v("div",{...Object.assign({},o,{className:s})})},yO=A4,k4=e=>{const{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:o,cardHeadTabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${o}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},Xo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},$o),{[`
|
|
281
|
+
> ${n}-typography,
|
|
282
|
+
> ${n}-typography-edit-content
|
|
283
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},L4=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
284
|
+
${o}px 0 0 0 ${n},
|
|
285
|
+
0 ${o}px 0 0 ${n},
|
|
286
|
+
${o}px ${o}px 0 0 ${n},
|
|
287
|
+
${o}px 0 0 0 ${n} inset,
|
|
288
|
+
0 ${o}px 0 0 ${n} inset;
|
|
289
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},z4=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},Xo()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:`${o*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`}}})},B4=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},Xo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},$o),"&-description":{color:e.colorTextDescription}}),F4=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},V4=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},H4=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a}=e;return{[t]:Object.assign(Object.assign({},Rn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:k4(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},Xo()),[`${t}-grid`]:L4(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:z4(e),[`${t}-meta`]:B4(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:F4(e),[`${t}-loading`]:V4(e),[`${t}-rtl`]:{direction:"rtl"}}},W4=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:r,paddingTop:0,display:"flex",alignItems:"center"}}}}},U4=xn("Card",e=>{const t=Tt(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[H4(t),W4(t)]});var K4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function G4(e){return e.map((n,r)=>v("li",{style:{width:`${100/e.length}%`},children:v("span",{children:n})},`action-${r}`))}const X4=x.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=x.useContext(et),o=x.useContext(gr),i=Y=>{var te;(te=e.onTabChange)===null||te===void 0||te.call(e,Y)},a=()=>{let Y;return x.Children.forEach(e.children,te=>{te&&te.type&&te.type===yO&&(Y=!0)}),Y},{prefixCls:s,className:l,rootClassName:c,extra:u,headStyle:d={},bodyStyle:f={},title:p,loading:h,bordered:m=!0,size:b,type:g,cover:S,actions:C,tabList:w,children:y,activeTabKey:$,defaultActiveTabKey:E,tabBarExtraContent:N,hoverable:P,tabProps:_={}}=e,D=K4(e,["prefixCls","className","rootClassName","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),M=n("card",s),[I,T]=U4(M),j=v(Y8,{loading:!0,active:!0,paragraph:{rows:4},title:!1,children:y}),A=$!==void 0,B=Object.assign(Object.assign({},_),{[A?"activeKey":"defaultActiveKey"]:A?$:E,tabBarExtraContent:N});let H;const U=w&&w.length?v(jl,{...Object.assign({size:"large"},B,{className:`${M}-head-tabs`,onChange:i,items:w.map(Y=>{var te;return{label:Y.tab,key:Y.key,disabled:(te=Y.disabled)!==null&&te!==void 0?te:!1}})})}):null;(p||u||U)&&(H=ae("div",{className:`${M}-head`,style:d,children:[ae("div",{className:`${M}-head-wrapper`,children:[p&&v("div",{className:`${M}-head-title`,children:p}),u&&v("div",{className:`${M}-extra`,children:u})]}),U]}));const J=S?v("div",{className:`${M}-cover`,children:S}):null,F=v("div",{className:`${M}-body`,style:f,children:h?j:y}),z=C&&C.length?v("ul",{className:`${M}-actions`,children:G4(C)}):null,k=wn(D,["onTabChange"]),Q=b||o,K=Z(M,{[`${M}-loading`]:h,[`${M}-bordered`]:m,[`${M}-hoverable`]:P,[`${M}-contain-grid`]:a(),[`${M}-contain-tabs`]:w&&w.length,[`${M}-${Q}`]:Q,[`${M}-type-${g}`]:!!g,[`${M}-rtl`]:r==="rtl"},l,c,T);return I(ae("div",{...Object.assign({ref:t},k,{className:K}),children:[H,J,F,z]}))}),q4=X4;var Y4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Q4=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=Y4(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=x.useContext(et),l=s("card",t),c=Z(`${l}-meta`,n),u=r?v("div",{className:`${l}-meta-avatar`,children:r}):null,d=o?v("div",{className:`${l}-meta-title`,children:o}):null,f=i?v("div",{className:`${l}-meta-description`,children:i}):null,p=d||f?ae("div",{className:`${l}-meta-detail`,children:[d,f]}):null;return ae("div",{...Object.assign({},a,{className:c}),children:[u,p]})},J4=Q4,bd=q4;bd.Grid=yO;bd.Meta=J4;process.env.NODE_ENV!=="production"&&(bd.displayName="Card");const Z4=bd;var SO=O.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=O.useState(l||o),d=X(u,2),f=d[0],p=d[1];return O.useEffect(function(){(o||l)&&p(!0)},[o,l]),f?v("div",{ref:t,className:Z("".concat(r,"-content"),(n={},W(n,"".concat(r,"-content-active"),l),W(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c,children:v("div",{className:"".concat(r,"-content-box"),children:s})}):null});SO.displayName="PanelContent";var eB=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],tB=O.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,p=e.accordion,h=e.panelKey,m=e.extra,b=e.header,g=e.expandIcon,S=e.openMotion,C=e.destroyInactivePanel,w=e.children,y=nt(e,eB),$=f==="disabled",E=f==="header",N=f==="icon",P=m!=null&&typeof m!="boolean",_=function(){l==null||l(h)},D=function(B){(B.key==="Enter"||B.keyCode===ie.ENTER||B.which===ie.ENTER)&&_()},M=typeof g=="function"?g(e):v("i",{className:"arrow"});M&&(M=v("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?_:void 0,children:M}));var I=Z((n={},W(n,"".concat(d,"-item"),!0),W(n,"".concat(d,"-item-active"),s),W(n,"".concat(d,"-item-disabled"),$),n),u),T=Z((r={},W(r,"".concat(d,"-header"),!0),W(r,"headerClass",a),W(r,"".concat(d,"-header-collapsible-only"),E),W(r,"".concat(d,"-icon-collapsible-only"),N),r)),j={className:T,"aria-expanded":s,"aria-disabled":$,onKeyPress:D};return!E&&!N&&(j.onClick=_,j.role=p?"tab":"button",j.tabIndex=$?-1:0),ae("div",{...y,ref:t,className:I,children:[ae("div",{...j,children:[i&&M,v("span",{className:"".concat(d,"-header-text"),onClick:f==="header"?_:void 0,children:b}),P&&v("div",{className:"".concat(d,"-extra"),children:m})]}),v(vr,{visible:s,leavedClassName:"".concat(d,"-content-hidden"),...S,forceRender:c,removeOnLeave:C,children:function(A,B){var H=A.className,U=A.style;return v(SO,{ref:B,prefixCls:d,className:H,style:U,isActive:s,forceRender:c,role:p?"tabpanel":void 0,children:w})}})]})});function nB(e){var t=e;if(!Array.isArray(t)){var n=Ze(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var rB=O.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,m=e.onChange,b=Z(r,l),g=An([],{value:p,onChange:function(P){return m==null?void 0:m(P)},defaultValue:h,postState:nB}),S=X(g,2),C=S[0],w=S[1],y=function(P){return w(function(){if(s)return C[0]===P?[]:[P];var _=C.indexOf(P),D=_>-1;return D?C.filter(function(M){return M!==P}):[].concat(we(C),[P])})},$=function(P,_){if(!P)return null;var D=P.key||String(_),M=P.props,I=M.header,T=M.headerClass,j=M.destroyInactivePanel,A=M.collapsible,B=M.onItemClick,H=!1;s?H=C[0]===D:H=C.indexOf(D)>-1;var U=A??u,J=function(k){U!=="disabled"&&(y(k),B==null||B(k))},F={key:D,panelKey:D,header:I,headerClass:T,isActive:H,prefixCls:r,destroyInactivePanel:j??i,openMotion:d,accordion:s,children:P.props.children,onItemClick:J,expandIcon:f,collapsible:U};return typeof P.type=="string"?P:(Object.keys(F).forEach(function(z){typeof F[z]>"u"&&delete F[z]}),O.cloneElement(P,F))},E=Kn(c).map($);return v("div",{ref:t,className:b,style:a,role:s?"tablist":void 0,children:E})});const mv=Object.assign(rB,{Panel:tB});mv.Panel;const oB=x.forwardRef((e,t)=>{process.env.NODE_ENV!=="production"&&xt(!("disabled"in e),"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{getPrefixCls:n}=x.useContext(et),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=Z({[`${a}-no-arrow`]:!i},o);return v(mv.Panel,{...Object.assign({ref:t},e,{prefixCls:a,className:s})})}),iB=oB,aB=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:p,colorTextHeading:h,colorTextDisabled:m,fontSize:b,fontSizeLG:g,lineHeight:S,marginSM:C,paddingSM:w,paddingLG:y,motionDurationSlow:$,fontSizeIcon:E}=e,N=`${u}px ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Rn(e)),{backgroundColor:i,border:N,borderBottom:0,borderRadius:`${c}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,["&:last-child"]:{[`
|
|
290
|
+
&,
|
|
291
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:S,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:b*S,display:"flex",alignItems:"center",paddingInlineEnd:C},[`${t}-arrow`]:Object.assign(Object.assign({},Aa()),{fontSize:E,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:w}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:N,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},["&-large"]:{[`> ${t}-item`]:{fontSize:g,[`> ${t}-header`]:{padding:l,[`> ${t}-expand-icon`]:{height:g*S}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[`
|
|
292
|
+
&,
|
|
293
|
+
& > .arrow
|
|
294
|
+
`]:{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},sB=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},lB=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
|
|
295
|
+
> ${t}-item:last-child,
|
|
296
|
+
> ${t}-item:last-child ${t}-header
|
|
297
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},cB=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},uB=xn("Collapse",e=>{const t=Tt(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[aB(t),lB(t),cB(t),sB(t),SC(t)]}),wO=x.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=x.useContext(et),o=x.useContext(gr),{prefixCls:i,className:a,rootClassName:s,bordered:l=!0,ghost:c,size:u,expandIconPosition:d="start"}=e,f=u||o||"middle",p=n("collapse",i),h=n(),[m,b]=uB(p);process.env.NODE_ENV!=="production"&&xt(d!=="left"&&d!=="right","Collapse","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");const g=x.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),S=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{expandIcon:E}=e,N=E?E($):v(hu,{rotate:$.isActive?90:void 0});return er(N,()=>({className:Z(N.props.className,`${p}-arrow`)}))},C=Z(`${p}-icon-position-${g}`,{[`${p}-borderless`]:!l,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!c,[`${p}-${f}`]:f!=="middle"},a,s,b),w=Object.assign(Object.assign({},hC(h)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),y=()=>{const{children:$}=e;return Kn($).map((E,N)=>{var P;if(!((P=E.props)===null||P===void 0)&&P.disabled){const _=E.key||String(N),{disabled:D,collapsible:M}=E.props,I=Object.assign(Object.assign({},wn(E.props,["disabled"])),{key:_,collapsible:M??(D?"disabled":void 0)});return er(E,I)}return E})};return m(v(mv,{...Object.assign({ref:t,openMotion:w},wn(e,["rootClassName"]),{expandIcon:S,prefixCls:p,className:C}),children:y()}))});process.env.NODE_ENV!=="production"&&(wO.displayName="Collapse");const Tr=Object.assign(wO,{Panel:iB});var dB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const xO=dB;var CO=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:xO})})};CO.displayName="EyeOutlined";const fB=x.forwardRef(CO);var pB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};const hB=pB,gB=e=>{const{getPrefixCls:t,direction:n}=O.useContext(et),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=gv(a),c=Z(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=O.useContext(Yo),d=O.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&xt(!1,"Input.Group","'Input.Group' is deprecated. Please use 'Space.Compact' instead."),s(v("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur,children:v(Yo.Provider,{value:d,children:e.children})}))},vB=gB;function Vc(e){return!!(e.addonBefore||e.addonAfter)}function $O(e){return!!(e.prefix||e.suffix||e.allowClear)}function Is(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o)}}function mB(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}function vh(e){return typeof e>"u"||e===null?"":String(e)}var OO=function(t){var n,r=t.inputElement,o=t.prefixCls,i=t.prefix,a=t.suffix,s=t.addonBefore,l=t.addonAfter,c=t.className,u=t.style,d=t.affixWrapperClassName,f=t.groupClassName,p=t.wrapperClassName,h=t.disabled,m=t.readOnly,b=t.focused,g=t.triggerFocus,S=t.allowClear,C=t.value,w=t.handleReset,y=t.hidden,$=t.inputStyle,E=t.classes,N=O.useRef(null),P=function(F){var z;(z=N.current)!==null&&z!==void 0&&z.contains(F.target)&&(g==null||g())},_=function(){var F;if(!S)return null;var z=!h&&!m&&C,k="".concat(o,"-clear-icon"),Q=Ze(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";return v("span",{onClick:w,onMouseDown:function(Y){return Y.preventDefault()},className:Z(k,(F={},W(F,"".concat(k,"-hidden"),!z),W(F,"".concat(k,"-has-suffix"),!!a),F)),role:"button",tabIndex:-1,children:Q})},D=O.cloneElement(r,{value:C,hidden:y,style:L(L({},(n=r.props)===null||n===void 0?void 0:n.style),$)});if($O(t)){var M,I="".concat(o,"-affix-wrapper"),T=Z(I,(M={},W(M,"".concat(I,"-disabled"),h),W(M,"".concat(I,"-focused"),b),W(M,"".concat(I,"-readonly"),m),W(M,"".concat(I,"-input-with-clear-btn"),a&&S&&C),M),!Vc(t)&&c,d,E==null?void 0:E.affixWrapper),j=(a||S)&&ae("span",{className:"".concat(o,"-suffix"),children:[_(),a]});D=ae("span",{className:T,style:u,hidden:!Vc(t)&&y,onClick:P,ref:N,children:[i&&v("span",{className:"".concat(o,"-prefix"),children:i}),O.cloneElement(r,{style:$??null,value:C,hidden:null}),j]})}if(Vc(t)){var A="".concat(o,"-group"),B="".concat(A,"-addon"),H=Z("".concat(o,"-wrapper"),A,p,E==null?void 0:E.wrapper),U=Z("".concat(o,"-group-wrapper"),c,f,E==null?void 0:E.group);return v("span",{className:U,style:u,hidden:y,children:ae("span",{className:H,children:[s&&v("span",{className:B,children:s}),O.cloneElement(D,{style:$??null,hidden:null}),l&&v("span",{className:B,children:l})]})})}return D},bB=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName","classes"],yB=O.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,m=e.showCount,b=e.type,g=b===void 0?"text":b,S=e.inputClassName,C=e.classes,w=nt(e,bB),y=An(e.defaultValue,{value:e.value}),$=X(y,2),E=$[0],N=$[1],P=O.useState(!1),_=X(P,2),D=_[0],M=_[1],I=O.useRef(null),T=function(k){I.current&&mB(I.current,k)};O.useImperativeHandle(t,function(){return{focus:T,blur:function(){var k;(k=I.current)===null||k===void 0||k.blur()},setSelectionRange:function(k,Q,K){var Y;(Y=I.current)===null||Y===void 0||Y.setSelectionRange(k,Q,K)},select:function(){var k;(k=I.current)===null||k===void 0||k.select()},input:I.current}}),O.useEffect(function(){M(function(z){return z&&u?!1:z})},[u]);var j=function(k){e.value===void 0&&N(k.target.value),I.current&&Is(I.current,k,r)},A=function(k){a&&k.key==="Enter"&&a(k),s==null||s(k)},B=function(k){M(!0),o==null||o(k)},H=function(k){M(!1),i==null||i(k)},U=function(k){N(""),T(),I.current&&Is(I.current,k,r)},J=function(){var k=wn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","classes","wrapperClassName","htmlSize"]);return v("input",{autoComplete:n,...k,onChange:j,onFocus:B,onBlur:H,onKeyDown:A,className:Z(c,W({},"".concat(c,"-disabled"),u),S,C==null?void 0:C.input,!Vc(e)&&!$O(e)&&f),ref:I,size:d,type:g})},F=function(){var k=Number(p)>0;if(h||m){var Q=vh(E),K=we(Q).length,Y=Ze(m)==="object"?m.formatter({value:Q,count:K,maxLength:p}):"".concat(K).concat(k?" / ".concat(p):"");return ae(Ht,{children:[!!m&&v("span",{className:Z("".concat(c,"-show-count-suffix"),W({},"".concat(c,"-show-count-has-suffix"),!!h)),children:Y}),h]})}return null};return v(OO,{...w,prefixCls:c,className:f,inputElement:J(),handleReset:U,value:vh(E),focused:D,triggerFocus:T,suffix:F(),disabled:u,classes:C})});function EO(e,t){const n=O.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return O.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function SB(e){return!!(e.prefix||e.suffix||e.allowClear)}var wB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xB(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const CB=O.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:p,rootClassName:h,onChange:m}=e,b=wB(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange"]),{getPrefixCls:g,direction:S,input:C}=O.useContext(et),w=g("input",n),y=O.useRef(null),[$,E]=gv(w),{compactSize:N,compactItemClassnames:P}=La(w,S),_=O.useContext(gr),D=N||i||_,M=O.useContext(Ei),I=a??M,{status:T,hasFeedback:j,feedbackIcon:A}=O.useContext(Yo),B=ad(T,o),H=SB(e)||!!j,U=O.useRef(H);O.useEffect(()=>{var Y;H&&!U.current&&process.env.NODE_ENV!=="production"&&xt(document.activeElement===((Y=y.current)===null||Y===void 0?void 0:Y.input),"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),U.current=H},[H]);const J=EO(y,!0),F=Y=>{J(),s==null||s(Y)},z=Y=>{J(),l==null||l(Y)},k=Y=>{J(),m==null||m(Y)},Q=(j||c)&&ae(Ht,{children:[c,j&&A]});let K;return typeof u=="object"&&(u!=null&&u.clearIcon)?K=u:u&&(K={clearIcon:v(El,{})}),$(v(yB,{...Object.assign({ref:Wr(t,y),prefixCls:w,autoComplete:C==null?void 0:C.autoComplete},b,{disabled:I,onBlur:F,onFocus:z,suffix:Q,allowClear:K,className:Z(p,h,P),onChange:k,addonAfter:d&&v(wa,{children:v(Qs,{override:!0,status:!0,children:d})}),addonBefore:f&&v(wa,{children:v(Qs,{override:!0,status:!0,children:f})}),classes:{input:Z({[`${w}-sm`]:D==="small",[`${w}-lg`]:D==="large",[`${w}-rtl`]:S==="rtl",[`${w}-borderless`]:!r},!H&&Oo(w,B),E),affixWrapper:Z({[`${w}-affix-wrapper-sm`]:D==="small",[`${w}-affix-wrapper-lg`]:D==="large",[`${w}-affix-wrapper-rtl`]:S==="rtl",[`${w}-affix-wrapper-borderless`]:!r},Oo(`${w}-affix-wrapper`,B,j),E),wrapper:Z({[`${w}-group-rtl`]:S==="rtl"},E),group:Z({[`${w}-group-wrapper-sm`]:D==="small",[`${w}-group-wrapper-lg`]:D==="large",[`${w}-group-wrapper-rtl`]:S==="rtl",[`${w}-group-wrapper-disabled`]:I},Oo(`${w}-group-wrapper`,B,j),E)}})}))}),bv=CB;var $B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const NO=$B;var RO=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:NO})})};RO.displayName="EyeInvisibleOutlined";const OB=x.forwardRef(RO);var EB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NB=e=>e?v(fB,{}):v(OB,{}),RB={click:"onClick",hover:"onMouseOver"},PO=x.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=O.useState(()=>r?n.visible:!1),a=O.useRef(null);x.useEffect(()=>{r&&i(n.visible)},[r,n]);const s=EO(a),l=()=>{const{disabled:y}=e;y||(o&&s(),i($=>{var E;const N=!$;return typeof n=="object"&&((E=n.onVisibleChange)===null||E===void 0||E.call(n,N)),N}))},c=y=>{const{action:$="click",iconRender:E=NB}=e,N=RB[$]||"",P=E(o),_={[N]:l,className:`${y}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return x.cloneElement(x.isValidElement(P)?P:v("span",{children:P}),_)},{className:u,prefixCls:d,inputPrefixCls:f,size:p}=e,h=EB(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=x.useContext(et),b=m("input",f),g=m("input-password",d),S=n&&c(g),C=Z(g,u,{[`${g}-${p}`]:!!p}),w=Object.assign(Object.assign({},wn(h,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:b,suffix:S});return p&&(w.size=p),v(bv,{...Object.assign({ref:Wr(t,a)},w)})});process.env.NODE_ENV!=="production"&&(PO.displayName="Password");const PB=PO;var IB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IO=x.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,m=IB(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:g}=x.useContext(et),S=x.useContext(gr),C=x.useRef(!1),w=b("input-search",n),y=b("input",r),{compactSize:$}=La(w,g),E=$||i||S,N=x.useRef(null),P=F=>{F&&F.target&&F.type==="click"&&d&&d(F.target.value,F),f&&f(F)},_=F=>{var z;document.activeElement===((z=N.current)===null||z===void 0?void 0:z.input)&&F.preventDefault()},D=F=>{var z,k;d&&d((k=(z=N.current)===null||z===void 0?void 0:z.input)===null||k===void 0?void 0:k.value,F)},M=F=>{C.current||c||D(F)},I=typeof s=="boolean"?v(i$,{}):null,T=`${w}-button`;let j;const A=s||{},B=A.type&&A.type.__ANT_BUTTON===!0;B||A.type==="button"?j=er(A,Object.assign({onMouseDown:_,onClick:F=>{var z,k;(k=(z=A==null?void 0:A.props)===null||z===void 0?void 0:z.onClick)===null||k===void 0||k.call(z,F),D(F)},key:"enterButton"},B?{className:T,size:E}:{})):j=v(Ln,{className:T,type:s?"primary":void 0,size:E,disabled:u,onMouseDown:_,onClick:D,loading:c,icon:I,children:s},"enterButton"),l&&(j=[j,er(l,{key:"addonAfter"})]);const H=Z(w,{[`${w}-rtl`]:g==="rtl",[`${w}-${E}`]:!!E,[`${w}-with-button`]:!!s},o),U=F=>{C.current=!0,p==null||p(F)},J=F=>{C.current=!1,h==null||h(F)};return v(bv,{...Object.assign({ref:Wr(N,t),onPressEnter:M},m,{size:E,onCompositionStart:U,onCompositionEnd:J,prefixCls:y,addonAfter:j,suffix:a,onChange:P,className:H,disabled:u})})});process.env.NODE_ENV!=="production"&&(IO.displayName="Search");const _B=IO;var TB=`
|
|
298
|
+
min-height:0 !important;
|
|
299
|
+
max-height:none !important;
|
|
300
|
+
height:0 !important;
|
|
301
|
+
visibility:hidden !important;
|
|
302
|
+
overflow:hidden !important;
|
|
303
|
+
position:absolute !important;
|
|
304
|
+
z-index:-1000 !important;
|
|
305
|
+
top:0 !important;
|
|
306
|
+
right:0 !important;
|
|
307
|
+
pointer-events: none !important;
|
|
308
|
+
`,MB=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Af={},Sr;function DB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Af[n])return Af[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=MB.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Af[n]=l),l}function jB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Sr||(Sr=document.createElement("textarea"),Sr.setAttribute("tab-index","-1"),Sr.setAttribute("aria-hidden","true"),document.body.appendChild(Sr)),e.getAttribute("wrap")?Sr.setAttribute("wrap",e.getAttribute("wrap")):Sr.removeAttribute("wrap");var o=DB(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Sr.setAttribute("style","".concat(l,";").concat(TB)),Sr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Sr.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=i),n!==null||r!==null){Sr.value=" ";var p=Sr.scrollHeight-i;n!==null&&(c=p*n,s==="border-box"&&(c=c+i+a),f=Math.max(c,f)),r!==null&&(u=p*r,s==="border-box"&&(u=u+i+a),d=f>u?"":"hidden",f=Math.min(u,f))}var h={height:f,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var AB=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kf=0,Lf=1,zf=2,kB=x.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange,f=n.onInternalAutoSize,p=nt(n,AB),h=An(o,{value:i,postState:function(K){return K??""}}),m=X(h,2),b=m[0],g=m[1],S=function(K){g(K.target.value),d==null||d(K)},C=x.useRef();x.useImperativeHandle(t,function(){return{textArea:C.current}});var w=x.useMemo(function(){return a&&Ze(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),y=X(w,2),$=y[0],E=y[1],N=!!a,P=function(){try{if(document.activeElement===C.current){var K=C.current,Y=K.selectionStart,te=K.selectionEnd,re=K.scrollTop;C.current.setSelectionRange(Y,te),C.current.scrollTop=re}}catch{}},_=x.useState(zf),D=X(_,2),M=D[0],I=D[1],T=x.useState(),j=X(T,2),A=j[0],B=j[1],H=function(){I(kf),process.env.NODE_ENV==="test"&&(f==null||f())};en(function(){N&&H()},[i,$,E,N]),en(function(){if(M===kf)I(Lf);else if(M===Lf){var Q=jB(C.current,!1,$,E);I(zf),B(Q)}else P()},[M]);var U=x.useRef(),J=function(){Rt.cancel(U.current)},F=function(K){M===zf&&(s==null||s(K),a&&(J(),U.current=Rt(function(){H()})))};x.useEffect(function(){return J},[]);var z=N?A:null,k=L(L({},c),z);return(M===kf||M===Lf)&&(k.overflowY="hidden",k.overflowX="hidden"),v(no,{onResize:F,disabled:!(a||s),children:v("textarea",{...p,ref:C,style:k,className:Z(r,l,W({},"".concat(r,"-disabled"),u)),disabled:u,value:b,onChange:S})})}),LB=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled"];function _O(e,t){return we(e||"").slice(0,t).join("")}function w0(e,t,n,r){var o=n;return e?o=_O(n,r):we(t||"").length<n.length&&we(n||"").length>r&&(o=t),o}var zB=O.forwardRef(function(e,t){var n=e.defaultValue,r=e.value,o=e.onFocus,i=e.onBlur,a=e.onChange,s=e.allowClear,l=e.maxLength,c=e.onCompositionStart,u=e.onCompositionEnd,d=e.suffix,f=e.prefixCls,p=f===void 0?"rc-textarea":f,h=e.classes,m=e.showCount,b=e.className,g=e.style,S=e.disabled,C=nt(e,LB),w=An(n,{value:r,defaultValue:n}),y=X(w,2),$=y[0],E=y[1],N=O.useRef(null),P=O.useState(!1),_=X(P,2),D=_[0],M=_[1],I=O.useState(!1),T=X(I,2),j=T[0],A=T[1],B=O.useRef(),H=O.useRef(0),U=function(){N.current.textArea.focus()};O.useImperativeHandle(t,function(){return{resizableTextArea:N.current,focus:U,blur:function(){N.current.textArea.blur()}}}),O.useEffect(function(){M(function(ee){return!S&&ee})},[S]);var J=Number(l)>0,F=function(q){A(!0),B.current=$,H.current=q.currentTarget.selectionStart,c==null||c(q)},z=function(q){A(!1);var oe=q.currentTarget.value;if(J){var ve,fe=H.current>=l+1||H.current===((ve=B.current)===null||ve===void 0?void 0:ve.length);oe=w0(fe,B.current,oe,l)}oe!==$&&(E(oe),Is(q.currentTarget,q,a,oe)),u==null||u(q)},k=function(q){var oe=q.target.value;if(!j&&J){var ve=q.target.selectionStart>=l+1||q.target.selectionStart===oe.length||!q.target.selectionStart;oe=w0(ve,$,oe,l)}E(oe),Is(q.currentTarget,q,a,oe)},Q=function(q){var oe=C.onPressEnter,ve=C.onKeyDown;q.key==="Enter"&&oe&&oe(q),ve==null||ve(q)},K=function(q){M(!0),o==null||o(q)},Y=function(q){M(!1),i==null||i(q)},te=function(q){E(""),U(),Is(N.current.textArea,q,a)},re=vh($);!j&&J&&r==null&&(re=_O(re,l));var ce=v(OO,{value:re,allowClear:s,handleReset:te,suffix:d,prefixCls:p,classes:{affixWrapper:h==null?void 0:h.affixWrapper},disabled:S,focused:D,style:g,inputStyle:{resize:g==null?void 0:g.resize},inputElement:v(kB,{...C,onKeyDown:Q,onChange:k,onFocus:K,onBlur:Y,onCompositionStart:F,onCompositionEnd:z,className:Z(m?"":b,h==null?void 0:h.textarea),style:!m&&g,disabled:S,prefixCls:p,ref:N})});if(m){var ne=we(re).length,he;return Ze(m)==="object"?he=m.formatter({value:re,count:ne,maxLength:l}):he="".concat(ne).concat(J?" / ".concat(l):""),ae("div",{hidden:C.hidden,className:Z("".concat(p,"-show-count"),b,h==null?void 0:h.countWrapper),style:g,"data-count":he,children:[ce,v("span",{className:"".concat(p,"-data-count"),children:he})]})}return ce}),BB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FB=O.forwardRef((e,t)=>{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s}=e,l=BB(e,["prefixCls","bordered","size","disabled","status","allowClear"]);const{getPrefixCls:c,direction:u}=x.useContext(et),d=x.useContext(gr),f=o||d,p=x.useContext(Ei),h=i??p,{status:m,hasFeedback:b,feedbackIcon:g}=x.useContext(Yo),S=ad(m,a),C=x.useRef(null);x.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=C.current)===null||N===void 0?void 0:N.resizableTextArea,focus:P=>{var _,D;xB((D=(_=C.current)===null||_===void 0?void 0:_.resizableTextArea)===null||D===void 0?void 0:D.textArea,P)},blur:()=>{var P;return(P=C.current)===null||P===void 0?void 0:P.blur()}}});const w=c("input",n);let y;typeof s=="object"&&(s!=null&&s.clearIcon)?y=s:s&&(y={clearIcon:v(El,{})});const[$,E]=gv(w);return $(v(zB,{...Object.assign({},l,{disabled:h,allowClear:y,classes:{affixWrapper:Z(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:u==="rtl",[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:f==="small",[`${w}-affix-wrapper-lg`]:f==="large"},Oo(`${w}-affix-wrapper`,S),E),countWrapper:Z(`${w}-textarea`,`${w}-textarea-show-count`,{[`${w}-textarea-show-count-rtl`]:u==="rtl"},E),textarea:Z({[`${w}-borderless`]:!r,[`${w}-sm`]:f==="small",[`${w}-lg`]:f==="large"},Oo(w,S),E)},prefixCls:w,suffix:b&&v("span",{className:`${w}-textarea-suffix`,children:g}),ref:C})}))}),VB=FB,Wa=bv;process.env.NODE_ENV!=="production"&&(Wa.displayName="Input");Wa.Group=vB;Wa.Search=_B;Wa.TextArea=VB;Wa.Password=PB;const Al=Wa;var HB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const WB=HB;var TO=function(t,n){return v(Tn,{...L(L({},t),{},{ref:n,icon:WB})})};TO.displayName="UpOutlined";const UB=x.forwardRef(TO);function mh(){return typeof BigInt=="function"}function mi(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function yv(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function el(e){var t=String(e);if(yv(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Sv(t)?t.length-t.indexOf(".")-1:0}function yd(e){var t=String(e);if(yv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(mh()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(mh()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(el(t))}return mi(t).fullStr}function Sv(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function MO(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var KB=function(){function e(t){if(Wt(this,e),W(this,"origin",""),W(this,"number",void 0),W(this,"empty",void 0),MO(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Ut(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(el(this.number),el(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":yd(this.number):this.origin}}]),e}(),GB=function(){function e(t){if(Wt(this,e),W(this,"origin",""),W(this,"negative",void 0),W(this,"integer",void 0),W(this,"decimal",void 0),W(this,"decimalLen",void 0),W(this,"empty",void 0),W(this,"nan",void 0),MO(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(yv(n)&&(n=Number(n)),n=typeof n=="string"?n:yd(n),Sv(n)){var r=mi(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return Ut(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),s=(i+a).toString(),l=mi(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":mi("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Ir(e){return mh()?new GB(e):new KB(e)}function Hc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=mi(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Ir(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return Hc(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}var XB=function(){var t=O.useState(!1),n=X(t,2),r=n[0],o=n[1];return O.useLayoutEffect(function(){o(Il())},[]),r},qB=200,YB=600;function QB(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=x.useRef(),l=x.useRef();l.current=a;var c=function(g,S){g.preventDefault(),l.current(S);function C(){l.current(S),s.current=setTimeout(C,qB)}s.current=setTimeout(C,YB)},u=function(){clearTimeout(s.current)};x.useEffect(function(){return u},[]);var d=XB();if(d)return null;var f="".concat(t,"-handler"),p=Z(f,"".concat(f,"-up"),W({},"".concat(f,"-up-disabled"),o)),h=Z(f,"".concat(f,"-down"),W({},"".concat(f,"-down-disabled"),i)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return ae("div",{className:"".concat(f,"-wrap"),children:[v("span",{...m,onMouseDown:function(g){c(g,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p,children:n||v("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})}),v("span",{...m,onMouseDown:function(g){c(g,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:h,children:r||v("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})})]})}function x0(e){var t=typeof e=="number"?yd(e):mi(e).fullStr,n=t.includes(".");return n?mi(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function JB(e,t){var n=O.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else if(i.startsWith(s))u=s.length;else{var d=s[c-1],f=i.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(p){mt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,o]}const ZB=function(){var e=O.useRef(0),t=function(){Rt.cancel(e.current)};return O.useEffect(function(){return t},[]),function(n){t(),e.current=Rt(function(){n()})}};var eF=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],C0=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},$0=function(t){var n=Ir(t);return n.isInvalidate()?null:n},DO=x.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,f=e.value,p=e.disabled,h=e.readOnly,m=e.upHandler,b=e.downHandler,g=e.keyboard,S=e.controls,C=S===void 0?!0:S,w=e.stringMode,y=e.parser,$=e.formatter,E=e.precision,N=e.decimalSeparator,P=e.onChange,_=e.onInput,D=e.onPressEnter,M=e.onStep,I=nt(e,eF),T="".concat(o,"-input"),j=x.useRef(null),A=x.useState(!1),B=X(A,2),H=B[0],U=B[1],J=x.useRef(!1),F=x.useRef(!1),z=x.useRef(!1),k=x.useState(function(){return Ir(f??d)}),Q=X(k,2),K=Q[0],Y=Q[1];function te(Ne){f===void 0&&Y(Ne)}var re=x.useCallback(function(Ne,Re){if(!Re)return E>=0?E:Math.max(el(Ne),el(u))},[E,u]),ce=x.useCallback(function(Ne){var Re=String(Ne);if(y)return y(Re);var Se=Re;return N&&(Se=Se.replace(N,".")),Se.replace(/[^\w.-]+/g,"")},[y,N]),ne=x.useRef(""),he=x.useCallback(function(Ne,Re){if($)return $(Ne,{userTyping:Re,input:String(ne.current)});var Se=typeof Ne=="number"?yd(Ne):Ne;if(!Re){var xe=re(Se,Re);if(Sv(Se)&&(N||xe>=0)){var Pe=N||".";Se=Hc(Se,Pe,xe)}}return Se},[$,re,N]),ee=x.useState(function(){var Ne=d??f;return K.isInvalidate()&&["string","number"].includes(Ze(Ne))?Number.isNaN(Ne)?"":Ne:he(K.toString(),!1)}),q=X(ee,2),oe=q[0],ve=q[1];ne.current=oe;function fe(Ne,Re){ve(he(Ne.isInvalidate()?Ne.toString(!1):Ne.toString(!Re),Re))}var ye=x.useMemo(function(){return $0(l)},[l,E]),me=x.useMemo(function(){return $0(s)},[s,E]),Ee=x.useMemo(function(){return!ye||!K||K.isInvalidate()?!1:ye.lessEquals(K)},[ye,K]),Oe=x.useMemo(function(){return!me||!K||K.isInvalidate()?!1:K.lessEquals(me)},[me,K]),bt=JB(j.current,H),pt=X(bt,2),rt=pt[0],st=pt[1],We=function(Re){return ye&&!Re.lessEquals(ye)?ye:me&&!me.lessEquals(Re)?me:null},Ue=function(Re){return!We(Re)},tt=function(Re,Se){var xe=Re,Pe=Ue(xe)||xe.isEmpty();if(!xe.isEmpty()&&!Se&&(xe=We(xe)||xe,Pe=!0),!h&&!p&&Pe){var Ge=xe.toString(),ht=re(Ge,Se);return ht>=0&&(xe=Ir(Hc(Ge,".",ht)),Ue(xe)||(xe=Ir(Hc(Ge,".",ht,!0)))),xe.equals(K)||(te(xe),P==null||P(xe.isEmpty()?null:C0(w,xe)),f===void 0&&fe(xe,Se)),xe}return K},qe=ZB(),Ie=function Ne(Re){if(rt(),ve(Re),!F.current){var Se=ce(Re),xe=Ir(Se);xe.isNaN()||tt(xe,!0)}_==null||_(Re),qe(function(){var Pe=Re;y||(Pe=Re.replace(/。/g,".")),Pe!==Re&&Ne(Pe)})},_e=function(){F.current=!0},lt=function(){F.current=!1,Ie(j.current.value)},Ct=function(Re){Ie(Re.target.value)},Ce=function(Re){var Se;if(!(Re&&Ee||!Re&&Oe)){J.current=!1;var xe=Ir(z.current?x0(u):u);Re||(xe=xe.negate());var Pe=(K||Ir(0)).add(xe.toString()),Ge=tt(Pe,!1);M==null||M(C0(w,Ge),{offset:z.current?x0(u):u,type:Re?"up":"down"}),(Se=j.current)===null||Se===void 0||Se.focus()}},Te=function(Re){var Se=Ir(ce(oe)),xe=Se;Se.isNaN()?xe=K:xe=tt(Se,Re),f!==void 0?fe(K,!1):xe.isNaN()||fe(xe,!1)},Ye=function(){J.current=!0},Qe=function(Re){var Se=Re.which,xe=Re.shiftKey;J.current=!0,xe?z.current=!0:z.current=!1,Se===ie.ENTER&&(F.current||(J.current=!1),Te(!1),D==null||D(Re)),g!==!1&&!F.current&&[ie.UP,ie.DOWN].includes(Se)&&(Ce(ie.UP===Se),Re.preventDefault())},Et=function(){J.current=!1,z.current=!1},It=function(){Te(!1),U(!1),J.current=!1};return da(function(){K.isInvalidate()||fe(K,!1)},[E]),da(function(){var Ne=Ir(f);Y(Ne);var Re=Ir(ce(oe));(!Ne.equals(Re)||!J.current||$)&&fe(Ne,J.current)},[f]),da(function(){$&&st()},[oe]),ae("div",{className:Z(o,i,(n={},W(n,"".concat(o,"-focused"),H),W(n,"".concat(o,"-disabled"),p),W(n,"".concat(o,"-readonly"),h),W(n,"".concat(o,"-not-a-number"),K.isNaN()),W(n,"".concat(o,"-out-of-range"),!K.isInvalidate()&&!Ue(K)),n)),style:a,onFocus:function(){U(!0)},onBlur:It,onKeyDown:Qe,onKeyUp:Et,onCompositionStart:_e,onCompositionEnd:lt,onBeforeInput:Ye,children:[C&&v(QB,{prefixCls:o,upNode:m,downNode:b,upDisabled:Ee,downDisabled:Oe,onStep:Ce}),v("div",{className:"".concat(T,"-wrap"),children:v("input",{autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:u,...I,ref:Wr(j,t),className:T,value:oe,onChange:Ct,disabled:p,readOnly:h})})]})});DO.displayName="InputNumber";const tF=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:p,controlHeight:h,inputPaddingHorizontal:m,colorBgContainer:b,colorTextDisabled:g,borderRadiusSM:S,borderRadiusLG:C,controlWidth:w,handleVisible:y}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),hd(e)),pd(e,t)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:C,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},Dl(e)),"&-focused":Object.assign({},yu(e)),"&-disabled":Object.assign(Object.assign({},hv(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":Object.assign(Object.assign(Object.assign({},Rn(e)),cO(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":Object.assign(Object.assign({width:"100%",height:h-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},aO(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:b,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:y===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
309
|
+
${t}-handler-up-inner,
|
|
310
|
+
${t}-handler-down-inner
|
|
311
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
|
|
312
|
+
${t}-handler-up-inner,
|
|
313
|
+
${t}-handler-down-inner
|
|
314
|
+
`]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Aa()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
315
|
+
${t}-handler-up-disabled,
|
|
316
|
+
${t}-handler-down-disabled
|
|
317
|
+
`]:{cursor:"not-allowed"},[`
|
|
318
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
319
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
320
|
+
`]:{color:g}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},nF=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},hd(e)),pd(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Dl(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},rF=xn("InputNumber",e=>{const t=uO(e);return[tF(t),nF(t),ed(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var oF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jO=x.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=x.useContext(et),o=x.useContext(gr),[i,a]=x.useState(!1),s=x.useRef(null);x.useImperativeHandle(t,()=>s.current);const{className:l,rootClassName:c,size:u,disabled:d,prefixCls:f,addonBefore:p,addonAfter:h,prefix:m,bordered:b=!0,readOnly:g,status:S,controls:C}=e,w=oF(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",f),[$,E]=rF(y),{compactSize:N,compactItemClassnames:P}=La(y,r);let _=v(UB,{className:`${y}-handler-up-inner`}),D=v(r$,{className:`${y}-handler-down-inner`});const M=typeof C=="boolean"?C:void 0;typeof C=="object"&&(_=typeof C.upIcon>"u"?_:v("span",{className:`${y}-handler-up-inner`,children:C.upIcon}),D=typeof C.downIcon>"u"?D:v("span",{className:`${y}-handler-down-inner`,children:C.downIcon}));const{hasFeedback:I,status:T,isFormItemInput:j,feedbackIcon:A}=x.useContext(Yo),B=ad(T,S),H=N||u||o,U=m!=null||I,J=!!(p||h),F=x.useContext(Ei),z=d??F,k=Z({[`${y}-lg`]:H==="large",[`${y}-sm`]:H==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!b,[`${y}-in-form-item`]:j},Oo(y,B),P,E,l,!U&&!J&&c);let Q=v(DO,{...Object.assign({ref:s,disabled:z,className:k,upHandler:_,downHandler:D,prefixCls:y,readOnly:g,controls:M},w)});if(U){const K=Z(`${y}-affix-wrapper`,Oo(`${y}-affix-wrapper`,B,I),{[`${y}-affix-wrapper-focused`]:i,[`${y}-affix-wrapper-disabled`]:e.disabled,[`${y}-affix-wrapper-sm`]:H==="small",[`${y}-affix-wrapper-lg`]:H==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-readonly`]:g,[`${y}-affix-wrapper-borderless`]:!b},!J&&l,!J&&c,E);Q=ae("div",{className:K,style:e.style,onMouseUp:()=>s.current.focus(),children:[m&&v("span",{className:`${y}-prefix`,children:m}),er(Q,{style:null,value:e.value,onFocus:Y=>{var te;a(!0),(te=e.onFocus)===null||te===void 0||te.call(e,Y)},onBlur:Y=>{var te;a(!1),(te=e.onBlur)===null||te===void 0||te.call(e,Y)}}),I&&v("span",{className:`${y}-suffix`,children:A})]})}if(J){const K=`${y}-group`,Y=`${K}-addon`,te=p?v("div",{className:Y,children:p}):null,re=h?v("div",{className:Y,children:h}):null,ce=Z(`${y}-wrapper`,K,E,{[`${K}-rtl`]:r==="rtl"}),ne=Z(`${y}-group-wrapper`,{[`${y}-group-wrapper-sm`]:H==="small",[`${y}-group-wrapper-lg`]:H==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},Oo(`${y}-group-wrapper`,B,I),E,l,c);Q=v("div",{className:ne,style:e.style,children:ae("div",{className:ce,children:[te&&v(wa,{children:v(Qs,{status:!0,override:!0,children:te})}),er(Q,{style:null,disabled:z}),re&&v(wa,{children:v(Qs,{status:!0,override:!0,children:re})})]})})}return $(Q)}),wv=jO,iF=e=>v(Cn,{theme:{components:{InputNumber:{handleVisible:!0}}},children:v(jO,{...Object.assign({},e)})});process.env.NODE_ENV!=="production"&&(wv.displayName="InputNumber");wv._InternalPanelDoNotUseOrYouWillBeFired=iF;const aF=wv;var sF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const lF=sF;let wr=null,hi=e=>e(),tl=[],Su={};function cF(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=Su,a=e??Eg().getPrefixCls("message"),s=(t==null?void 0:t())||document.body;return{prefixCls:a,container:s,duration:n,rtl:r,maxCount:o,top:i}}const uF=x.forwardRef((e,t)=>{const n=()=>{const{prefixCls:d,container:f,maxCount:p,duration:h,rtl:m,top:b}=cF();return{prefixCls:d,getContainer:()=>f,maxCount:p,duration:h,rtl:m,top:b}},[r,o]=x.useState(n),[i,a]=oC(r),s=Eg(),l=s.getRootPrefixCls(),c=s.getIconPrefixCls(),u=()=>{o(n)};return x.useEffect(u,[]),x.useImperativeHandle(t,()=>{const d=Object.assign({},i);return Object.keys(d).forEach(f=>{d[f]=function(){return u(),i[f].apply(i,arguments)}}),{instance:d,sync:u}}),v(Cn,{prefixCls:l,iconPrefixCls:c,children:a})});function Sd(){if(!wr){const e=document.createDocumentFragment(),t={fragment:e};wr=t,hi(()=>{_g(v(uF,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Sd())})}}),e)});return}wr.instance&&(tl.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{hi(()=>{const r=wr.instance.open(Object.assign(Object.assign({},Su),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":hi(()=>{wr==null||wr.instance.destroy(e.key)});break;default:hi(()=>{var r;const o=(r=wr.instance)[t].apply(r,we(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),tl=[])}function dF(e){Su=Object.assign(Object.assign({},Su),e),hi(()=>{var t;(t=wr==null?void 0:wr.sync)===null||t===void 0||t.call(wr)})}function fF(e){const t=Ig(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return tl.push(o),()=>{r?hi(()=>{r()}):o.skipped=!0}});return Sd(),t}function pF(e,t){process.env.NODE_ENV!=="production"&&Nx("message");const n=Ig(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return tl.push(i),()=>{o?hi(()=>{o()}):i.skipped=!0}});return Sd(),n}function hF(e){tl.push({type:"destroy",key:e}),Sd()}const gF=["success","info","warning","error","loading"],vF={open:fF,destroy:hF,config:dF,useMessage:YM,_InternalPanelDoNotUseOrYouWillBeFired:UM},AO=vF;gF.forEach(e=>{AO[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pF(e,n)}});process.env.NODE_ENV;process.env.NODE_ENV;const kO=AO;function LO(e){return Pl(NC(e))}const Nr=$C;Nr.useModal=fA;Nr.info=function(t){return Pl(RC(t))};Nr.success=function(t){return Pl(PC(t))};Nr.error=function(t){return Pl(IC(t))};Nr.warning=LO;Nr.warn=LO;Nr.confirm=function(t){return Pl(_C(t))};Nr.destroyAll=function(){for(;pi.length;){const t=pi.pop();t&&t()}};Nr.config=lA;Nr._InternalPanelDoNotUseOrYouWillBeFired=tA;process.env.NODE_ENV!=="production"&&(Nr.displayName="Modal");const wd=Nr;var mF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"};const bF=mF;var yF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"};const SF=yF;var wF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const xF=wF;var CF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const $F=CF;var OF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const EF=OF;var NF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const RF=NF;var PF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};const IF=PF;var _F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 00-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 01-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z"}}]},name:"pushpin",theme:"outlined"};const TF=_F;var MF=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],zO=x.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,m=nt(e,MF),b=An(!1,{value:a,defaultValue:s}),g=X(b,2),S=g[0],C=g[1];function w(N,P){var _=S;return l||(_=N,C(_),p==null||p(_,P)),_}function y(N){N.which===ie.LEFT?w(!1,N):N.which===ie.RIGHT&&w(!0,N),h==null||h(N)}function $(N){var P=w(!S,N);f==null||f(P,N)}var E=Z(o,i,(n={},W(n,"".concat(o,"-checked"),S),W(n,"".concat(o,"-disabled"),l),n));return ae("button",{...m,type:"button",role:"switch","aria-checked":S,disabled:l,className:E,ref:t,onKeyDown:y,onClick:$,children:[c,ae("span",{className:"".concat(o,"-inner"),children:[v("span",{className:"".concat(o,"-inner-checked"),children:u}),v("span",{className:"".concat(o,"-inner-unchecked"),children:d})]})]})});zO.displayName="Switch";const DF=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},jF=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},AF=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},kF=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},LF=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),yi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},zF=xn("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=Tt(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new un("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[LF(a),kF(a),AF(a),jF(a),DF(a)]});var BF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xv=x.forwardRef((e,t)=>{var{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s}=e,l=BF(e,["prefixCls","size","disabled","loading","className","rootClassName"]);process.env.NODE_ENV!=="production"&&xt("checked"in l||!("value"in l),"Switch","`value` is not a valid prop, do you mean `checked`?");const{getPrefixCls:c,direction:u}=x.useContext(et),d=x.useContext(gr),f=x.useContext(Ei),p=(o??f)||i,h=c("switch",n),m=v("div",{className:`${h}-handle`,children:i&&v(qs,{className:`${h}-loading-icon`})}),[b,g]=zF(h),S=Z({[`${h}-small`]:(r||d)==="small",[`${h}-loading`]:i,[`${h}-rtl`]:u==="rtl"},a,s,g);return b(v(cC,{children:v(zO,{...Object.assign({},l,{prefixCls:h,className:S,disabled:p,ref:t,loadingIcon:m})})}))});xv.__ANT_SWITCH=!0;process.env.NODE_ENV!=="production"&&(xv.displayName="Switch");const FF=xv;function VF(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const wc=(e,t,n)=>{const r=VF(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`]}}},HF=e=>Cx(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a}}}}),WF=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},Rn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}})}},UF=xn("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:o}=e,i=Math.round(t*n),a=e.fontSizeSM,s=i-r*2,l=e.colorFillAlter,c=e.colorText,u=Tt(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:o-2*r,tagPaddingHorizontal:8});return[WF(u),HF(u),wc(u,"success","Success"),wc(u,"processing","Info"),wc(u,"error","Error"),wc(u,"warning","Warning")]});var KF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const GF=e=>{var{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=KF(e,["prefixCls","className","checked","onChange","onClick"]);const{getPrefixCls:s}=x.useContext(et),l=p=>{o==null||o(!r),i==null||i(p)},c=s("tag",t),[u,d]=UF(c),f=Z(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:r},n,d);return u(v("span",{...Object.assign({},a,{className:f,onClick:l})}))},XF=GF;var qF=O.createContext({});const BO=qF;var xc=2,O0=.16,YF=.05,QF=.05,JF=.15,FO=5,VO=4,ZF=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function E0(e){var t=e.r,n=e.g,r=e.b,o=eu(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Cc(e){var t=e.r,n=e.g,r=e.b;return"#".concat(tu(t,n,r,!1))}function e3(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function N0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-xc*t:Math.round(e.h)+xc*t:r=n?Math.round(e.h)+xc*t:Math.round(e.h)-xc*t,r<0?r+=360:r>=360&&(r-=360),r}function R0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-O0*t:t===VO?r=e.s+O0:r=e.s+YF*t,r>1&&(r=1),n&&t===FO&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function P0(e,t,n){var r;return n?r=e.v+QF*t:r=e.v-JF*t,r>1&&(r=1),Number(r.toFixed(2))}function bh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=_r(e),o=FO;o>0;o-=1){var i=E0(r),a=Cc(_r({h:N0(i,o,!0),s:R0(i,o,!0),v:P0(i,o,!0)}));n.push(a)}n.push(Cc(r));for(var s=1;s<=VO;s+=1){var l=E0(r),c=Cc(_r({h:N0(l,s),s:R0(l,s),v:P0(l,s)}));n.push(c)}return t.theme==="dark"?ZF.map(function(u){var d=u.index,f=u.opacity,p=Cc(e3(_r(t.backgroundColor||"#141414"),_r(n[d]),f*100));return p}):n}var Bf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ff={},Vf={};Object.keys(Bf).forEach(function(e){Ff[e]=bh(Bf[e]),Ff[e].primary=Ff[e][5],Vf[e]=bh(Bf[e],{theme:"dark",backgroundColor:"#141414"}),Vf[e].primary=Vf[e][5]});function t3(e,t){mt(e,"[@ant-design/icons] ".concat(t))}function I0(e){return Ze(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ze(e.icon)==="object"||typeof e.icon=="function")}function _0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t},{})}function yh(e,t,n){return n?O.createElement(e.tag,L(L({key:t},_0(e.attrs)),n),(e.children||[]).map(function(r,o){return yh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):O.createElement(e.tag,L({key:t},_0(e.attrs)),(e.children||[]).map(function(r,o){return yh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function HO(e){return bh(e)[0]}function WO(e){return e?Array.isArray(e)?e:[e]:[]}var n3=`
|
|
156
321
|
.anticon {
|
|
157
322
|
display: inline-block;
|
|
158
323
|
color: inherit;
|
|
@@ -206,8 +371,99 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
206
371
|
transform: rotate(360deg);
|
|
207
372
|
}
|
|
208
373
|
}
|
|
209
|
-
`,Km=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gm,r=Z.useContext(Dl),n=r.csp;Z.useEffect(function(){Sr(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},Ym=["icon","className","onClick","style","primaryColor","secondaryColor"],Kr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Xm(e){var t=e.primaryColor,r=e.secondaryColor;Kr.primaryColor=t,Kr.secondaryColor=r||Wl(t),Kr.calculated=!!r}function Jm(){return A({},Kr)}var gi=function(t){var r=t.icon,n=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,u=Nt(t,Ym),c=Kr;if(o&&(c={primaryColor:o,secondaryColor:s||Wl(o)}),Km(),qm(gu(r),"icon should be icon definiton, but got ".concat(r)),!gu(r))return null;var l=r;return l&&typeof l.icon=="function"&&(l=A(A({},l),{},{icon:l.icon(c.primaryColor,c.secondaryColor)})),Wa(l.icon,"svg-".concat(l.name),A({className:n,onClick:i,style:a,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};gi.displayName="IconReact";gi.getTwoToneColors=Jm;gi.setTwoToneColors=Xm;const xo=gi;function ql(e){var t=Ul(e),r=fe(t,2),n=r[0],i=r[1];return xo.setTwoToneColors({primaryColor:n,secondaryColor:i})}function Qm(){var e=xo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Zm=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ql("#1890ff");var vi=_.forwardRef(function(e,t){var r,n=e.className,i=e.icon,a=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,c=e.twoToneColor,l=Nt(e,Zm),f=_.useContext(Dl),d=f.prefixCls,h=d===void 0?"anticon":d,v=f.rootClassName,g=Dt(v,h,(r={},U(r,"".concat(h,"-").concat(i.name),!!i.name),U(r,"".concat(h,"-spin"),!!a||i.name==="loading"),r),n),y=s;y===void 0&&u&&(y=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,b=Ul(c),w=fe(b,2),S=w[0],x=w[1];return I("span",{...A(A({role:"img","aria-label":i.name},l),{},{ref:t,tabIndex:y,onClick:u,className:g}),children:I(xo,{icon:i,primaryColor:S,secondaryColor:x,style:p})})});vi.displayName="AntdIcon";vi.getTwoToneColor=Qm;vi.setTwoToneColor=ql;const Co=vi;var Gl=function(t,r){return I(Co,{...A(A({},t),{},{ref:r,icon:gv})})};Gl.displayName="CloseOutlined";const ey=_.forwardRef(Gl);var Kl=function(t,r){return I(Co,{...A(A({},t),{},{ref:r,icon:Mm})})};Kl.displayName="DoubleRightOutlined";const ty=_.forwardRef(Kl);var Yl=function(t,r){return I(Co,{...A(A({},t),{},{ref:r,icon:Bm})})};Yl.displayName="PushpinOutlined";const ry=_.forwardRef(Yl);function Xl(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Xl(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function An(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Xl(e))&&(n&&(n+=" "),n+=t);return n}function Yn(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const mu=e=>new Promise(t=>{setTimeout(()=>{t("ok")},e!=null?e:16)});class ny extends ke.default.Component{constructor(r){super(r);K(this,"emitter");K(this,"leftPanelContentRef");K(this,"addLeftPanel",r=>{this.state.leftPanels.push(r),this.setState({leftPanels:[...this.state.leftPanels]})});K(this,"openLeftPanel",async r=>{const n=r||this.state.currentActiveLeftPanel;this.setState({leftBoxVisible:!0,leftBoxSize:{width:350,height:"100%"},currentActiveLeftPanel:n}),await mu(),this.emitter.emit("leftPanelVisible",{visible:!0,panelName:n})});K(this,"closeLeftPanel",async()=>{this.setState({leftBoxVisible:!1,leftBoxSize:{width:0,height:"100%"}}),await mu(),this.emitter.emit("leftPanelVisible",{visible:!1,panelName:this.state.currentActiveLeftPanel})});K(this,"toggleLeftPanel",()=>{const{leftBoxVisible:r}=this.state;!r?this.openLeftPanel():this.closeLeftPanel()});K(this,"onPluginIconClick",r=>{const{currentActiveLeftPanel:n}=this.state;n===r.name&&this.state.leftBoxVisible?this.closeLeftPanel():this.openLeftPanel(r.name)});K(this,"openRightPanel",()=>{const{rightBoxSize:r}=this.state;this.setState({rightBoxVisible:!0,rightBoxSize:{width:400,height:r.height}})});K(this,"closeRightPanel",()=>{const{rightBoxSize:r}=this.state;this.setState({rightBoxVisible:!1,rightBoxSize:{width:0,height:r.height}})});K(this,"replaceBodyView",r=>{this.setState({bodyView:r})});K(this,"replaceRightView",r=>{this.setState({rightView:r})});K(this,"replaceTopBarView",r=>{this.setState({topToolBarView:r})});K(this,"toggleRightPanel",()=>{const{rightBoxVisible:r,rightBoxSize:n}=this.state,i=!r;this.setState({rightBoxVisible:i,rightBoxSize:{width:i?400:0,height:n.height}})});K(this,"onLeftBoxResizeStop",(r,n,i,a)=>{const o=this.state.leftBoxSize.width+a.width;this.setState({leftBoxSize:{width:o,height:this.state.leftBoxSize.height}})});K(this,"onGlobalClick",r=>{var n;r.target&&((n=this.leftPanelContentRef.current)==null?void 0:n.contains(r.target))||!this.state.leftBoxFixed&&this.state.leftBoxVisible&&this.closeLeftPanel()});this.emitter=r.emitter||Yn(),this.leftPanelContentRef=ke.default.createRef(),this.state={leftBoxVisible:!0,leftBoxSize:{width:300,height:"100%"},leftBoxFixed:!0,rightBoxVisible:!0,rightBoxSize:{width:350,height:"100%"},currentActiveLeftPanel:"OutlineTree",leftPanels:[],bodyView:null,rightView:null,topToolBarView:null}}componentDidMount(){document.addEventListener("click",this.onGlobalClick)}render(){const{leftBoxVisible:r,leftBoxSize:n,leftBoxFixed:i,rightBoxSize:a,rightBoxVisible:o,leftPanels:s,currentActiveLeftPanel:u,bodyView:c,rightView:l,topToolBarView:f}=this.state,d={};i||(d.position="absolute",d.left="50px",d.top=0);const h=s.find(w=>w.name===u),v=(h==null?void 0:h.render)||null,{onPluginIconClick:g,toggleRightPanel:y,toggleLeftPanel:p,onLeftBoxResizeStop:b}=this;return lt("div",{className:ve.workbenchContainer,children:[lt("div",{className:ve.topToolBarBox,children:[I("div",{className:ve.logo,children:"Chameleon EG"}),I("div",{className:ve.topToolBarView,children:f})]}),lt("div",{className:ve.bodyContent,children:[lt("div",{className:ve.leftBox,ref:this.leftPanelContentRef,children:[I("div",{className:ve.pluginIconBar,children:s.map(w=>I("div",{onClick:()=>g(w),className:An([ve.pluginIconItem,(h==null?void 0:h.name)===w.name&&ve.active]),children:w.icon},w.name))}),r&<(ys,{className:ve.pluginPanelBoxResizeBox,size:n,style:d,minWidth:300,maxWidth:600,enable:{right:r},onResizeStop:b,children:[lt("div",{className:ve.pluginHeader,children:[I("span",{className:ve.pluginNameText,children:(h==null?void 0:h.title)||(h==null?void 0:h.name)}),I(cu,{className:An([ve.fixedBtn]),type:"text",size:"small",onClick:()=>{this.setState({leftBoxFixed:!this.state.leftBoxFixed})},children:I(ry,{className:An([i&&ve.active])})}),I(cu,{className:ve.closeBtn,type:"text",size:"small",onClick:p,children:I(ey,{})})]}),I("div",{className:ve.pluginPanelBox,children:v})]})]}),I("div",{className:ve.centerBox,children:I("div",{className:ve.canvasBox,children:I("div",{className:ve.scrollBox,children:c})})}),lt("div",{className:ve.rightResizeBox,children:[I("div",{className:ve.arrowCursor,onClick:y,children:I(ty,{className:An([!o&&ve.active])})}),I("div",{style:{display:o?"block":"none",height:"100%"},children:I(ys,{minWidth:400,maxWidth:600,enable:{left:o},size:a,onResizeStop:(w,S,x,P)=>{this.setState({rightBoxSize:{width:this.state.rightBoxSize.width+P.width,height:this.state.rightBoxSize.height}})},children:I("div",{className:ve.rightBox,children:l})})})]})]})]})}}const iy="_engineContainer_f3ly9_2",ay={engineContainer:iy};function yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yu(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var oy={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,r){console&&console[t]&&console[t].apply(console,r)}},sy=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ne(this,e),this.init(t,r)}return je(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||oy,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,n,i,a){return a&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(i).concat(this.prefix," ").concat(r[0])),this.logger[n](r))}},{key:"create",value:function(r){return new e(this.logger,bu(bu({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}}]),e}(),bt=new sy,Bt=function(){function e(){Ne(this,e),this.observers={}}return je(e,[{key:"on",value:function(r,n){var i=this;return r.split(" ").forEach(function(a){i.observers[a]=i.observers[a]||[],i.observers[a].push(n)}),this}},{key:"off",value:function(r,n){if(!!this.observers[r]){if(!n){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(i){return i!==n})}}},{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];if(this.observers[r]){var o=[].concat(this.observers[r]);o.forEach(function(u){u.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[r].concat(i))})}}}]),e}();function Br(){var e,t,r=new Promise(function(n,i){e=n,t=i});return r.resolve=e,r.reject=t,r}function Su(e){return e==null?"":""+e}function uy(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function Oo(e,t,r){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=n(a.shift());!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:n(a.shift())}}function wu(e,t,r){var n=Oo(e,t,Object),i=n.obj,a=n.k;i[a]=r}function cy(e,t,r,n){var i=Oo(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],n&&(a[o]=a[o].concat(r)),n||a[o].push(r)}function Xn(e,t){var r=Oo(e,t),n=r.obj,i=r.k;if(!!n)return n[i]}function ly(e,t,r){var n=Xn(e,r);return n!==void 0?n:Xn(t,r)}function Jl(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):Jl(e[n],t[n],r):e[n]=t[n]);return e}function pr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fy={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function dy(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return fy[t]}):e}var mi=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,hy=[" ",",","?","!",";"];function py(e,t,r){t=t||"",r=r||"";var n=hy.filter(function(s){return t.indexOf(s)<0&&r.indexOf(s)<0});if(n.length===0)return!0;var i=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(r);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function Jn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!e){if(e[t])return e[t];for(var n=t.split(r),i=e,a=0;a<n.length;++a){if(!i||typeof i[n[a]]=="string"&&a+1<n.length)return;if(i[n[a]]===void 0){for(var o=2,s=n.slice(a,a+o).join(r),u=i[s];u===void 0&&n.length>a+o;)o++,s=n.slice(a,a+o).join(r),u=i[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var c=n.slice(a+o).join(r);return c?Jn(u,c,r):void 0}i=i[n[a]]}return i}}function xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xu(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gy(e){var t=vy();return function(){var n=it(e),i;if(t){var a=it(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Rr(this,i)}}function vy(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var my=function(e){er(r,e);var t=gy(r);function r(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ne(this,r),i=t.call(this),mi&&Bt.call(dt(i)),i.data=n||{},i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return je(r,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var a=this.options.ns.indexOf(i);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[i,a];o&&typeof o!="string"&&(l=l.concat(o)),o&&typeof o=="string"&&(l=l.concat(u?o.split(u):o)),i.indexOf(".")>-1&&(l=i.split("."));var f=Xn(this.data,l);return f||!c||typeof o!="string"?f:Jn(this.data&&this.data[i]&&this.data[i][a],o,u)}},{key:"addResource",value:function(i,a,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var l=[i,a];o&&(l=l.concat(c?o.split(c):o)),i.indexOf(".")>-1&&(l=i.split("."),s=a,a=l[1]),this.addNamespaces(a),wu(this.data,l,s),u.silent||this.emit("added",i,a,o,s)}},{key:"addResources",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(i,a,u,o[u],{silent:!0});s.silent||this.emit("added",i,a,o)}},{key:"addResourceBundle",value:function(i,a,o,s,u){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[i,a];i.indexOf(".")>-1&&(l=i.split("."),s=o,o=a,a=l[1]),this.addNamespaces(a);var f=Xn(this.data,l)||{};s?Jl(f,o,u):f=$n($n({},f),o),wu(this.data,l,f),c.silent||this.emit("added",i,a,o)}},{key:"removeResourceBundle",value:function(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}},{key:"hasResourceBundle",value:function(i,a){return this.getResource(i,a)!==void 0}},{key:"getResourceBundle",value:function(i,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?$n($n({},{}),this.getResource(i,a)):this.getResource(i,a)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var a=this.getDataByLanguage(i),o=a&&Object.keys(a)||[];return!!o.find(function(s){return a[s]&&Object.keys(a[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(Bt),Ql={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,r,n,i,a){var o=this;return t.forEach(function(s){o.processors[s]&&(r=o.processors[s].process(r,n,i,a))}),r}};function Cu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cu(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yy(e){var t=by();return function(){var n=it(e),i;if(t){var a=it(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Rr(this,i)}}function by(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Ou={},Eu=function(e){er(r,e);var t=yy(r);function r(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ne(this,r),i=t.call(this),mi&&Bt.call(dt(i)),uy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,dt(i)),i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=bt.create("translator"),i}return je(r,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var o=this.resolve(i,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(i,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ns||this.options.defaultNS||[],c=o&&i.indexOf(o)>-1,l=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!py(i,o,s);if(c&&!l){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:u};var d=i.split(o);(o!==s||o===s&&this.options.ns.indexOf(d[0])>-1)&&(u=d.shift()),i=d.join(s)}return typeof u=="string"&&(u=[u]),{key:i,namespaces:u}}},{key:"translate",value:function(i,a,o){var s=this;if(ne(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var u=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=this.extractFromKey(i[i.length-1],a),f=l.key,d=l.namespaces,h=d[d.length-1],v=a.lng||this.language,g=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(g){var y=a.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(h).concat(y).concat(f),usedKey:f,exactUsedKey:f,usedLng:v,usedNS:h}:"".concat(h).concat(y).concat(f)}return u?{res:f,usedKey:f,exactUsedKey:f,usedLng:v,usedNS:h}:f}var p=this.resolve(i,a),b=p&&p.res,w=p&&p.usedKey||f,S=p&&p.exactUsedKey||f,x=Object.prototype.toString.apply(b),P=["[object Number]","[object Function]","[object RegExp]"],R=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,k=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(F&&b&&k&&P.indexOf(x)<0&&!(typeof R=="string"&&x==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,b,We(We({},a),{},{ns:d})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return u?(p.res=N,p):N}if(c){var B=x==="[object Array]",E=B?[]:{},C=B?S:w;for(var O in b)if(Object.prototype.hasOwnProperty.call(b,O)){var T="".concat(C).concat(c).concat(O);E[O]=this.translate(T,We(We({},a),{joinArrays:!1,ns:d})),E[O]===T&&(E[O]=b[O])}b=E}}else if(F&&typeof R=="string"&&x==="[object Array]")b=b.join(R),b&&(b=this.extendTranslation(b,i,a,o));else{var $=!1,L=!1,W=a.count!==void 0&&typeof a.count!="string",ee=r.hasDefaultValue(a),re=W?this.pluralResolver.getSuffix(v,a.count,a):"",Q=a["defaultValue".concat(re)]||a.defaultValue;!this.isValidLookup(b)&&ee&&($=!0,b=Q),this.isValidLookup(b)||(L=!0,b=f);var Y=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ue=Y&&L?void 0:b,Fe=ee&&Q!==b&&this.options.updateMissing;if(L||$||Fe){if(this.logger.log(Fe?"updateKey":"missingKey",v,h,f,Fe?Q:b),c){var $e=this.resolve(f,We(We({},a),{},{keySeparator:!1}));$e&&$e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var De=[],Be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Be&&Be[0])for(var qe=0;qe<Be.length;qe++)De.push(Be[qe]);else this.options.saveMissingTo==="all"?De=this.languageUtils.toResolveHierarchy(a.lng||this.language):De.push(a.lng||this.language);var Le=function(ze,z,de){var Me=ee&&de!==b?de:ue;s.options.missingKeyHandler?s.options.missingKeyHandler(ze,h,z,Me,Fe,a):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(ze,h,z,Me,Fe,a),s.emit("missingKey",ze,h,z,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&W?De.forEach(function(Ve){s.pluralResolver.getSuffixes(Ve,a).forEach(function(ze){Le([Ve],f+ze,a["defaultValue".concat(ze)]||Q)})}):Le(De,f,Q))}b=this.extendTranslation(b,i,a,p,o),L&&b===f&&this.options.appendNamespaceToMissingKey&&(b="".concat(h,":").concat(f)),(L||$)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(h,":").concat(f):f,$?b:void 0):b=this.options.parseMissingKeyHandler(b))}return u?(p.res=b,p):b}},{key:"extendTranslation",value:function(i,a,o,s,u){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,We(We({},this.options.interpolation.defaultVariables),o),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(We(We({},o),{interpolation:We(We({},this.options.interpolation),o.interpolation)}));var l=typeof i=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(l){var d=i.match(this.interpolator.nestingRegexp);f=d&&d.length}var h=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(h=We(We({},this.options.interpolation.defaultVariables),h)),i=this.interpolator.interpolate(i,h,o.lng||this.language,o),l){var v=i.match(this.interpolator.nestingRegexp),g=v&&v.length;f<g&&(o.nest=!1)}o.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var b=arguments.length,w=new Array(b),S=0;S<b;S++)w[S]=arguments[S];return u&&u[0]===w[0]&&!o.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(a[0])),null):c.translate.apply(c,w.concat([a]))},o)),o.interpolation&&this.interpolator.reset()}var y=o.postProcess||this.options.postProcess,p=typeof y=="string"?[y]:y;return i!=null&&p&&p.length&&o.applyPostProcessor!==!1&&(i=Ql.handle(p,i,a,this.options&&this.options.postProcessPassResolved?We({i18nResolved:s},o):o,this)),i}},{key:"resolve",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,c,l,f;return typeof i=="string"&&(i=[i]),i.forEach(function(d){if(!a.isValidLookup(s)){var h=a.extractFromKey(d,o),v=h.key;u=v;var g=h.namespaces;a.options.fallbackNS&&(g=g.concat(a.options.fallbackNS));var y=o.count!==void 0&&typeof o.count!="string",p=y&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),b=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",w=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);g.forEach(function(S){a.isValidLookup(s)||(f=S,!Ou["".concat(w[0],"-").concat(S)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(f)&&(Ou["".concat(w[0],"-").concat(S)]=!0,a.logger.warn('key "'.concat(u,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(x){if(!a.isValidLookup(s)){l=x;var P=[v];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(P,v,x,S,o);else{var R;y&&(R=a.pluralResolver.getSuffix(x,o.count,o));var F="".concat(a.options.pluralSeparator,"zero");if(y&&(P.push(v+R),p&&P.push(v+F)),b){var k="".concat(v).concat(a.options.contextSeparator).concat(o.context);P.push(k),y&&(P.push(k+R),p&&P.push(k+F))}}for(var N;N=P.pop();)a.isValidLookup(s)||(c=N,s=a.getResource(x,S,N,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:c,usedLng:l,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,a,o,s):this.resourceStore.getResource(i,a,o,s)}}],[{key:"hasDefaultValue",value:function(i){var a="defaultValue";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&a===o.substring(0,a.length)&&i[o]!==void 0)return!0;return!1}}]),r}(Bt);function ea(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Pu=function(){function e(t){Ne(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=bt.create("languageUtils")}return je(e,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(a){return a.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ea(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ea(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ea(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var i;return r.forEach(function(a){if(!i){var o=n.formatLanguageCode(a);(!n.options.supportedLngs||n.isSupportedCode(o))&&(i=o)}}),!i&&this.options.supportedLngs&&r.forEach(function(a){if(!i){var o=n.getLanguagePartFromCode(a);if(n.isSupportedCode(o))return i=o;i=n.options.supportedLngs.find(function(s){if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&s.indexOf(o)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var i=r[n];return i||(i=r[this.getScriptPartFromCode(n)]),i||(i=r[this.formatLanguageCode(n)]),i||(i=r[this.getLanguagePartFromCode(n)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,n){var i=this,a=this.getFallbackCodes(n||this.options.fallbackLng||[],r),o=[],s=function(c){!c||(i.isSupportedCode(c)?o.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),a.forEach(function(u){o.indexOf(u)<0&&s(i.formatLanguageCode(u))}),o}}]),e}(),Sy=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wy={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},xy=["v1","v2","v3"],Ru={zero:0,one:1,two:2,few:3,many:4,other:5};function Cy(){var e={};return Sy.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:wy[t.fc]}})}),e}var Oy=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ne(this,e),this.languageUtils=t,this.options=r,this.logger=bt.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Cy()}return je(e,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(r,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(function(a){return"".concat(n).concat(a)})}},{key:"getSuffixes",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(r,i);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,s){return Ru[o]-Ru[s]}).map(function(o){return"".concat(n.options.prepend).concat(o)}):a.numbers.map(function(o){return n.getSuffix(r,o,i)}):[]}},{key:"getSuffix",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(r,i);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(n)):this.getSuffixRetroCompatible(a,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var i=this,a=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),o=r.numbers[a];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!xy.includes(this.options.compatibilityJSON)}}]),e}();function _u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_u(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=ly(e,t,r);return!a&&i&&typeof r=="string"&&(a=Jn(e,r,n),a===void 0&&(a=Jn(t,r,n))),a}var Ey=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ne(this,e),this.logger=bt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return je(e,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:dy,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?pr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?pr(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?pr(n.nestingPrefix):n.nestingPrefixEscaped||pr("$t("),this.nestingSuffix=n.nestingSuffix?pr(n.nestingSuffix):n.nestingSuffixEscaped||pr(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,n,i,a){var o=this,s,u,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(y){return y.replace(/\$/g,"$$$$")}var d=function(p){if(p.indexOf(o.formatSeparator)<0){var b=Tu(n,l,p,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(b,void 0,i,ut(ut(ut({},a),n),{},{interpolationkey:p})):b}var w=p.split(o.formatSeparator),S=w.shift().trim(),x=w.join(o.formatSeparator).trim();return o.format(Tu(n,l,S,o.options.keySeparator,o.options.ignoreJSONStructure),x,i,ut(ut(ut({},a),n),{},{interpolationkey:S}))};this.resetRegExp();var h=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,v=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(p){return f(p)}},{regex:this.regexp,safeValue:function(p){return o.escapeValue?f(o.escape(p)):f(p)}}];return g.forEach(function(y){for(c=0;s=y.regex.exec(r);){var p=s[1].trim();if(u=d(p),u===void 0)if(typeof h=="function"){var b=h(r,s,a);u=typeof b=="string"?b:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))u="";else if(v){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(r)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=Su(u));var w=y.safeValue(u);if(r=r.replace(s[0],w),v?(y.regex.lastIndex+=u.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,c++,c>=o.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u;function c(h,v){var g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;var y=h.split(new RegExp("".concat(g,"[ ]*{"))),p="{".concat(y[1]);h=y[0],p=this.interpolate(p,u);var b=p.match(/'/g),w=p.match(/"/g);(b&&b.length%2===0&&!w||w.length%2!==0)&&(p=p.replace(/'/g,'"'));try{u=JSON.parse(p),v&&(u=ut(ut({},v),u))}catch(S){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),S),"".concat(h).concat(g).concat(p)}return delete u.defaultValue,h}for(;o=this.nestingRegexp.exec(r);){var l=[];u=ut({},a),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var f=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(h){return h.trim()});o[1]=d.shift(),l=d,f=!0}if(s=n(c.call(this,o[1].trim(),u),u),s&&o[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=Su(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(r)),s=""),f&&(s=l.reduce(function(h,v){return i.format(h,v,a.lng,ut(ut({},a),{},{interpolationkey:o[1].trim()}))},s.trim())),r=r.replace(o[0],s),this.regexp.lastIndex=0}return r}}]),e}();function Nu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nu(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Py(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);if(t==="currency"&&i.indexOf(":")<0)r.currency||(r.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)r.range||(r.range=i.trim());else{var a=i.split(";");a.forEach(function(o){if(!!o){var s=o.split(":"),u=Xc(s),c=u[0],l=u.slice(1),f=l.join(":").trim().replace(/^'+|'+$/g,"");r[c.trim()]||(r[c.trim()]=f),f==="false"&&(r[c.trim()]=!1),f==="true"&&(r[c.trim()]=!0),isNaN(f)||(r[c.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:r}}function gr(e){var t={};return function(n,i,a){var o=i+JSON.stringify(a),s=t[o];return s||(s=e(i,a),t[o]=s),s(n)}}var Ry=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ne(this,e),this.logger=bt.create("formatter"),this.options=t,this.formats={number:gr(function(r,n){var i=new Intl.NumberFormat(r,Rt({},n));return function(a){return i.format(a)}}),currency:gr(function(r,n){var i=new Intl.NumberFormat(r,Rt(Rt({},n),{},{style:"currency"}));return function(a){return i.format(a)}}),datetime:gr(function(r,n){var i=new Intl.DateTimeFormat(r,Rt({},n));return function(a){return i.format(a)}}),relativetime:gr(function(r,n){var i=new Intl.RelativeTimeFormat(r,Rt({},n));return function(a){return i.format(a,n.range||"day")}}),list:gr(function(r,n){var i=new Intl.ListFormat(r,Rt({},n));return function(a){return i.format(a)}})},this.init(t)}return je(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=n.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=gr(n)}},{key:"format",value:function(r,n,i){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n.split(this.formatSeparator),u=s.reduce(function(c,l){var f=Py(l),d=f.formatName,h=f.formatOptions;if(a.formats[d]){var v=c;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},y=g.locale||g.lng||o.locale||o.lng||i;v=a.formats[d](c,y,Rt(Rt(Rt({},h),o),g))}catch(p){a.logger.warn(p)}return v}else a.logger.warn("there was no format function for ".concat(d));return c},r);return u}}]),e}();function ju(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ju(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ju(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _y(e){var t=Ty();return function(){var n=it(e),i;if(t){var a=it(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Rr(this,i)}}function Ty(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ny(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var jy=function(e){er(r,e);var t=_y(r);function r(n,i,a){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ne(this,r),o=t.call(this),mi&&Bt.call(dt(o)),o.backend=n,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=bt.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return je(r,[{key:"queueLoad",value:function(i,a,o,s){var u=this,c={},l={},f={},d={};return i.forEach(function(h){var v=!0;a.forEach(function(g){var y="".concat(h,"|").concat(g);!o.reload&&u.store.hasResourceBundle(h,g)?u.state[y]=2:u.state[y]<0||(u.state[y]===1?l[y]===void 0&&(l[y]=!0):(u.state[y]=1,v=!1,l[y]===void 0&&(l[y]=!0),c[y]===void 0&&(c[y]=!0),d[g]===void 0&&(d[g]=!0)))}),v||(f[h]=!0)}),(Object.keys(c).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(l),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}},{key:"loaded",value:function(i,a,o){var s=i.split("|"),u=s[0],c=s[1];a&&this.emit("failedLoading",u,c,a),o&&this.store.addResourceBundle(u,c,o),this.state[i]=a?-1:2;var l={};this.queue.forEach(function(f){cy(f.loaded,[u],c),Ny(f,i),a&&f.errors.push(a),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(d){l[d]||(l[d]={});var h=f.loaded[d];h.length&&h.forEach(function(v){l[d][v]===void 0&&(l[d][v]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,a,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!i.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:o,tried:u,wait:c,callback:l});return}this.readingCalls++;var f=function(g,y){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(g&&y&&u<s.maxRetries){setTimeout(function(){s.read.call(s,i,a,o,u+1,c*2,l)},c);return}l(g,y)},d=this.backend[o].bind(this.backend);if(d.length===2){try{var h=d(i,a);h&&typeof h.then=="function"?h.then(function(v){return f(null,v)}).catch(f):f(null,h)}catch(v){f(v)}return}return d(i,a,f)}},{key:"prepareLoading",value:function(i,a){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof a=="string"&&(a=[a]);var c=this.queueLoad(i,a,s,u);if(!c.toLoad.length)return c.pending.length||u(),null;c.toLoad.forEach(function(l){o.loadOne(l)})}},{key:"load",value:function(i,a,o){this.prepareLoading(i,a,{},o)}},{key:"reload",value:function(i,a,o){this.prepareLoading(i,a,{reload:!0},o)}},{key:"loadOne",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),u=s[0],c=s[1];this.read(u,c,"read",void 0,void 0,function(l,f){l&&a.logger.warn("".concat(o,"loading namespace ").concat(c," for language ").concat(u," failed"),l),!l&&f&&a.logger.log("".concat(o,"loaded namespace ").concat(c," for language ").concat(u),f),a.loaded(i,l,f)})}},{key:"saveMissing",value:function(i,a,o,s,u){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var f=Fu(Fu({},c),{},{isUpdate:u}),d=this.backend.create.bind(this.backend);if(d.length<6)try{var h;d.length===5?h=d(i,a,o,s,f):h=d(i,a,o,s),h&&typeof h.then=="function"?h.then(function(v){return l(null,v)}).catch(l):l(null,h)}catch(v){l(v)}else d(i,a,o,s,l,f)}!i||!i[0]||this.store.addResource(i[0],a,o,s)}}}]),r}(Bt);function ku(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var r={};if(ne(t[1])==="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),ne(t[2])==="object"||ne(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(i){r[i]=n[i]})}return r},interpolation:{escapeValue:!0,format:function(t,r,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Au(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$u(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fy(e){var t=ky();return function(){var n=it(e),i;if(t){var a=it(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Rr(this,i)}}function ky(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ln(){}function Ay(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(r){typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}var Qn=function(e){er(r,e);var t=Fy(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Ne(this,r),n=t.call(this),mi&&Bt.call(dt(n)),n.options=Au(i),n.services={},n.logger=bt,n.modules={external:[]},Ay(dt(n)),a&&!n.isInitialized&&!i.isClone){if(!n.options.initImmediate)return n.init(i,a),Rr(n,dt(n));setTimeout(function(){n.init(i,a)},0)}return n}return je(r,[{key:"init",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var s=ku();this.options=mt(mt(mt({},s),this.options),Au(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=mt(mt({},s.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function u(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?bt.init(u(this.modules.logger),this.options):bt.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=Ry);var l=new Pu(this.options);this.store=new my(this.options.resources,this.options);var f=this.services;f.logger=bt,f.resourceStore=this.store,f.languageUtils=l,f.pluralResolver=new Oy(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=u(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Ey(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new jy(u(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(p){for(var b=arguments.length,w=new Array(b>1?b-1:0),S=1;S<b;S++)w[S-1]=arguments[S];i.emit.apply(i,[p].concat(w))}),this.modules.languageDetector&&(f.languageDetector=u(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=u(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Eu(this.services,this.options),this.translator.on("*",function(p){for(var b=arguments.length,w=new Array(b>1?b-1:0),S=1;S<b;S++)w[S-1]=arguments[S];i.emit.apply(i,[p].concat(w))}),this.modules.external.forEach(function(p){p.init&&p.init(i)})}if(this.format=this.options.interpolation.format,o||(o=Ln),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(p){i[p]=function(){var b;return(b=i.store)[p].apply(b,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(p){i[p]=function(){var b;return(b=i.store)[p].apply(b,arguments),i}});var g=Br(),y=function(){var b=function(S,x){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(x),o(S,x)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return b(null,i.t.bind(i));i.changeLanguage(i.options.lng,b)};return this.options.resources||!this.options.initImmediate?y():setTimeout(y,0),g}},{key:"loadResources",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln,s=o,u=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var c=[],l=function(h){if(!!h){var v=a.services.languageUtils.toResolveHierarchy(h);v.forEach(function(g){c.indexOf(g)<0&&c.push(g)})}};if(u)l(u);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(d){return l(d)})}this.options.preload&&this.options.preload.forEach(function(d){return l(d)}),this.services.backendConnector.load(c,this.options.ns,function(d){!d&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),s(d)})}else s(null)}},{key:"reloadResources",value:function(i,a,o){var s=Br();return i||(i=this.languages),a||(a=this.options.ns),o||(o=Ln),this.services.backendConnector.reload(i,a,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Ql.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var a=0;a<this.languages.length;a++){var o=this.languages[a];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(i,a){var o=this;this.isLanguageChangingTo=i;var s=Br();this.emit("languageChanging",i);var u=function(d){o.language=d,o.languages=o.services.languageUtils.toResolveHierarchy(d),o.resolvedLanguage=void 0,o.setResolvedLanguage(d)},c=function(d,h){h?(u(h),o.translator.changeLanguage(h),o.isLanguageChangingTo=void 0,o.emit("languageChanged",h),o.logger.log("languageChanged",h)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),a&&a(d,function(){return o.t.apply(o,arguments)})},l=function(d){!i&&!d&&o.services.languageDetector&&(d=[]);var h=typeof d=="string"?d:o.services.languageUtils.getBestMatchFromCodes(d);h&&(o.language||u(h),o.translator.language||o.translator.changeLanguage(h),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(h)),o.loadResources(h,function(v){c(v,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(i),s}},{key:"getFixedT",value:function(i,a,o){var s=this,u=function c(l,f){var d;if(ne(f)!=="object"){for(var h=arguments.length,v=new Array(h>2?h-2:0),g=2;g<h;g++)v[g-2]=arguments[g];d=s.options.overloadTranslationOptionHandler([l,f].concat(v))}else d=mt({},f);d.lng=d.lng||c.lng,d.lngs=d.lngs||c.lngs,d.ns=d.ns||c.ns,d.keyPrefix=d.keyPrefix||o||c.keyPrefix;var y=s.options.keySeparator||".",p;return d.keyPrefix&&Array.isArray(l)?p=l.map(function(b){return"".concat(d.keyPrefix).concat(y).concat(b)}):p=d.keyPrefix?"".concat(d.keyPrefix).concat(y).concat(l):l,s.t(p,d)};return typeof i=="string"?u.lng=i:u.lngs=i,u.ns=a,u.keyPrefix=o,u}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var l=function(h,v){var g=a.services.backendConnector.state["".concat(h,"|").concat(v)];return g===-1||g===2};if(o.precheck){var f=o.precheck(this,l);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(s,i)&&(!u||l(c,i)))}},{key:"loadNamespaces",value:function(i,a){var o=this,s=Br();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),a&&a(u)}),s):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(i,a){var o=Br();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],u=i.filter(function(c){return s.indexOf(c)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(c){o.resolve(),a&&a(c)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Pu(ku());return a.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln,s=mt(mt(mt({},this.options),a),{isClone:!0}),u=new r(s);(a.debug!==void 0||a.prefix!==void 0)&&(u.logger=u.logger.clone(a));var c=["store","services","language"];return c.forEach(function(l){u[l]=i[l]}),u.services=mt({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Eu(u.services,u.options),u.translator.on("*",function(l){for(var f=arguments.length,d=new Array(f>1?f-1:0),h=1;h<f;h++)d[h-1]=arguments[h];u.emit.apply(u,[l].concat(d))}),u.init(s,o),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(Bt);U(Qn,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Qn(e,t)});var Ae=Qn.createInstance();Ae.createInstance=Qn.createInstance;Ae.createInstance;Ae.dir;Ae.init;Ae.loadResources;Ae.reloadResources;Ae.use;Ae.changeLanguage;Ae.getFixedT;Ae.t;Ae.exists;Ae.setDefaultNamespace;Ae.hasLoadedNamespace;Ae.loadNamespaces;Ae.loadLanguages;var $y=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ly={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},My=function(t){return Ly[t]},Iy=function(t){return t.replace($y,My)};function Lu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lu(Object(r),!0).forEach(function(n){U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Iu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Iy};function By(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Iu=Mu(Mu({},Iu),e)}var zy={type:"3rdParty",init:function(t){By(t.options.react)}};Z.createContext();(function(){function e(){Ne(this,e),this.usedNamespaces={}}return je(e,[{key:"addUsedNamespaces",value:function(r){var n=this;r.forEach(function(i){n.usedNamespaces[i]||(n.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e})();const Dy={translation:{"Welcome to React":"\u6B22\u8FCE\u4F7F\u7528 React"}},Vy={translation:{"Welcome to React":"Welcome to React and react-i18next"}},Hy={zh_CN:Dy,en_US:Vy};Ae.use(zy).init({resources:Hy,lng:"zh_CN",react:{bindI18n:"added languageChanged",bindI18nStore:"added"}});const Zl=Ae;Zl.update=()=>{setTimeout(()=>{Ae.emit("added")},0)};class Wy{constructor({getWorkbench:t,emitter:r,pageModel:n,i18n:i,assets:a,engine:o}){K(this,"plugins",new Map);K(this,"emitter",Yn());K(this,"getWorkbench");K(this,"pageModel");K(this,"i18n");K(this,"assets");K(this,"engine");K(this,"customPluginHooks",{});K(this,"customPlugin",(t,r)=>{const n=this.customPluginHooks,i=n[t]||[];i.push(r),n[t]=i,this.customPluginHooks=n});K(this,"createPluginCtx",()=>({globalEmitter:this.emitter,emitter:Yn(),config:{},getWorkbench:this.getWorkbench,pluginManager:this,pageModel:this.pageModel,i18n:this.i18n,assets:this.assets,engine:this.engine,pluginReadyOk:()=>{}}));this.getWorkbench=t,this.emitter=r,this.pageModel=n,this.i18n=i,this.assets=a,this.engine=o}async add(t){var o;const r=this.createPluginCtx();let n;typeof t=="function"?n=t(r):n=t;let i={source:n,ctx:r,exports:((o=n.exports)==null?void 0:o.call(n,r))||{},ready:!1};(this.customPluginHooks[n.name]||[]).forEach(s=>{i=s(i)}),r.pluginReadyOk=()=>{this.emitter.emit(`${n.name}:ready`),i.ready=!0},this.plugins.set(n.name,i),await n.init(r)}async get(t){const r=this.plugins.get(t);return r!=null&&r.ready||await this.onPluginReadyOk(t),r}async remove(t){const r=this.plugins.get(t);await(r==null?void 0:r.source.destroy(r.ctx)),this.plugins.delete(t)}onPluginReadyOk(t,r){const n=this.plugins.get(t);if(!(n!=null&&n.ready))return new Promise(i=>{this.emitter.on(`${t}:ready`,()=>{n&&(n.ready=!0,r==null||r(n),i(n))})})}}var Uy=Object.defineProperty,qy=(e,t,r)=>t in e?Uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t,r)=>(qy(e,typeof t!="symbol"?t+"":t,r),r),Gy=typeof global=="object"&&global&&global.Object===Object&&global;const ef=Gy;var Ky=typeof self=="object"&&self&&self.Object===Object&&self,Yy=ef||Ky||Function("return this")();const xt=Yy;var Xy=xt.Symbol;const ot=Xy;var tf=Object.prototype,Jy=tf.hasOwnProperty,Qy=tf.toString,zr=ot?ot.toStringTag:void 0;function Zy(e){var t=Jy.call(e,zr),r=e[zr];try{e[zr]=void 0;var n=!0}catch{}var i=Qy.call(e);return n&&(t?e[zr]=r:delete e[zr]),i}var eb=Object.prototype,tb=eb.toString;function rb(e){return tb.call(e)}var nb="[object Null]",ib="[object Undefined]",Bu=ot?ot.toStringTag:void 0;function nr(e){return e==null?e===void 0?ib:nb:Bu&&Bu in Object(e)?Zy(e):rb(e)}function wt(e){return e!=null&&typeof e=="object"}var ab="[object Symbol]";function Eo(e){return typeof e=="symbol"||wt(e)&&nr(e)==ab}function Po(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var ob=Array.isArray;const xe=ob;var sb=1/0,zu=ot?ot.prototype:void 0,Du=zu?zu.toString:void 0;function rf(e){if(typeof e=="string")return e;if(xe(e))return Po(e,rf)+"";if(Eo(e))return Du?Du.call(e):"";var t=e+"";return t=="0"&&1/e==-sb?"-0":t}function vt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ro(e){return e}var ub="[object AsyncFunction]",cb="[object Function]",lb="[object GeneratorFunction]",fb="[object Proxy]";function _o(e){if(!vt(e))return!1;var t=nr(e);return t==cb||t==lb||t==ub||t==fb}var db=xt["__core-js_shared__"];const ta=db;var Vu=function(){var e=/[^.]+$/.exec(ta&&ta.keys&&ta.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hb(e){return!!Vu&&Vu in e}var pb=Function.prototype,gb=pb.toString;function ir(e){if(e!=null){try{return gb.call(e)}catch{}try{return e+""}catch{}}return""}var vb=/[\\^$.*+?()[\]{}|]/g,mb=/^\[object .+?Constructor\]$/,yb=Function.prototype,bb=Object.prototype,Sb=yb.toString,wb=bb.hasOwnProperty,xb=RegExp("^"+Sb.call(wb).replace(vb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cb(e){if(!vt(e)||hb(e))return!1;var t=_o(e)?xb:mb;return t.test(ir(e))}function Ob(e,t){return e==null?void 0:e[t]}function ar(e,t){var r=Ob(e,t);return Cb(r)?r:void 0}var Eb=ar(xt,"WeakMap");const Ua=Eb;var Hu=Object.create,Pb=function(){function e(){}return function(t){if(!vt(t))return{};if(Hu)return Hu(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Rb=Pb;function _b(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Tb(){}function nf(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Nb=800,jb=16,Fb=Date.now;function kb(e){var t=0,r=0;return function(){var n=Fb(),i=jb-(n-r);if(r=n,i>0){if(++t>=Nb)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ab(e){return function(){return e}}var $b=function(){try{var e=ar(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Zn=$b;var Lb=Zn?function(e,t){return Zn(e,"toString",{configurable:!0,enumerable:!1,value:Ab(t),writable:!0})}:Ro;const Mb=Lb;var Ib=kb(Mb);const af=Ib;function Bb(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function zb(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Db(e){return e!==e}function Vb(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function Hb(e,t,r){return t===t?Vb(e,t,r):zb(e,Db,r)}function Wb(e,t){var r=e==null?0:e.length;return!!r&&Hb(e,t,0)>-1}var Ub=9007199254740991,qb=/^(?:0|[1-9]\d*)$/;function yi(e,t){var r=typeof e;return t=t==null?Ub:t,!!t&&(r=="number"||r!="symbol"&&qb.test(e))&&e>-1&&e%1==0&&e<t}function To(e,t,r){t=="__proto__"&&Zn?Zn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function hn(e,t){return e===t||e!==e&&t!==t}var Gb=Object.prototype,Kb=Gb.hasOwnProperty;function No(e,t,r){var n=e[t];(!(Kb.call(e,t)&&hn(n,r))||r===void 0&&!(t in e))&&To(e,t,r)}function jr(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?To(r,s,u):No(r,s,u)}return r}var Wu=Math.max;function of(e,t,r){return t=Wu(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Wu(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),_b(e,this,s)}}function sf(e,t){return af(of(e,t,Ro),e+"")}var Yb=9007199254740991;function jo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yb}function bi(e){return e!=null&&jo(e.length)&&!_o(e)}function Xb(e,t,r){if(!vt(r))return!1;var n=typeof t;return(n=="number"?bi(r)&&yi(t,r.length):n=="string"&&t in r)?hn(r[t],e):!1}function Jb(e){return sf(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&Xb(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var Qb=Object.prototype;function Fo(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Qb;return e===r}function Zb(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var e0="[object Arguments]";function Uu(e){return wt(e)&&nr(e)==e0}var uf=Object.prototype,t0=uf.hasOwnProperty,r0=uf.propertyIsEnumerable,n0=Uu(function(){return arguments}())?Uu:function(e){return wt(e)&&t0.call(e,"callee")&&!r0.call(e,"callee")};const rn=n0;function i0(){return!1}var cf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qu=cf&&typeof module=="object"&&module&&!module.nodeType&&module,a0=qu&&qu.exports===cf,Gu=a0?xt.Buffer:void 0,o0=Gu?Gu.isBuffer:void 0,s0=o0||i0;const nn=s0;var u0="[object Arguments]",c0="[object Array]",l0="[object Boolean]",f0="[object Date]",d0="[object Error]",h0="[object Function]",p0="[object Map]",g0="[object Number]",v0="[object Object]",m0="[object RegExp]",y0="[object Set]",b0="[object String]",S0="[object WeakMap]",w0="[object ArrayBuffer]",x0="[object DataView]",C0="[object Float32Array]",O0="[object Float64Array]",E0="[object Int8Array]",P0="[object Int16Array]",R0="[object Int32Array]",_0="[object Uint8Array]",T0="[object Uint8ClampedArray]",N0="[object Uint16Array]",j0="[object Uint32Array]",pe={};pe[C0]=pe[O0]=pe[E0]=pe[P0]=pe[R0]=pe[_0]=pe[T0]=pe[N0]=pe[j0]=!0;pe[u0]=pe[c0]=pe[w0]=pe[l0]=pe[x0]=pe[f0]=pe[d0]=pe[h0]=pe[p0]=pe[g0]=pe[v0]=pe[m0]=pe[y0]=pe[b0]=pe[S0]=!1;function F0(e){return wt(e)&&jo(e.length)&&!!pe[nr(e)]}function ko(e){return function(t){return e(t)}}var lf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yr=lf&&typeof module=="object"&&module&&!module.nodeType&&module,k0=Yr&&Yr.exports===lf,ra=k0&&ef.process,A0=function(){try{var e=Yr&&Yr.require&&Yr.require("util").types;return e||ra&&ra.binding&&ra.binding("util")}catch{}}();const Cr=A0;var Ku=Cr&&Cr.isTypedArray,$0=Ku?ko(Ku):F0;const Ao=$0;var L0=Object.prototype,M0=L0.hasOwnProperty;function ff(e,t){var r=xe(e),n=!r&&rn(e),i=!r&&!n&&nn(e),a=!r&&!n&&!i&&Ao(e),o=r||n||i||a,s=o?Zb(e.length,String):[],u=s.length;for(var c in e)(t||M0.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||yi(c,u)))&&s.push(c);return s}function df(e,t){return function(r){return e(t(r))}}var I0=df(Object.keys,Object);const B0=I0;var z0=Object.prototype,D0=z0.hasOwnProperty;function V0(e){if(!Fo(e))return B0(e);var t=[];for(var r in Object(e))D0.call(e,r)&&r!="constructor"&&t.push(r);return t}function Si(e){return bi(e)?ff(e):V0(e)}function H0(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var W0=Object.prototype,U0=W0.hasOwnProperty;function q0(e){if(!vt(e))return H0(e);var t=Fo(e),r=[];for(var n in e)n=="constructor"&&(t||!U0.call(e,n))||r.push(n);return r}function pn(e){return bi(e)?ff(e,!0):q0(e)}var G0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K0=/^\w*$/;function $o(e,t){if(xe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Eo(e)?!0:K0.test(e)||!G0.test(e)||t!=null&&e in Object(t)}var Y0=ar(Object,"create");const an=Y0;function X0(){this.__data__=an?an(null):{},this.size=0}function J0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Q0="__lodash_hash_undefined__",Z0=Object.prototype,e1=Z0.hasOwnProperty;function t1(e){var t=this.__data__;if(an){var r=t[e];return r===Q0?void 0:r}return e1.call(t,e)?t[e]:void 0}var r1=Object.prototype,n1=r1.hasOwnProperty;function i1(e){var t=this.__data__;return an?t[e]!==void 0:n1.call(t,e)}var a1="__lodash_hash_undefined__";function o1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=an&&t===void 0?a1:t,this}function Qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qt.prototype.clear=X0;Qt.prototype.delete=J0;Qt.prototype.get=t1;Qt.prototype.has=i1;Qt.prototype.set=o1;function s1(){this.__data__=[],this.size=0}function wi(e,t){for(var r=e.length;r--;)if(hn(e[r][0],t))return r;return-1}var u1=Array.prototype,c1=u1.splice;function l1(e){var t=this.__data__,r=wi(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():c1.call(t,r,1),--this.size,!0}function f1(e){var t=this.__data__,r=wi(t,e);return r<0?void 0:t[r][1]}function d1(e){return wi(this.__data__,e)>-1}function h1(e,t){var r=this.__data__,n=wi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ft.prototype.clear=s1;Ft.prototype.delete=l1;Ft.prototype.get=f1;Ft.prototype.has=d1;Ft.prototype.set=h1;var p1=ar(xt,"Map");const on=p1;function g1(){this.size=0,this.__data__={hash:new Qt,map:new(on||Ft),string:new Qt}}function v1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xi(e,t){var r=e.__data__;return v1(t)?r[typeof t=="string"?"string":"hash"]:r.map}function m1(e){var t=xi(this,e).delete(e);return this.size-=t?1:0,t}function y1(e){return xi(this,e).get(e)}function b1(e){return xi(this,e).has(e)}function S1(e,t){var r=xi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}kt.prototype.clear=g1;kt.prototype.delete=m1;kt.prototype.get=y1;kt.prototype.has=b1;kt.prototype.set=S1;var w1="Expected a function";function Lo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(w1);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Lo.Cache||kt),r}Lo.Cache=kt;var x1=500;function C1(e){var t=Lo(e,function(n){return r.size===x1&&r.clear(),n}),r=t.cache;return t}var O1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E1=/\\(\\)?/g,P1=C1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(O1,function(r,n,i,a){t.push(i?a.replace(E1,"$1"):n||r)}),t});const R1=P1;function _1(e){return e==null?"":rf(e)}function Fr(e,t){return xe(e)?e:$o(e,t)?[e]:R1(_1(e))}var T1=1/0;function kr(e){if(typeof e=="string"||Eo(e))return e;var t=e+"";return t=="0"&&1/e==-T1?"-0":t}function Ci(e,t){t=Fr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[kr(t[r++])];return r&&r==n?e:void 0}function hf(e,t,r){var n=e==null?void 0:Ci(e,t);return n===void 0?r:n}function Mo(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Yu=ot?ot.isConcatSpreadable:void 0;function N1(e){return xe(e)||rn(e)||!!(Yu&&e&&e[Yu])}function Io(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=N1),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Io(s,t-1,r,n,i):Mo(i,s):n||(i[i.length]=s)}return i}function j1(e){var t=e==null?0:e.length;return t?Io(e,1):[]}function F1(e){return af(of(e,void 0,j1),e+"")}var k1=df(Object.getPrototypeOf,Object);const Bo=k1;var A1="[object Object]",$1=Function.prototype,L1=Object.prototype,pf=$1.toString,M1=L1.hasOwnProperty,I1=pf.call(Object);function Ke(e){if(!wt(e)||nr(e)!=A1)return!1;var t=Bo(e);if(t===null)return!0;var r=M1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&pf.call(r)==I1}function B1(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}function z1(){this.__data__=new Ft,this.size=0}function D1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function V1(e){return this.__data__.get(e)}function H1(e){return this.__data__.has(e)}var W1=200;function U1(e,t){var r=this.__data__;if(r instanceof Ft){var n=r.__data__;if(!on||n.length<W1-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new kt(n)}return r.set(e,t),this.size=r.size,this}function pt(e){var t=this.__data__=new Ft(e);this.size=t.size}pt.prototype.clear=z1;pt.prototype.delete=D1;pt.prototype.get=V1;pt.prototype.has=H1;pt.prototype.set=U1;function q1(e,t){return e&&jr(t,Si(t),e)}function G1(e,t){return e&&jr(t,pn(t),e)}var gf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xu=gf&&typeof module=="object"&&module&&!module.nodeType&&module,K1=Xu&&Xu.exports===gf,Ju=K1?xt.Buffer:void 0,Qu=Ju?Ju.allocUnsafe:void 0;function vf(e,t){if(t)return e.slice();var r=e.length,n=Qu?Qu(r):new e.constructor(r);return e.copy(n),n}function Y1(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function mf(){return[]}var X1=Object.prototype,J1=X1.propertyIsEnumerable,Zu=Object.getOwnPropertySymbols,Q1=Zu?function(e){return e==null?[]:(e=Object(e),Y1(Zu(e),function(t){return J1.call(e,t)}))}:mf;const zo=Q1;function Z1(e,t){return jr(e,zo(e),t)}var eS=Object.getOwnPropertySymbols,tS=eS?function(e){for(var t=[];e;)Mo(t,zo(e)),e=Bo(e);return t}:mf;const yf=tS;function rS(e,t){return jr(e,yf(e),t)}function bf(e,t,r){var n=t(e);return xe(e)?n:Mo(n,r(e))}function qa(e){return bf(e,Si,zo)}function Do(e){return bf(e,pn,yf)}var nS=ar(xt,"DataView");const Ga=nS;var iS=ar(xt,"Promise");const Ka=iS;var aS=ar(xt,"Set");const br=aS;var ec="[object Map]",oS="[object Object]",tc="[object Promise]",rc="[object Set]",nc="[object WeakMap]",ic="[object DataView]",sS=ir(Ga),uS=ir(on),cS=ir(Ka),lS=ir(br),fS=ir(Ua),Ht=nr;(Ga&&Ht(new Ga(new ArrayBuffer(1)))!=ic||on&&Ht(new on)!=ec||Ka&&Ht(Ka.resolve())!=tc||br&&Ht(new br)!=rc||Ua&&Ht(new Ua)!=nc)&&(Ht=function(e){var t=nr(e),r=t==oS?e.constructor:void 0,n=r?ir(r):"";if(n)switch(n){case sS:return ic;case uS:return ec;case cS:return tc;case lS:return rc;case fS:return nc}return t});const sn=Ht;var dS=Object.prototype,hS=dS.hasOwnProperty;function pS(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&hS.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var gS=xt.Uint8Array;const ei=gS;function Vo(e){var t=new e.constructor(e.byteLength);return new ei(t).set(new ei(e)),t}function vS(e,t){var r=t?Vo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var mS=/\w*$/;function yS(e){var t=new e.constructor(e.source,mS.exec(e));return t.lastIndex=e.lastIndex,t}var ac=ot?ot.prototype:void 0,oc=ac?ac.valueOf:void 0;function bS(e){return oc?Object(oc.call(e)):{}}function Sf(e,t){var r=t?Vo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var SS="[object Boolean]",wS="[object Date]",xS="[object Map]",CS="[object Number]",OS="[object RegExp]",ES="[object Set]",PS="[object String]",RS="[object Symbol]",_S="[object ArrayBuffer]",TS="[object DataView]",NS="[object Float32Array]",jS="[object Float64Array]",FS="[object Int8Array]",kS="[object Int16Array]",AS="[object Int32Array]",$S="[object Uint8Array]",LS="[object Uint8ClampedArray]",MS="[object Uint16Array]",IS="[object Uint32Array]";function BS(e,t,r){var n=e.constructor;switch(t){case _S:return Vo(e);case SS:case wS:return new n(+e);case TS:return vS(e,r);case NS:case jS:case FS:case kS:case AS:case $S:case LS:case MS:case IS:return Sf(e,r);case xS:return new n;case CS:case PS:return new n(e);case OS:return yS(e);case ES:return new n;case RS:return bS(e)}}function wf(e){return typeof e.constructor=="function"&&!Fo(e)?Rb(Bo(e)):{}}var zS="[object Map]";function DS(e){return wt(e)&&sn(e)==zS}var sc=Cr&&Cr.isMap,VS=sc?ko(sc):DS;const HS=VS;var WS="[object Set]";function US(e){return wt(e)&&sn(e)==WS}var uc=Cr&&Cr.isSet,qS=uc?ko(uc):US;const GS=qS;var KS=1,YS=2,XS=4,xf="[object Arguments]",JS="[object Array]",QS="[object Boolean]",ZS="[object Date]",ew="[object Error]",Cf="[object Function]",tw="[object GeneratorFunction]",rw="[object Map]",nw="[object Number]",Of="[object Object]",iw="[object RegExp]",aw="[object Set]",ow="[object String]",sw="[object Symbol]",uw="[object WeakMap]",cw="[object ArrayBuffer]",lw="[object DataView]",fw="[object Float32Array]",dw="[object Float64Array]",hw="[object Int8Array]",pw="[object Int16Array]",gw="[object Int32Array]",vw="[object Uint8Array]",mw="[object Uint8ClampedArray]",yw="[object Uint16Array]",bw="[object Uint32Array]",he={};he[xf]=he[JS]=he[cw]=he[lw]=he[QS]=he[ZS]=he[fw]=he[dw]=he[hw]=he[pw]=he[gw]=he[rw]=he[nw]=he[Of]=he[iw]=he[aw]=he[ow]=he[sw]=he[vw]=he[mw]=he[yw]=he[bw]=!0;he[ew]=he[Cf]=he[uw]=!1;function Xr(e,t,r,n,i,a){var o,s=t&KS,u=t&YS,c=t&XS;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!vt(e))return e;var l=xe(e);if(l){if(o=pS(e),!s)return nf(e,o)}else{var f=sn(e),d=f==Cf||f==tw;if(nn(e))return vf(e,s);if(f==Of||f==xf||d&&!i){if(o=u||d?{}:wf(e),!s)return u?rS(e,G1(o,e)):Z1(e,q1(o,e))}else{if(!he[f])return i?e:{};o=BS(e,f,s)}}a||(a=new pt);var h=a.get(e);if(h)return h;a.set(e,o),GS(e)?e.forEach(function(y){o.add(Xr(y,t,r,y,e,a))}):HS(e)&&e.forEach(function(y,p){o.set(p,Xr(y,t,r,p,e,a))});var v=c?u?Do:qa:u?pn:Si,g=l?void 0:v(e);return Bb(g||e,function(y,p){g&&(p=y,y=e[p]),No(o,p,Xr(y,t,r,p,e,a))}),o}var Sw=1,ww=4;function Ef(e){return Xr(e,Sw|ww)}var xw="__lodash_hash_undefined__";function Cw(e){return this.__data__.set(e,xw),this}function Ow(e){return this.__data__.has(e)}function un(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kt;++t<r;)this.add(e[t])}un.prototype.add=un.prototype.push=Cw;un.prototype.has=Ow;function Ew(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Pf(e,t){return e.has(t)}var Pw=1,Rw=2;function Rf(e,t,r,n,i,a){var o=r&Pw,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(e),l=a.get(t);if(c&&l)return c==t&&l==e;var f=-1,d=!0,h=r&Rw?new un:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var v=e[f],g=t[f];if(n)var y=o?n(g,v,f,t,e,a):n(v,g,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!Ew(t,function(p,b){if(!Pf(h,b)&&(v===p||i(v,p,r,n,a)))return h.push(b)})){d=!1;break}}else if(!(v===g||i(v,g,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function _w(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Ho(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tw=1,Nw=2,jw="[object Boolean]",Fw="[object Date]",kw="[object Error]",Aw="[object Map]",$w="[object Number]",Lw="[object RegExp]",Mw="[object Set]",Iw="[object String]",Bw="[object Symbol]",zw="[object ArrayBuffer]",Dw="[object DataView]",cc=ot?ot.prototype:void 0,na=cc?cc.valueOf:void 0;function Vw(e,t,r,n,i,a,o){switch(r){case Dw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zw:return!(e.byteLength!=t.byteLength||!a(new ei(e),new ei(t)));case jw:case Fw:case $w:return hn(+e,+t);case kw:return e.name==t.name&&e.message==t.message;case Lw:case Iw:return e==t+"";case Aw:var s=_w;case Mw:var u=n&Tw;if(s||(s=Ho),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Nw,o.set(e,t);var l=Rf(s(e),s(t),n,i,a,o);return o.delete(e),l;case Bw:if(na)return na.call(e)==na.call(t)}return!1}var Hw=1,Ww=Object.prototype,Uw=Ww.hasOwnProperty;function qw(e,t,r,n,i,a){var o=r&Hw,s=qa(e),u=s.length,c=qa(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:Uw.call(t,d)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var g=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<u;){d=s[f];var p=e[d],b=t[d];if(n)var w=o?n(b,p,d,t,e,a):n(p,b,d,e,t,a);if(!(w===void 0?p===b||i(p,b,r,n,a):w)){g=!1;break}y||(y=d=="constructor")}if(g&&!y){var S=e.constructor,x=t.constructor;S!=x&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof x=="function"&&x instanceof x)&&(g=!1)}return a.delete(e),a.delete(t),g}var Gw=1,lc="[object Arguments]",fc="[object Array]",Mn="[object Object]",Kw=Object.prototype,dc=Kw.hasOwnProperty;function Yw(e,t,r,n,i,a){var o=xe(e),s=xe(t),u=o?fc:sn(e),c=s?fc:sn(t);u=u==lc?Mn:u,c=c==lc?Mn:c;var l=u==Mn,f=c==Mn,d=u==c;if(d&&nn(e)){if(!nn(t))return!1;o=!0,l=!1}if(d&&!l)return a||(a=new pt),o||Ao(e)?Rf(e,t,r,n,i,a):Vw(e,t,u,r,n,i,a);if(!(r&Gw)){var h=l&&dc.call(e,"__wrapped__"),v=f&&dc.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,y=v?t.value():t;return a||(a=new pt),i(g,y,r,n,a)}}return d?(a||(a=new pt),qw(e,t,r,n,i,a)):!1}function Wo(e,t,r,n,i){return e===t?!0:e==null||t==null||!wt(e)&&!wt(t)?e!==e&&t!==t:Yw(e,t,r,n,Wo,i)}var Xw=1,Jw=2;function Qw(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var u=s[0],c=e[u],l=s[1];if(o&&s[2]){if(c===void 0&&!(u in e))return!1}else{var f=new pt;if(n)var d=n(c,l,u,e,t,f);if(!(d===void 0?Wo(l,c,Xw|Jw,n,f):d))return!1}}return!0}function _f(e){return e===e&&!vt(e)}function Zw(e){for(var t=Si(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,_f(i)]}return t}function Tf(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function ex(e){var t=Zw(e);return t.length==1&&t[0][2]?Tf(t[0][0],t[0][1]):function(r){return r===e||Qw(r,e,t)}}function tx(e,t){return e!=null&&t in Object(e)}function rx(e,t,r){t=Fr(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=kr(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&jo(i)&&yi(o,i)&&(xe(e)||rn(e)))}function nx(e,t){return e!=null&&rx(e,t,tx)}var ix=1,ax=2;function ox(e,t){return $o(e)&&_f(t)?Tf(kr(e),t):function(r){var n=hf(r,e);return n===void 0&&n===t?nx(r,e):Wo(t,n,ix|ax)}}function sx(e){return function(t){return t==null?void 0:t[e]}}function ux(e){return function(t){return Ci(t,e)}}function cx(e){return $o(e)?sx(kr(e)):ux(e)}function Uo(e){return typeof e=="function"?e:e==null?Ro:typeof e=="object"?xe(e)?ox(e[0],e[1]):ex(e):cx(e)}function lx(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var fx=lx();const dx=fx;function Ya(e,t,r){(r!==void 0&&!hn(e[t],r)||r===void 0&&!(t in e))&&To(e,t,r)}function Xa(e){return wt(e)&&bi(e)}function Ja(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function hx(e){return jr(e,pn(e))}function px(e,t,r,n,i,a,o){var s=Ja(e,r),u=Ja(t,r),c=o.get(u);if(c){Ya(e,r,c);return}var l=a?a(s,u,r+"",e,t,o):void 0,f=l===void 0;if(f){var d=xe(u),h=!d&&nn(u),v=!d&&!h&&Ao(u);l=u,d||h||v?xe(s)?l=s:Xa(s)?l=nf(s):h?(f=!1,l=vf(u,!0)):v?(f=!1,l=Sf(u,!0)):l=[]:Ke(u)||rn(u)?(l=s,rn(s)?l=hx(s):(!vt(s)||_o(s))&&(l=wf(u))):f=!1}f&&(o.set(u,l),i(l,u,n,a,o),o.delete(u)),Ya(e,r,l)}function Nf(e,t,r,n,i){e!==t&&dx(t,function(a,o){if(i||(i=new pt),vt(a))px(e,t,o,r,Nf,n,i);else{var s=n?n(Ja(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Ya(e,o,s)}},pn)}function gx(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function jf(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function vx(e,t){return t.length<2?e:Ci(e,B1(t,0,-1))}var mx=Jb(function(e,t,r){Nf(e,t,r)});const Ff=mx;var yx="Expected a function";function bx(e){if(typeof e!="function")throw new TypeError(yx);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Sx(e,t){return t=Fr(t,e),e=vx(e,t),e==null||delete e[kr(jf(t))]}function wx(e){return Ke(e)?void 0:e}var xx=1,Cx=2,Ox=4,Ex=F1(function(e,t){var r={};if(e==null)return r;var n=!1;t=Po(t,function(a){return a=Fr(a,e),n||(n=a.length>1),a}),jr(e,Do(e),r),n&&(r=Xr(r,xx|Cx|Ox,wx));for(var i=t.length;i--;)Sx(r,t[i]);return r});const kf=Ex;function Px(e,t,r,n){if(!vt(e))return e;t=Fr(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=kr(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=s[u];c=n?n(l,u,s):void 0,c===void 0&&(c=vt(l)?l:yi(t[i+1])?[]:{})}No(s,u,c),s=s[u]}return e}function Rx(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Ci(e,o);r(s,o)&&Px(a,Fr(o,e),s)}return a}function _x(e,t){if(e==null)return{};var r=Po(Do(e),function(n){return[n]});return t=Uo(t),Rx(e,r,function(n,i){return t(n,i[0])})}function Tx(e,t){return _x(e,bx(Uo(t)))}var Nx=1/0,jx=br&&1/Ho(new br([,-0]))[1]==Nx?function(e){return new br(e)}:Tb;const Fx=jx;var kx=200;function Ax(e,t,r){var n=-1,i=Wb,a=e.length,o=!0,s=[],u=s;if(r)o=!1,i=gx;else if(a>=kx){var c=t?null:Fx(e);if(c)return Ho(c);o=!1,i=Pf,u=new un}else u=t?[]:s;e:for(;++n<a;){var l=e[n],f=t?t(l):l;if(l=r||l!==0?l:0,o&&f===f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,r)||(u!==s&&u.push(f),s.push(l))}return s}var $x=sf(function(e){var t=jf(e);return Xa(t)&&(t=void 0),Ax(Io(e,1,Xa,!0),Uo(t))});const Lx=$x;class Af extends TypeError{constructor(t,r){let n;const{message:i,...a}=t,{path:o}=t,s=o.length===0?i:`At path: ${o.join(".")} -- ${i}`;super(s),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>n!=null?n:n=[t,...r()]}}function Mx(e){return gt(e)&&typeof e[Symbol.iterator]=="function"}function gt(e){return typeof e=="object"&&e!=null}function tt(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function Ix(e){const{done:t,value:r}=e.next();return t?void 0:r}function Bx(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:i,branch:a}=t,{type:o}=r,{refinement:s,message:u=`Expected a value of type \`${o}\`${s?` with refinement \`${s}\``:""}, but received: \`${tt(n)}\``}=e;return{value:n,type:o,refinement:s,key:i[i.length-1],path:i,branch:a,...e,message:u}}function*hc(e,t,r,n){Mx(e)||(e=[e]);for(const i of e){const a=Bx(i,t,r,n);a&&(yield a)}}function*qo(e,t,r){r===void 0&&(r={});const{path:n=[],branch:i=[e],coerce:a=!1,mask:o=!1}=r,s={path:n,branch:i};if(a&&(e=t.coercer(e,s),o&&t.type!=="type"&>(t.schema)&>(e)&&!Array.isArray(e)))for(const c in e)t.schema[c]===void 0&&delete e[c];let u="valid";for(const c of t.validator(e,s))u="not_valid",yield[c,void 0];for(let[c,l,f]of t.entries(e,s)){const d=qo(l,f,{path:c===void 0?n:[...n,c],branch:c===void 0?i:[...i,l],coerce:a,mask:o});for(const h of d)h[0]?(u=h[0].refinement!=null?"not_refined":"not_valid",yield[h[0],void 0]):a&&(l=h[1],c===void 0?e=l:e instanceof Map?e.set(c,l):e instanceof Set?e.add(l):gt(e)&&(l!==void 0||c in e)&&(e[c]=l))}if(u!=="not_valid")for(const c of t.refiner(e,s))u="not_refined",yield[c,void 0];u==="valid"&&(yield[void 0,e])}class Ct{constructor(t){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:r,schema:n,validator:i,refiner:a,coercer:o=u=>u,entries:s=function*(){}}=t;this.type=r,this.schema=n,this.entries=s,this.coercer=o,i?this.validator=(u,c)=>{const l=i(u,c);return hc(l,c,this,u)}:this.validator=()=>[],a?this.refiner=(u,c)=>{const l=a(u,c);return hc(l,c,this,u)}:this.refiner=()=>[]}assert(t){return $f(t,this)}create(t){return zx(t,this)}is(t){return Vx(t,this)}mask(t){return Dx(t,this)}validate(t,r){return r===void 0&&(r={}),Ar(t,this,r)}}function $f(e,t){const r=Ar(e,t);if(r[0])throw r[0]}function zx(e,t){const r=Ar(e,t,{coerce:!0});if(r[0])throw r[0];return r[1]}function Dx(e,t){const r=Ar(e,t,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}function Vx(e,t){return!Ar(e,t)[0]}function Ar(e,t,r){r===void 0&&(r={});const n=qo(e,t,r),i=Ix(n);return i[0]?[new Af(i[0],function*(){for(const a of n)a[0]&&(yield a[0])}),void 0]:[void 0,i[1]]}function Go(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t[0].type==="type",i=t.map(o=>o.schema),a=Object.assign({},...i);return n?Bf(a):se(a)}function Vt(e,t){return new Ct({type:e,schema:null,validator:t})}function Or(e){return new Ct({type:"dynamic",schema:null,*entries(t,r){yield*e(t,r).entries(t,r)},validator(t,r){return e(t,r).validator(t,r)},coercer(t,r){return e(t,r).coercer(t,r)},refiner(t,r){return e(t,r).refiner(t,r)}})}function Lf(e,t){const{schema:r}=e,n={...r};for(const i of t)delete n[i];switch(e.type){case"type":return Bf(n);default:return se(n)}}function Re(){return Vt("any",()=>!0)}function we(e){return new Ct({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${tt(t)}`}})}function Tt(){return Vt("boolean",e=>typeof e=="boolean")}function Qa(e){const t={},r=e.map(n=>tt(n)).join();for(const n of e)t[n]=n;return new Ct({type:"enums",schema:t,validator(n){return e.includes(n)||`Expected one of \`${r}\`, but received: ${tt(n)}`}})}function Mf(){return Vt("func",e=>typeof e=="function"||`Expected a function, but received: ${tt(e)}`)}function Ge(e){const t=tt(e),r=typeof e;return new Ct({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?e:null,validator(n){return n===e||`Expected the literal \`${t}\`, but received: ${tt(n)}`}})}function Hx(){return Vt("never",()=>!1)}function If(){return Vt("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${tt(e)}`)}function se(e){const t=e?Object.keys(e):[],r=Hx();return new Ct({type:"object",schema:e||null,*entries(n){if(e&>(n)){const i=new Set(Object.keys(n));for(const a of t)i.delete(a),yield[a,n[a],e[a]];for(const a of i)yield[a,n[a],r]}},validator(n){return gt(n)||`Expected an object, but received: ${tt(n)}`},coercer(n){return gt(n)?{...n}:n}})}function V(e){return new Ct({...e,validator:(t,r)=>t===void 0||e.validator(t,r),refiner:(t,r)=>t===void 0||e.refiner(t,r)})}function Jr(e,t){return new Ct({type:"record",schema:null,*entries(r){if(gt(r))for(const n in r){const i=r[n];yield[n,n,e],yield[n,i,t]}},validator(r){return gt(r)||`Expected an object, but received: ${tt(r)}`}})}function D(){return Vt("string",e=>typeof e=="string"||`Expected a string, but received: ${tt(e)}`)}function Bf(e){const t=Object.keys(e);return new Ct({type:"type",schema:e,*entries(r){if(gt(r))for(const n of t)yield[n,r[n],e[n]]},validator(r){return gt(r)||`Expected an object, but received: ${tt(r)}`}})}function Ue(e){const t=e.map(r=>r.type).join(" | ");return new Ct({type:"union",schema:null,coercer(r,n){return(e.find(i=>{const[a]=i.validate(r,{coerce:!0});return!a})||Wx()).coercer(r,n)},validator(r,n){const i=[];for(const a of e){const[...o]=qo(r,a,n),[s]=o;if(s[0])for(const[u]of o)u&&i.push(u);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${tt(r)}`,...i]}})}function Wx(){return Vt("unknown",()=>!0)}const Ko=se({package:D(),version:D(),exportName:D(),destructuring:V(Tt()),subName:V(D()),main:V(D())}),Ux=we(Ko);var St=(e=>(e.SLOT="SLOT",e.FUNCTION="FUNCTION",e.EXPRESSION="EXPRESSION",e))(St||{}),Yo=(e=>(e.DESIGN="design",e.SAVE="save",e))(Yo||{}),Za=(e=>(e.FUNC="FUNC",e.COMP="COMP",e))(Za||{});const qx=()=>Vt("normalObj",e=>!Ke(e)||[St.SLOT,St.EXPRESSION,St.FUNCTION].includes(e==null?void 0:e.type)?!1:(Ar(e,Jr(D(),Xo)),!0)),Xo=Ue([D(),If(),Tt(),se({type:Ge(St.SLOT),renderType:Qa([Za.FUNC,Za.COMP]),params:V(we(D())),value:Or(()=>Ue([Er,we(Er)]))}),se({type:Ge(St.EXPRESSION),value:D()}),se({type:Ge(St.FUNCTION),value:D()}),qx(),we(Or(()=>Xo))]),pc=se({type:Ge(St.EXPRESSION),value:D()}),Er=se({id:V(D()),title:V(D()),componentName:D(),props:V(Jr(D(),Xo)),stateName:V(D()),state:V(Jr(D(),Re())),children:Or(()=>V(we(Ue([D(),Er])))),configure:V(Re()),css:V(Re()),style:V(Re()),classNames:V(we(Re())),refId:V(D()),extra:V(Jr(Re(),Re())),condition:V(Ue([Tt(),pc])),tempDevConfig:V(Re()),loop:V(se({open:Tt(),data:Ue([we(Re()),pc]),args:V(we(D())),forName:V(D()),forIndex:V(D()),key:V(Re()),name:V(D())}))}),ti=Ue([D(),se({label:D(),tip:V(D())})]),Gx=se({type:Ge("shape"),value:we(se({name:D(),title:ti,valueType:Or(()=>Oi)}))}),Kx=se({type:Ge("enums"),value:we(D())});se({type:Ge("array"),value:Or(()=>Oi)});const Yx=se({type:Ge("array"),value:Or(()=>we(Oi))}),Oi=Ue([Qa(["array","boolean","number","object","string"]),Qa(["component","expression","function"]),Gx,Kx,Yx]),Xx=Ue([D(),se({componentName:D(),props:V(Re()),initialValue:V(Re()),component:V(Re())})]),ia=se({name:D(),title:ti,valueType:Oi,description:V(D()),defaultValue:Re(),setters:V(we(Xx)),condition:V(Mf())}),Jx=Ue([D(),Mf()]);var eo=(e=>(e.SINGLE="single",e.GROUP="group",e))(eo||{});Ue([D(),se({name:D(),describe:V(D()),params:V(se({name:D(),description:D()})),template:D()})]);const Qx=se({id:V(D()),title:D(),snapshot:Ue([D(),Re()]),snapshotText:V(D()),description:V(D()),tags:V(we(D())),groupName:V(D()),category:V(D()),schema:Go(Lf(Er,["id"]),se({componentName:V(D())}))}),Zx=se({componentName:D(),title:D(),screenshot:V(D()),icon:V(D()),tags:V(we(D())),groupName:V(D()),category:V(D()),priority:V(If()),npm:V(Ko),snippets:we(Qx),props:we(Ue([ia,se({title:V(ti),type:Ge("single"),content:ia}),se({title:V(ti),type:Ge("group"),content:we(ia)})])),fixedProps:V(Re()),isContainer:V(Ue([Tt(),se({placeholder:D(),width:D(),height:D()})])),isModal:V(Ue([Tt(),se({visibleKey:D()})])),isSupportStyle:V(Tt()),isSupportDispatchNativeEvent:V(Tt()),isLayout:V(Tt()),rootSelector:V(D()),selectionToolBars:V(we(Jx)),extra:V(Jr(Re(),Re()))}),eC=e=>({data:t,message:r,throwError:n})=>{const i=e({data:t,message:r,throwError:n});if(i.isValidate)return i;if(n)throw i.message||r?new Error(`${i.message||r}
|
|
374
|
+
`,r3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n3,n=O.useContext(BO),r=n.csp;O.useEffect(function(){bi(t,"@ant-design-icons",{prepend:!0,csp:r})},[])},o3=["icon","className","onClick","style","primaryColor","secondaryColor"],_s={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function i3(e){var t=e.primaryColor,n=e.secondaryColor;_s.primaryColor=t,_s.secondaryColor=n||HO(t),_s.calculated=!!n}function a3(){return L({},_s)}var xd=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=nt(t,o3),c=_s;if(a&&(c={primaryColor:a,secondaryColor:s||HO(a)}),r3(),t3(I0(n),"icon should be icon definiton, but got ".concat(n)),!I0(n))return null;var u=n;return u&&typeof u.icon=="function"&&(u=L(L({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),yh(u.icon,"svg-".concat(u.name),L({className:r,onClick:o,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};xd.displayName="IconReact";xd.getTwoToneColors=a3;xd.setTwoToneColors=i3;const Cv=xd;function UO(e){var t=WO(e),n=X(t,2),r=n[0],o=n[1];return Cv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function s3(){var e=Cv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var l3=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];UO("#1890ff");var Cd=x.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=nt(e,l3),d=x.useContext(BO),f=d.prefixCls,p=f===void 0?"anticon":f,h=d.rootClassName,m=Z(h,p,(n={},W(n,"".concat(p,"-").concat(o.name),!!o.name),W(n,"".concat(p,"-spin"),!!i||o.name==="loading"),n),r),b=s;b===void 0&&l&&(b=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=WO(c),C=X(S,2),w=C[0],y=C[1];return v("span",{...L(L({role:"img","aria-label":o.name},u),{},{ref:t,tabIndex:b,onClick:l,className:m}),children:v(Cv,{icon:o,primaryColor:w,secondaryColor:y,style:g})})});Cd.displayName="AntdIcon";Cd.getTwoToneColor=s3;Cd.setTwoToneColor=UO;const qn=Cd;var KO=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:bF})})};KO.displayName="ApartmentOutlined";const c3=x.forwardRef(KO);var GO=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:SF})})};GO.displayName="AppstoreAddOutlined";const u3=x.forwardRef(GO);var XO=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:Lx})})};XO.displayName="CloseOutlined";const d3=x.forwardRef(XO);var qO=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:xF})})};qO.displayName="CopyOutlined";const YO=x.forwardRef(qO);var QO=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:$F})})};QO.displayName="DatabaseOutlined";const f3=x.forwardRef(QO);var JO=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:EF})})};JO.displayName="DeleteOutlined";const $v=x.forwardRef(JO);var ZO=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:lF})})};ZO.displayName="DoubleRightOutlined";const p3=x.forwardRef(ZO);var eE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:NO})})};eE.displayName="EyeInvisibleOutlined";const tE=x.forwardRef(eE);var nE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:xO})})};nE.displayName="EyeOutlined";const h3=x.forwardRef(nE);var rE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:RF})})};rE.displayName="MinusCircleOutlined";const g3=x.forwardRef(rE);var oE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:IF})})};oE.displayName="MinusOutlined";const iE=x.forwardRef(oE);var aE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:fO})})};aE.displayName="PlusOutlined";const Ov=x.forwardRef(aE);var sE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:TF})})};sE.displayName="PushpinOutlined";const v3=x.forwardRef(sE);var lE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:v$})})};lE.displayName="RightOutlined";const m3=x.forwardRef(lE);var cE=function(t,n){return v(qn,{...L(L({},t),{},{ref:n,icon:hB})})};cE.displayName="SwapOutlined";const b3=x.forwardRef(cE);function uE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=uE(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ur(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=uE(e))&&(r&&(r+=" "),r+=t);return r}function wu(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const nl=e=>new Promise(t=>{setTimeout(()=>{t("ok")},e??16)});class y3 extends O.Component{constructor(n){super(n);Le(this,"emitter");Le(this,"leftPanelContentRef");Le(this,"addLeftPanel",n=>{this.state.leftPanels.push(n),this.setState({leftPanels:[...this.state.leftPanels]})});Le(this,"openLeftPanel",async n=>{const r=n||this.state.currentActiveLeftPanel;this.setState({leftBoxVisible:!0,leftBoxSize:{width:350,height:"100%"},currentActiveLeftPanel:r}),await nl(),this.emitter.emit("leftPanelVisible",{visible:!0,panelName:r})});Le(this,"closeLeftPanel",async()=>{this.setState({leftBoxVisible:!1,leftBoxSize:{width:0,height:"100%"}}),await nl(),this.emitter.emit("leftPanelVisible",{visible:!1,panelName:this.state.currentActiveLeftPanel})});Le(this,"toggleLeftPanel",()=>{const{leftBoxVisible:n}=this.state;!n?this.openLeftPanel():this.closeLeftPanel()});Le(this,"onPluginIconClick",n=>{const{currentActiveLeftPanel:r}=this.state;r===n.name&&this.state.leftBoxVisible?this.closeLeftPanel():this.openLeftPanel(n.name)});Le(this,"openRightPanel",()=>{const{rightBoxSize:n}=this.state;this.setState({rightBoxVisible:!0,rightBoxSize:{width:400,height:n.height}})});Le(this,"closeRightPanel",()=>{const{rightBoxSize:n}=this.state;this.setState({rightBoxVisible:!1,rightBoxSize:{width:0,height:n.height}})});Le(this,"replaceBodyView",n=>{this.setState({bodyView:n})});Le(this,"replaceRightView",n=>{this.setState({rightView:n})});Le(this,"replaceTopBarView",n=>{this.setState({topToolBarView:n})});Le(this,"toggleRightPanel",()=>{const{rightBoxVisible:n,rightBoxSize:r}=this.state,o=!n;this.setState({rightBoxVisible:o,rightBoxSize:{width:o?400:0,height:r.height}})});Le(this,"onLeftBoxResizeStop",(n,r,o,i)=>{const a=this.state.leftBoxSize.width+i.width;this.setState({leftBoxSize:{width:a,height:this.state.leftBoxSize.height}})});Le(this,"onGlobalClick",n=>{var r;n.target&&((r=this.leftPanelContentRef.current)!=null&&r.contains(n.target))||!this.state.leftBoxFixed&&this.state.leftBoxVisible&&this.closeLeftPanel()});this.emitter=n.emitter||wu(),this.leftPanelContentRef=O.createRef(),this.state={leftBoxVisible:!0,leftBoxSize:{width:300,height:"100%"},leftBoxFixed:!0,rightBoxVisible:!0,rightBoxSize:{width:350,height:"100%"},currentActiveLeftPanel:"OutlineTree",leftPanels:[],bodyView:null,rightView:null,topToolBarView:null}}componentDidMount(){document.addEventListener("click",this.onGlobalClick)}render(){const{leftBoxVisible:n,leftBoxSize:r,leftBoxFixed:o,rightBoxSize:i,rightBoxVisible:a,leftPanels:s,currentActiveLeftPanel:l,bodyView:c,rightView:u,topToolBarView:d}=this.state,f={};o||(f.position="absolute",f.left="50px",f.top=0);const p=s.find(C=>C.name===l),h=(p==null?void 0:p.render)||null,{onPluginIconClick:m,toggleRightPanel:b,toggleLeftPanel:g,onLeftBoxResizeStop:S}=this;return ae("div",{className:sn.workbenchContainer,children:[ae("div",{className:sn.topToolBarBox,children:[v("div",{className:sn.logo,children:"Chameleon EG"}),v("div",{className:sn.topToolBarView,children:d})]}),ae("div",{className:sn.bodyContent,children:[ae("div",{className:sn.leftBox,ref:this.leftPanelContentRef,children:[v("div",{className:sn.pluginIconBar,children:s.map(C=>v("div",{onClick:()=>m(C),className:ur([sn.pluginIconItem,(p==null?void 0:p.name)===C.name&&sn.active]),children:C.icon},C.name))}),n&&ae(db,{className:sn.pluginPanelBoxResizeBox,size:r,style:f,minWidth:300,maxWidth:600,enable:{right:n},onResizeStop:S,children:[ae("div",{className:sn.pluginHeader,children:[v("span",{className:sn.pluginNameText,children:(p==null?void 0:p.title)||(p==null?void 0:p.name)}),v(Ln,{className:ur([sn.fixedBtn]),type:"text",size:"small",onClick:()=>{this.setState({leftBoxFixed:!this.state.leftBoxFixed})},children:v(v3,{className:ur([o&&sn.active])})}),v(Ln,{className:sn.closeBtn,type:"text",size:"small",onClick:g,children:v(d3,{})})]}),v("div",{className:sn.pluginPanelBox,children:h})]})]}),v("div",{className:sn.centerBox,children:v("div",{className:sn.canvasBox,children:v("div",{className:sn.scrollBox,children:c})})}),ae("div",{className:sn.rightResizeBox,children:[v("div",{className:sn.arrowCursor,onClick:b,children:v(p3,{className:ur([!a&&sn.active])})}),v("div",{style:{display:a?"block":"none",height:"100%"},children:v(db,{minWidth:400,maxWidth:600,enable:{left:a},size:i,onResizeStop:(C,w,y,$)=>{this.setState({rightBoxSize:{width:this.state.rightBoxSize.width+$.width,height:this.state.rightBoxSize.height}})},children:v("div",{className:sn.rightBox,children:u})})})]})]})]})}}const S3="_engineContainer_f3ly9_2",w3={engineContainer:S3};function T0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function M0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var x3={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},C3=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wt(this,e),this.init(t,n)}return Ut(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||x3,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,o,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,M0(M0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Zr=new C3,Jo=function(){function e(){Wt(this,e),this.observers={}}return Ut(e,[{key:"on",value:function(n,r){var o=this;return n.split(" ").forEach(function(i){o.observers[i]=o.observers[i]||[],o.observers[i].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(o){return o!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,o)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(o))})}}}]),e}();function ds(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function D0(e){return e==null?"":""+e}function $3(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Ev(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function j0(e,t,n){var r=Ev(e,t,Object),o=r.obj,i=r.k;o[i]=n}function O3(e,t,n,r){var o=Ev(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function xu(e,t){var n=Ev(e,t),r=n.obj,o=n.k;if(r)return r[o]}function E3(e,t,n){var r=xu(e,n);return r!==void 0?r:xu(t,n)}function dE(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):dE(e[r],t[r],n):e[r]=t[r]);return e}function ea(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var N3={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function R3(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return N3[t]}):e}var $d=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P3=[" ",",","?","!",";"];function I3(e,t,n){t=t||"",n=n||"";var r=P3.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var o=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function Cu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,s=r.slice(i,i+a).join(n),l=o[s];l===void 0&&r.length>i+a;)a++,s=r.slice(i,i+a).join(n),l=o[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(i+a).join(n);return c?Cu(l,c,n):void 0}o=o[r[i]]}return o}}function A0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _3(e){var t=T3();return function(){var r=Cr(e),o;if(t){var i=Cr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ma(this,o)}}function T3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var M3=function(e){Hr(n,e);var t=_3(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Wt(this,n),o=t.call(this),$d&&Jo.call(ot(o)),o.data=r||{},o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return Ut(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var i=this.options.ns.indexOf(o);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[o,i];a&&typeof a!="string"&&(u=u.concat(a)),a&&typeof a=="string"&&(u=u.concat(l?a.split(l):a)),o.indexOf(".")>-1&&(u=o.split("."));var d=xu(this.data,u);return d||!c||typeof a!="string"?d:Cu(this.data&&this.data[o]&&this.data[o][i],a,l)}},{key:"addResource",value:function(o,i,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[o,i];a&&(u=u.concat(c?a.split(c):a)),o.indexOf(".")>-1&&(u=o.split("."),s=i,i=u[1]),this.addNamespaces(i),j0(this.data,u,s),l.silent||this.emit("added",o,i,a,s)}},{key:"addResources",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(o,i,l,a[l],{silent:!0});s.silent||this.emit("added",o,i,a)}},{key:"addResourceBundle",value:function(o,i,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[o,i];o.indexOf(".")>-1&&(u=o.split("."),s=a,a=i,i=u[1]),this.addNamespaces(i);var d=xu(this.data,u)||{};s?dE(d,a,l):d=$c($c({},d),a),j0(this.data,u,d),c.silent||this.emit("added",o,i,a)}},{key:"removeResourceBundle",value:function(o,i){this.hasResourceBundle(o,i)&&delete this.data[o][i],this.removeNamespaces(i),this.emit("removed",o,i)}},{key:"hasResourceBundle",value:function(o,i){return this.getResource(o,i)!==void 0}},{key:"getResourceBundle",value:function(o,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?$c($c({},{}),this.getResource(o,i)):this.getResource(o,i)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var i=this.getDataByLanguage(o),a=i&&Object.keys(i)||[];return!!a.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Jo),fE={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,o,i){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,o,i))}),n}};function k0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D3(e){var t=j3();return function(){var r=Cr(e),o;if(t){var i=Cr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ma(this,o)}}function j3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var L0={},z0=function(e){Hr(n,e);var t=D3(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Wt(this,n),o=t.call(this),$d&&Jo.call(ot(o)),$3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,ot(o)),o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=Zr.create("translator"),o}return Ut(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var a=this.resolve(o,i);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(o,i){var a=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ns||this.options.defaultNS||[],c=a&&o.indexOf(a)>-1,u=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!I3(o,a,s);if(c&&!u){var d=o.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:o,namespaces:l};var f=o.split(a);(a!==s||a===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),o=f.join(s)}return typeof l=="string"&&(l=[l]),{key:o,namespaces:l}}},{key:"translate",value:function(o,i,a){var s=this;if(Ze(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=this.extractFromKey(o[o.length-1],i),d=u.key,f=u.namespaces,p=f[f.length-1],h=i.lng||this.language,m=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(m){var b=i.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(p).concat(b).concat(d),usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p}:"".concat(p).concat(b).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p}:d}var g=this.resolve(o,i),S=g&&g.res,C=g&&g.usedKey||d,w=g&&g.exactUsedKey||d,y=Object.prototype.toString.apply(S),$=["[object Number]","[object Function]","[object RegExp]"],E=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,P=typeof S!="string"&&typeof S!="boolean"&&typeof S!="number";if(N&&S&&P&&$.indexOf(y)<0&&!(typeof E=="string"&&y==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,S,Fn(Fn({},i),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(g.res=_,g):_}if(c){var D=y==="[object Array]",M=D?[]:{},I=D?w:C;for(var T in S)if(Object.prototype.hasOwnProperty.call(S,T)){var j="".concat(I).concat(c).concat(T);M[T]=this.translate(j,Fn(Fn({},i),{joinArrays:!1,ns:f})),M[T]===j&&(M[T]=S[T])}S=M}}else if(N&&typeof E=="string"&&y==="[object Array]")S=S.join(E),S&&(S=this.extendTranslation(S,o,i,a));else{var A=!1,B=!1,H=i.count!==void 0&&typeof i.count!="string",U=n.hasDefaultValue(i),J=H?this.pluralResolver.getSuffix(h,i.count,i):"",F=i["defaultValue".concat(J)]||i.defaultValue;!this.isValidLookup(S)&&U&&(A=!0,S=F),this.isValidLookup(S)||(B=!0,S=d);var z=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,k=z&&B?void 0:S,Q=U&&F!==S&&this.options.updateMissing;if(B||A||Q){if(this.logger.log(Q?"updateKey":"missingKey",h,p,d,Q?F:S),c){var K=this.resolve(d,Fn(Fn({},i),{},{keySeparator:!1}));K&&K.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Y=[],te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(var re=0;re<te.length;re++)Y.push(te[re]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(i.lng||this.language):Y.push(i.lng||this.language);var ce=function(he,ee,q){var oe=U&&q!==S?q:k;s.options.missingKeyHandler?s.options.missingKeyHandler(he,p,ee,oe,Q,i):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(he,p,ee,oe,Q,i),s.emit("missingKey",he,p,ee,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?Y.forEach(function(ne){s.pluralResolver.getSuffixes(ne,i).forEach(function(he){ce([ne],d+he,i["defaultValue".concat(he)]||F)})}):ce(Y,d,F))}S=this.extendTranslation(S,o,i,g,a),B&&S===d&&this.options.appendNamespaceToMissingKey&&(S="".concat(p,":").concat(d)),(B||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(d):d,A?S:void 0):S=this.options.parseMissingKeyHandler(S))}return l?(g.res=S,g):S}},{key:"extendTranslation",value:function(o,i,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,Fn(Fn({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Fn(Fn({},a),{interpolation:Fn(Fn({},this.options.interpolation),a.interpolation)}));var u=typeof o=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(u){var f=o.match(this.interpolator.nestingRegexp);d=f&&f.length}var p=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(p=Fn(Fn({},this.options.interpolation.defaultVariables),p)),o=this.interpolator.interpolate(o,p,a.lng||this.language,a),u){var h=o.match(this.interpolator.nestingRegexp),m=h&&h.length;d<m&&(a.nest=!1)}a.nest!==!1&&(o=this.interpolator.nest(o,function(){for(var S=arguments.length,C=new Array(S),w=0;w<S;w++)C[w]=arguments[w];return l&&l[0]===C[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(C[0]," in key: ").concat(i[0])),null):c.translate.apply(c,C.concat([i]))},a)),a.interpolation&&this.interpolator.reset()}var b=a.postProcess||this.options.postProcess,g=typeof b=="string"?[b]:b;return o!=null&&g&&g.length&&a.applyPostProcessor!==!1&&(o=fE.handle(g,o,i,this.options&&this.options.postProcessPassResolved?Fn({i18nResolved:s},a):a,this)),o}},{key:"resolve",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,u,d;return typeof o=="string"&&(o=[o]),o.forEach(function(f){if(!i.isValidLookup(s)){var p=i.extractFromKey(f,a),h=p.key;l=h;var m=p.namespaces;i.options.fallbackNS&&(m=m.concat(i.options.fallbackNS));var b=a.count!==void 0&&typeof a.count!="string",g=b&&!a.ordinal&&a.count===0&&i.pluralResolver.shouldUseIntlApi(),S=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",C=a.lngs?a.lngs:i.languageUtils.toResolveHierarchy(a.lng||i.language,a.fallbackLng);m.forEach(function(w){i.isValidLookup(s)||(d=w,!L0["".concat(C[0],"-").concat(w)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(d)&&(L0["".concat(C[0],"-").concat(w)]=!0,i.logger.warn('key "'.concat(l,'" for languages "').concat(C.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(function(y){if(!i.isValidLookup(s)){u=y;var $=[h];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys($,h,y,w,a);else{var E;b&&(E=i.pluralResolver.getSuffix(y,a.count,a));var N="".concat(i.options.pluralSeparator,"zero");if(b&&($.push(h+E),g&&$.push(h+N)),S){var P="".concat(h).concat(i.options.contextSeparator).concat(a.context);$.push(P),b&&($.push(P+E),g&&$.push(P+N))}}for(var _;_=$.pop();)i.isValidLookup(s)||(c=_,s=i.getResource(y,w,_,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,i,a,s):this.resourceStore.getResource(o,i,a,s)}}],[{key:"hasDefaultValue",value:function(o){var i="defaultValue";for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)&&i===a.substring(0,i.length)&&o[a]!==void 0)return!0;return!1}}]),n}(Jo);function Hf(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B0=function(){function e(t){Wt(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zr.create("languageUtils")}return Ut(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(i){return i.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=Hf(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=Hf(o[1].toLowerCase())),r.indexOf(o[2].toLowerCase())>-1&&(o[2]=Hf(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var o;return n.forEach(function(i){if(!o){var a=r.formatLanguageCode(i);(!r.options.supportedLngs||r.isSupportedCode(a))&&(o=a)}}),!o&&this.options.supportedLngs&&n.forEach(function(i){if(!o){var a=r.getLanguagePartFromCode(i);if(r.isSupportedCode(a))return o=a;o=r.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var o=n[r];return o||(o=n[this.getScriptPartFromCode(r)]),o||(o=n[this.formatLanguageCode(r)]),o||(o=n[this.getLanguagePartFromCode(r)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,r){var o=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(o.isSupportedCode(c)?a.push(c):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),i.forEach(function(l){a.indexOf(l)<0&&s(o.formatLanguageCode(l))}),a}}]),e}(),A3=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],k3={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},L3=["v1","v2","v3"],F0={zero:0,one:1,two:2,few:3,many:4,other:5};function z3(){var e={};return A3.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:k3[t.fc]}})}),e}var B3=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wt(this,e),this.languageUtils=t,this.options=n,this.logger=Zr.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=z3()}return Ut(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(i){return"".concat(r).concat(i)})}},{key:"getSuffixes",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(a,s){return F0[a]-F0[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):i.numbers.map(function(a){return r.getSuffix(n,a,o)}):[]}},{key:"getSuffix",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(r)):this.getSuffixRetroCompatible(i,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var o=this,i=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[i];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return o.options.prepend&&a.toString()?o.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!L3.includes(this.options.compatibilityJSON)}}]),e}();function V0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=E3(e,t,n);return!i&&o&&typeof n=="string"&&(i=Cu(e,n,r),i===void 0&&(i=Cu(t,n,r))),i}var F3=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wt(this,e),this.logger=Zr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Ut(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:R3,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?ea(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?ea(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?ea(r.nestingPrefix):r.nestingPrefixEscaped||ea("$t("),this.nestingSuffix=r.nestingSuffix?ea(r.nestingSuffix):r.nestingSuffixEscaped||ea(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,r,o,i){var a=this,s,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(b){return b.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(a.formatSeparator)<0){var S=H0(r,u,g,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(S,void 0,o,Rr(Rr(Rr({},i),r),{},{interpolationkey:g})):S}var C=g.split(a.formatSeparator),w=C.shift().trim(),y=C.join(a.formatSeparator).trim();return a.format(H0(r,u,w,a.options.keySeparator,a.options.ignoreJSONStructure),y,o,Rr(Rr(Rr({},i),r),{},{interpolationkey:w}))};this.resetRegExp();var p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(g){return d(g)}},{regex:this.regexp,safeValue:function(g){return a.escapeValue?d(a.escape(g)):d(g)}}];return m.forEach(function(b){for(c=0;s=b.regex.exec(n);){var g=s[1].trim();if(l=f(g),l===void 0)if(typeof p=="function"){var S=p(n,s,i);l=typeof S=="string"?S:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))l="";else if(h){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(g," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=D0(l));var C=b.safeValue(l);if(n=n.replace(s[0],C),h?(b.regex.lastIndex+=l.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function c(p,h){var m=this.nestingOptionsSeparator;if(p.indexOf(m)<0)return p;var b=p.split(new RegExp("".concat(m,"[ ]*{"))),g="{".concat(b[1]);p=b[0],g=this.interpolate(g,l);var S=g.match(/'/g),C=g.match(/"/g);(S&&S.length%2===0&&!C||C.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),h&&(l=Rr(Rr({},h),l))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),w),"".concat(p).concat(m).concat(g)}return delete l.defaultValue,p}for(;a=this.nestingRegexp.exec(n);){var u=[];l=Rr({},i),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var f=a[1].split(this.formatSeparator).map(function(p){return p.trim()});a[1]=f.shift(),u=f,d=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=D0(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),d&&(s=u.reduce(function(p,h){return o.format(p,h,i.lng,Rr(Rr({},i),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function W0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V3(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if(t==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(t==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var i=o.split(";");i.forEach(function(a){if(a){var s=a.split(":"),l=wg(s),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function ta(e){var t={};return function(r,o,i){var a=o+JSON.stringify(i),s=t[a];return s||(s=e(o,i),t[a]=s),s(r)}}var H3=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wt(this,e),this.logger=Zr.create("formatter"),this.options=t,this.formats={number:ta(function(n,r){var o=new Intl.NumberFormat(n,go({},r));return function(i){return o.format(i)}}),currency:ta(function(n,r){var o=new Intl.NumberFormat(n,go(go({},r),{},{style:"currency"}));return function(i){return o.format(i)}}),datetime:ta(function(n,r){var o=new Intl.DateTimeFormat(n,go({},r));return function(i){return o.format(i)}}),relativetime:ta(function(n,r){var o=new Intl.RelativeTimeFormat(n,go({},r));return function(i){return o.format(i,r.range||"day")}}),list:ta(function(n,r){var o=new Intl.ListFormat(n,go({},r));return function(i){return o.format(i)}})},this.init(t)}return Ut(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=r.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=ta(r)}},{key:"format",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,u){var d=V3(u),f=d.formatName,p=d.formatOptions;if(i.formats[f]){var h=c;try{var m=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},b=m.locale||m.lng||a.locale||a.lng||o;h=i.formats[f](c,b,go(go(go({},p),a),m))}catch(g){i.logger.warn(g)}return h}else i.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W3(e){var t=U3();return function(){var r=Cr(e),o;if(t){var i=Cr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ma(this,o)}}function U3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K3(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var G3=function(e){Hr(n,e);var t=W3(n);function n(r,o,i){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Wt(this,n),a=t.call(this),$d&&Jo.call(ot(a)),a.backend=r,a.store=o,a.services=i,a.languageUtils=i.languageUtils,a.options=s,a.logger=Zr.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,s.backend,s),a}return Ut(n,[{key:"queueLoad",value:function(o,i,a,s){var l=this,c={},u={},d={},f={};return o.forEach(function(p){var h=!0;i.forEach(function(m){var b="".concat(p,"|").concat(m);!a.reload&&l.store.hasResourceBundle(p,m)?l.state[b]=2:l.state[b]<0||(l.state[b]===1?u[b]===void 0&&(u[b]=!0):(l.state[b]=1,h=!1,u[b]===void 0&&(u[b]=!0),c[b]===void 0&&(c[b]=!0),f[m]===void 0&&(f[m]=!0)))}),h||(d[p]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(o,i,a){var s=o.split("|"),l=s[0],c=s[1];i&&this.emit("failedLoading",l,c,i),a&&this.store.addResourceBundle(l,c,a),this.state[o]=i?-1:2;var u={};this.queue.forEach(function(d){O3(d.loaded,[l],c),K3(d,o),i&&d.errors.push(i),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){u[f]||(u[f]={});var p=d.loaded[f];p.length&&p.forEach(function(h){u[f][h]===void 0&&(u[f][h]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(o,i,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!o.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:i,fcName:a,tried:l,wait:c,callback:u});return}this.readingCalls++;var d=function(m,b){if(s.readingCalls--,s.waitingReads.length>0){var g=s.waitingReads.shift();s.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(m&&b&&l<s.maxRetries){setTimeout(function(){s.read.call(s,o,i,a,l+1,c*2,u)},c);return}u(m,b)},f=this.backend[a].bind(this.backend);if(f.length===2){try{var p=f(o,i);p&&typeof p.then=="function"?p.then(function(h){return d(null,h)}).catch(d):d(null,p)}catch(h){d(h)}return}return f(o,i,d)}},{key:"prepareLoading",value:function(o,i){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof i=="string"&&(i=[i]);var c=this.queueLoad(o,i,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){a.loadOne(u)})}},{key:"load",value:function(o,i,a){this.prepareLoading(o,i,{},a)}},{key:"reload",value:function(o,i,a){this.prepareLoading(o,i,{reload:!0},a)}},{key:"loadOne",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=o.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&i.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&i.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),d),i.loaded(o,u,d)})}},{key:"saveMissing",value:function(o,i,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var d=K0(K0({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var p;f.length===5?p=f(o,i,a,s,d):p=f(o,i,a,s),p&&typeof p.then=="function"?p.then(function(h){return u(null,h)}).catch(u):u(null,p)}catch(h){u(h)}else f(o,i,a,s,u,d)}!o||!o[0]||this.store.addResource(o[0],i,a,s)}}}]),n}(Jo);function G0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Ze(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Ze(t[2])==="object"||Ze(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(o){n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function X0(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function q0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X3(e){var t=q3();return function(){var r=Cr(e),o;if(t){var i=Cr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ma(this,o)}}function q3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Oc(){}function Y3(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var $u=function(e){Hr(n,e);var t=X3(n);function n(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Wt(this,n),r=t.call(this),$d&&Jo.call(ot(r)),r.options=X0(o),r.services={},r.logger=Zr,r.modules={external:[]},Y3(ot(r)),i&&!r.isInitialized&&!o.isClone){if(!r.options.initImmediate)return r.init(o,i),Ma(r,ot(r));setTimeout(function(){r.init(o,i)},0)}return r}return Ut(n,[{key:"init",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(a=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=G0();this.options=qr(qr(qr({},s),this.options),X0(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=qr(qr({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function l(g){return g?typeof g=="function"?new g:g:null}if(!this.options.isClone){this.modules.logger?Zr.init(l(this.modules.logger),this.options):Zr.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=H3);var u=new B0(this.options);this.store=new M3(this.options.resources,this.options);var d=this.services;d.logger=Zr,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new B3(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new F3(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new G3(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(g){for(var S=arguments.length,C=new Array(S>1?S-1:0),w=1;w<S;w++)C[w-1]=arguments[w];o.emit.apply(o,[g].concat(C))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new z0(this.services,this.options),this.translator.on("*",function(g){for(var S=arguments.length,C=new Array(S>1?S-1:0),w=1;w<S;w++)C[w-1]=arguments[w];o.emit.apply(o,[g].concat(C))}),this.modules.external.forEach(function(g){g.init&&g.init(o)})}if(this.format=this.options.interpolation.format,a||(a=Oc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(g){o[g]=function(){var S;return(S=o.store)[g].apply(S,arguments)}});var h=["addResource","addResources","addResourceBundle","removeResourceBundle"];h.forEach(function(g){o[g]=function(){var S;return(S=o.store)[g].apply(S,arguments),o}});var m=ds(),b=function(){var S=function(w,y){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),m.resolve(y),a(w,y)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return S(null,o.t.bind(o));o.changeLanguage(o.options.lng,S)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),m}},{key:"loadResources",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oc,s=a,l=typeof o=="string"?o:this.language;if(typeof o=="function"&&(s=o),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],u=function(p){if(p){var h=i.services.languageUtils.toResolveHierarchy(p);h.forEach(function(m){c.indexOf(m)<0&&c.push(m)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(o,i,a){var s=ds();return o||(o=this.languages),i||(i=this.options.ns),a||(a=Oc),this.services.backendConnector.reload(o,i,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&fE.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var i=0;i<this.languages.length;i++){var a=this.languages[i];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(o,i){var a=this;this.isLanguageChangingTo=o;var s=ds();this.emit("languageChanging",o);var l=function(f){a.language=f,a.languages=a.services.languageUtils.toResolveHierarchy(f),a.resolvedLanguage=void 0,a.setResolvedLanguage(f)},c=function(f,p){p?(l(p),a.translator.changeLanguage(p),a.isLanguageChangingTo=void 0,a.emit("languageChanged",p),a.logger.log("languageChanged",p)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),i&&i(f,function(){return a.t.apply(a,arguments)})},u=function(f){!o&&!f&&a.services.languageDetector&&(f=[]);var p=typeof f=="string"?f:a.services.languageUtils.getBestMatchFromCodes(f);p&&(a.language||l(p),a.translator.language||a.translator.changeLanguage(p),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(p)),a.loadResources(p,function(h){c(h,p)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(o),s}},{key:"getFixedT",value:function(o,i,a){var s=this,l=function c(u,d){var f;if(Ze(d)!=="object"){for(var p=arguments.length,h=new Array(p>2?p-2:0),m=2;m<p;m++)h[m-2]=arguments[m];f=s.options.overloadTranslationOptionHandler([u,d].concat(h))}else f=qr({},d);f.lng=f.lng||c.lng,f.lngs=f.lngs||c.lngs,f.ns=f.ns||c.ns,f.keyPrefix=f.keyPrefix||a||c.keyPrefix;var b=s.options.keySeparator||".",g;return f.keyPrefix&&Array.isArray(u)?g=u.map(function(S){return"".concat(f.keyPrefix).concat(b).concat(S)}):g=f.keyPrefix?"".concat(f.keyPrefix).concat(b).concat(u):u,s.t(g,f)};return typeof o=="string"?l.lng=o:l.lngs=o,l.ns=i,l.keyPrefix=a,l}},{key:"t",value:function(){var o;return this.translator&&(o=this.translator).translate.apply(o,arguments)}},{key:"exists",value:function(){var o;return this.translator&&(o=this.translator).exists.apply(o,arguments)}},{key:"setDefaultNamespace",value:function(o){this.options.defaultNS=o}},{key:"hasLoadedNamespace",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var u=function(p,h){var m=i.services.backendConnector.state["".concat(p,"|").concat(h)];return m===-1||m===2};if(a.precheck){var d=a.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(s,o)&&(!l||u(c,o)))}},{key:"loadNamespaces",value:function(o,i){var a=this,s=ds();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),i&&i(l)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(o,i){var a=ds();typeof o=="string"&&(o=[o]);var s=this.options.preload||[],l=o.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),i&&i(c)}),a):(i&&i(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new B0(G0());return i.indexOf(a.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oc,s=qr(qr(qr({},this.options),i),{isClone:!0}),l=new n(s);(i.debug!==void 0||i.prefix!==void 0)&&(l.logger=l.logger.clone(i));var c=["store","services","language"];return c.forEach(function(u){l[u]=o[u]}),l.services=qr({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new z0(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),p=1;p<d;p++)f[p-1]=arguments[p];l.emit.apply(l,[u].concat(f))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Jo);W($u,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new $u(e,t)});var Mn=$u.createInstance();Mn.createInstance=$u.createInstance;Mn.createInstance;Mn.dir;Mn.init;Mn.loadResources;Mn.reloadResources;Mn.use;Mn.changeLanguage;Mn.getFixedT;Mn.t;Mn.exists;Mn.setDefaultNamespace;Mn.hasLoadedNamespace;Mn.loadNamespaces;Mn.loadLanguages;function Q3(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Y0={};function Sh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Y0[t[0]]||(typeof t[0]=="string"&&(Y0[t[0]]=new Date),Q3.apply(void 0,t))}function Q0(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{var r=function o(){setTimeout(function(){e.off("initialized",o)},0),n()};e.on("initialized",r)}})}function J3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(l,c){var u=t.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}function Z3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Sh("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{precheck:function(i,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):J3(e,t,n)}function e5(e){return e.displayName||e.name||(typeof e=="string"&&e.length>0?e:"Unknown")}var t5=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,n5={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},r5=function(t){return n5[t]},o5=function(t){return t.replace(t5,r5)};function J0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Z0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J0(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:o5};function i5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wh=Z0(Z0({},wh),e)}function a5(){return wh}var pE;function s5(e){pE=e}function l5(){return pE}var c5={type:"3rdParty",init:function(t){i5(t.options.react),s5(t)}},u5=O.createContext(),d5=function(){function e(){Wt(this,e),this.usedNamespaces={}}return Ut(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(o){r.usedNamespaces[o]||(r.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function eS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var f5=function(t,n){var r=O.useRef();return O.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function p5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=O.useContext(u5)||{},o=r.i18n,i=r.defaultNS,a=n||o||l5();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new d5),!a){Sh("You will need to pass in an i18next instance by using initReactI18next");var s=function(P,_){return typeof _=="string"?_:_&&Ze(_)==="object"&&typeof _.defaultValue=="string"?_.defaultValue:Array.isArray(P)?P[P.length-1]:P},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&Sh("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Wf(Wf(Wf({},a5()),a.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=e||i||a.options&&a.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);var p=(a.isInitialized||a.initializedStoreOnce)&&f.every(function(N){return Z3(N,a,c)});function h(){return a.getFixedT(null,c.nsMode==="fallback"?f:f[0],d)}var m=O.useState(h),b=X(m,2),g=b[0],S=b[1],C=f.join(),w=f5(C),y=O.useRef(!0);O.useEffect(function(){var N=c.bindI18n,P=c.bindI18nStore;y.current=!0,!p&&!u&&Q0(a,f,function(){y.current&&S(h)}),p&&w&&w!==C&&y.current&&S(h);function _(){y.current&&S(h)}return N&&a&&a.on(N,_),P&&a&&a.store.on(P,_),function(){y.current=!1,N&&a&&N.split(" ").forEach(function(D){return a.off(D,_)}),P&&a&&P.split(" ").forEach(function(D){return a.store.off(D,_)})}},[a,C]);var $=O.useRef(!0);O.useEffect(function(){y.current&&!$.current&&S(h),$.current=!1},[a,d]);var E=[g,a,p];if(E.t=g,E.i18n=a,E.ready=p,p||!p&&!u)return E;throw new Promise(function(N){Q0(a,f,function(){N()})})}var h5=["forwardedRef"];function tS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(r){function o(a){var s=a.forwardedRef,l=nt(a,h5),c=p5(e,Ec(Ec({},l),{},{keyPrefix:t.keyPrefix})),u=X(c,3),d=u[0],f=u[1],p=u[2],h=Ec(Ec({},l),{},{t:d,i18n:f,tReady:p});return t.withRef&&s?h.ref=s:!t.withRef&&s&&(h.forwardedRef=s),O.createElement(r,h)}o.displayName="withI18nextTranslation(".concat(e5(r),")"),o.WrappedComponent=r;var i=function(s,l){return O.createElement(o,Object.assign({},s,{forwardedRef:l}))};return t.withRef?O.forwardRef(i):o}}const g5={translation:{"Welcome to React":"欢迎使用 React"}},v5={translation:{"Welcome to React":"Welcome to React and react-i18next"}},m5={zh_CN:g5,en_US:v5};Mn.use(c5).init({resources:m5,lng:"zh_CN",react:{bindI18n:"added languageChanged",bindI18nStore:"added"}});const hE=Mn;hE.update=()=>{setTimeout(()=>{Mn.emit("added")},0)};class b5{constructor({getWorkbench:t,emitter:n,pageModel:r,i18n:o,assets:i,engine:a}){Le(this,"plugins",new Map);Le(this,"emitter",wu());Le(this,"getWorkbench");Le(this,"pageModel");Le(this,"i18n");Le(this,"assets");Le(this,"engine");Le(this,"customPluginHooks",{});Le(this,"customPlugin",(t,n)=>{const r=this.customPluginHooks,o=r[t]||[];o.push(n),r[t]=o,this.customPluginHooks=r});Le(this,"createPluginCtx",()=>({globalEmitter:this.emitter,emitter:wu(),config:{},getWorkbench:this.getWorkbench,pluginManager:this,pageModel:this.pageModel,i18n:this.i18n,assets:this.assets,engine:this.engine,pluginReadyOk:()=>{}}));this.getWorkbench=t,this.emitter=n,this.pageModel=r,this.i18n=o,this.assets=i,this.engine=a}async add(t){var a;const n=this.createPluginCtx();let r;typeof t=="function"?r=t(n):r=t;let o={source:r,ctx:n,exports:((a=r.exports)==null?void 0:a.call(r,n))||{},ready:!1};(this.customPluginHooks[r.name]||[]).forEach(s=>{o=s(o)}),n.pluginReadyOk=()=>{this.emitter.emit(`${r.name}:ready`),o.ready=!0},this.plugins.set(r.name,o),await r.init(n)}async get(t){const n=this.plugins.get(t);return n!=null&&n.ready||await this.onPluginReadyOk(t),n}async remove(t){const n=this.plugins.get(t);await(n==null?void 0:n.source.destroy(n.ctx)),this.plugins.delete(t)}onPluginReadyOk(t,n){const r=this.plugins.get(t);if(!(r!=null&&r.ready))return new Promise(o=>{this.emitter.on(`${t}:ready`,()=>{r&&(r.ready=!0,n==null||n(r),o(r))})})}}var y5=Object.defineProperty,S5=(e,t,n)=>t in e?y5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vt=(e,t,n)=>(S5(e,typeof t!="symbol"?t+"":t,n),n),w5=typeof global=="object"&&global&&global.Object===Object&&global;const gE=w5;var x5=typeof self=="object"&&self&&self.Object===Object&&self,C5=gE||x5||Function("return this")();const io=C5;var $5=io.Symbol;const Or=$5;var vE=Object.prototype,O5=vE.hasOwnProperty,E5=vE.toString,fs=Or?Or.toStringTag:void 0;function N5(e){var t=O5.call(e,fs),n=e[fs];try{e[fs]=void 0;var r=!0}catch{}var o=E5.call(e);return r&&(t?e[fs]=n:delete e[fs]),o}var R5=Object.prototype,P5=R5.toString;function I5(e){return P5.call(e)}var _5="[object Null]",T5="[object Undefined]",nS=Or?Or.toStringTag:void 0;function Pi(e){return e==null?e===void 0?T5:_5:nS&&nS in Object(e)?N5(e):I5(e)}function ro(e){return e!=null&&typeof e=="object"}var M5="[object Symbol]";function Nv(e){return typeof e=="symbol"||ro(e)&&Pi(e)==M5}function Rv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var D5=Array.isArray;const vn=D5;var j5=1/0,rS=Or?Or.prototype:void 0,oS=rS?rS.toString:void 0;function mE(e){if(typeof e=="string")return e;if(vn(e))return Rv(e,mE)+"";if(Nv(e))return oS?oS.call(e):"";var t=e+"";return t=="0"&&1/e==-j5?"-0":t}function Br(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Pv(e){return e}var A5="[object AsyncFunction]",k5="[object Function]",L5="[object GeneratorFunction]",z5="[object Proxy]";function Iv(e){if(!Br(e))return!1;var t=Pi(e);return t==k5||t==L5||t==A5||t==z5}var B5=io["__core-js_shared__"];const Uf=B5;var iS=function(){var e=/[^.]+$/.exec(Uf&&Uf.keys&&Uf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function F5(e){return!!iS&&iS in e}var V5=Function.prototype,H5=V5.toString;function Ii(e){if(e!=null){try{return H5.call(e)}catch{}try{return e+""}catch{}}return""}var W5=/[\\^$.*+?()[\]{}|]/g,U5=/^\[object .+?Constructor\]$/,K5=Function.prototype,G5=Object.prototype,X5=K5.toString,q5=G5.hasOwnProperty,Y5=RegExp("^"+X5.call(q5).replace(W5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q5(e){if(!Br(e)||F5(e))return!1;var t=Iv(e)?Y5:U5;return t.test(Ii(e))}function J5(e,t){return e==null?void 0:e[t]}function _i(e,t){var n=J5(e,t);return Q5(n)?n:void 0}var Z5=_i(io,"WeakMap");const xh=Z5;var aS=Object.create,eV=function(){function e(){}return function(t){if(!Br(t))return{};if(aS)return aS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const tV=eV;function nV(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rV(){}function bE(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var oV=800,iV=16,aV=Date.now;function sV(e){var t=0,n=0;return function(){var r=aV(),o=iV-(r-n);if(n=r,o>0){if(++t>=oV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function lV(e){return function(){return e}}var cV=function(){try{var e=_i(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ou=cV;var uV=Ou?function(e,t){return Ou(e,"toString",{configurable:!0,enumerable:!1,value:lV(t),writable:!0})}:Pv;const dV=uV;var fV=sV(dV);const yE=fV;function pV(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function hV(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function gV(e){return e!==e}function vV(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function mV(e,t,n){return t===t?vV(e,t,n):hV(e,gV,n)}function bV(e,t){var n=e==null?0:e.length;return!!n&&mV(e,t,0)>-1}var yV=9007199254740991,SV=/^(?:0|[1-9]\d*)$/;function Od(e,t){var n=typeof e;return t=t??yV,!!t&&(n=="number"||n!="symbol"&&SV.test(e))&&e>-1&&e%1==0&&e<t}function _v(e,t,n){t=="__proto__"&&Ou?Ou(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function kl(e,t){return e===t||e!==e&&t!==t}var wV=Object.prototype,xV=wV.hasOwnProperty;function Tv(e,t,n){var r=e[t];(!(xV.call(e,t)&&kl(r,n))||n===void 0&&!(t in e))&&_v(e,t,n)}function Ua(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?_v(n,s,l):Tv(n,s,l)}return n}var sS=Math.max;function SE(e,t,n){return t=sS(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=sS(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),nV(e,this,s)}}function wE(e,t){return yE(SE(e,t,Pv),e+"")}var CV=9007199254740991;function Mv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CV}function Ed(e){return e!=null&&Mv(e.length)&&!Iv(e)}function $V(e,t,n){if(!Br(n))return!1;var r=typeof t;return(r=="number"?Ed(n)&&Od(t,n.length):r=="string"&&t in n)?kl(n[t],e):!1}function OV(e){return wE(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&$V(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var EV=Object.prototype;function Dv(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||EV;return e===n}function NV(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var RV="[object Arguments]";function lS(e){return ro(e)&&Pi(e)==RV}var xE=Object.prototype,PV=xE.hasOwnProperty,IV=xE.propertyIsEnumerable,_V=lS(function(){return arguments}())?lS:function(e){return ro(e)&&PV.call(e,"callee")&&!IV.call(e,"callee")};const rl=_V;function TV(){return!1}var CE=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cS=CE&&typeof module=="object"&&module&&!module.nodeType&&module,MV=cS&&cS.exports===CE,uS=MV?io.Buffer:void 0,DV=uS?uS.isBuffer:void 0,jV=DV||TV;const ol=jV;var AV="[object Arguments]",kV="[object Array]",LV="[object Boolean]",zV="[object Date]",BV="[object Error]",FV="[object Function]",VV="[object Map]",HV="[object Number]",WV="[object Object]",UV="[object RegExp]",KV="[object Set]",GV="[object String]",XV="[object WeakMap]",qV="[object ArrayBuffer]",YV="[object DataView]",QV="[object Float32Array]",JV="[object Float64Array]",ZV="[object Int8Array]",eH="[object Int16Array]",tH="[object Int32Array]",nH="[object Uint8Array]",rH="[object Uint8ClampedArray]",oH="[object Uint16Array]",iH="[object Uint32Array]",Qt={};Qt[QV]=Qt[JV]=Qt[ZV]=Qt[eH]=Qt[tH]=Qt[nH]=Qt[rH]=Qt[oH]=Qt[iH]=!0;Qt[AV]=Qt[kV]=Qt[qV]=Qt[LV]=Qt[YV]=Qt[zV]=Qt[BV]=Qt[FV]=Qt[VV]=Qt[HV]=Qt[WV]=Qt[UV]=Qt[KV]=Qt[GV]=Qt[XV]=!1;function aH(e){return ro(e)&&Mv(e.length)&&!!Qt[Pi(e)]}function jv(e){return function(t){return e(t)}}var $E=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ts=$E&&typeof module=="object"&&module&&!module.nodeType&&module,sH=Ts&&Ts.exports===$E,Kf=sH&&gE.process,lH=function(){try{var e=Ts&&Ts.require&&Ts.require("util").types;return e||Kf&&Kf.binding&&Kf.binding("util")}catch{}}();const Ca=lH;var dS=Ca&&Ca.isTypedArray,cH=dS?jv(dS):aH;const Av=cH;var uH=Object.prototype,dH=uH.hasOwnProperty;function OE(e,t){var n=vn(e),r=!n&&rl(e),o=!n&&!r&&ol(e),i=!n&&!r&&!o&&Av(e),a=n||r||o||i,s=a?NV(e.length,String):[],l=s.length;for(var c in e)(t||dH.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Od(c,l)))&&s.push(c);return s}function EE(e,t){return function(n){return e(t(n))}}var fH=EE(Object.keys,Object);const pH=fH;var hH=Object.prototype,gH=hH.hasOwnProperty;function vH(e){if(!Dv(e))return pH(e);var t=[];for(var n in Object(e))gH.call(e,n)&&n!="constructor"&&t.push(n);return t}function Nd(e){return Ed(e)?OE(e):vH(e)}function mH(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var bH=Object.prototype,yH=bH.hasOwnProperty;function SH(e){if(!Br(e))return mH(e);var t=Dv(e),n=[];for(var r in e)r=="constructor"&&(t||!yH.call(e,r))||n.push(r);return n}function Ll(e){return Ed(e)?OE(e,!0):SH(e)}var wH=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xH=/^\w*$/;function kv(e,t){if(vn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Nv(e)?!0:xH.test(e)||!wH.test(e)||t!=null&&e in Object(t)}var CH=_i(Object,"create");const il=CH;function $H(){this.__data__=il?il(null):{},this.size=0}function OH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var EH="__lodash_hash_undefined__",NH=Object.prototype,RH=NH.hasOwnProperty;function PH(e){var t=this.__data__;if(il){var n=t[e];return n===EH?void 0:n}return RH.call(t,e)?t[e]:void 0}var IH=Object.prototype,_H=IH.hasOwnProperty;function TH(e){var t=this.__data__;return il?t[e]!==void 0:_H.call(t,e)}var MH="__lodash_hash_undefined__";function DH(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=il&&t===void 0?MH:t,this}function Si(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Si.prototype.clear=$H;Si.prototype.delete=OH;Si.prototype.get=PH;Si.prototype.has=TH;Si.prototype.set=DH;function jH(){this.__data__=[],this.size=0}function Rd(e,t){for(var n=e.length;n--;)if(kl(e[n][0],t))return n;return-1}var AH=Array.prototype,kH=AH.splice;function LH(e){var t=this.__data__,n=Rd(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kH.call(t,n,1),--this.size,!0}function zH(e){var t=this.__data__,n=Rd(t,e);return n<0?void 0:t[n][1]}function BH(e){return Rd(this.__data__,e)>-1}function FH(e,t){var n=this.__data__,r=Rd(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Io(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Io.prototype.clear=jH;Io.prototype.delete=LH;Io.prototype.get=zH;Io.prototype.has=BH;Io.prototype.set=FH;var VH=_i(io,"Map");const al=VH;function HH(){this.size=0,this.__data__={hash:new Si,map:new(al||Io),string:new Si}}function WH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Pd(e,t){var n=e.__data__;return WH(t)?n[typeof t=="string"?"string":"hash"]:n.map}function UH(e){var t=Pd(this,e).delete(e);return this.size-=t?1:0,t}function KH(e){return Pd(this,e).get(e)}function GH(e){return Pd(this,e).has(e)}function XH(e,t){var n=Pd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function _o(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_o.prototype.clear=HH;_o.prototype.delete=UH;_o.prototype.get=KH;_o.prototype.has=GH;_o.prototype.set=XH;var qH="Expected a function";function Lv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qH);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Lv.Cache||_o),n}Lv.Cache=_o;var YH=500;function QH(e){var t=Lv(e,function(r){return n.size===YH&&n.clear(),r}),n=t.cache;return t}var JH=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ZH=/\\(\\)?/g,e9=QH(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(JH,function(n,r,o,i){t.push(o?i.replace(ZH,"$1"):r||n)}),t});const t9=e9;function n9(e){return e==null?"":mE(e)}function Ka(e,t){return vn(e)?e:kv(e,t)?[e]:t9(n9(e))}var r9=1/0;function Ga(e){if(typeof e=="string"||Nv(e))return e;var t=e+"";return t=="0"&&1/e==-r9?"-0":t}function Id(e,t){t=Ka(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ga(t[n++])];return n&&n==r?e:void 0}function NE(e,t,n){var r=e==null?void 0:Id(e,t);return r===void 0?n:r}function zv(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var fS=Or?Or.isConcatSpreadable:void 0;function o9(e){return vn(e)||rl(e)||!!(fS&&e&&e[fS])}function Bv(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=o9),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Bv(s,t-1,n,r,o):zv(o,s):r||(o[o.length]=s)}return o}function i9(e){var t=e==null?0:e.length;return t?Bv(e,1):[]}function a9(e){return yE(SE(e,void 0,i9),e+"")}var s9=EE(Object.getPrototypeOf,Object);const Fv=s9;var l9="[object Object]",c9=Function.prototype,u9=Object.prototype,RE=c9.toString,d9=u9.hasOwnProperty,f9=RE.call(Object);function zn(e){if(!ro(e)||Pi(e)!=l9)return!1;var t=Fv(e);if(t===null)return!0;var n=d9.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&RE.call(n)==f9}function p9(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function h9(){this.__data__=new Io,this.size=0}function g9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function v9(e){return this.__data__.get(e)}function m9(e){return this.__data__.has(e)}var b9=200;function y9(e,t){var n=this.__data__;if(n instanceof Io){var r=n.__data__;if(!al||r.length<b9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _o(r)}return n.set(e,t),this.size=n.size,this}function Dr(e){var t=this.__data__=new Io(e);this.size=t.size}Dr.prototype.clear=h9;Dr.prototype.delete=g9;Dr.prototype.get=v9;Dr.prototype.has=m9;Dr.prototype.set=y9;function S9(e,t){return e&&Ua(t,Nd(t),e)}function w9(e,t){return e&&Ua(t,Ll(t),e)}var PE=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pS=PE&&typeof module=="object"&&module&&!module.nodeType&&module,x9=pS&&pS.exports===PE,hS=x9?io.Buffer:void 0,gS=hS?hS.allocUnsafe:void 0;function IE(e,t){if(t)return e.slice();var n=e.length,r=gS?gS(n):new e.constructor(n);return e.copy(r),r}function C9(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function _E(){return[]}var $9=Object.prototype,O9=$9.propertyIsEnumerable,vS=Object.getOwnPropertySymbols,E9=vS?function(e){return e==null?[]:(e=Object(e),C9(vS(e),function(t){return O9.call(e,t)}))}:_E;const Vv=E9;function N9(e,t){return Ua(e,Vv(e),t)}var R9=Object.getOwnPropertySymbols,P9=R9?function(e){for(var t=[];e;)zv(t,Vv(e)),e=Fv(e);return t}:_E;const TE=P9;function I9(e,t){return Ua(e,TE(e),t)}function ME(e,t,n){var r=t(e);return vn(e)?r:zv(r,n(e))}function Ch(e){return ME(e,Nd,Vv)}function Hv(e){return ME(e,Ll,TE)}var _9=_i(io,"DataView");const $h=_9;var T9=_i(io,"Promise");const Oh=T9;var M9=_i(io,"Set");const ha=M9;var mS="[object Map]",D9="[object Object]",bS="[object Promise]",yS="[object Set]",SS="[object WeakMap]",wS="[object DataView]",j9=Ii($h),A9=Ii(al),k9=Ii(Oh),L9=Ii(ha),z9=Ii(xh),oi=Pi;($h&&oi(new $h(new ArrayBuffer(1)))!=wS||al&&oi(new al)!=mS||Oh&&oi(Oh.resolve())!=bS||ha&&oi(new ha)!=yS||xh&&oi(new xh)!=SS)&&(oi=function(e){var t=Pi(e),n=t==D9?e.constructor:void 0,r=n?Ii(n):"";if(r)switch(r){case j9:return wS;case A9:return mS;case k9:return bS;case L9:return yS;case z9:return SS}return t});const sl=oi;var B9=Object.prototype,F9=B9.hasOwnProperty;function V9(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&F9.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var H9=io.Uint8Array;const Eu=H9;function Wv(e){var t=new e.constructor(e.byteLength);return new Eu(t).set(new Eu(e)),t}function W9(e,t){var n=t?Wv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var U9=/\w*$/;function K9(e){var t=new e.constructor(e.source,U9.exec(e));return t.lastIndex=e.lastIndex,t}var xS=Or?Or.prototype:void 0,CS=xS?xS.valueOf:void 0;function G9(e){return CS?Object(CS.call(e)):{}}function DE(e,t){var n=t?Wv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var X9="[object Boolean]",q9="[object Date]",Y9="[object Map]",Q9="[object Number]",J9="[object RegExp]",Z9="[object Set]",e7="[object String]",t7="[object Symbol]",n7="[object ArrayBuffer]",r7="[object DataView]",o7="[object Float32Array]",i7="[object Float64Array]",a7="[object Int8Array]",s7="[object Int16Array]",l7="[object Int32Array]",c7="[object Uint8Array]",u7="[object Uint8ClampedArray]",d7="[object Uint16Array]",f7="[object Uint32Array]";function p7(e,t,n){var r=e.constructor;switch(t){case n7:return Wv(e);case X9:case q9:return new r(+e);case r7:return W9(e,n);case o7:case i7:case a7:case s7:case l7:case c7:case u7:case d7:case f7:return DE(e,n);case Y9:return new r;case Q9:case e7:return new r(e);case J9:return K9(e);case Z9:return new r;case t7:return G9(e)}}function jE(e){return typeof e.constructor=="function"&&!Dv(e)?tV(Fv(e)):{}}var h7="[object Map]";function g7(e){return ro(e)&&sl(e)==h7}var $S=Ca&&Ca.isMap,v7=$S?jv($S):g7;const m7=v7;var b7="[object Set]";function y7(e){return ro(e)&&sl(e)==b7}var OS=Ca&&Ca.isSet,S7=OS?jv(OS):y7;const w7=S7;var x7=1,C7=2,$7=4,AE="[object Arguments]",O7="[object Array]",E7="[object Boolean]",N7="[object Date]",R7="[object Error]",kE="[object Function]",P7="[object GeneratorFunction]",I7="[object Map]",_7="[object Number]",LE="[object Object]",T7="[object RegExp]",M7="[object Set]",D7="[object String]",j7="[object Symbol]",A7="[object WeakMap]",k7="[object ArrayBuffer]",L7="[object DataView]",z7="[object Float32Array]",B7="[object Float64Array]",F7="[object Int8Array]",V7="[object Int16Array]",H7="[object Int32Array]",W7="[object Uint8Array]",U7="[object Uint8ClampedArray]",K7="[object Uint16Array]",G7="[object Uint32Array]",Kt={};Kt[AE]=Kt[O7]=Kt[k7]=Kt[L7]=Kt[E7]=Kt[N7]=Kt[z7]=Kt[B7]=Kt[F7]=Kt[V7]=Kt[H7]=Kt[I7]=Kt[_7]=Kt[LE]=Kt[T7]=Kt[M7]=Kt[D7]=Kt[j7]=Kt[W7]=Kt[U7]=Kt[K7]=Kt[G7]=!0;Kt[R7]=Kt[kE]=Kt[A7]=!1;function Ms(e,t,n,r,o,i){var a,s=t&x7,l=t&C7,c=t&$7;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Br(e))return e;var u=vn(e);if(u){if(a=V9(e),!s)return bE(e,a)}else{var d=sl(e),f=d==kE||d==P7;if(ol(e))return IE(e,s);if(d==LE||d==AE||f&&!o){if(a=l||f?{}:jE(e),!s)return l?I9(e,w9(a,e)):N9(e,S9(a,e))}else{if(!Kt[d])return o?e:{};a=p7(e,d,s)}}i||(i=new Dr);var p=i.get(e);if(p)return p;i.set(e,a),w7(e)?e.forEach(function(b){a.add(Ms(b,t,n,b,e,i))}):m7(e)&&e.forEach(function(b,g){a.set(g,Ms(b,t,n,g,e,i))});var h=c?l?Hv:Ch:l?Ll:Nd,m=u?void 0:h(e);return pV(m||e,function(b,g){m&&(g=b,b=e[g]),Tv(a,g,Ms(b,t,n,g,e,i))}),a}var X7=1,q7=4;function zE(e){return Ms(e,X7|q7)}var Y7="__lodash_hash_undefined__";function Q7(e){return this.__data__.set(e,Y7),this}function J7(e){return this.__data__.has(e)}function ll(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new _o;++t<n;)this.add(e[t])}ll.prototype.add=ll.prototype.push=Q7;ll.prototype.has=J7;function Z7(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function BE(e,t){return e.has(t)}var eW=1,tW=2;function FE(e,t,n,r,o,i){var a=n&eW,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&tW?new ll:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var b=a?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Z7(t,function(g,S){if(!BE(p,S)&&(h===g||o(h,g,n,r,i)))return p.push(S)})){f=!1;break}}else if(!(h===m||o(h,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function nW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Uv(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var rW=1,oW=2,iW="[object Boolean]",aW="[object Date]",sW="[object Error]",lW="[object Map]",cW="[object Number]",uW="[object RegExp]",dW="[object Set]",fW="[object String]",pW="[object Symbol]",hW="[object ArrayBuffer]",gW="[object DataView]",ES=Or?Or.prototype:void 0,Gf=ES?ES.valueOf:void 0;function vW(e,t,n,r,o,i,a){switch(n){case gW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hW:return!(e.byteLength!=t.byteLength||!i(new Eu(e),new Eu(t)));case iW:case aW:case cW:return kl(+e,+t);case sW:return e.name==t.name&&e.message==t.message;case uW:case fW:return e==t+"";case lW:var s=nW;case dW:var l=r&rW;if(s||(s=Uv),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=oW,a.set(e,t);var u=FE(s(e),s(t),r,o,i,a);return a.delete(e),u;case pW:if(Gf)return Gf.call(e)==Gf.call(t)}return!1}var mW=1,bW=Object.prototype,yW=bW.hasOwnProperty;function SW(e,t,n,r,o,i){var a=n&mW,s=Ch(e),l=s.length,c=Ch(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:yW.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=a;++d<l;){f=s[d];var g=e[f],S=t[f];if(r)var C=a?r(S,g,f,t,e,i):r(g,S,f,e,t,i);if(!(C===void 0?g===S||o(g,S,n,r,i):C)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var w=e.constructor,y=t.constructor;w!=y&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof y=="function"&&y instanceof y)&&(m=!1)}return i.delete(e),i.delete(t),m}var wW=1,NS="[object Arguments]",RS="[object Array]",Nc="[object Object]",xW=Object.prototype,PS=xW.hasOwnProperty;function CW(e,t,n,r,o,i){var a=vn(e),s=vn(t),l=a?RS:sl(e),c=s?RS:sl(t);l=l==NS?Nc:l,c=c==NS?Nc:c;var u=l==Nc,d=c==Nc,f=l==c;if(f&&ol(e)){if(!ol(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new Dr),a||Av(e)?FE(e,t,n,r,o,i):vW(e,t,l,n,r,o,i);if(!(n&wW)){var p=u&&PS.call(e,"__wrapped__"),h=d&&PS.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,b=h?t.value():t;return i||(i=new Dr),o(m,b,n,r,i)}}return f?(i||(i=new Dr),SW(e,t,n,r,o,i)):!1}function Kv(e,t,n,r,o){return e===t?!0:e==null||t==null||!ro(e)&&!ro(t)?e!==e&&t!==t:CW(e,t,n,r,Kv,o)}var $W=1,OW=2;function EW(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Dr;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Kv(u,c,$W|OW,r,d):f))return!1}}return!0}function VE(e){return e===e&&!Br(e)}function NW(e){for(var t=Nd(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,VE(o)]}return t}function HE(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function RW(e){var t=NW(e);return t.length==1&&t[0][2]?HE(t[0][0],t[0][1]):function(n){return n===e||EW(n,e,t)}}function PW(e,t){return e!=null&&t in Object(e)}function IW(e,t,n){t=Ka(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Ga(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Mv(o)&&Od(a,o)&&(vn(e)||rl(e)))}function _W(e,t){return e!=null&&IW(e,t,PW)}var TW=1,MW=2;function DW(e,t){return kv(e)&&VE(t)?HE(Ga(e),t):function(n){var r=NE(n,e);return r===void 0&&r===t?_W(n,e):Kv(t,r,TW|MW)}}function jW(e){return function(t){return t==null?void 0:t[e]}}function AW(e){return function(t){return Id(t,e)}}function kW(e){return kv(e)?jW(Ga(e)):AW(e)}function Gv(e){return typeof e=="function"?e:e==null?Pv:typeof e=="object"?vn(e)?DW(e[0],e[1]):RW(e):kW(e)}function LW(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var zW=LW();const BW=zW;function Eh(e,t,n){(n!==void 0&&!kl(e[t],n)||n===void 0&&!(t in e))&&_v(e,t,n)}function Nh(e){return ro(e)&&Ed(e)}function Rh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function FW(e){return Ua(e,Ll(e))}function VW(e,t,n,r,o,i,a){var s=Rh(e,n),l=Rh(t,n),c=a.get(l);if(c){Eh(e,n,c);return}var u=i?i(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=vn(l),p=!f&&ol(l),h=!f&&!p&&Av(l);u=l,f||p||h?vn(s)?u=s:Nh(s)?u=bE(s):p?(d=!1,u=IE(l,!0)):h?(d=!1,u=DE(l,!0)):u=[]:zn(l)||rl(l)?(u=s,rl(s)?u=FW(s):(!Br(s)||Iv(s))&&(u=jE(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),Eh(e,n,u)}function WE(e,t,n,r,o){e!==t&&BW(t,function(i,a){if(o||(o=new Dr),Br(i))VW(e,t,a,n,WE,r,o);else{var s=r?r(Rh(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Eh(e,a,s)}},Ll)}function HW(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function UE(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function WW(e,t){return t.length<2?e:Id(e,p9(t,0,-1))}var UW=OV(function(e,t,n){WE(e,t,n)});const KE=UW;var KW="Expected a function";function GW(e){if(typeof e!="function")throw new TypeError(KW);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function XW(e,t){return t=Ka(t,e),e=WW(e,t),e==null||delete e[Ga(UE(t))]}function qW(e){return zn(e)?void 0:e}var YW=1,QW=2,JW=4,ZW=a9(function(e,t){var n={};if(e==null)return n;var r=!1;t=Rv(t,function(i){return i=Ka(i,e),r||(r=i.length>1),i}),Ua(e,Hv(e),n),r&&(n=Ms(n,YW|QW|JW,qW));for(var o=t.length;o--;)XW(n,t[o]);return n});const GE=ZW;function eU(e,t,n,r){if(!Br(e))return e;t=Ka(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Ga(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Br(u)?u:Od(t[o+1])?[]:{})}Tv(s,l,c),s=s[l]}return e}function tU(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Id(e,a);n(s,a)&&eU(i,Ka(a,e),s)}return i}function nU(e,t){if(e==null)return{};var n=Rv(Hv(e),function(r){return[r]});return t=Gv(t),tU(e,n,function(r,o){return t(r,o[0])})}function rU(e,t){return nU(e,GW(Gv(t)))}var oU=1/0,iU=ha&&1/Uv(new ha([,-0]))[1]==oU?function(e){return new ha(e)}:rV;const aU=iU;var sU=200;function lU(e,t,n){var r=-1,o=bV,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=HW;else if(i>=sU){var c=t?null:aU(e);if(c)return Uv(c);a=!1,o=BE,l=new ll}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var cU=wE(function(e){var t=UE(e);return Nh(t)&&(t=void 0),lU(Bv(e,1,Nh,!0),Gv(t))});const uU=cU;let XE=class extends TypeError{constructor(t,n){let r;const{message:o,...i}=t,{path:a}=t,s=a.length===0?o:`At path: ${a.join(".")} -- ${o}`;super(s),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}};function dU(e){return jr(e)&&typeof e[Symbol.iterator]=="function"}function jr(e){return typeof e=="object"&&e!=null}function dr(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function fU(e){const{done:t,value:n}=e.next();return t?void 0:n}function pU(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:o,branch:i}=t,{type:a}=n,{refinement:s,message:l=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${dr(r)}\``}=e;return{value:r,type:a,refinement:s,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*IS(e,t,n,r){dU(e)||(e=[e]);for(const o of e){const i=pU(o,t,n,r);i&&(yield i)}}function*Xv(e,t,n){n===void 0&&(n={});const{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,s={path:r,branch:o};if(i&&(e=t.coercer(e,s),a&&t.type!=="type"&&jr(t.schema)&&jr(e)&&!Array.isArray(e)))for(const c in e)t.schema[c]===void 0&&delete e[c];let l="valid";for(const c of t.validator(e,s))l="not_valid",yield[c,void 0];for(let[c,u,d]of t.entries(e,s)){const f=Xv(u,d,{path:c===void 0?r:[...r,c],branch:c===void 0?o:[...o,u],coerce:i,mask:a});for(const p of f)p[0]?(l=p[0].refinement!=null?"not_refined":"not_valid",yield[p[0],void 0]):i&&(u=p[1],c===void 0?e=u:e instanceof Map?e.set(c,u):e instanceof Set?e.add(u):jr(e)&&(u!==void 0||c in e)&&(e[c]=u))}if(l!=="not_valid")for(const c of t.refiner(e,s))l="not_refined",yield[c,void 0];l==="valid"&&(yield[void 0,e])}class ao{constructor(t){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:n,schema:r,validator:o,refiner:i,coercer:a=l=>l,entries:s=function*(){}}=t;this.type=n,this.schema=r,this.entries=s,this.coercer=a,o?this.validator=(l,c)=>{const u=o(l,c);return IS(u,c,this,l)}:this.validator=()=>[],i?this.refiner=(l,c)=>{const u=i(l,c);return IS(u,c,this,l)}:this.refiner=()=>[]}assert(t){return qE(t,this)}create(t){return hU(t,this)}is(t){return vU(t,this)}mask(t){return gU(t,this)}validate(t,n){return n===void 0&&(n={}),Xa(t,this,n)}}function qE(e,t){const n=Xa(e,t);if(n[0])throw n[0]}function hU(e,t){const n=Xa(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function gU(e,t){const n=Xa(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}function vU(e,t){return!Xa(e,t)[0]}function Xa(e,t,n){n===void 0&&(n={});const r=Xv(e,t,n),o=fU(r);return o[0]?[new XE(o[0],function*(){for(const i of r)i[0]&&(yield i[0])}),void 0]:[void 0,o[1]]}function qv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0].type==="type",o=t.map(a=>a.schema),i=Object.assign({},...o);return r?ZE(i):zt(i)}function ei(e,t){return new ao({type:e,schema:null,validator:t})}function $a(e){return new ao({type:"dynamic",schema:null,*entries(t,n){yield*e(t,n).entries(t,n)},validator(t,n){return e(t,n).validator(t,n)},coercer(t,n){return e(t,n).coercer(t,n)},refiner(t,n){return e(t,n).refiner(t,n)}})}function YE(e,t){const{schema:n}=e,r={...n};for(const o of t)delete r[o];switch(e.type){case"type":return ZE(r);default:return zt(r)}}function $n(){return ei("any",()=>!0)}function hn(e){return new ao({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${dr(t)}`}})}function yo(){return ei("boolean",e=>typeof e=="boolean")}function Ph(e){const t={},n=e.map(r=>dr(r)).join();for(const r of e)t[r]=r;return new ao({type:"enums",schema:t,validator(r){return e.includes(r)||`Expected one of \`${n}\`, but received: ${dr(r)}`}})}function QE(){return ei("func",e=>typeof e=="function"||`Expected a function, but received: ${dr(e)}`)}function Qn(e){const t=dr(e),n=typeof e;return new ao({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${t}\`, but received: ${dr(r)}`}})}function mU(){return ei("never",()=>!1)}function JE(){return ei("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${dr(e)}`)}function zt(e){const t=e?Object.keys(e):[],n=mU();return new ao({type:"object",schema:e||null,*entries(r){if(e&&jr(r)){const o=new Set(Object.keys(r));for(const i of t)o.delete(i),yield[i,r[i],e[i]];for(const i of o)yield[i,r[i],n]}},validator(r){return jr(r)||`Expected an object, but received: ${dr(r)}`},coercer(r){return jr(r)?{...r}:r}})}function ze(e){return new ao({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function Ds(e,t){return new ao({type:"record",schema:null,*entries(n){if(jr(n))for(const r in n){const o=n[r];yield[r,r,e],yield[r,o,t]}},validator(n){return jr(n)||`Expected an object, but received: ${dr(n)}`}})}function Ae(){return ei("string",e=>typeof e=="string"||`Expected a string, but received: ${dr(e)}`)}function ZE(e){const t=Object.keys(e);return new ao({type:"type",schema:e,*entries(n){if(jr(n))for(const r of t)yield[r,n[r],e[r]]},validator(n){return jr(n)||`Expected an object, but received: ${dr(n)}`}})}function Wn(e){const t=e.map(n=>n.type).join(" | ");return new ao({type:"union",schema:null,coercer(n,r){return(e.find(o=>{const[i]=o.validate(n,{coerce:!0});return!i})||bU()).coercer(n,r)},validator(n,r){const o=[];for(const i of e){const[...a]=Xv(n,i,r),[s]=a;if(s[0])for(const[l]of a)l&&o.push(l);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${dr(n)}`,...o]}})}function bU(){return ei("unknown",()=>!0)}const yU=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"],eN=yU,Yv=zt({package:Ae(),version:Ae(),exportName:Ae(),destructuring:ze(yo()),subName:ze(Ae()),main:ze(Ae())}),SU=hn(Yv);var Sn=(e=>(e.SLOT="SLOT",e.FUNCTION="FUNCTION",e.EXPRESSION="EXPRESSION",e))(Sn||{}),Qv=(e=>(e.DESIGN="design",e.SAVE="save",e))(Qv||{}),Ih=(e=>(e.FUNC="FUNC",e.COMP="COMP",e))(Ih||{});const wU=()=>ei("normalObj",e=>!zn(e)||[Sn.SLOT,Sn.EXPRESSION,Sn.FUNCTION].includes(e==null?void 0:e.type)?!1:(Xa(e,Ds(Ae(),Jv)),!0)),Jv=Wn([Ae(),JE(),yo(),zt({type:Qn(Sn.SLOT),renderType:Ph([Ih.FUNC,Ih.COMP]),params:ze(hn(Ae())),value:$a(()=>Wn([Oa,hn(Oa)]))}),zt({type:Qn(Sn.EXPRESSION),value:Ae()}),zt({type:Qn(Sn.FUNCTION),value:Ae()}),wU(),hn($a(()=>Jv))]),_S=zt({type:Qn(Sn.EXPRESSION),value:Ae()}),Oa=zt({id:ze(Ae()),title:ze(Ae()),componentName:Ae(),props:ze(Ds(Ae(),Jv)),stateName:ze(Ae()),state:ze(Ds(Ae(),$n())),children:$a(()=>ze(hn(Wn([Ae(),Oa])))),configure:ze($n()),css:ze($n()),style:ze($n()),classNames:ze(hn($n())),refId:ze(Ae()),extra:ze(Ds($n(),$n())),condition:ze(Wn([yo(),_S])),tempDevConfig:ze($n()),loop:ze(zt({open:yo(),data:Wn([hn($n()),_S]),args:ze(hn(Ae())),forName:ze(Ae()),forIndex:ze(Ae()),key:ze($n()),name:ze(Ae())}))}),_h=e=>zn(e)?e.label:e,tN=e=>zn(e)?e.tip:"",Nu=Wn([Ae(),zt({label:Ae(),tip:ze(Ae())})]),xU=zt({type:Qn("shape"),value:hn(zt({name:Ae(),title:Nu,valueType:$a(()=>_d)}))}),CU=zt({type:Qn("enums"),value:hn(Ae())});zt({type:Qn("array"),value:$a(()=>_d)});const $U=zt({type:Qn("array"),value:$a(()=>hn(_d))}),_d=Wn([Ph(["array","boolean","number","object","string"]),Ph(["component","expression","function"]),xU,CU,$U]),OU=Wn([Ae(),zt({componentName:Ae(),props:ze($n()),initialValue:ze($n()),component:ze($n())})]),Xf=zt({name:Ae(),title:Nu,valueType:_d,description:ze(Ae()),defaultValue:$n(),setters:ze(hn(OU)),condition:ze(QE())}),EU=Wn([Ae(),QE()]);var Th=(e=>(e.SINGLE="single",e.GROUP="group",e))(Th||{});const nN=e=>!!(e.type&&["group","single"].includes(e.type));Wn([Ae(),zt({name:Ae(),describe:ze(Ae()),params:ze(zt({name:Ae(),description:Ae()})),template:Ae()})]);const NU=zt({id:ze(Ae()),title:Ae(),snapshot:Wn([Ae(),$n()]),snapshotText:ze(Ae()),description:ze(Ae()),tags:ze(hn(Ae())),groupName:ze(Ae()),category:ze(Ae()),schema:qv(YE(Oa,["id"]),zt({componentName:ze(Ae())}))}),RU=zt({componentName:Ae(),title:Ae(),screenshot:ze(Ae()),icon:ze(Ae()),tags:ze(hn(Ae())),groupName:ze(Ae()),category:ze(Ae()),priority:ze(JE()),npm:ze(Yv),snippets:hn(NU),props:hn(Wn([Xf,zt({title:ze(Nu),type:Qn("single"),content:Xf}),zt({title:ze(Nu),type:Qn("group"),content:hn(Xf)})])),fixedProps:ze($n()),isContainer:ze(Wn([yo(),zt({placeholder:Ae(),width:Ae(),height:Ae()})])),isModal:ze(Wn([yo(),zt({visibleKey:Ae()})])),isSupportStyle:ze(yo()),isSupportDispatchNativeEvent:ze(yo()),isLayout:ze(yo()),rootSelector:ze(Ae()),selectionToolBars:ze(hn(EU)),extra:ze(Ds($n(),$n()))}),PU=e=>({data:t,message:n,throwError:r})=>{const o=e({data:t,message:n,throwError:r});if(o.isValidate)return o;if(r)throw o.message||n?new Error(`${o.message||n}
|
|
210
375
|
originData: ${JSON.stringify(t)}`):new Error(`${JSON.stringify(t)}
|
|
211
|
-
data struct format is invalidate`);return
|
|
212
|
-
`)),{isValidate:!1,message:s,error:o}}})({data:t,message:r,throwError:n})};var Ei=(e=>(e.ROOT_CONTAINER="RootContainer",e))(Ei||{});const tC=se({type:Ge(St.FUNCTION),value:D()}),rC=Go(Lf(Er,["componentName"]),se({componentName:Ge("RootContainer")}));function nC(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const gn=nC(),iC=(e,t)=>{const r={...e,value:[]},n=e.value;let i=new Zt([]);return t&&(i=t.materialsMode||new Zt([])),n&&(xe(n)?r.value=n.map(a=>new ge(a,{parent:t,materials:i})):Ke(n)&&r.value.push(new ge(n,{parent:t,materials:i}))),r};class Pr{constructor(t,r){q(this,"nodeType","SLOT"),q(this,"rawData"),q(this,"parent"),q(this,"emitter",gn),q(this,"data"),q(this,"id"),q(this,"materialsMode"),this.parent=(r==null?void 0:r.parent)||null,this.rawData=t;const n=(r==null?void 0:r.materials)||new Zt([]);this.materialsMode=n,this.id=or(),this.data=iC(t,this)}get value(){return this.data}export(t){const r=this.data,n=i=>{if(i instanceof ge)return i.export(t);if(Ke(i)){const a={};return Object.keys(i||{}).forEach(o=>{a[o]=n(i[o])}),a}return xe(i)?i.map(a=>n(a)):(t==="design"&&delete i.id,i)};return n(r)}}const zf=e=>{let t=[];return e.forEach(r=>{const n=r;n.type?n.type===eo.SINGLE?t.push(n.content):n.type===eo.GROUP&&(t=[...t,...zf(n.content)]):t.push(r)}),t},to=(e,t,r)=>{if(e.type)return e.type===St.SLOT?new Pr(e,{parent:t,materials:r}):e;if(Ke(e)){const n={};return Object.keys(e).forEach(i=>{n[i]=ro(e[i],t,r)}),n}else return Array.isArray(e)?e.map(n=>to(n,t,r)):e},ro=(e,t,r)=>Ke(e)?to(e,t,r):xe(e)?e.map(n=>to(n,t,r)):e;class zt{constructor(t,r,n){q(this,"nodeType","PROP"),q(this,"rawData"),q(this,"parent"),q(this,"emitter",gn),q(this,"data"),q(this,"name"),q(this,"materialsMode");const i=(n==null?void 0:n.materials)||new Zt([]);this.materialsMode=i,this.parent=n==null?void 0:n.parent,this.rawData=r,this.name=t,this.data=ro(r,this,i)}isIncludeSlot(){return!1}isIncludeExpression(){return!1}get value(){return this.data}updateValue(t){const r=this.data;this.data=ro(t!=null?t:r,this,this.materialsMode),this.emitter.emit("onPropChange",{value:this.data,preValue:r,node:this}),this.parent&&!(this.parent instanceof Pr)&&this.emitter.emit("onNodeChange",{value:this.parent.value,preValue:this.parent.value,node:this.parent})}get material(){const t=this.parent;if(t instanceof ge){const r=t.material;return zf((r==null?void 0:r.value.props)||[]).find(n=>n.name===this.name)}else return null}export(t){const r=this.data,n=i=>{if(i instanceof zt||i instanceof Pr||i instanceof ge)return i.export(t);if(xe(i))return i.map(a=>n(a));if(Ke(i)){const a={};return Object.keys(i||{}).forEach(o=>{a[o]=n(i[o])}),a}return i};return n(r)}}const aC=e=>{if(typeof e=="string")return!0;Jo({data:e,dataStruct:Er,throwError:!0})},gc=(e,t,r=new Zt([]))=>{var n;if(typeof e=="string")return e;const i={...e,id:(n=e.id)!=null?n:or(),children:[],props:{},configure:Ff(e.configure||{},{propsSetter:{},advanceSetter:{}})},a=Object.keys(e.props||{});return a.length&&a.forEach(o=>{var s;const u=(s=e.props)==null?void 0:s[o];if(u instanceof zt){i.props[o]=u;return}i.props[o]=new zt(o,u||"",{parent:t,materials:r})}),e.children&&(Array.isArray(e.children)?i.children=e.children.map(o=>{if(o instanceof ge)return o;if(Ke(o)){const s=o;return new ge(s,{parent:t,materials:r})}else return o}):(e.children instanceof ge&&(i.children=[e.children]),i.children=[new ge(e.children,{parent:t,materials:r})])),i};class ge{constructor(t,r){q(this,"nodeType","NODE"),q(this,"rawData"),q(this,"data"),q(this,"emitter",gn),q(this,"parent"),q(this,"materialsModel"),q(this,"listenerHandle"),q(this,"onChangeCbQueue"),this.rawData=JSON.parse(JSON.stringify(t)),aC(t);const n=(r==null?void 0:r.materials)||new Zt([]);this.parent=(r==null?void 0:r.parent)||null,this.materialsModel=n,this.data=gc(t,this,n),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener()}registerListener(){const t=r=>{const{node:n}=r;n===this&&n.id===this.id&&this.onChangeCbQueue.forEach(i=>i(r))};this.emitter.on("onNodeChange",t),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",t)})}onChange(t){return this.onChangeCbQueue.push(t),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(r=>r!==t)}}destroy(){this.listenerHandle.forEach(t=>t())}get id(){return this.data.id}get value(){return this.data}clone(t){const r={...this.export("design"),id:t||or()};return new ge(r,{materials:this.materialsModel})}updateValue(t){const r=this.data,n={...this.data,...t};this.data=gc(n,this),this.emitter.emit("onNodeChange",{value:n,preValue:r,node:this})}contains(t){return Zo(this,t)}get props(){return this.data.props}get material(){const t=this.materialsModel;return t==null?void 0:t.findByComponentName(this.data.componentName)}getPlainProps(){const t=this.data,r={};return Object.keys(t.props||{}).forEach(n=>{r[n]=t.props[n].export("design")}),r}export(t){var r;const n=this.data;if(typeof n=="string")return n;const i={};Object.keys(n.props||{}).forEach(l=>{i[l]=n.props[l].export(t)});const a=(r=n.children)==null?void 0:r.map(l=>l instanceof ge?l.export(t):l),o=n.configure||{},s=o.propsSetter||{},u={};Object.keys(s).forEach(l=>{const f=hf(s,l,!1);f&&(u[l]=f)}),o.propsSetter=u,this.material&&this.materialsModel.usedMaterials.push(this.material);let c={...n,configure:o,props:i,children:a};return t==="design"&&delete c.id,c=Qo(c),c}}const vc=(e,t,r)=>{const n={...e,id:or(),props:{},componentName:Ei.ROOT_CONTAINER,children:[],configure:Ff(e.configure||{},{propsSetter:{},advanceSetter:{}})};let i=[];xe(e.children)?i=e.children.map(o=>o instanceof ge?o:Ke(o)?new ge(o,{parent:t,materials:r}):o):e.children instanceof ge?i.push(e.children):e.children&&Ke(e.children)&&i.push(new ge(e.children,{parent:t,materials:r}));const a=Object.keys(e.props||{});return a.length&&a.forEach(o=>{var s;const u=(s=e.props)==null?void 0:s[o];u instanceof zt?n.props[o]=u:n.props[o]=new zt(o,u||"",{parent:t,materials:r})}),n.children=i,n};class cn{constructor(t,{parent:r,materials:n}){q(this,"rawData"),q(this,"data"),q(this,"nodeType",Ei.ROOT_CONTAINER),q(this,"emitter",gn),q(this,"materialsModel"),q(this,"listenerHandle"),q(this,"onChangeCbQueue"),q(this,"parent"),this.materialsModel=n,this.rawData=JSON.parse(JSON.stringify(t)),this.data=vc(t,this,n),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener(),this.parent=r}registerListener(){const t=r=>{const{node:n}=r;n===this&&n.id===this.id&&this.onChangeCbQueue.forEach(i=>i(r))};this.emitter.on("onNodeChange",t),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",t)})}onChange(t){return this.onChangeCbQueue.push(t),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(r=>r!==t)}}get id(){return this.data.id}get value(){return this.data}get props(){return this.data.props}get material(){const t=this.materialsModel;return t==null?void 0:t.findByComponentName(this.data.componentName)}updateValue(t){const r=this.data,n={...this.data,...t};this.data=vc(n,this,this.materialsModel),this.emitter.emit("onNodeChange",{value:this.data,preValue:r,node:this})}contains(t){return Zo(this,t)}export(t=Yo.SAVE){var r;const n=this.data,i={};Object.keys(n.props||{}).forEach(u=>{i[u]=n.props[u].export(t)});const a=((r=n.children)==null?void 0:r.map(u=>{var c;return(c=u==null?void 0:u.export)==null?void 0:c.call(u,t)}))||[],o={...n,props:i,children:a.filter(u=>u)};let s=kf(o,["id"]);return s=Qo(s),s}getPlainProps(){const t=this.data,r={};return Object.keys(t.props||{}).forEach(n=>{r[n]=t.props[n].export("design")}),r}destroy(){this.listenerHandle.forEach(t=>t())}clone(t){const r={...this.export("design"),id:t||or()};return new cn(r,{materials:this.materialsModel,parent:null})}}const or=()=>Math.random().toString(32).slice(3,9),Qo=e=>Tx(e,t=>Ke(t)?!Object.keys(t).length:xe(t)?!t.length:!t);function Zo(e,t){const r=[e];for(;r.length;){const n=r.shift();if((n==null?void 0:n.id)===t)return n;const i=(n==null?void 0:n.props)||{},a=s=>{if(s instanceof ge){r.push(s);return}if(s instanceof Pr&&a(s.value.value),s instanceof zt){a(s.value);return}if(Ke(s)){const u=s;Object.keys(u).map(c=>{a(u[c])});return}if(xe(s)){s.forEach(u=>{a(u)});return}};a(i);const o=(n==null?void 0:n.value.children.filter(s=>s instanceof ge))||[];r.push(...o)}return null}const oC=e=>{const t=Ef(e),r=t.snippets;return delete t.snippets,t.snippets=r.map(n=>({...t,...n,id:n.id||`${e.componentName}-${or()}`,title:n.title||e.title,category:n.category||e.category,tags:[...n.tags||[],...e.tags||[]],groupName:n.groupName||e.groupName,snapshot:n.snapshot||e.icon,snapshotText:n.snapshotText,schema:{...n.schema,componentName:n.schema.componentName||e.componentName}})),t};class sC{constructor(t){q(this,"rawData"),q(this,"data"),this.rawData=t,this.data=oC(t)}get value(){return this.data}get rawValue(){return this.rawData}get componentName(){return this.data.componentName}get snippets(){return this.data.snippets}getSnippetById(t){return this.data.snippets.find(r=>r.id===t)}}const uC=e=>{if(!xe(e))throw new Error("Materials must be a array");return e.map(t=>new sC(t))},cC=e=>{e==null||e.forEach(t=>{Jo({data:t,dataStruct:Zx,throwError:!0})})};class Zt{constructor(t){q(this,"rawData"),q(this,"data"),q(this,"usedMaterials",[]),this.rawData=t,cC(t),this.data=uC(t)}findByComponentName(t){return this.data.find(r=>r.componentName===t)}findSnippetById(t){const r=[...this.data];let n=null;for(;!n&&r.length;){const i=r.pop();n=i==null?void 0:i.getSnippetById(t)}return n}getAllSnippets(){let t=this.data.reduce((a,o)=>(a.push(...o.snippets),a),[]);const r=[],n={default:[]};t=t.sort((a,o)=>(a.category||"")>(o.category||"")?1:-1),t.forEach(a=>{const o=a.groupName||"default";r.includes(o)||(r.push(o),n[o]=[]),n[o].push(a)});const i=[];return r.forEach(a=>{const o=["default"],s={default:[]},u=n[a];if(u.length!==0){u.forEach(f=>{const d=f.category||"default";o.includes(d)||(o.push(d),s[d]=[]),s[d].push(f)});const c=[];o.forEach(f=>{s[f].length&&c.push({name:f,list:s[f]})});const l={name:a,list:c};i.push(l)}}),i}get value(){return this.data}get rawValue(){return this.rawData}}const lC=se({version:D(),name:D(),css:V(D()),renderType:V(Ue([Ge("COMPONENT"),Ge("PAGE")])),methods:V(we(tC)),componentsMeta:we(Go(se({componentName:D()}),Ko)),thirdLibs:V(Ux),componentsTree:rC,assets:V(we(Re()))}),fC=e=>(Jo({data:e,dataStruct:lC,throwError:!0}),e),aa=(e,t,r)=>({...e,componentsTree:new cn(e.componentsTree,{parent:t,materials:r})});class ri{constructor(t,r){q(this,"nodeType","PAGE"),q(this,"rawData"),q(this,"emitter",gn),q(this,"data"),q(this,"parent"),q(this,"materialsModel"),q(this,"assetPackagesList"),fC(t),this.assetPackagesList=(r==null?void 0:r.assetPackagesList)||[],this.rawData=JSON.parse(JSON.stringify(t)),this.materialsModel=new Zt((r==null?void 0:r.materials)||[]),this.data=aa(t,this,this.materialsModel)}updatePage(t){const r=this.data;this.rawData=JSON.parse(JSON.stringify(t)),this.data=aa(t,this,this.materialsModel),this.emitter.emit("onPageChange",{value:this.data,preValue:r,node:this})}reloadPage(t){const r=this.data;this.rawData=JSON.parse(JSON.stringify(t)),this.data=aa(t,this,this.materialsModel),this.emitter.emit("onReloadPage",{value:this.data,preValue:r,node:this})}get value(){return this.data}getNode(t){const r=this.data.componentsTree;return Zo(r,t)}addNode(t,r,n="AFTER"){var i,a,o;if(n==="AFTER"||n==="BEFORE"){const s=r.parent;if(s===null&&r instanceof cn)return console.warn("Not found parent node"),!1;if(s instanceof zt)return console.warn("CProp can not add node"),!1;if(s instanceof Pr){const c=s.value.value,l=(i=c.findIndex(f=>f===r))!=null?i:-1;return l>=0?(n==="BEFORE"?c.splice(l,0,t):c.splice(l+1,0,t),t.parent=s,(a=s.parent)==null||a.updateValue(),!0):!1}if(s instanceof ri)return!1;const u=(o=s==null?void 0:s.value.children.findIndex(c=>c===r))!=null?o:-1;return u>=0?(n==="BEFORE"?s==null||s.value.children.splice(u,0,t):s==null||s.value.children.splice(u+1,0,t),t.parent=s,s==null||s.updateValue(),!0):(console.warn("Not found target node"),!1)}if(n==="CHILD_START")return r.value.children.unshift(t),t.parent=r,r.updateValue(),!0;if(n==="CHILD_END")return r.value.children.push(t),t.parent=r,r.updateValue(),!0;if(Ke(n)){const s=n;if(s.type==="CHILD"){const u=s.pos,c=s.index||0;return u==="BEFORE"?r==null||r.value.children.splice(c,0,t):r==null||r.value.children.splice(c+1,0,t),t.parent=r,r.updateValue(),!0}else console.warn("Can not parse pos obj")}return!1}createNode(t){return delete t.id,new ge(t,{parent:null,materials:this.materialsModel})}addNodeById(t,r,n="AFTER"){const i=this.getNode(r);return i?this.addNode(t,i,n):(console.warn(`Not find a node by ${r}, pls check it`),!1)}copyNode(t){const r=t.export("design");r.id=or();const n=new ge(r,{parent:t.parent,materials:this.materialsModel});return this.addNode(n,t,"AFTER"),n}copyNodeById(t){const r=this.getNode(t);return r&&r instanceof ge?this.copyNode(r):!1}moveNode(t,r,n){this.deleteNode(t);let i=r;return["AFTER","BEFORE"].includes(n)&&(i=r.parent),t.parent=i,this.addNode(t,r,n)}moveNodeById(t,r,n){const i=this.getNode(t),a=this.getNode(r);return i&&a&&i instanceof ge&&a instanceof ge?this.moveNode(i,a,n):!1}deleteNode(t){var r;const n=t.parent;if(!n)throw new Error("parent node is null or undefined, pls check it");if(n instanceof Pr){const i=n.value.value,a=i.findIndex(s=>s===t),o=i[a];return i.splice(a,1),(r=n.parent)==null||r.updateValue(),o}if(n instanceof ge||n instanceof cn){const i=n.value.children,a=i.findIndex(s=>s===t),o=i[a];return i.splice(a,1),n.updateValue(),o}}deleteNodeById(t){const r=this.getNode(t);if(r)return this.deleteNode(r)}export(t=Yo.SAVE){var r;const n=this.data.componentsTree.export(t),i=this.assetPackagesList,a=[],o=this.materialsModel.usedMaterials.map(u=>{const c=i.find(l=>{var f;return l.package===((f=u.value.npm)==null?void 0:f.package)});return c&&a.push(c),{componentName:u.componentName,...Ef(u.value.npm||{})}}).filter(u=>{if(u.componentName&&u.package&&u.version)return!0});this.materialsModel.usedMaterials=[];let s={...this.data,componentsTree:Qo(n),componentsMeta:o,thirdLibs:this.data.thirdLibs,assets:[]};return(r=this.data.thirdLibs)==null||r.forEach(u=>{const c=i.find(l=>{l.package,l.package});c&&a.push(c)}),s.assets=Lx(a,u=>u.package),s=kf(s,["id"]),JSON.parse(JSON.stringify(s))}}const dC={version:"1.0.0",name:"EmptyPage",componentsMeta:[],componentsTree:{componentName:Ei.ROOT_CONTAINER,props:{},children:[]}};class hC extends ke.default.Component{constructor(r){super(r);K(this,"currentSelectNode");K(this,"pluginManager");K(this,"workbenchRef",ke.default.createRef());K(this,"pageSchema");K(this,"pageModel");K(this,"material");K(this,"emitter");K(this,"updatePage",r=>{this.emitter.emit("updatePage"),console.log(r)});K(this,"updateDesignerAssets",r=>{console.log("updateDesignerAssets",r)});K(this,"updateMaterial",r=>{this.emitter.emit("updateMaterial"),console.log(r)});K(this,"refresh",()=>{this.emitter.emit("refresh"),console.log("refresh engine")});K(this,"getWorkbench",()=>this.workbenchRef.current);this.pageSchema=r.schema,this.material=r.material,this.currentSelectNode=null,window.__CHAMELEON_ENG__=this;try{this.pageModel=new ri(this.pageSchema,{materials:this.material||[],assetPackagesList:r.assetPackagesList||[]})}catch(n){console.error(n),this.pageModel=new ri(dC)}this.emitter=Yn()}updateCurrentSelectNode(r){this.currentSelectNode=r,this.emitter.emit("onSelectNodeChange",{node:r})}async componentDidMount(){var i,a,o,s;window.__C_ENGINE__=this;const r=this.props.plugins;this.pluginManager=new Wy({engine:this,getWorkbench:()=>this.workbenchRef.current,emitter:this.emitter,pageModel:this.pageModel,i18n:Zl,assets:this.props.assets||[]}),(a=(i=this.props).beforePluginRun)==null||a.call(i,{pluginManager:this.pluginManager});const n=r.map(u=>this.pluginManager.add(u));await Promise.all(n),this.pageModel.emitter.on("onReloadPage",()=>{var c;if(!this.currentSelectNode)return;const u=this.pageModel.getNode((c=this.currentSelectNode)==null?void 0:c.id);u&&this.updateCurrentSelectNode(u)}),(s=(o=this.props).onReady)==null||s.call(o,{pluginManager:this.pluginManager,engine:this})}getActiveNode(){var n;if(!((n=this.currentSelectNode)!=null&&n.id))return null;const r=this.pageModel.getNode(this.currentSelectNode.id);return this.currentSelectNode=r,r}render(){return I("div",{className:ay.engineContainer,children:I(ny,{ref:this.workbenchRef,emitter:this.emitter})})}}module.exports=hC;
|
|
376
|
+
data struct format is invalidate`);return o},Zv=e=>{const{data:t,message:n,throwError:r,dataStruct:o}=e;return PU(({data:i})=>{try{return qE(i,o),{isValidate:!0}}catch(a){let s=a;return a instanceof XE&&(s=a.failures().map(l=>`【${l.path.join(".")}】: ${l.message}
|
|
377
|
+
`)),{isValidate:!1,message:s,error:a}}})({data:t,message:n,throwError:r})};var Td=(e=>(e.ROOT_CONTAINER="RootContainer",e))(Td||{});const IU=zt({type:Qn(Sn.FUNCTION),value:Ae()}),_U=qv(YE(Oa,["componentName"]),zt({componentName:Qn("RootContainer")}));function TU(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const zl=TU(),MU=(e,t)=>{const n={...e,value:[]},r=e.value;let o=new wi([]);return t&&(o=t.materialsMode||new wi([])),r&&(vn(r)?n.value=r.map(i=>new rn(i,{parent:t,materials:o})):zn(r)&&n.value.push(new rn(r,{parent:t,materials:o}))),n};class Ea{constructor(t,n){vt(this,"nodeType","SLOT"),vt(this,"rawData"),vt(this,"parent"),vt(this,"emitter",zl),vt(this,"data"),vt(this,"id"),vt(this,"materialsMode"),this.parent=(n==null?void 0:n.parent)||null,this.rawData=t;const r=(n==null?void 0:n.materials)||new wi([]);this.materialsMode=r,this.id=To(),this.data=MU(t,this)}get value(){return this.data}export(t){const n=this.data,r=o=>{if(o instanceof rn)return o.export(t);if(zn(o)){const i={};return Object.keys(o||{}).forEach(a=>{i[a]=r(o[a])}),i}return vn(o)?o.map(i=>r(i)):(t==="design"&&delete o.id,o)};return r(n)}}const rN=e=>{let t=[];return e.forEach(n=>{const r=n;r.type?r.type===Th.SINGLE?t.push(r.content):r.type===Th.GROUP&&(t=[...t,...rN(r.content)]):t.push(n)}),t},Mh=(e,t,n)=>{if(e.type)return e.type===Sn.SLOT?new Ea(e,{parent:t,materials:n}):e;if(zn(e)){const r={};return Object.keys(e).forEach(o=>{r[o]=Dh(e[o],t,n)}),r}else return Array.isArray(e)?e.map(r=>Mh(r,t,n)):e},Dh=(e,t,n)=>zn(e)?Mh(e,t,n):vn(e)?e.map(r=>Mh(r,t,n)):e;let Na=class oN{constructor(t,n,r){vt(this,"nodeType","PROP"),vt(this,"rawData"),vt(this,"parent"),vt(this,"emitter",zl),vt(this,"data"),vt(this,"name"),vt(this,"materialsMode");const o=(r==null?void 0:r.materials)||new wi([]);this.materialsMode=o,this.parent=r==null?void 0:r.parent,this.rawData=n,this.name=t,this.data=Dh(n,this,o)}isIncludeSlot(){return!1}isIncludeExpression(){return!1}get value(){return this.data}updateValue(t){const n=this.data;this.data=Dh(t??n,this,this.materialsMode),this.emitter.emit("onPropChange",{value:this.data,preValue:n,node:this}),this.parent&&!(this.parent instanceof Ea)&&this.emitter.emit("onNodeChange",{value:this.parent.value,preValue:this.parent.value,node:this.parent})}get material(){const t=this.parent;if(t instanceof rn){const n=t.material;return rN((n==null?void 0:n.value.props)||[]).find(r=>r.name===this.name)}else return null}export(t){const n=this.data,r=o=>{if(o instanceof oN||o instanceof Ea||o instanceof rn)return o.export(t);if(vn(o))return o.map(i=>r(i));if(zn(o)){const i={};return Object.keys(o||{}).forEach(a=>{i[a]=r(o[a])}),i}return o};return r(n)}};const DU=e=>{if(typeof e=="string")return!0;Zv({data:e,dataStruct:Oa,throwError:!0})},TS=(e,t,n=new wi([]))=>{if(typeof e=="string")return e;const r={...e,id:e.id??To(),children:[],props:{},configure:KE(e.configure||{},{propsSetter:{},advanceSetter:{}})},o=Object.keys(e.props||{});return o.length&&o.forEach(i=>{var a;const s=(a=e.props)==null?void 0:a[i];if(s instanceof Na){r.props[i]=s;return}r.props[i]=new Na(i,s||"",{parent:t,materials:n})}),e.children&&(Array.isArray(e.children)?r.children=e.children.map(i=>{if(i instanceof rn)return i;if(zn(i)){const a=i;return new rn(a,{parent:t,materials:n})}else return i}):(e.children instanceof rn&&(r.children=[e.children]),r.children=[new rn(e.children,{parent:t,materials:n})])),r};class rn{constructor(t,n){vt(this,"nodeType","NODE"),vt(this,"rawData"),vt(this,"data"),vt(this,"emitter",zl),vt(this,"parent"),vt(this,"materialsModel"),vt(this,"listenerHandle"),vt(this,"onChangeCbQueue"),this.rawData=JSON.parse(JSON.stringify(t)),DU(t);const r=(n==null?void 0:n.materials)||new wi([]);this.parent=(n==null?void 0:n.parent)||null,this.materialsModel=r,this.data=TS(t,this,r),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener()}registerListener(){const t=n=>{const{node:r}=n;r===this&&r.id===this.id&&this.onChangeCbQueue.forEach(o=>o(n))};this.emitter.on("onNodeChange",t),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",t)})}onChange(t){return this.onChangeCbQueue.push(t),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(n=>n!==t)}}destroy(){this.listenerHandle.forEach(t=>t())}get id(){return this.data.id}get value(){return this.data}clone(t){const n={...this.export("design"),id:t||To()};return new rn(n,{materials:this.materialsModel})}updateValue(t){const n=this.data,r={...this.data,...t};this.data=TS(r,this),this.emitter.emit("onNodeChange",{value:r,preValue:n,node:this})}contains(t){return tm(this,t)}get props(){return this.data.props}get material(){const t=this.materialsModel;return t==null?void 0:t.findByComponentName(this.data.componentName)}getPlainProps(){const t=this.data,n={};return Object.keys(t.props||{}).forEach(r=>{n[r]=t.props[r].export("design")}),n}export(t){var n;const r=this.data;if(typeof r=="string")return r;const o={};Object.keys(r.props||{}).forEach(u=>{o[u]=r.props[u].export(t)});const i=(n=r.children)==null?void 0:n.map(u=>u instanceof rn?u.export(t):u),a=r.configure||{},s=a.propsSetter||{},l={};Object.keys(s).forEach(u=>{const d=NE(s,u,!1);d&&(l[u]=d)}),a.propsSetter=l,this.material&&this.materialsModel.usedMaterials.push(this.material);let c={...r,configure:a,props:o,children:i};return t==="design"&&delete c.id,c=em(c),c}}const MS=(e,t,n)=>{const r={...e,id:To(),props:{},componentName:Td.ROOT_CONTAINER,children:[],configure:KE(e.configure||{},{propsSetter:{},advanceSetter:{}})};let o=[];vn(e.children)?o=e.children.map(a=>a instanceof rn?a:zn(a)?new rn(a,{parent:t,materials:n}):a):e.children instanceof rn?o.push(e.children):e.children&&zn(e.children)&&o.push(new rn(e.children,{parent:t,materials:n}));const i=Object.keys(e.props||{});return i.length&&i.forEach(a=>{var s;const l=(s=e.props)==null?void 0:s[a];l instanceof Na?r.props[a]=l:r.props[a]=new Na(a,l||"",{parent:t,materials:n})}),r.children=o,r};let jh=class iN{constructor(t,{parent:n,materials:r}){vt(this,"rawData"),vt(this,"data"),vt(this,"nodeType",Td.ROOT_CONTAINER),vt(this,"emitter",zl),vt(this,"materialsModel"),vt(this,"listenerHandle"),vt(this,"onChangeCbQueue"),vt(this,"parent"),this.materialsModel=r,this.rawData=JSON.parse(JSON.stringify(t)),this.data=MS(t,this,r),this.listenerHandle=[],this.onChangeCbQueue=[],this.registerListener(),this.parent=n}registerListener(){const t=n=>{const{node:r}=n;r===this&&r.id===this.id&&this.onChangeCbQueue.forEach(o=>o(n))};this.emitter.on("onNodeChange",t),this.listenerHandle.push(()=>{this.emitter.off("onNodeChange",t)})}onChange(t){return this.onChangeCbQueue.push(t),()=>{this.onChangeCbQueue=this.onChangeCbQueue.filter(n=>n!==t)}}get id(){return this.data.id}get value(){return this.data}get props(){return this.data.props}get material(){const t=this.materialsModel;return t==null?void 0:t.findByComponentName(this.data.componentName)}updateValue(t){const n=this.data,r={...this.data,...t};this.data=MS(r,this,this.materialsModel),this.emitter.emit("onNodeChange",{value:this.data,preValue:n,node:this})}contains(t){return tm(this,t)}export(t=Qv.SAVE){var n;const r=this.data,o={};Object.keys(r.props||{}).forEach(l=>{o[l]=r.props[l].export(t)});const i=((n=r.children)==null?void 0:n.map(l=>{var c;return(c=l==null?void 0:l.export)==null?void 0:c.call(l,t)}))||[],a={...r,props:o,children:i.filter(l=>l)};let s=GE(a,["id"]);return s=em(s),s}getPlainProps(){const t=this.data,n={};return Object.keys(t.props||{}).forEach(r=>{n[r]=t.props[r].export("design")}),n}destroy(){this.listenerHandle.forEach(t=>t())}clone(t){const n={...this.export("design"),id:t||To()};return new iN(n,{materials:this.materialsModel,parent:null})}};const jU=e=>(e==null?void 0:e.type)===Sn.EXPRESSION,AU=e=>(e==null?void 0:e.type)==Sn.SLOT,To=()=>Math.random().toString(32).slice(3,9),kU=e=>(e==null?void 0:e.nodeType)==="NODE",em=e=>rU(e,t=>zn(t)?!Object.keys(t).length:vn(t)?!t.length:!t);function tm(e,t){const n=[e];for(;n.length;){const r=n.shift();if((r==null?void 0:r.id)===t)return r;const o=(r==null?void 0:r.props)||{},i=s=>{if(s instanceof rn){n.push(s);return}if(s instanceof Ea&&i(s.value.value),s instanceof Na){i(s.value);return}if(zn(s)){const l=s;Object.keys(l).map(c=>{i(l[c])});return}if(vn(s)){s.forEach(l=>{i(l)});return}};i(o);const a=(r==null?void 0:r.value.children.filter(s=>s instanceof rn))||[];n.push(...a)}return null}const LU=e=>{const t=zE(e),n=t.snippets;return delete t.snippets,t.snippets=n.map(r=>({...t,...r,id:r.id||`${e.componentName}-${To()}`,title:r.title||e.title,category:r.category||e.category,tags:[...r.tags||[],...e.tags||[]],groupName:r.groupName||e.groupName,snapshot:r.snapshot||e.icon,snapshotText:r.snapshotText,schema:{...r.schema,componentName:r.schema.componentName||e.componentName}})),t};let zU=class{constructor(t){vt(this,"rawData"),vt(this,"data"),this.rawData=t,this.data=LU(t)}get value(){return this.data}get rawValue(){return this.rawData}get componentName(){return this.data.componentName}get snippets(){return this.data.snippets}getSnippetById(t){return this.data.snippets.find(n=>n.id===t)}};const BU=e=>{if(!vn(e))throw new Error("Materials must be a array");return e.map(t=>new zU(t))},FU=e=>{e==null||e.forEach(t=>{Zv({data:t,dataStruct:RU,throwError:!0})})};class wi{constructor(t){vt(this,"rawData"),vt(this,"data"),vt(this,"usedMaterials",[]),this.rawData=t,FU(t),this.data=BU(t)}findByComponentName(t){return this.data.find(n=>n.componentName===t)}findSnippetById(t){const n=[...this.data];let r=null;for(;!r&&n.length;){const o=n.pop();r=o==null?void 0:o.getSnippetById(t)}return r}getAllSnippets(){let t=this.data.reduce((i,a)=>(i.push(...a.snippets),i),[]);const n=[],r={default:[]};t=t.sort((i,a)=>(i.category||"")>(a.category||"")?1:-1),t.forEach(i=>{const a=i.groupName||"default";n.includes(a)||(n.push(a),r[a]=[]),r[a].push(i)});const o=[];return n.forEach(i=>{const a=["default"],s={default:[]},l=r[i];if(l.length!==0){l.forEach(d=>{const f=d.category||"default";a.includes(f)||(a.push(f),s[f]=[]),s[f].push(d)});const c=[];a.forEach(d=>{s[d].length&&c.push({name:d,list:s[d]})});const u={name:i,list:c};o.push(u)}}),o}get value(){return this.data}get rawValue(){return this.rawData}}const VU=zt({version:Ae(),name:Ae(),css:ze(Ae()),renderType:ze(Wn([Qn("COMPONENT"),Qn("PAGE")])),methods:ze(hn(IU)),componentsMeta:hn(qv(zt({componentName:Ae()}),Yv)),thirdLibs:ze(SU),componentsTree:_U,assets:ze(hn($n()))}),HU=e=>(Zv({data:e,dataStruct:VU,throwError:!0}),e),qf=(e,t,n)=>({...e,componentsTree:new jh(e.componentsTree,{parent:t,materials:n})});let DS=class aN{constructor(t,n){vt(this,"nodeType","PAGE"),vt(this,"rawData"),vt(this,"emitter",zl),vt(this,"data"),vt(this,"parent"),vt(this,"materialsModel"),vt(this,"assetPackagesList"),HU(t),this.assetPackagesList=(n==null?void 0:n.assetPackagesList)||[],this.rawData=JSON.parse(JSON.stringify(t)),this.materialsModel=new wi((n==null?void 0:n.materials)||[]),this.data=qf(t,this,this.materialsModel)}updatePage(t){const n=this.data;this.rawData=JSON.parse(JSON.stringify(t)),this.data=qf(t,this,this.materialsModel),this.emitter.emit("onPageChange",{value:this.data,preValue:n,node:this})}reloadPage(t){const n=this.data;this.rawData=JSON.parse(JSON.stringify(t)),this.data=qf(t,this,this.materialsModel),this.emitter.emit("onReloadPage",{value:this.data,preValue:n,node:this})}get value(){return this.data}getNode(t){const n=this.data.componentsTree;return tm(n,t)}addNode(t,n,r="AFTER"){var o;if(r==="AFTER"||r==="BEFORE"){const i=n.parent;if(i===null&&n instanceof jh)return console.warn("Not found parent node"),!1;if(i instanceof Na)return console.warn("CProp can not add node"),!1;if(i instanceof Ea){const s=i.value.value,l=s.findIndex(c=>c===n)??-1;return l>=0?(r==="BEFORE"?s.splice(l,0,t):s.splice(l+1,0,t),t.parent=i,(o=i.parent)==null||o.updateValue(),!0):!1}if(i instanceof aN)return!1;const a=(i==null?void 0:i.value.children.findIndex(s=>s===n))??-1;return a>=0?(r==="BEFORE"?i==null||i.value.children.splice(a,0,t):i==null||i.value.children.splice(a+1,0,t),t.parent=i,i==null||i.updateValue(),!0):(console.warn("Not found target node"),!1)}if(r==="CHILD_START")return n.value.children.unshift(t),t.parent=n,n.updateValue(),!0;if(r==="CHILD_END")return n.value.children.push(t),t.parent=n,n.updateValue(),!0;if(zn(r)){const i=r;if(i.type==="CHILD"){const a=i.pos,s=i.index||0;return a==="BEFORE"?n==null||n.value.children.splice(s,0,t):n==null||n.value.children.splice(s+1,0,t),t.parent=n,n.updateValue(),!0}else console.warn("Can not parse pos obj")}return!1}createNode(t){return delete t.id,new rn(t,{parent:null,materials:this.materialsModel})}addNodeById(t,n,r="AFTER"){const o=this.getNode(n);return o?this.addNode(t,o,r):(console.warn(`Not find a node by ${n}, pls check it`),!1)}copyNode(t){const n=t.export("design");n.id=To();const r=new rn(n,{parent:t.parent,materials:this.materialsModel});return this.addNode(r,t,"AFTER"),r}copyNodeById(t){const n=this.getNode(t);return n&&n instanceof rn?this.copyNode(n):!1}moveNode(t,n,r){this.deleteNode(t);let o=n;return["AFTER","BEFORE"].includes(r)&&(o=n.parent),t.parent=o,this.addNode(t,n,r)}moveNodeById(t,n,r){const o=this.getNode(t),i=this.getNode(n);return o&&i&&o instanceof rn&&i instanceof rn?this.moveNode(o,i,r):!1}deleteNode(t){var n;const r=t.parent;if(!r)throw new Error("parent node is null or undefined, pls check it");if(r instanceof Ea){const o=r.value.value,i=o.findIndex(s=>s===t),a=o[i];return o.splice(i,1),(n=r.parent)==null||n.updateValue(),a}if(r instanceof rn||r instanceof jh){const o=r.value.children,i=o.findIndex(s=>s===t),a=o[i];return o.splice(i,1),r.updateValue(),a}}deleteNodeById(t){const n=this.getNode(t);if(n)return this.deleteNode(n)}export(t=Qv.SAVE){var n;const r=this.data.componentsTree.export(t),o=this.assetPackagesList,i=[],a=this.materialsModel.usedMaterials.map(l=>{const c=o.find(u=>{var d;return u.package===((d=l.value.npm)==null?void 0:d.package)});return c&&i.push(c),{componentName:l.componentName,...zE(l.value.npm||{})}}).filter(l=>{if(l.componentName&&l.package&&l.version)return!0});this.materialsModel.usedMaterials=[];let s={...this.data,componentsTree:em(r),componentsMeta:a,thirdLibs:this.data.thirdLibs,assets:[]};return(n=this.data.thirdLibs)==null||n.forEach(l=>{const c=o.find(u=>{u.package,u.package});c&&i.push(c)}),s.assets=uU(i,l=>l.package),s=GE(s,["id"]),JSON.parse(JSON.stringify(s))}};const WU={version:"1.0.0",name:"EmptyPage",componentsMeta:[],componentsTree:{componentName:Td.ROOT_CONTAINER,props:{},children:[]}};var UU=Object.defineProperty,KU=(e,t,n)=>t in e?UU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,St=(e,t,n)=>(KU(e,typeof t!="symbol"?t+"":t,n),n);const GU="_layoutContainer_1mubg_1",XU="_elementHighlightBox_1mubg_11",qU="_iframeBox_1mubg_18",YU={layoutContainer:GU,elementHighlightBox:XU,iframeBox:qU};class Ah{constructor(){St(this,"iframe"),St(this,"iframeStatus"),St(this,"readyQueue",[]),St(this,"errorQueue",[]),St(this,"loadError"),this.iframe=this.createIframe(),this.iframeStatus="INIT"}createIframe(){const t=document.createElement("iframe");return this.iframe=t,t.style.cssText="width: 100%; height: 100%; border: none; padding: 0; margin: 0; box-sizing: border-box; overflow: hidden",t}getHTMLTemplate(){return`
|
|
378
|
+
<!doctype html>
|
|
379
|
+
<html class="chameleon-design-mode">
|
|
380
|
+
<head>
|
|
381
|
+
<meta charset="utf-8"/>
|
|
382
|
+
<style>
|
|
383
|
+
html,body{
|
|
384
|
+
margin: 0;
|
|
385
|
+
padding: 0;
|
|
386
|
+
box-sizing: border-box;
|
|
387
|
+
width: 100%;
|
|
388
|
+
height: 100%;
|
|
389
|
+
}
|
|
390
|
+
</style>
|
|
391
|
+
</head>
|
|
392
|
+
<body>
|
|
393
|
+
<div id="app"><div>
|
|
394
|
+
</body>
|
|
395
|
+
</html> `}load(t){if(this.iframe)t.appendChild(this.iframe);else{console.warn("iframe not exits");return}const n=this.getDocument(),r=this.getWindow();if(!(n&&r))return;const o=this.getHTMLTemplate();n.write(o),n.close();const i=()=>{this.iframeStatus="LOADED";const a=this.readyQueue;this.readyQueue=[],a.forEach(s=>s()),n.removeEventListener("load",i)};i()}ready(t){if(this.iframeStatus==="LOADED"){t();return}this.iframeStatus==="INIT"&&this.readyQueue.push(t)}onLoadFailed(t){if(this.iframeStatus==="LOADED_FAILED"){t({msg:this.loadError});return}this.iframeStatus==="INIT"&&this.errorQueue.push(t)}getWindow(){var t;return(t=this.iframe)==null?void 0:t.contentWindow}getDocument(){var t;return(t=this.iframe)==null?void 0:t.contentDocument}injectJS(t){const n=this.getDocument();if(!n)return!1;const r=n.createElement("script");return r.src=t,new Promise((o,i)=>{r.onload=o,r.onerror=i,n.head.appendChild(r)})}injectJsText(t){const n=this.getDocument();if(!n)return!1;const r=n.createElement("script");return r.textContent=t,n.head.appendChild(r),!0}injectStyleText(t){const n=this.getDocument();if(!n)return!1;const r=n.createElement("style");return r.textContent=t,n.head.appendChild(r),!0}destroy(){var t,n;(n=(t=this.iframe)==null?void 0:t.parentNode)==null||n.removeChild(this.iframe),this.iframe=null}}function lr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n)}}const cl=e=>{let t;return typeof HTMLElement=="object"?t=function(n){return n instanceof HTMLElement}:t=function(n){return n&&typeof n=="object"&&n.nodeType===1&&typeof n.nodeName=="string"},t(e)},Md=e=>{let t=!0;const n=()=>{t&&(e(),requestAnimationFrame(n))};return requestAnimationFrame(n),()=>{t=!1}},sN=(e,t)=>{const n={};return e.forEach(r=>{if(r.globalName){const o=t[r.globalName];o&&(n[r.globalName]=o)}}),n},lN=(e,t=1)=>{let n=0,r=e,o={},i={};for(;n<t;)Object.keys(r).forEach(a=>{o={...o,...r[a]}}),i=o,r=o,o={},n+=1;return i},QU="_highlightBox_vl3g6_1",JU="_borderDrawBox_vl3g6_7",ZU="_toolBox_vl3g6_16",kh={highlightBox:QU,borderDrawBox:JU,toolBox:ZU};var ul={},eK={get exports(){return ul},set exports(e){ul=e}},ps={};/**
|
|
396
|
+
* @license React
|
|
397
|
+
* react-jsx-runtime.production.min.js
|
|
398
|
+
*
|
|
399
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
400
|
+
*
|
|
401
|
+
* This source code is licensed under the MIT license found in the
|
|
402
|
+
* LICENSE file in the root directory of this source tree.
|
|
403
|
+
*/var jS;function tK(){if(jS)return ps;jS=1;var e=O,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:p,props:d,_owner:o.current}}return ps.Fragment=n,ps.jsx=a,ps.jsxs=a,ps}var Rc={};/**
|
|
404
|
+
* @license React
|
|
405
|
+
* react-jsx-runtime.development.js
|
|
406
|
+
*
|
|
407
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
408
|
+
*
|
|
409
|
+
* This source code is licensed under the MIT license found in the
|
|
410
|
+
* LICENSE file in the root directory of this source tree.
|
|
411
|
+
*/var AS;function nK(){return AS||(AS=1,process.env.NODE_ENV!=="production"&&function(){var e=O,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function b(R){if(R===null||typeof R!="object")return null;var V=h&&R[h]||R[m];return typeof V=="function"?V:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(R){{for(var V=arguments.length,G=new Array(V>1?V-1:0),ue=1;ue<V;ue++)G[ue-1]=arguments[ue];C("error",R,G)}}function C(R,V,G){{var ue=g.ReactDebugCurrentFrame,be=ue.getStackAddendum();be!==""&&(V+="%s",G=G.concat([be]));var $e=G.map(function(de){return String(de)});$e.unshift("Warning: "+V),Function.prototype.apply.call(console[R],console,$e)}}var w=!1,y=!1,$=!1,E=!1,N=!1,P;P=Symbol.for("react.module.reference");function _(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===i||N||R===o||R===c||R===u||E||R===p||w||y||$||typeof R=="object"&&R!==null&&(R.$$typeof===f||R.$$typeof===d||R.$$typeof===a||R.$$typeof===s||R.$$typeof===l||R.$$typeof===P||R.getModuleId!==void 0))}function D(R,V,G){var ue=R.displayName;if(ue)return ue;var be=V.displayName||V.name||"";return be!==""?G+"("+be+")":G}function M(R){return R.displayName||"Context"}function I(R){if(R==null)return null;if(typeof R.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case s:var V=R;return M(V)+".Consumer";case a:var G=R;return M(G._context)+".Provider";case l:return D(R,R.render,"ForwardRef");case d:var ue=R.displayName||null;return ue!==null?ue:I(R.type)||"Memo";case f:{var be=R,$e=be._payload,de=be._init;try{return I(de($e))}catch{return null}}}return null}var T=Object.assign,j=0,A,B,H,U,J,F,z;function k(){}k.__reactDisabledLog=!0;function Q(){{if(j===0){A=console.log,B=console.info,H=console.warn,U=console.error,J=console.group,F=console.groupCollapsed,z=console.groupEnd;var R={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:R,log:R,warn:R,error:R,group:R,groupCollapsed:R,groupEnd:R})}j++}}function K(){{if(j--,j===0){var R={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},R,{value:A}),info:T({},R,{value:B}),warn:T({},R,{value:H}),error:T({},R,{value:U}),group:T({},R,{value:J}),groupCollapsed:T({},R,{value:F}),groupEnd:T({},R,{value:z})})}j<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=g.ReactCurrentDispatcher,te;function re(R,V,G){{if(te===void 0)try{throw Error()}catch(be){var ue=be.stack.trim().match(/\n( *(at )?)/);te=ue&&ue[1]||""}return`
|
|
412
|
+
`+te+R}}var ce=!1,ne;{var he=typeof WeakMap=="function"?WeakMap:Map;ne=new he}function ee(R,V){if(!R||ce)return"";{var G=ne.get(R);if(G!==void 0)return G}var ue;ce=!0;var be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Y.current,Y.current=null,Q();try{if(V){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(_t){ue=_t}Reflect.construct(R,[],de)}else{try{de.call()}catch(_t){ue=_t}R.call(de.prototype)}}else{try{throw Error()}catch(_t){ue=_t}R()}}catch(_t){if(_t&&ue&&typeof _t.stack=="string"){for(var le=_t.stack.split(`
|
|
413
|
+
`),De=ue.stack.split(`
|
|
414
|
+
`),je=le.length-1,Ve=De.length-1;je>=1&&Ve>=0&&le[je]!==De[Ve];)Ve--;for(;je>=1&&Ve>=0;je--,Ve--)if(le[je]!==De[Ve]){if(je!==1||Ve!==1)do if(je--,Ve--,Ve<0||le[je]!==De[Ve]){var dt=`
|
|
415
|
+
`+le[je].replace(" at new "," at ");return R.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",R.displayName)),typeof R=="function"&&ne.set(R,dt),dt}while(je>=1&&Ve>=0);break}}}finally{ce=!1,Y.current=$e,K(),Error.prepareStackTrace=be}var on=R?R.displayName||R.name:"",Yn=on?re(on):"";return typeof R=="function"&&ne.set(R,Yn),Yn}function q(R,V,G){return ee(R,!1)}function oe(R){var V=R.prototype;return!!(V&&V.isReactComponent)}function ve(R,V,G){if(R==null)return"";if(typeof R=="function")return ee(R,oe(R));if(typeof R=="string")return re(R);switch(R){case c:return re("Suspense");case u:return re("SuspenseList")}if(typeof R=="object")switch(R.$$typeof){case l:return q(R.render);case d:return ve(R.type,V,G);case f:{var ue=R,be=ue._payload,$e=ue._init;try{return ve($e(be),V,G)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,ye={},me=g.ReactDebugCurrentFrame;function Ee(R){if(R){var V=R._owner,G=ve(R.type,R._source,V?V.type:null);me.setExtraStackFrame(G)}else me.setExtraStackFrame(null)}function Oe(R,V,G,ue,be){{var $e=Function.call.bind(fe);for(var de in R)if($e(R,de)){var le=void 0;try{if(typeof R[de]!="function"){var De=Error((ue||"React class")+": "+G+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof R[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw De.name="Invariant Violation",De}le=R[de](V,de,ue,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){le=je}le&&!(le instanceof Error)&&(Ee(be),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ue||"React class",G,de,typeof le),Ee(null)),le instanceof Error&&!(le.message in ye)&&(ye[le.message]=!0,Ee(be),S("Failed %s type: %s",G,le.message),Ee(null))}}}var bt=Array.isArray;function pt(R){return bt(R)}function rt(R){{var V=typeof Symbol=="function"&&Symbol.toStringTag,G=V&&R[Symbol.toStringTag]||R.constructor.name||"Object";return G}}function st(R){try{return We(R),!1}catch{return!0}}function We(R){return""+R}function Ue(R){if(st(R))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rt(R)),We(R)}var tt=g.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},Ie,_e,lt;lt={};function Ct(R){if(fe.call(R,"ref")){var V=Object.getOwnPropertyDescriptor(R,"ref").get;if(V&&V.isReactWarning)return!1}return R.ref!==void 0}function Ce(R){if(fe.call(R,"key")){var V=Object.getOwnPropertyDescriptor(R,"key").get;if(V&&V.isReactWarning)return!1}return R.key!==void 0}function Te(R,V){if(typeof R.ref=="string"&&tt.current&&V&&tt.current.stateNode!==V){var G=I(tt.current.type);lt[G]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(tt.current.type),R.ref),lt[G]=!0)}}function Ye(R,V){{var G=function(){Ie||(Ie=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};G.isReactWarning=!0,Object.defineProperty(R,"key",{get:G,configurable:!0})}}function Qe(R,V){{var G=function(){_e||(_e=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};G.isReactWarning=!0,Object.defineProperty(R,"ref",{get:G,configurable:!0})}}var Et=function(R,V,G,ue,be,$e,de){var le={$$typeof:t,type:R,key:V,ref:G,props:de,_owner:$e};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function It(R,V,G,ue,be){{var $e,de={},le=null,De=null;G!==void 0&&(Ue(G),le=""+G),Ce(V)&&(Ue(V.key),le=""+V.key),Ct(V)&&(De=V.ref,Te(V,be));for($e in V)fe.call(V,$e)&&!qe.hasOwnProperty($e)&&(de[$e]=V[$e]);if(R&&R.defaultProps){var je=R.defaultProps;for($e in je)de[$e]===void 0&&(de[$e]=je[$e])}if(le||De){var Ve=typeof R=="function"?R.displayName||R.name||"Unknown":R;le&&Ye(de,Ve),De&&Qe(de,Ve)}return Et(R,le,De,be,ue,tt.current,de)}}var Ne=g.ReactCurrentOwner,Re=g.ReactDebugCurrentFrame;function Se(R){if(R){var V=R._owner,G=ve(R.type,R._source,V?V.type:null);Re.setExtraStackFrame(G)}else Re.setExtraStackFrame(null)}var xe;xe=!1;function Pe(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Ge(){{if(Ne.current){var R=I(Ne.current.type);if(R)return`
|
|
416
|
+
|
|
417
|
+
Check the render method of \``+R+"`."}return""}}function ht(R){{if(R!==void 0){var V=R.fileName.replace(/^.*[\\\/]/,""),G=R.lineNumber;return`
|
|
418
|
+
|
|
419
|
+
Check your code at `+V+":"+G+"."}return""}}var ut={};function se(R){{var V=Ge();if(!V){var G=typeof R=="string"?R:R.displayName||R.name;G&&(V=`
|
|
420
|
+
|
|
421
|
+
Check the top-level render call using <`+G+">.")}return V}}function pe(R,V){{if(!R._store||R._store.validated||R.key!=null)return;R._store.validated=!0;var G=se(V);if(ut[G])return;ut[G]=!0;var ue="";R&&R._owner&&R._owner!==Ne.current&&(ue=" It was passed a child from "+I(R._owner.type)+"."),Se(R),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,ue),Se(null)}}function ge(R,V){{if(typeof R!="object")return;if(pt(R))for(var G=0;G<R.length;G++){var ue=R[G];Pe(ue)&&pe(ue,V)}else if(Pe(R))R._store&&(R._store.validated=!0);else if(R){var be=b(R);if(typeof be=="function"&&be!==R.entries)for(var $e=be.call(R),de;!(de=$e.next()).done;)Pe(de.value)&&pe(de.value,V)}}}function Me(R){{var V=R.type;if(V==null||typeof V=="string")return;var G;if(typeof V=="function")G=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===l||V.$$typeof===d))G=V.propTypes;else return;if(G){var ue=I(V);Oe(G,R.props,"prop",ue,R)}else if(V.PropTypes!==void 0&&!xe){xe=!0;var be=I(V);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",be||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(R){{for(var V=Object.keys(R.props),G=0;G<V.length;G++){var ue=V[G];if(ue!=="children"&&ue!=="key"){Se(R),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),Se(null);break}}R.ref!==null&&(Se(R),S("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}function it(R,V,G,ue,be,$e){{var de=_(R);if(!de){var le="";(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var De=ht(be);De?le+=De:le+=Ge();var je;R===null?je="null":pt(R)?je="array":R!==void 0&&R.$$typeof===t?(je="<"+(I(R.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):je=typeof R,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,le)}var Ve=It(R,V,G,be,$e);if(Ve==null)return Ve;if(de){var dt=V.children;if(dt!==void 0)if(ue)if(pt(dt)){for(var on=0;on<dt.length;on++)ge(dt[on],R);Object.freeze&&Object.freeze(dt)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(dt,R)}return R===r?Xe(Ve):Me(Ve),Ve}}function Dt(R,V,G){return it(R,V,G,!0)}function wt(R,V,G){return it(R,V,G,!1)}var Mt=wt,ct=Dt;Rc.Fragment=r,Rc.jsx=Mt,Rc.jsxs=ct}()),Rc}(function(e){process.env.NODE_ENV==="production"?e.exports=tK():e.exports=nK()})(eK);const nm=ul.Fragment,Hn=ul.jsx,rK=ul.jsxs,oK=({instance:e,toolRender:t,getRef:n,onRefDestroy:r,style:o})=>{const[i,a]=O.useState({}),[s,l]=O.useState(),c=O.useRef(null),u=O.useRef(null),[d,f]=O.useState(),p=O.useRef();p.current=e;const h=b=>{var g;let S=ln.findDOMNode(b);const C=(g=e._NODE_MODEL.material)==null?void 0:g.value.rootSelector;return C&&(S=S.querySelector(C)||S),cl(S)?(f(S),!0):!1};O.useEffect(()=>{if(n==null||n(c),(e==null?void 0:e._STATUS)!=="DESTROY")return h(e),()=>{r==null||r(c)}},[]),O.useEffect(()=>{const b=Md(()=>{m()});return()=>{b()}},[]);const m=O.useCallback(()=>{var b;const g=p.current;let S=null;if((g==null?void 0:g._STATUS)==="DESTROY")return;let C=ln.findDOMNode(g);const w=(b=e._NODE_MODEL.material)==null?void 0:b.value.rootSelector;if(w&&(C=C.querySelector(w)||C),cl(C))S=C,f(S);else return;const y=S.getBoundingClientRect(),$=`translate3d(${y==null?void 0:y.left}px, ${y.top}px, 0)`,E={width:(y==null?void 0:y.width)+"px",height:(y==null?void 0:y.height)+"px",transform:$};if((y==null?void 0:y.width)===0||(y==null?void 0:y.height)===0){l(void 0);return}l(y);const N=document.getElementById((g==null?void 0:g._UNIQUE_ID)||"");N&&(N.style.transform=$,N.style.width=(y==null?void 0:y.width)+"px",N.style.height=(y==null?void 0:y.height)+"px"),a(E)},[]);return O.useEffect(()=>{m()},[e]),c.current={update(){m()}},!d||!e?Hn(nm,{}):Hn("div",{className:kh.highlightBox,id:e==null?void 0:e._UNIQUE_ID,style:{...o,...i,opacity:s?1:0},children:t&&Hn("div",{ref:u,className:kh.toolBox,children:t})})},iK=({instances:e,toolRender:t,style:n},r)=>{const o=O.useRef([]);O.useImperativeHandle(r,()=>({update(){o.current.forEach(a=>{var s;(s=a.current)==null||s.update()})}}),[]);const i=a=>{const s=o.current||[];o.current=s.filter(l=>l!==a)};return Hn("div",{className:kh.borderDrawBox,children:e.map(a=>!a||a._STATUS==="DESTROY"?null:Hn(oK,{style:n,instance:a,toolRender:t,getRef:s=>{s.current&&o.current.push(s)},onRefDestroy:i},a==null?void 0:a._UNIQUE_ID))})},kS=O.forwardRef(iK);function cN(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}class uN{constructor(){St(this,"emitter"),this.emitter=cN()}}class Bl extends uN{constructor(t){super(),St(this,"eventPriority",0),St(this,"offset",{x:0,y:0}),St(this,"container"),St(this,"offsetDom"),St(this,"canDrag",n=>n),St(this,"canDrop",n=>n),St(this,"eventDisposeQueue",[]),St(this,"name"),this.name=t.name,this.eventPriority=t.eventPriority||this.eventPriority,this.container=t.container,t.offset&&(this.offset=t.offset||{x:0,y:0}),this.offsetDom=t.offsetDom,this.registerEvent(),this.registerSyncOffsetEvent()}registerSyncOffsetEvent(){const t=this.offsetDom;if(!t)return;const n=window.setInterval(()=>{const r=t.getBoundingClientRect();this.offset={x:r.x,y:r.y}},250);this.eventDisposeQueue.push(()=>{clearInterval(n)})}registerEvent(){const t=this.container;this.eventDisposeQueue.push(lr(t,"mouseenter",n=>{this.emitter.emit("onEnter",{sensor:this,event:n})})),this.eventDisposeQueue.push(lr(t,"mouseleave",n=>{this.emitter.emit("onLeave",{sensor:this,event:n})})),this.eventDisposeQueue.push(lr(t,"mousedown",n=>{this.emitter.emit("onMouseChange",{sensor:this,pointer:this.getPointer(n),event:n}),this.emitter.emit("onMouseDown",{sensor:this,pointer:this.getPointer(n),event:n})},!0)),this.eventDisposeQueue.push(lr(t,"mouseup",n=>{this.emitter.emit("onMouseChange",{sensor:this,pointer:this.getPointer(n),event:n}),this.emitter.emit("onMouseUp",{sensor:this,pointer:this.getPointer(n),event:n})},!0)),this.eventDisposeQueue.push(lr(t,"mousemove",n=>{this.emitter.emit("onMouseMove",{sensor:this,pointer:this.getPointer(n),event:n}),this.emitter.emit("onMouseChange",{sensor:this,pointer:this.getPointer(n),event:n})},!0)),this.eventDisposeQueue.push(lr(t,"click",n=>{this.emitter.emit("onClick",{sensor:this,event:n})},!0))}getPointer(t){return{x:this.offset.x+t.clientX,y:this.offset.y+t.clientY}}updateOffset(t){this.offset=t}getOffset(){return this.offset}setCanDrag(t){this.canDrag=t}setCanDrop(t){this.canDrop=t}destroy(){this.eventDisposeQueue.forEach(t=>t())}}var aK=typeof global=="object"&&global&&global.Object===Object&&global;const sK=aK;var lK=typeof self=="object"&&self&&self.Object===Object&&self,cK=sK||lK||Function("return this")();const dN=cK;var uK=dN.Symbol;const Ru=uK;var fN=Object.prototype,dK=fN.hasOwnProperty,fK=fN.toString,hs=Ru?Ru.toStringTag:void 0;function pK(e){var t=dK.call(e,hs),n=e[hs];try{e[hs]=void 0;var r=!0}catch{}var o=fK.call(e);return r&&(t?e[hs]=n:delete e[hs]),o}var hK=Object.prototype,gK=hK.toString;function vK(e){return gK.call(e)}var mK="[object Null]",bK="[object Undefined]",LS=Ru?Ru.toStringTag:void 0;function yK(e){return e==null?e===void 0?bK:mK:LS&&LS in Object(e)?pK(e):vK(e)}function SK(e){return e!=null&&typeof e=="object"}var wK="[object Symbol]";function xK(e){return typeof e=="symbol"||SK(e)&&yK(e)==wK}var CK=/\s/;function $K(e){for(var t=e.length;t--&&CK.test(e.charAt(t)););return t}var OK=/^\s+/;function EK(e){return e&&e.slice(0,$K(e)+1).replace(OK,"")}function Lh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zS=0/0,NK=/^[-+]0x[0-9a-f]+$/i,RK=/^0b[01]+$/i,PK=/^0o[0-7]+$/i,IK=parseInt;function BS(e){if(typeof e=="number")return e;if(xK(e))return zS;if(Lh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Lh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=EK(e);var n=RK.test(e);return n||PK.test(e)?IK(e.slice(2),n?2:8):NK.test(e)?zS:+e}var _K=function(){return dN.Date.now()};const Yf=_K;var TK="Expected a function",MK=Math.max,DK=Math.min;function jK(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(TK);t=BS(t)||0,Lh(n)&&(u=!!n.leading,d="maxWait"in n,i=d?MK(BS(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p($){var E=r,N=o;return r=o=void 0,c=$,a=e.apply(N,E),a}function h($){return c=$,s=setTimeout(g,t),u?p($):a}function m($){var E=$-l,N=$-c,P=t-E;return d?DK(P,i-N):P}function b($){var E=$-l,N=$-c;return l===void 0||E>=t||E<0||d&&N>=i}function g(){var $=Yf();if(b($))return S($);s=setTimeout(g,m($))}function S($){return s=void 0,f&&r?p($):(r=o=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function w(){return s===void 0?a:S(Yf())}function y(){var $=Yf(),E=b($);if(r=arguments,o=this,l=$,E){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return y.cancel=C,y.flush=w,y}class pN{constructor(t){St(this,"senors",[]),St(this,"senorEventPriorityQueueMap",{}),St(this,"doc"),St(this,"pointer",{x:0,y:0}),St(this,"shakeDistance",4),St(this,"eventHandler",[]),St(this,"currentSensor",null),St(this,"currentState","NORMAL"),St(this,"dragStartObj",null),St(this,"emitter",cN()),St(this,"canTriggerClick",!0),St(this,"flushSenorEventPriorityQueueMap",jK(i=>{const a=this.senorEventPriorityQueueMap[i];this.senorEventPriorityQueueMap[i]=[],a.sort((s,l)=>l.priority-s.priority),a.forEach(s=>{s.handle()})},10));var n,r;this.doc=t.doc,((n=t.dragConfig)==null?void 0:n.shakeDistance)!==void 0&&(this.shakeDistance=(r=t.dragConfig)==null?void 0:r.shakeDistance);const o=new Bl({name:"globalSensor",container:this.doc});o.setCanDrag(()=>null),o.emitter.on("onMouseMove",i=>{if(!(this.currentState==="DRAGGING"&&this.currentSensor==null))return;this.emitter.emit("onMouseMove",i);const a=o.canDrop({...i,extraData:{...this.dragStartObj.extraData}});if(!a)return;const{pointer:s,event:l}=i,c={from:this.dragStartObj.event,fromSensor:this.dragStartObj.sensor,fromPointer:this.dragStartObj.pointer,extraData:{...this.dragStartObj.extraData,...(a==null?void 0:a.extraData)||{}},current:l,currentSensor:null,pointer:s},u="dragging";this.emitter.emit(u,c),this.batchSensorEmit(u,c)}),o.emitter.on("onMouseUp",i=>{this.currentSensor===null&&(this.currentState="NORMAL",this.dragStartObj=null,this.batchSensorEmit("dragEnd",{}))})}batchSensorEmit(t,n){this.senors.forEach(r=>{r.emitter.emit(t,n)})}registerSensor(t,n){const{banEvent:r=!0}=n||{};this.senors.push(t),t.emitter.on("onClick",s=>{const{event:l}=s;if(!this.canTriggerClick){l.stopPropagation(),l.preventDefault(),l.stopImmediatePropagation();return}this.emitter.emit("click",{sensor:s.sensor,event:s.event})});const o=s=>{this.dragStartObj=s;const{event:l}=s;r&&(l.stopPropagation(),l.preventDefault())};t.emitter.on("onMouseDown",o),this.eventHandler.push(()=>{t.emitter.off("onMouseDown",o)});const i=s=>{var l;this.emitter.emit("onMouseMove",s);const{sensor:c,pointer:u,event:d}=s;if(d.buttons===0)return;if(this.currentState!=="DRAGGING"){if(this.dragStartObj===null||c!==((l=this.dragStartObj)==null?void 0:l.sensor))return;const m=u,b=this.dragStartObj.pointer,g=this.shakeDistance;if(!(Math.pow(m.y-b.y,2)+Math.pow(m.x-b.x,2)>g))return;const S=this.dragStartObj.sensor.canDrag(this.dragStartObj);if(!S)return;this.dragStartObj=S,this.currentState="DRAGGING";const C="dragStart",w={from:this.dragStartObj.event,fromSensor:this.dragStartObj.sensor,fromPointer:u,pointer:this.dragStartObj.pointer,extraData:this.dragStartObj.extraData||{}};this.emitter.emit(C,w),this.batchSensorEmit(C,w);return}const f=c.canDrop({...s,extraData:{...this.dragStartObj.extraData}});if(!f)return;const p={from:this.dragStartObj.event,fromSensor:this.dragStartObj.sensor,fromPointer:this.dragStartObj.pointer,extraData:{...this.dragStartObj.extraData,...(f==null?void 0:f.extraData)||{}},current:d,currentSensor:c,pointer:u},h="dragging";this.emitter.emit(h,p),this.batchSensorEmit(h,p)};t.emitter.on("onMouseMove",i),this.eventHandler.push(()=>{t==null||t.emitter.off("onMouseMove",i)});const a=({sensor:s,event:l,pointer:c})=>{if(this.currentState==="DRAGGING"){this.canTriggerClick=!1,setTimeout(()=>{this.canTriggerClick=!0},100);const u="dragEnd";this.currentState="NORMAL";const d={from:this.dragStartObj.event,fromSensor:this.dragStartObj.sensor,fromPointer:this.dragStartObj.pointer,extraData:this.dragStartObj.extraData||{},current:l,currentSensor:s,pointer:c};this.emitter.emit(u,d),this.batchSensorEmit(u,d);const f=s.canDrop({sensor:s,event:l,pointer:c,extraData:{...this.dragStartObj.extraData}});if(f){const p="drop",h={from:this.dragStartObj.event,fromSensor:this.dragStartObj.sensor,fromPointer:this.dragStartObj.pointer,extraData:{...this.dragStartObj.extraData,...(f==null?void 0:f.extraData)||{}},current:l,currentSensor:s,pointer:c};this.emitter.emit(p,h),this.batchSensorEmit(p,h)}}this.dragStartObj=null};t.emitter.on("onMouseUp",a),this.eventHandler.push(()=>{t.emitter.off("onMouseUp",a)}),t.emitter.on("onEnter",()=>{this.currentSensor=t}),t.emitter.on("onLeave",()=>{this.currentSensor=null}),this.eventHandler.push(()=>{t.emitter.off("onMouseUp",a)})}}const AK="_highlightBox_1dlxo_1",kK="_borderDrawBox_1dlxo_6",LK="_toolBox_1dlxo_16",zK="_horizontal_1dlxo_24",BK="_before_1dlxo_24",FK="_after_1dlxo_27",VK="_vertical_1dlxo_31",HK="_current_1dlxo_38",Bo={highlightBox:AK,borderDrawBox:kK,toolBox:LK,horizontal:zK,before:BK,after:FK,vertical:VK,current:HK};function hN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=hN(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function WK(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=hN(e))&&(r&&(r+=" "),r+=t);return r}const UK=({instance:e,toolRender:t,getRef:n,onRefDestroy:r,style:o,mouseEvent:i,onDropInfoChange:a,dropInfo:s})=>{const[l,c]=O.useState({}),[u,d]=O.useState([]),[f,p]=O.useState(),h=O.useRef(null),[m,b]=O.useState({width:0,height:0}),g=O.useRef(null),[S,C]=O.useState();O.useEffect(()=>{if(n==null||n(h),(e==null?void 0:e._STATUS)==="DESTROY")return;const $=ln.findDOMNode(e);return cl($)&&C($),()=>{r==null||r(h)}},[]);const w=O.useRef();w.current=()=>{const $=g.current,E=$==null?void 0:$.getBoundingClientRect();E&&b({width:E.width,height:E.height})},O.useEffect(()=>{const $=Md(()=>{var E;(E=w.current)==null||E.call(w)});return()=>{$()}},[]);const y=O.useCallback(()=>{let $=null;if((e==null?void 0:e._STATUS)==="DESTROY")return;const E=ln.findDOMNode(e);if(cl(E))$=E,C($);else return;if(!i)return a==null||a(null),null;if(!(e!=null&&e._NODE_MODEL)){console.warn("node not exits");return}const N=$.getBoundingClientRect();if(p(N),s.pos==="current"){const D=`translate3d(${N==null?void 0:N.left}px, ${N.top}px, 0)`;c({width:`${N.width}px`,height:`${N.height}px`,transform:D})}else{const D=`translate3d(${(N==null?void 0:N.left)-2}px, ${N.top-2}px, 0)`,M={width:(N==null?void 0:N.width)+2*2+"px",height:(N==null?void 0:N.height)+2*2+"px",transform:D},I=document.getElementById((e==null?void 0:e._UNIQUE_ID)||"");I&&(I.style.transform=D,I.style.width=(N==null?void 0:N.width)+"px",I.style.height=(N==null?void 0:N.height)+"px"),c(M)}const P={horizontal:Bo.horizontal,vertical:Bo.vertical,before:Bo.before,after:Bo.after,current:Bo.current},_=[P[s.direction],P[s.pos]];d(_),i!=null&&i.extraData.dropInfo&&(s={...s,...i==null?void 0:i.extraData.dropInfo}),a==null||a(s)},[e,i]);return O.useEffect(()=>{y()},[e,i]),h.current={update(){y()}},!S||!e?Hn(nm,{}):Hn("div",{className:WK([Bo.highlightBox,...u]),id:e==null?void 0:e._UNIQUE_ID,style:{...o,...l,opacity:f?1:0},children:t&&Hn("div",{ref:g,className:Bo.toolBox,style:{top:`-${m.height+5}px`,opacity:m.width?1:0},children:t})})},KK=({instances:e,toolRender:t,style:n,mouseEvent:r,onDropInfoChange:o,dropInfos:i},a)=>{const[s,l]=O.useState(0),c=O.useRef([]);O.useImperativeHandle(a,()=>({update(){l(s+1),c.current.forEach(d=>{var f;(f=d.current)==null||f.update()})}}),[l,s]);const u=d=>{const f=c.current||[];c.current=f.filter(p=>p!==d)};return Hn("div",{className:Bo.borderDrawBox,children:e.map((d,f)=>d?Hn(UK,{mouseEvent:r,style:n,instance:d,toolRender:t,dropInfo:i[f],getRef:p=>{p.current&&c.current.push(p)},onRefDestroy:u},d==null?void 0:d._UNIQUE_ID):null)})},GK=O.forwardRef(KK);var XK=typeof global=="object"&&global&&global.Object===Object&&global;const gN=XK;var qK=typeof self=="object"&&self&&self.Object===Object&&self,YK=gN||qK||Function("return this")();const so=YK;var QK=so.Symbol;const Er=QK;var vN=Object.prototype,JK=vN.hasOwnProperty,ZK=vN.toString,gs=Er?Er.toStringTag:void 0;function eG(e){var t=JK.call(e,gs),n=e[gs];try{e[gs]=void 0;var r=!0}catch{}var o=ZK.call(e);return r&&(t?e[gs]=n:delete e[gs]),o}var tG=Object.prototype,nG=tG.toString;function rG(e){return nG.call(e)}var oG="[object Null]",iG="[object Undefined]",FS=Er?Er.toStringTag:void 0;function Ti(e){return e==null?e===void 0?iG:oG:FS&&FS in Object(e)?eG(e):rG(e)}function oo(e){return e!=null&&typeof e=="object"}var aG="[object Symbol]";function rm(e){return typeof e=="symbol"||oo(e)&&Ti(e)==aG}function mN(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var sG=Array.isArray;const fr=sG;var lG=1/0,VS=Er?Er.prototype:void 0,HS=VS?VS.toString:void 0;function bN(e){if(typeof e=="string")return e;if(fr(e))return mN(e,bN)+"";if(rm(e))return HS?HS.call(e):"";var t=e+"";return t=="0"&&1/e==-lG?"-0":t}function Mo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function om(e){return e}var cG="[object AsyncFunction]",uG="[object Function]",dG="[object GeneratorFunction]",fG="[object Proxy]";function im(e){if(!Mo(e))return!1;var t=Ti(e);return t==uG||t==dG||t==cG||t==fG}var pG=so["__core-js_shared__"];const Qf=pG;var WS=function(){var e=/[^.]+$/.exec(Qf&&Qf.keys&&Qf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hG(e){return!!WS&&WS in e}var gG=Function.prototype,vG=gG.toString;function Mi(e){if(e!=null){try{return vG.call(e)}catch{}try{return e+""}catch{}}return""}var mG=/[\\^$.*+?()[\]{}|]/g,bG=/^\[object .+?Constructor\]$/,yG=Function.prototype,SG=Object.prototype,wG=yG.toString,xG=SG.hasOwnProperty,CG=RegExp("^"+wG.call(xG).replace(mG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $G(e){if(!Mo(e)||hG(e))return!1;var t=im(e)?CG:bG;return t.test(Mi(e))}function OG(e,t){return e==null?void 0:e[t]}function Di(e,t){var n=OG(e,t);return $G(n)?n:void 0}var EG=Di(so,"WeakMap");const zh=EG;var US=Object.create,NG=function(){function e(){}return function(t){if(!Mo(t))return{};if(US)return US(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const RG=NG;function PG(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function IG(){}function yN(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var _G=800,TG=16,MG=Date.now;function DG(e){var t=0,n=0;return function(){var r=MG(),o=TG-(r-n);if(n=r,o>0){if(++t>=_G)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jG(e){return function(){return e}}var AG=function(){try{var e=Di(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Pu=AG;var kG=Pu?function(e,t){return Pu(e,"toString",{configurable:!0,enumerable:!1,value:jG(t),writable:!0})}:om;const LG=kG;var zG=DG(LG);const SN=zG;function BG(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function FG(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function VG(e){return e!==e}function HG(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function WG(e,t,n){return t===t?HG(e,t,n):FG(e,VG,n)}function UG(e,t){var n=e==null?0:e.length;return!!n&&WG(e,t,0)>-1}var KG=9007199254740991,GG=/^(?:0|[1-9]\d*)$/;function am(e,t){var n=typeof e;return t=t??KG,!!t&&(n=="number"||n!="symbol"&&GG.test(e))&&e>-1&&e%1==0&&e<t}function sm(e,t,n){t=="__proto__"&&Pu?Pu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Fl(e,t){return e===t||e!==e&&t!==t}var XG=Object.prototype,qG=XG.hasOwnProperty;function wN(e,t,n){var r=e[t];(!(qG.call(e,t)&&Fl(r,n))||n===void 0&&!(t in e))&&sm(e,t,n)}function qa(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?sm(n,s,l):wN(n,s,l)}return n}var KS=Math.max;function xN(e,t,n){return t=KS(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=KS(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),PG(e,this,s)}}function CN(e,t){return SN(xN(e,t,om),e+"")}var YG=9007199254740991;function lm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YG}function Dd(e){return e!=null&&lm(e.length)&&!im(e)}function QG(e,t,n){if(!Mo(n))return!1;var r=typeof t;return(r=="number"?Dd(n)&&am(t,n.length):r=="string"&&t in n)?Fl(n[t],e):!1}function JG(e){return CN(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&QG(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var ZG=Object.prototype;function cm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ZG;return e===n}function eX(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var tX="[object Arguments]";function GS(e){return oo(e)&&Ti(e)==tX}var $N=Object.prototype,nX=$N.hasOwnProperty,rX=$N.propertyIsEnumerable,oX=GS(function(){return arguments}())?GS:function(e){return oo(e)&&nX.call(e,"callee")&&!rX.call(e,"callee")};const dl=oX;function iX(){return!1}var ON=typeof exports=="object"&&exports&&!exports.nodeType&&exports,XS=ON&&typeof module=="object"&&module&&!module.nodeType&&module,aX=XS&&XS.exports===ON,qS=aX?so.Buffer:void 0,sX=qS?qS.isBuffer:void 0,lX=sX||iX;const fl=lX;var cX="[object Arguments]",uX="[object Array]",dX="[object Boolean]",fX="[object Date]",pX="[object Error]",hX="[object Function]",gX="[object Map]",vX="[object Number]",mX="[object Object]",bX="[object RegExp]",yX="[object Set]",SX="[object String]",wX="[object WeakMap]",xX="[object ArrayBuffer]",CX="[object DataView]",$X="[object Float32Array]",OX="[object Float64Array]",EX="[object Int8Array]",NX="[object Int16Array]",RX="[object Int32Array]",PX="[object Uint8Array]",IX="[object Uint8ClampedArray]",_X="[object Uint16Array]",TX="[object Uint32Array]",Jt={};Jt[$X]=Jt[OX]=Jt[EX]=Jt[NX]=Jt[RX]=Jt[PX]=Jt[IX]=Jt[_X]=Jt[TX]=!0;Jt[cX]=Jt[uX]=Jt[xX]=Jt[dX]=Jt[CX]=Jt[fX]=Jt[pX]=Jt[hX]=Jt[gX]=Jt[vX]=Jt[mX]=Jt[bX]=Jt[yX]=Jt[SX]=Jt[wX]=!1;function MX(e){return oo(e)&&lm(e.length)&&!!Jt[Ti(e)]}function um(e){return function(t){return e(t)}}var EN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,js=EN&&typeof module=="object"&&module&&!module.nodeType&&module,DX=js&&js.exports===EN,Jf=DX&&gN.process,jX=function(){try{var e=js&&js.require&&js.require("util").types;return e||Jf&&Jf.binding&&Jf.binding("util")}catch{}}();const Ra=jX;var YS=Ra&&Ra.isTypedArray,AX=YS?um(YS):MX;const dm=AX;var kX=Object.prototype,LX=kX.hasOwnProperty;function NN(e,t){var n=fr(e),r=!n&&dl(e),o=!n&&!r&&fl(e),i=!n&&!r&&!o&&dm(e),a=n||r||o||i,s=a?eX(e.length,String):[],l=s.length;for(var c in e)(t||LX.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||am(c,l)))&&s.push(c);return s}function RN(e,t){return function(n){return e(t(n))}}var zX=RN(Object.keys,Object);const BX=zX;var FX=Object.prototype,VX=FX.hasOwnProperty;function HX(e){if(!cm(e))return BX(e);var t=[];for(var n in Object(e))VX.call(e,n)&&n!="constructor"&&t.push(n);return t}function jd(e){return Dd(e)?NN(e):HX(e)}function WX(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var UX=Object.prototype,KX=UX.hasOwnProperty;function GX(e){if(!Mo(e))return WX(e);var t=cm(e),n=[];for(var r in e)r=="constructor"&&(t||!KX.call(e,r))||n.push(r);return n}function Vl(e){return Dd(e)?NN(e,!0):GX(e)}var XX=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qX=/^\w*$/;function fm(e,t){if(fr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rm(e)?!0:qX.test(e)||!XX.test(e)||t!=null&&e in Object(t)}var YX=Di(Object,"create");const pl=YX;function QX(){this.__data__=pl?pl(null):{},this.size=0}function JX(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZX="__lodash_hash_undefined__",eq=Object.prototype,tq=eq.hasOwnProperty;function nq(e){var t=this.__data__;if(pl){var n=t[e];return n===ZX?void 0:n}return tq.call(t,e)?t[e]:void 0}var rq=Object.prototype,oq=rq.hasOwnProperty;function iq(e){var t=this.__data__;return pl?t[e]!==void 0:oq.call(t,e)}var aq="__lodash_hash_undefined__";function sq(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pl&&t===void 0?aq:t,this}function xi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xi.prototype.clear=QX;xi.prototype.delete=JX;xi.prototype.get=nq;xi.prototype.has=iq;xi.prototype.set=sq;function lq(){this.__data__=[],this.size=0}function Ad(e,t){for(var n=e.length;n--;)if(Fl(e[n][0],t))return n;return-1}var cq=Array.prototype,uq=cq.splice;function dq(e){var t=this.__data__,n=Ad(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():uq.call(t,n,1),--this.size,!0}function fq(e){var t=this.__data__,n=Ad(t,e);return n<0?void 0:t[n][1]}function pq(e){return Ad(this.__data__,e)>-1}function hq(e,t){var n=this.__data__,r=Ad(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Do(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Do.prototype.clear=lq;Do.prototype.delete=dq;Do.prototype.get=fq;Do.prototype.has=pq;Do.prototype.set=hq;var gq=Di(so,"Map");const hl=gq;function vq(){this.size=0,this.__data__={hash:new xi,map:new(hl||Do),string:new xi}}function mq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function kd(e,t){var n=e.__data__;return mq(t)?n[typeof t=="string"?"string":"hash"]:n.map}function bq(e){var t=kd(this,e).delete(e);return this.size-=t?1:0,t}function yq(e){return kd(this,e).get(e)}function Sq(e){return kd(this,e).has(e)}function wq(e,t){var n=kd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function jo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jo.prototype.clear=vq;jo.prototype.delete=bq;jo.prototype.get=yq;jo.prototype.has=Sq;jo.prototype.set=wq;var xq="Expected a function";function pm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xq);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(pm.Cache||jo),n}pm.Cache=jo;var Cq=500;function $q(e){var t=pm(e,function(r){return n.size===Cq&&n.clear(),r}),n=t.cache;return t}var Oq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Eq=/\\(\\)?/g,Nq=$q(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Oq,function(n,r,o,i){t.push(o?i.replace(Eq,"$1"):r||n)}),t});const Rq=Nq;function Pq(e){return e==null?"":bN(e)}function Ld(e,t){return fr(e)?e:fm(e,t)?[e]:Rq(Pq(e))}var Iq=1/0;function Hl(e){if(typeof e=="string"||rm(e))return e;var t=e+"";return t=="0"&&1/e==-Iq?"-0":t}function hm(e,t){t=Ld(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Hl(t[n++])];return n&&n==r?e:void 0}function _q(e,t,n){var r=e==null?void 0:hm(e,t);return r===void 0?n:r}function gm(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var QS=Er?Er.isConcatSpreadable:void 0;function Tq(e){return fr(e)||dl(e)||!!(QS&&e&&e[QS])}function vm(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Tq),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?vm(s,t-1,n,r,o):gm(o,s):r||(o[o.length]=s)}return o}function Mq(e){var t=e==null?0:e.length;return t?vm(e,1):[]}function Dq(e){return SN(xN(e,void 0,Mq),e+"")}var jq=RN(Object.getPrototypeOf,Object);const mm=jq;var Aq="[object Object]",kq=Function.prototype,Lq=Object.prototype,PN=kq.toString,zq=Lq.hasOwnProperty,Bq=PN.call(Object);function bm(e){if(!oo(e)||Ti(e)!=Aq)return!1;var t=mm(e);if(t===null)return!0;var n=zq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&PN.call(n)==Bq}function Fq(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Vq(){this.__data__=new Do,this.size=0}function Hq(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Wq(e){return this.__data__.get(e)}function Uq(e){return this.__data__.has(e)}var Kq=200;function Gq(e,t){var n=this.__data__;if(n instanceof Do){var r=n.__data__;if(!hl||r.length<Kq-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jo(r)}return n.set(e,t),this.size=n.size,this}function Ar(e){var t=this.__data__=new Do(e);this.size=t.size}Ar.prototype.clear=Vq;Ar.prototype.delete=Hq;Ar.prototype.get=Wq;Ar.prototype.has=Uq;Ar.prototype.set=Gq;function Xq(e,t){return e&&qa(t,jd(t),e)}function qq(e,t){return e&&qa(t,Vl(t),e)}var IN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,JS=IN&&typeof module=="object"&&module&&!module.nodeType&&module,Yq=JS&&JS.exports===IN,ZS=Yq?so.Buffer:void 0,e1=ZS?ZS.allocUnsafe:void 0;function _N(e,t){if(t)return e.slice();var n=e.length,r=e1?e1(n):new e.constructor(n);return e.copy(r),r}function Qq(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function TN(){return[]}var Jq=Object.prototype,Zq=Jq.propertyIsEnumerable,t1=Object.getOwnPropertySymbols,eY=t1?function(e){return e==null?[]:(e=Object(e),Qq(t1(e),function(t){return Zq.call(e,t)}))}:TN;const ym=eY;function tY(e,t){return qa(e,ym(e),t)}var nY=Object.getOwnPropertySymbols,rY=nY?function(e){for(var t=[];e;)gm(t,ym(e)),e=mm(e);return t}:TN;const MN=rY;function oY(e,t){return qa(e,MN(e),t)}function DN(e,t,n){var r=t(e);return fr(e)?r:gm(r,n(e))}function Bh(e){return DN(e,jd,ym)}function jN(e){return DN(e,Vl,MN)}var iY=Di(so,"DataView");const Fh=iY;var aY=Di(so,"Promise");const Vh=aY;var sY=Di(so,"Set");const ga=sY;var n1="[object Map]",lY="[object Object]",r1="[object Promise]",o1="[object Set]",i1="[object WeakMap]",a1="[object DataView]",cY=Mi(Fh),uY=Mi(hl),dY=Mi(Vh),fY=Mi(ga),pY=Mi(zh),ii=Ti;(Fh&&ii(new Fh(new ArrayBuffer(1)))!=a1||hl&&ii(new hl)!=n1||Vh&&ii(Vh.resolve())!=r1||ga&&ii(new ga)!=o1||zh&&ii(new zh)!=i1)&&(ii=function(e){var t=Ti(e),n=t==lY?e.constructor:void 0,r=n?Mi(n):"";if(r)switch(r){case cY:return a1;case uY:return n1;case dY:return r1;case fY:return o1;case pY:return i1}return t});const gl=ii;var hY=Object.prototype,gY=hY.hasOwnProperty;function vY(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&gY.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var mY=so.Uint8Array;const Iu=mY;function Sm(e){var t=new e.constructor(e.byteLength);return new Iu(t).set(new Iu(e)),t}function bY(e,t){var n=t?Sm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var yY=/\w*$/;function SY(e){var t=new e.constructor(e.source,yY.exec(e));return t.lastIndex=e.lastIndex,t}var s1=Er?Er.prototype:void 0,l1=s1?s1.valueOf:void 0;function wY(e){return l1?Object(l1.call(e)):{}}function AN(e,t){var n=t?Sm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var xY="[object Boolean]",CY="[object Date]",$Y="[object Map]",OY="[object Number]",EY="[object RegExp]",NY="[object Set]",RY="[object String]",PY="[object Symbol]",IY="[object ArrayBuffer]",_Y="[object DataView]",TY="[object Float32Array]",MY="[object Float64Array]",DY="[object Int8Array]",jY="[object Int16Array]",AY="[object Int32Array]",kY="[object Uint8Array]",LY="[object Uint8ClampedArray]",zY="[object Uint16Array]",BY="[object Uint32Array]";function FY(e,t,n){var r=e.constructor;switch(t){case IY:return Sm(e);case xY:case CY:return new r(+e);case _Y:return bY(e,n);case TY:case MY:case DY:case jY:case AY:case kY:case LY:case zY:case BY:return AN(e,n);case $Y:return new r;case OY:case RY:return new r(e);case EY:return SY(e);case NY:return new r;case PY:return wY(e)}}function kN(e){return typeof e.constructor=="function"&&!cm(e)?RG(mm(e)):{}}var VY="[object Map]";function HY(e){return oo(e)&&gl(e)==VY}var c1=Ra&&Ra.isMap,WY=c1?um(c1):HY;const UY=WY;var KY="[object Set]";function GY(e){return oo(e)&&gl(e)==KY}var u1=Ra&&Ra.isSet,XY=u1?um(u1):GY;const qY=XY;var YY=1,QY=2,JY=4,LN="[object Arguments]",ZY="[object Array]",eQ="[object Boolean]",tQ="[object Date]",nQ="[object Error]",zN="[object Function]",rQ="[object GeneratorFunction]",oQ="[object Map]",iQ="[object Number]",BN="[object Object]",aQ="[object RegExp]",sQ="[object Set]",lQ="[object String]",cQ="[object Symbol]",uQ="[object WeakMap]",dQ="[object ArrayBuffer]",fQ="[object DataView]",pQ="[object Float32Array]",hQ="[object Float64Array]",gQ="[object Int8Array]",vQ="[object Int16Array]",mQ="[object Int32Array]",bQ="[object Uint8Array]",yQ="[object Uint8ClampedArray]",SQ="[object Uint16Array]",wQ="[object Uint32Array]",Gt={};Gt[LN]=Gt[ZY]=Gt[dQ]=Gt[fQ]=Gt[eQ]=Gt[tQ]=Gt[pQ]=Gt[hQ]=Gt[gQ]=Gt[vQ]=Gt[mQ]=Gt[oQ]=Gt[iQ]=Gt[BN]=Gt[aQ]=Gt[sQ]=Gt[lQ]=Gt[cQ]=Gt[bQ]=Gt[yQ]=Gt[SQ]=Gt[wQ]=!0;Gt[nQ]=Gt[zN]=Gt[uQ]=!1;function Wc(e,t,n,r,o,i){var a,s=t&YY,l=t&QY,c=t&JY;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Mo(e))return e;var u=fr(e);if(u){if(a=vY(e),!s)return yN(e,a)}else{var d=gl(e),f=d==zN||d==rQ;if(fl(e))return _N(e,s);if(d==BN||d==LN||f&&!o){if(a=l||f?{}:kN(e),!s)return l?oY(e,qq(a,e)):tY(e,Xq(a,e))}else{if(!Gt[d])return o?e:{};a=FY(e,d,s)}}i||(i=new Ar);var p=i.get(e);if(p)return p;i.set(e,a),qY(e)?e.forEach(function(b){a.add(Wc(b,t,n,b,e,i))}):UY(e)&&e.forEach(function(b,g){a.set(g,Wc(b,t,n,g,e,i))});var h=c?l?jN:Bh:l?Vl:jd,m=u?void 0:h(e);return BG(m||e,function(b,g){m&&(g=b,b=e[g]),wN(a,g,Wc(b,t,n,g,e,i))}),a}var xQ="__lodash_hash_undefined__";function CQ(e){return this.__data__.set(e,xQ),this}function $Q(e){return this.__data__.has(e)}function vl(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new jo;++t<n;)this.add(e[t])}vl.prototype.add=vl.prototype.push=CQ;vl.prototype.has=$Q;function OQ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function FN(e,t){return e.has(t)}var EQ=1,NQ=2;function VN(e,t,n,r,o,i){var a=n&EQ,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&NQ?new vl:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var b=a?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!OQ(t,function(g,S){if(!FN(p,S)&&(h===g||o(h,g,n,r,i)))return p.push(S)})){f=!1;break}}else if(!(h===m||o(h,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function RQ(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function wm(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var PQ=1,IQ=2,_Q="[object Boolean]",TQ="[object Date]",MQ="[object Error]",DQ="[object Map]",jQ="[object Number]",AQ="[object RegExp]",kQ="[object Set]",LQ="[object String]",zQ="[object Symbol]",BQ="[object ArrayBuffer]",FQ="[object DataView]",d1=Er?Er.prototype:void 0,Zf=d1?d1.valueOf:void 0;function VQ(e,t,n,r,o,i,a){switch(n){case FQ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case BQ:return!(e.byteLength!=t.byteLength||!i(new Iu(e),new Iu(t)));case _Q:case TQ:case jQ:return Fl(+e,+t);case MQ:return e.name==t.name&&e.message==t.message;case AQ:case LQ:return e==t+"";case DQ:var s=RQ;case kQ:var l=r&PQ;if(s||(s=wm),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=IQ,a.set(e,t);var u=VN(s(e),s(t),r,o,i,a);return a.delete(e),u;case zQ:if(Zf)return Zf.call(e)==Zf.call(t)}return!1}var HQ=1,WQ=Object.prototype,UQ=WQ.hasOwnProperty;function KQ(e,t,n,r,o,i){var a=n&HQ,s=Bh(e),l=s.length,c=Bh(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:UQ.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=a;++d<l;){f=s[d];var g=e[f],S=t[f];if(r)var C=a?r(S,g,f,t,e,i):r(g,S,f,e,t,i);if(!(C===void 0?g===S||o(g,S,n,r,i):C)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var w=e.constructor,y=t.constructor;w!=y&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof y=="function"&&y instanceof y)&&(m=!1)}return i.delete(e),i.delete(t),m}var GQ=1,f1="[object Arguments]",p1="[object Array]",Pc="[object Object]",XQ=Object.prototype,h1=XQ.hasOwnProperty;function qQ(e,t,n,r,o,i){var a=fr(e),s=fr(t),l=a?p1:gl(e),c=s?p1:gl(t);l=l==f1?Pc:l,c=c==f1?Pc:c;var u=l==Pc,d=c==Pc,f=l==c;if(f&&fl(e)){if(!fl(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new Ar),a||dm(e)?VN(e,t,n,r,o,i):VQ(e,t,l,n,r,o,i);if(!(n&GQ)){var p=u&&h1.call(e,"__wrapped__"),h=d&&h1.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,b=h?t.value():t;return i||(i=new Ar),o(m,b,n,r,i)}}return f?(i||(i=new Ar),KQ(e,t,n,r,o,i)):!1}function xm(e,t,n,r,o){return e===t?!0:e==null||t==null||!oo(e)&&!oo(t)?e!==e&&t!==t:qQ(e,t,n,r,xm,o)}var YQ=1,QQ=2;function JQ(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Ar;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?xm(u,c,YQ|QQ,r,d):f))return!1}}return!0}function HN(e){return e===e&&!Mo(e)}function ZQ(e){for(var t=jd(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,HN(o)]}return t}function WN(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function eJ(e){var t=ZQ(e);return t.length==1&&t[0][2]?WN(t[0][0],t[0][1]):function(n){return n===e||JQ(n,e,t)}}function tJ(e,t){return e!=null&&t in Object(e)}function nJ(e,t,n){t=Ld(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Hl(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&lm(o)&&am(a,o)&&(fr(e)||dl(e)))}function rJ(e,t){return e!=null&&nJ(e,t,tJ)}var oJ=1,iJ=2;function aJ(e,t){return fm(e)&&HN(t)?WN(Hl(e),t):function(n){var r=_q(n,e);return r===void 0&&r===t?rJ(n,e):xm(t,r,oJ|iJ)}}function sJ(e){return function(t){return t==null?void 0:t[e]}}function lJ(e){return function(t){return hm(t,e)}}function cJ(e){return fm(e)?sJ(Hl(e)):lJ(e)}function uJ(e){return typeof e=="function"?e:e==null?om:typeof e=="object"?fr(e)?aJ(e[0],e[1]):eJ(e):cJ(e)}function dJ(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var fJ=dJ();const pJ=fJ;function Hh(e,t,n){(n!==void 0&&!Fl(e[t],n)||n===void 0&&!(t in e))&&sm(e,t,n)}function Wh(e){return oo(e)&&Dd(e)}function Uh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function hJ(e){return qa(e,Vl(e))}function gJ(e,t,n,r,o,i,a){var s=Uh(e,n),l=Uh(t,n),c=a.get(l);if(c){Hh(e,n,c);return}var u=i?i(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=fr(l),p=!f&&fl(l),h=!f&&!p&&dm(l);u=l,f||p||h?fr(s)?u=s:Wh(s)?u=yN(s):p?(d=!1,u=_N(l,!0)):h?(d=!1,u=AN(l,!0)):u=[]:bm(l)||dl(l)?(u=s,dl(s)?u=hJ(s):(!Mo(s)||im(s))&&(u=kN(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),Hh(e,n,u)}function UN(e,t,n,r,o){e!==t&&pJ(t,function(i,a){if(o||(o=new Ar),Mo(i))gJ(e,t,a,n,UN,r,o);else{var s=r?r(Uh(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Hh(e,a,s)}},Vl)}function vJ(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function KN(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function mJ(e,t){return t.length<2?e:hm(e,Fq(t,0,-1))}JG(function(e,t,n){UN(e,t,n)});function bJ(e,t){return t=Ld(t,e),e=mJ(e,t),e==null||delete e[Hl(KN(t))]}function yJ(e){return bm(e)?void 0:e}var SJ=1,wJ=2,xJ=4;Dq(function(e,t){var n={};if(e==null)return n;var r=!1;t=mN(t,function(i){return i=Ld(i,e),r||(r=i.length>1),i}),qa(e,jN(e),n),r&&(n=Wc(n,SJ|wJ|xJ,yJ));for(var o=t.length;o--;)bJ(n,t[o]);return n});var CJ=1/0,$J=ga&&1/wm(new ga([,-0]))[1]==CJ?function(e){return new ga(e)}:IG;const OJ=$J;var EJ=200;function NJ(e,t,n){var r=-1,o=UG,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=vJ;else if(i>=EJ){var c=t?null:OJ(e);if(c)return wm(c);a=!1,o=FN,l=new vl}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}CN(function(e){var t=KN(e);return Wh(t)&&(t=void 0),NJ(vm(e,1,Wh,!0),uJ(t))});class RJ extends TypeError{constructor(t,n){let r;const{message:o,...i}=t,{path:a}=t,s=a.length===0?o:`At path: ${a.join(".")} -- ${o}`;super(s),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}}function PJ(e){return kr(e)&&typeof e[Symbol.iterator]=="function"}function kr(e){return typeof e=="object"&&e!=null}function pr(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function IJ(e){const{done:t,value:n}=e.next();return t?void 0:n}function _J(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:o,branch:i}=t,{type:a}=n,{refinement:s,message:l=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${pr(r)}\``}=e;return{value:r,type:a,refinement:s,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*g1(e,t,n,r){PJ(e)||(e=[e]);for(const o of e){const i=_J(o,t,n,r);i&&(yield i)}}function*Cm(e,t,n){n===void 0&&(n={});const{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,s={path:r,branch:o};if(i&&(e=t.coercer(e,s),a&&t.type!=="type"&&kr(t.schema)&&kr(e)&&!Array.isArray(e)))for(const c in e)t.schema[c]===void 0&&delete e[c];let l="valid";for(const c of t.validator(e,s))l="not_valid",yield[c,void 0];for(let[c,u,d]of t.entries(e,s)){const f=Cm(u,d,{path:c===void 0?r:[...r,c],branch:c===void 0?o:[...o,u],coerce:i,mask:a});for(const p of f)p[0]?(l=p[0].refinement!=null?"not_refined":"not_valid",yield[p[0],void 0]):i&&(u=p[1],c===void 0?e=u:e instanceof Map?e.set(c,u):e instanceof Set?e.add(u):kr(e)&&(u!==void 0||c in e)&&(e[c]=u))}if(l!=="not_valid")for(const c of t.refiner(e,s))l="not_refined",yield[c,void 0];l==="valid"&&(yield[void 0,e])}class lo{constructor(t){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:n,schema:r,validator:o,refiner:i,coercer:a=l=>l,entries:s=function*(){}}=t;this.type=n,this.schema=r,this.entries=s,this.coercer=a,o?this.validator=(l,c)=>{const u=o(l,c);return g1(u,c,this,l)}:this.validator=()=>[],i?this.refiner=(l,c)=>{const u=i(l,c);return g1(u,c,this,l)}:this.refiner=()=>[]}assert(t){return TJ(t,this)}create(t){return MJ(t,this)}is(t){return jJ(t,this)}mask(t){return DJ(t,this)}validate(t,n){return n===void 0&&(n={}),Ya(t,this,n)}}function TJ(e,t){const n=Ya(e,t);if(n[0])throw n[0]}function MJ(e,t){const n=Ya(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function DJ(e,t){const n=Ya(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}function jJ(e,t){return!Ya(e,t)[0]}function Ya(e,t,n){n===void 0&&(n={});const r=Cm(e,t,n),o=IJ(r);return o[0]?[new RJ(o[0],function*(){for(const i of r)i[0]&&(yield i[0])}),void 0]:[void 0,o[1]]}function $m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0].type==="type",o=t.map(a=>a.schema),i=Object.assign({},...o);return r?YN(i):Bt(i)}function ti(e,t){return new lo({type:e,schema:null,validator:t})}function Pa(e){return new lo({type:"dynamic",schema:null,*entries(t,n){yield*e(t,n).entries(t,n)},validator(t,n){return e(t,n).validator(t,n)},coercer(t,n){return e(t,n).coercer(t,n)},refiner(t,n){return e(t,n).refiner(t,n)}})}function GN(e,t){const{schema:n}=e,r={...n};for(const o of t)delete r[o];switch(e.type){case"type":return YN(r);default:return Bt(r)}}function On(){return ti("any",()=>!0)}function gn(e){return new lo({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${pr(t)}`}})}function So(){return ti("boolean",e=>typeof e=="boolean")}function Kh(e){const t={},n=e.map(r=>pr(r)).join();for(const r of e)t[r]=r;return new lo({type:"enums",schema:t,validator(r){return e.includes(r)||`Expected one of \`${n}\`, but received: ${pr(r)}`}})}function XN(){return ti("func",e=>typeof e=="function"||`Expected a function, but received: ${pr(e)}`)}function Jn(e){const t=pr(e),n=typeof e;return new lo({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${t}\`, but received: ${pr(r)}`}})}function AJ(){return ti("never",()=>!1)}function qN(){return ti("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${pr(e)}`)}function Bt(e){const t=e?Object.keys(e):[],n=AJ();return new lo({type:"object",schema:e||null,*entries(r){if(e&&kr(r)){const o=new Set(Object.keys(r));for(const i of t)o.delete(i),yield[i,r[i],e[i]];for(const i of o)yield[i,r[i],n]}},validator(r){return kr(r)||`Expected an object, but received: ${pr(r)}`},coercer(r){return kr(r)?{...r}:r}})}function Be(e){return new lo({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function As(e,t){return new lo({type:"record",schema:null,*entries(n){if(kr(n))for(const r in n){const o=n[r];yield[r,r,e],yield[r,o,t]}},validator(n){return kr(n)||`Expected an object, but received: ${pr(n)}`}})}function ke(){return ti("string",e=>typeof e=="string"||`Expected a string, but received: ${pr(e)}`)}function YN(e){const t=Object.keys(e);return new lo({type:"type",schema:e,*entries(n){if(kr(n))for(const r of t)yield[r,n[r],e[r]]},validator(n){return kr(n)||`Expected an object, but received: ${pr(n)}`}})}function Un(e){const t=e.map(n=>n.type).join(" | ");return new lo({type:"union",schema:null,coercer(n,r){return(e.find(o=>{const[i]=o.validate(n,{coerce:!0});return!i})||kJ()).coercer(n,r)},validator(n,r){const o=[];for(const i of e){const[...a]=Cm(n,i,r),[s]=a;if(s[0])for(const[l]of a)l&&o.push(l);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${pr(n)}`,...o]}})}function kJ(){return ti("unknown",()=>!0)}const Om=Bt({package:ke(),version:ke(),exportName:ke(),destructuring:Be(So()),subName:Be(ke()),main:Be(ke())}),LJ=gn(Om);var Eo=(e=>(e.SLOT="SLOT",e.FUNCTION="FUNCTION",e.EXPRESSION="EXPRESSION",e))(Eo||{}),Gh=(e=>(e.FUNC="FUNC",e.COMP="COMP",e))(Gh||{});const zJ=()=>ti("normalObj",e=>!bm(e)||[Eo.SLOT,Eo.EXPRESSION,Eo.FUNCTION].includes(e==null?void 0:e.type)?!1:(Ya(e,As(ke(),Em)),!0)),Em=Un([ke(),qN(),So(),Bt({type:Jn(Eo.SLOT),renderType:Kh([Gh.FUNC,Gh.COMP]),params:Be(gn(ke())),value:Pa(()=>Un([ml,gn(ml)]))}),Bt({type:Jn(Eo.EXPRESSION),value:ke()}),Bt({type:Jn(Eo.FUNCTION),value:ke()}),zJ(),gn(Pa(()=>Em))]),v1=Bt({type:Jn(Eo.EXPRESSION),value:ke()}),ml=Bt({id:Be(ke()),title:Be(ke()),componentName:ke(),props:Be(As(ke(),Em)),stateName:Be(ke()),state:Be(As(ke(),On())),children:Pa(()=>Be(gn(Un([ke(),ml])))),configure:Be(On()),css:Be(On()),style:Be(On()),classNames:Be(gn(On())),refId:Be(ke()),extra:Be(As(On(),On())),condition:Be(Un([So(),v1])),tempDevConfig:Be(On()),loop:Be(Bt({open:So(),data:Un([gn(On()),v1]),args:Be(gn(ke())),forName:Be(ke()),forIndex:Be(ke()),key:Be(On()),name:Be(ke())}))}),_u=Un([ke(),Bt({label:ke(),tip:Be(ke())})]),BJ=Bt({type:Jn("shape"),value:gn(Bt({name:ke(),title:_u,valueType:Pa(()=>zd)}))}),FJ=Bt({type:Jn("enums"),value:gn(ke())});Bt({type:Jn("array"),value:Pa(()=>zd)});const VJ=Bt({type:Jn("array"),value:Pa(()=>gn(zd))}),zd=Un([Kh(["array","boolean","number","object","string"]),Kh(["component","expression","function"]),BJ,FJ,VJ]),HJ=Un([ke(),Bt({componentName:ke(),props:Be(On()),initialValue:Be(On()),component:Be(On())})]),ep=Bt({name:ke(),title:_u,valueType:zd,description:Be(ke()),defaultValue:On(),setters:Be(gn(HJ)),condition:Be(XN())}),WJ=Un([ke(),XN()]);Un([ke(),Bt({name:ke(),describe:Be(ke()),params:Be(Bt({name:ke(),description:ke()})),template:ke()})]);const UJ=Bt({id:Be(ke()),title:ke(),snapshot:Un([ke(),On()]),snapshotText:Be(ke()),description:Be(ke()),tags:Be(gn(ke())),groupName:Be(ke()),category:Be(ke()),schema:$m(GN(ml,["id"]),Bt({componentName:Be(ke())}))});Bt({componentName:ke(),title:ke(),screenshot:Be(ke()),icon:Be(ke()),tags:Be(gn(ke())),groupName:Be(ke()),category:Be(ke()),priority:Be(qN()),npm:Be(Om),snippets:gn(UJ),props:gn(Un([ep,Bt({title:Be(_u),type:Jn("single"),content:ep}),Bt({title:Be(_u),type:Jn("group"),content:gn(ep)})])),fixedProps:Be(On()),isContainer:Be(Un([So(),Bt({placeholder:ke(),width:ke(),height:ke()})])),isModal:Be(Un([So(),Bt({visibleKey:ke()})])),isSupportStyle:Be(So()),isSupportDispatchNativeEvent:Be(So()),isLayout:Be(So()),rootSelector:Be(ke()),selectionToolBars:Be(gn(WJ)),extra:Be(As(On(),On()))});var Nm=(e=>(e.ROOT_CONTAINER="RootContainer",e))(Nm||{});const KJ=Bt({type:Jn(Eo.FUNCTION),value:ke()}),GJ=$m(GN(ml,["componentName"]),Bt({componentName:Jn("RootContainer")}));Bt({version:ke(),name:ke(),css:Be(ke()),renderType:Be(Un([Jn("COMPONENT"),Jn("PAGE")])),methods:Be(gn(KJ)),componentsMeta:gn($m(Bt({componentName:ke()}),Om)),thirdLibs:Be(LJ),componentsTree:GJ,assets:Be(gn(On()))});Nm.ROOT_CONTAINER;function XJ(e,t){const{display:n,flexDirection:r}=t;if(n==="flex"&&["row","row-reverse"].includes(r))return!1;const{display:o}=e;return!["inline","inline-block","float","grid"].includes(o)}function qJ(e){const{point:t,dom:n}=e;let r;const o=getComputedStyle(n);let i=!0;if(n.parentElement){const p=getComputedStyle(n.parentElement);i=XJ(o,p)}const a=t,s=n.getBoundingClientRect(),l=s.width,c=s.height,u=s.x+Math.round(l/2),d=s.y+Math.round(c/2),f=10;return e.isContainer&&a.y>s.y+f&&a.y<s.y+s.height-f&&a.x>s.x+f&&a.x<s.x+s.width-f?(r="current",{pos:r,direction:"horizontal"}):(i?a.y>d?r="after":r="before":a.x>u?r="after":r="before",{pos:r,direction:i?"vertical":"horizontal"})}const YJ={backgroundColor:"rgba(0,0,0,0.2)"};class QN extends O.Component{constructor(t){super(t),St(this,"designRenderRef"),St(this,"iframeContainer"),St(this,"eventExposeHandler"),St(this,"state"),St(this,"highlightCanvasRef"),St(this,"dnd"),St(this,"highlightHoverCanvasRef"),St(this,"highlightDropAnchorCanvasRef"),St(this,"readyCbList",[]),St(this,"assets"),St(this,"dragStartNode",null),St(this,"realTimeSelectNodeInstanceTimer",0),St(this,"registerRealTimeUpdate",()=>{this.realTimeSelectNodeInstanceTimer=window.setInterval(()=>{var r,o;if(this.state.currentSelectId){const i=this.state.currentSelectId;(r=this.designRenderRef.current)!=null&&r.getInstancesById(i);let a=((o=this.designRenderRef.current)==null?void 0:o.getInstancesById(i))||[];if(a=a.filter(l=>(l==null?void 0:l._STATUS)!=="DESTROY"),!a.length)return;const s=a[0];this.setState({currentSelectId:s._NODE_ID,currentSelectInstance:s,selectComponentInstances:[...a].filter(l=>{var c,u,d;let f;const p=(d=(u=(c=this.designRenderRef.current)==null?void 0:c.renderRef)==null?void 0:u.current)==null?void 0:d.dynamicComponentInstanceMap.get(l._NODE_ID);return p&&(f=p._CONDITION),f!==!1})})}},100)}),St(this,"disposeRealTimeUpdate",()=>{this.realTimeSelectNodeInstanceTimer&&(clearInterval(this.realTimeSelectNodeInstanceTimer),this.realTimeSelectNodeInstanceTimer=0)}),this.designRenderRef=O.createRef(),this.iframeContainer=new Ah,this.eventExposeHandler=[],this.assets=t.assets||[],this.state={isDragging:!1,ready:!1,mousePointer:null,currentSelectInstance:null,currentSelectId:"",selectComponentInstances:[],selectLockStyle:{},hoverComponentInstances:[],dropComponentInstances:[],dropPosInfos:[],dropEvent:null,dropInfo:null},this.highlightCanvasRef=O.createRef(),this.highlightHoverCanvasRef=O.createRef(),this.highlightDropAnchorCanvasRef=O.createRef();const n=new pN({doc:document});this.dnd=n}componentDidMount(){this.init()}reload({assets:t}){return t&&(this.assets=t),this.init()}init(){this.iframeContainer.destroy(),this.iframeContainer=new Ah,window.___CHAMELEON_DESIGNER_RENDER___=this.designRenderRef;const t=this.iframeContainer;t.load(document.getElementById("iframeBox")),t.onLoadFailed(n=>{console.error(n)}),t.ready(async()=>{if(this.props.beforeInitRender?await this.props.beforeInitRender({pageModel:this.props.pageModel,page:this.props.page,assets:this.props.assets||[],iframe:t}):t.injectJsText(`
|
|
422
|
+
window.React = window.parent.React;
|
|
423
|
+
window.ReactDOM = window.parent.ReactDOM;
|
|
424
|
+
window.ReactDOMClient = window.parent.ReactDOMClient;
|
|
425
|
+
`),this.props.customRender)this.props.customRender({pageModel:this.props.pageModel,page:this.props.page,assets:this.props.assets||[],iframe:t,ready:n=>{this.designRenderRef.current=n,this.registerDragAndDropEvent(),this.registerSelectEvent(),this.registerHoverEvent(),this.readyOk()}});else throw new Error("Must pass customRender methods")})}initIframeLogic(){const t=this.iframeContainer.getWindow(),n=this.iframeContainer.getDocument(),r=t.CRender,o=t.React,i=t.ReactDOMClient;new r.AssetLoader(this.assets).onSuccess(()=>{const a=sN(this.assets,t),s=lN(a),l=o==null?void 0:o.createElement(r.DesignRender,{adapter:r==null?void 0:r.ReactAdapter,page:this.props.page,pageModel:this.props.pageModel,components:s,onMount:c=>{this.designRenderRef.current=c,this.registerDragAndDropEvent(),this.registerSelectEvent(),this.registerHoverEvent(),this.readyOk()}});i.createRoot(n.getElementById("app")).render(l)}).onError(()=>{console.log("资源加载出粗")}).load()}getPageModel(){var t,n;return(n=(t=this.designRenderRef)==null?void 0:t.current)==null?void 0:n.getPageModel()}readyOk(){this.setState({ready:!0});const t=this.readyCbList;for(this.readyCbList=[];t.length;){const n=t.shift();n==null||n(this)}}registerSelectEvent(){const t=this.iframeContainer.getDocument(),n=this.iframeContainer.getWindow();if(!t||!n)return;const r=t;this.eventExposeHandler.push(lr(t.body,"click",async o=>{var i,a;if(o.stopPropagation(),o.preventDefault(),o.stopImmediatePropagation(),!this.designRenderRef.current)return;const s=this.designRenderRef.current.getInstanceByDom(o.target);if(!s)return;const l=this.designRenderRef.current.getInstancesById(s._NODE_ID||"");s._NODE_MODEL.nodeType==="NODE"&&(this.disposeRealTimeUpdate(),this.setState({currentSelectId:s._NODE_ID,currentSelectInstance:s,selectComponentInstances:[...l],hoverComponentInstances:[]}),(a=(i=this.props).onSelectNode)==null||a.call(i,s._NODE_MODEL),this.registerRealTimeUpdate())},!0)),this.eventExposeHandler.push(lr(n,"resize",()=>{var o;(o=this.highlightCanvasRef.current)==null||o.update()})),this.eventExposeHandler.push(lr(r,"resize",()=>{var o;(o=this.highlightCanvasRef.current)==null||o.update()})),this.eventExposeHandler.push(lr(r,"scroll",()=>{var o;(o=this.highlightCanvasRef.current)==null||o.update()}))}registerHoverEvent(){const t=this.iframeContainer.getDocument();if(!t)return;const n=o=>{var i,a,s,l,c;if(!o.target)return;const u=o.target,d=(i=this.designRenderRef.current)==null?void 0:i.getInstanceByDom(u);if((s=(a=this.props).onHoverNode)==null||s.call(a,(d==null?void 0:d._NODE_MODEL)||null,this.dragStartNode),(d==null?void 0:d._NODE_ID)===((l=this.state.selectComponentInstances[0])==null?void 0:l._NODE_ID)){this.setState({hoverComponentInstances:[]});return}const f=((c=this.designRenderRef.current)==null?void 0:c.getInstancesById((d==null?void 0:d._NODE_ID)||""))||[];this.setState({hoverComponentInstances:f})};this.eventExposeHandler.push(lr(t.body,"mouseover",n,!0));const r=Md(()=>{var o;this.highlightHoverCanvasRef.current?(o=this.highlightHoverCanvasRef.current)==null||o.update():r()});this.eventExposeHandler.push(r),this.eventExposeHandler.push(lr(t.body,"mouseleave",()=>{this.setState({hoverComponentInstances:[]})},!0))}registerDragAndDropEvent(){const t=this.dnd,n=this.iframeContainer.getDocument(),r=new Bl({name:"layout",container:n.body,offsetDom:document.getElementById("iframeBox")});r.setCanDrag(a=>{var s,l,c,u;const d=(s=this.designRenderRef.current)==null?void 0:s.getInstanceByDom(a.event.target);if(!d)return null;const f=(c=(l=this.state.currentSelectInstance)==null?void 0:l._NODE_MODEL)==null?void 0:c.contains((d==null?void 0:d._NODE_ID)||"");let p=d==null?void 0:d._NODE_MODEL;return f&&this.state.currentSelectInstance&&(p=(u=this.state.currentSelectInstance)==null?void 0:u._NODE_MODEL),{...a,extraData:{startNode:p,startNodeUid:d==null?void 0:d._UNIQUE_ID}}}),r.setCanDrop(a=>{var s,l,c,u,d;const f=(s=this.designRenderRef.current)==null?void 0:s.getInstanceByDom(a.event.target);if(!f){this.setState({dropComponentInstances:[]});return}if((c=(l=this.state.currentSelectInstance)==null?void 0:l._NODE_MODEL)!=null&&c.contains((f==null?void 0:f._NODE_ID)||""))return;const p=f._NODE_MODEL,h=(((u=p.material)==null?void 0:u.value.isContainer)||((d=p.value)==null?void 0:d.componentName)===Nm.ROOT_CONTAINER)&&p.value.children.length===0,m=a.event,b=ln.findDOMNode(f),g=qJ({point:{x:m.clientX,y:m.clientY},dom:b,isContainer:h});return{...a,extraData:{dropPosInfo:g,dropNode:f==null?void 0:f._NODE_MODEL,dropNodeUid:f==null?void 0:f._UNIQUE_ID}}}),t.registerSensor(r);const{onSelectNode:o}=this.props;r.emitter.on("dragStart",a=>{var s,l,c,u,d,f,p;this.setState({isDragging:!0});const{currentSelectInstance:h}=this.state,m=a.extraData,b=m.startNode,g=(((s=this.designRenderRef.current)==null?void 0:s.getInstancesById(b.id))||[]).shift();if(this.dragStartNode=b,(c=(l=this.props).onDragStart)==null||c.call(l,this.dragStartNode),!g)return;const S=(u=this.designRenderRef.current)==null?void 0:u.getDomsById((h==null?void 0:h._NODE_ID)||""),C=(d=this.designRenderRef.current)==null?void 0:d.getDomsById(b.id);(m==null?void 0:m.type)==="NEW_ADD"?(this.setState({currentSelectId:"",currentSelectInstance:null,selectComponentInstances:[],hoverComponentInstances:[]}),o==null||o(null)):S!=null&&S.length&&C!=null&&C.length?S[0].contains(C[0])?(this.dragStartNode=(h==null?void 0:h._NODE_MODEL)||null,this.setState({hoverComponentInstances:[]})):(this.setState({currentSelectId:g._NODE_ID,currentSelectInstance:g,selectComponentInstances:((f=this.designRenderRef.current)==null?void 0:f.getInstancesById((g==null?void 0:g._NODE_ID)||""))||[],hoverComponentInstances:[]}),o==null||o((g==null?void 0:g._NODE_MODEL)||null)):S!=null&&S.length?this.setState({hoverComponentInstances:[]}):(this.setState({currentSelectId:g._NODE_ID,currentSelectInstance:g,selectComponentInstances:((p=this.designRenderRef.current)==null?void 0:p.getInstancesById((g==null?void 0:g._NODE_ID)||""))||[],hoverComponentInstances:[]}),o==null||o((g==null?void 0:g._NODE_MODEL)||null))}),r.emitter.on("dragging",a=>{var s;if(!this.designRenderRef.current)return;const l=a.extraData,c=(this.designRenderRef.current.getInstancesById(((s=l.dropNode)==null?void 0:s.id)||"",l.dropNodeUid)||[]).shift();if(!c){this.setState({dropComponentInstances:[],dropPosInfos:[],dropEvent:null});return}this.setState({dropComponentInstances:[c],dropPosInfos:[a.extraData.dropPosInfo],dropEvent:a})}),r.emitter.on("dragEnd",a=>{this.dragStartNode=null,this.setState({isDragging:!1,mousePointer:null,dropEvent:null,dropComponentInstances:[],selectLockStyle:{}})});const i=a=>{this.state.isDragging?this.setState({mousePointer:a.pointer,selectLockStyle:YJ}):this.setState({mousePointer:null,selectLockStyle:{}})};r.emitter.on("onMouseMove",i),this.dnd.emitter.on("onMouseMove",i)}selectNode(t){var n,r,o,i;let a=((n=this.designRenderRef.current)==null?void 0:n.getInstancesById(t))||[];if(a=a.filter(c=>(c==null?void 0:c._STATUS)!=="DESTROY"),!a.length){this.setState({currentSelectId:"",currentSelectInstance:null,selectComponentInstances:[],hoverComponentInstances:[]});return}const s=a[0],l=ln.findDOMNode(s);l&&((r=l.scrollIntoView)==null||r.call(l,{block:"center"})),this.setState({currentSelectId:s._NODE_ID,currentSelectInstance:s,selectComponentInstances:[...a].filter(c=>{var u,d,f;let p;const h=(f=(d=(u=this.designRenderRef.current)==null?void 0:u.renderRef)==null?void 0:d.current)==null?void 0:f.dynamicComponentInstanceMap.get(c._NODE_ID);return h&&(p=h._CONDITION),p!==!1}),hoverComponentInstances:[]}),(i=(o=this.props).onSelectNode)==null||i.call(o,s==null?void 0:s._NODE_MODEL)}clearSelectNode(){this.setState({currentSelectId:"",currentSelectInstance:null,selectComponentInstances:[]})}componentWillUnmount(){var t,n;this.eventExposeHandler.forEach(r=>r()),(n=(t=this.iframeContainer.iframe)==null?void 0:t.parentNode)==null||n.removeChild(this.iframeContainer.iframe),this.disposeRealTimeUpdate()}async ready(t){return this.state.ready?(t==null||t(this),this):new Promise(n=>{this.readyCbList.push(r=>{t==null||t(r),n(r)})})}render(){const{selectComponentInstances:t,hoverComponentInstances:n,dropComponentInstances:r,dropPosInfos:o,dropEvent:i,selectLockStyle:a,isDragging:s,mousePointer:l}=this.state,{selectToolBar:c,hoverToolBar:u,selectBoxStyle:d={},hoverBoxStyle:f={},ghostView:p=Hn(nm,{children:"Ghost"})}=this.props;return rK("div",{className:YU.layoutContainer,id:"iframeBox",children:[Hn(kS,{ref:this.highlightHoverCanvasRef,instances:n,style:{pointerEvents:"none",position:"absolute",left:0,top:0,border:"1px dashed rgba(0,0,255, .8)",...f},toolRender:u},"highlightHoverCanvasRef"),Hn(kS,{ref:this.highlightCanvasRef,instances:t,style:{...d,...a},toolRender:c}),Hn(GK,{ref:this.highlightDropAnchorCanvasRef,instances:r,mouseEvent:i,dropInfos:o}),s&&l&&Hn("div",{style:{position:"fixed",left:l.x-5+"px",top:l.y-8+"px",cursor:"move",pointerEvents:"none",zIndex:999},children:p})]})}}const QJ={pluginName:"组件库"},JJ={pluginName:"Component Store"},m1={zh_CN:QJ,en_US:JJ},ZJ="_container_191p3_2",eZ="_tabTitle_191p3_23",JN={container:ZJ,tabTitle:eZ},tZ="_square_1b87f_2",nZ="_componentItem_1b87f_18",rZ="_iconImg_1b87f_41",oZ="_iconBox_1b87f_45",iZ="_iconText_1b87f_54",vs={square:tZ,componentItem:nZ,iconImg:rZ,iconBox:oZ,iconText:iZ},aZ=e=>{const t={[ZN]:e.id},n=O.useMemo(()=>e.iconText?v("div",{className:vs.iconText,children:String(e.iconText).toUpperCase()}):typeof e.icon=="string"?v("img",{className:vs.iconImg,src:e.icon}):e.icon,[e.icon]),r=v("div",{className:ur([vs.square,e.containerClassName]),children:ae("div",{...t,className:vs.componentItem,style:e.style,children:[v("div",{className:vs.iconBox,children:n}),v("span",{children:e.name})]})});return e.description?v(zL,{overlayInnerStyle:{maxWidth:"300px",maxHeight:"200px",overflow:"auto"},content:e.description||"",zIndex:1e3,placement:"right",children:r}):r},ZN="data-drag-key",sZ="_ListBox_1q7zr_2",lZ="_collapsePanel_1q7zr_23",b1={ListBox:sZ,collapsePanel:lZ},{Panel:cZ}=Tr,uZ=e=>{const{dataSource:t}=e,n=t.map(r=>r.name||"");return t.length?v("div",{className:b1.ListBox,children:v(Tr,{style:{width:"100%"},defaultActiveKey:n,children:t.map(r=>{const o=r.name||"",i=v("div",{className:b1.collapsePanel,children:r.list.map(a=>v(aZ,{id:a.id,name:a.title,icon:a.snapshot||a.snapshotText,iconText:a.snapshotText,description:a.description||""},a.id))});return v(cZ,{header:o,children:i},o)})})}):null},eR=(e,t)=>{if(!e)return null;const n=e.getAttribute(t);return n||eR(e.parentElement,t)};var dZ=typeof global=="object"&&global&&global.Object===Object&&global;const tR=dZ;var fZ=typeof self=="object"&&self&&self.Object===Object&&self,pZ=tR||fZ||Function("return this")();const co=pZ;var hZ=co.Symbol;const Zo=hZ;var nR=Object.prototype,gZ=nR.hasOwnProperty,vZ=nR.toString,ms=Zo?Zo.toStringTag:void 0;function mZ(e){var t=gZ.call(e,ms),n=e[ms];try{e[ms]=void 0;var r=!0}catch{}var o=vZ.call(e);return r&&(t?e[ms]=n:delete e[ms]),o}var bZ=Object.prototype,yZ=bZ.toString;function SZ(e){return yZ.call(e)}var wZ="[object Null]",xZ="[object Undefined]",y1=Zo?Zo.toStringTag:void 0;function ji(e){return e==null?e===void 0?xZ:wZ:y1&&y1 in Object(e)?mZ(e):SZ(e)}function Ai(e){return e!=null&&typeof e=="object"}var CZ="[object Symbol]";function $Z(e){return typeof e=="symbol"||Ai(e)&&ji(e)==CZ}function OZ(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var EZ=Array.isArray;const Bd=EZ;var NZ=1/0,S1=Zo?Zo.prototype:void 0,w1=S1?S1.toString:void 0;function rR(e){if(typeof e=="string")return e;if(Bd(e))return OZ(e,rR)+"";if($Z(e))return w1?w1.call(e):"";var t=e+"";return t=="0"&&1/e==-NZ?"-0":t}function Wl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var RZ="[object AsyncFunction]",PZ="[object Function]",IZ="[object GeneratorFunction]",_Z="[object Proxy]";function oR(e){if(!Wl(e))return!1;var t=ji(e);return t==PZ||t==IZ||t==RZ||t==_Z}var TZ=co["__core-js_shared__"];const tp=TZ;var x1=function(){var e=/[^.]+$/.exec(tp&&tp.keys&&tp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MZ(e){return!!x1&&x1 in e}var DZ=Function.prototype,jZ=DZ.toString;function ki(e){if(e!=null){try{return jZ.call(e)}catch{}try{return e+""}catch{}}return""}var AZ=/[\\^$.*+?()[\]{}|]/g,kZ=/^\[object .+?Constructor\]$/,LZ=Function.prototype,zZ=Object.prototype,BZ=LZ.toString,FZ=zZ.hasOwnProperty,VZ=RegExp("^"+BZ.call(FZ).replace(AZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HZ(e){if(!Wl(e)||MZ(e))return!1;var t=oR(e)?VZ:kZ;return t.test(ki(e))}function WZ(e,t){return e==null?void 0:e[t]}function Li(e,t){var n=WZ(e,t);return HZ(n)?n:void 0}var UZ=Li(co,"WeakMap");const Xh=UZ;var C1=Object.create,KZ=function(){function e(){}return function(t){if(!Wl(t))return{};if(C1)return C1(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const GZ=KZ;function XZ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var qZ=function(){try{var e=Li(Object,"defineProperty");return e({},"",{}),e}catch{}}();const $1=qZ;function YZ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var QZ=9007199254740991,JZ=/^(?:0|[1-9]\d*)$/;function ZZ(e,t){var n=typeof e;return t=t??QZ,!!t&&(n=="number"||n!="symbol"&&JZ.test(e))&&e>-1&&e%1==0&&e<t}function iR(e,t,n){t=="__proto__"&&$1?$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function aR(e,t){return e===t||e!==e&&t!==t}var eee=Object.prototype,tee=eee.hasOwnProperty;function sR(e,t,n){var r=e[t];(!(tee.call(e,t)&&aR(r,n))||n===void 0&&!(t in e))&&iR(e,t,n)}function Fd(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?iR(n,s,l):sR(n,s,l)}return n}var nee=9007199254740991;function lR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nee}function cR(e){return e!=null&&lR(e.length)&&!oR(e)}var ree=Object.prototype;function Rm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ree;return e===n}function oee(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var iee="[object Arguments]";function O1(e){return Ai(e)&&ji(e)==iee}var uR=Object.prototype,aee=uR.hasOwnProperty,see=uR.propertyIsEnumerable,lee=O1(function(){return arguments}())?O1:function(e){return Ai(e)&&aee.call(e,"callee")&&!see.call(e,"callee")};const cee=lee;function uee(){return!1}var dR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,E1=dR&&typeof module=="object"&&module&&!module.nodeType&&module,dee=E1&&E1.exports===dR,N1=dee?co.Buffer:void 0,fee=N1?N1.isBuffer:void 0,pee=fee||uee;const fR=pee;var hee="[object Arguments]",gee="[object Array]",vee="[object Boolean]",mee="[object Date]",bee="[object Error]",yee="[object Function]",See="[object Map]",wee="[object Number]",xee="[object Object]",Cee="[object RegExp]",$ee="[object Set]",Oee="[object String]",Eee="[object WeakMap]",Nee="[object ArrayBuffer]",Ree="[object DataView]",Pee="[object Float32Array]",Iee="[object Float64Array]",_ee="[object Int8Array]",Tee="[object Int16Array]",Mee="[object Int32Array]",Dee="[object Uint8Array]",jee="[object Uint8ClampedArray]",Aee="[object Uint16Array]",kee="[object Uint32Array]",Zt={};Zt[Pee]=Zt[Iee]=Zt[_ee]=Zt[Tee]=Zt[Mee]=Zt[Dee]=Zt[jee]=Zt[Aee]=Zt[kee]=!0;Zt[hee]=Zt[gee]=Zt[Nee]=Zt[vee]=Zt[Ree]=Zt[mee]=Zt[bee]=Zt[yee]=Zt[See]=Zt[wee]=Zt[xee]=Zt[Cee]=Zt[$ee]=Zt[Oee]=Zt[Eee]=!1;function Lee(e){return Ai(e)&&lR(e.length)&&!!Zt[ji(e)]}function Pm(e){return function(t){return e(t)}}var pR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ks=pR&&typeof module=="object"&&module&&!module.nodeType&&module,zee=ks&&ks.exports===pR,np=zee&&tR.process,Bee=function(){try{var e=ks&&ks.require&&ks.require("util").types;return e||np&&np.binding&&np.binding("util")}catch{}}();const Ia=Bee;var R1=Ia&&Ia.isTypedArray,Fee=R1?Pm(R1):Lee;const Vee=Fee;var Hee=Object.prototype,Wee=Hee.hasOwnProperty;function hR(e,t){var n=Bd(e),r=!n&&cee(e),o=!n&&!r&&fR(e),i=!n&&!r&&!o&&Vee(e),a=n||r||o||i,s=a?oee(e.length,String):[],l=s.length;for(var c in e)(t||Wee.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ZZ(c,l)))&&s.push(c);return s}function gR(e,t){return function(n){return e(t(n))}}var Uee=gR(Object.keys,Object);const Kee=Uee;var Gee=Object.prototype,Xee=Gee.hasOwnProperty;function qee(e){if(!Rm(e))return Kee(e);var t=[];for(var n in Object(e))Xee.call(e,n)&&n!="constructor"&&t.push(n);return t}function Im(e){return cR(e)?hR(e):qee(e)}function Yee(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Qee=Object.prototype,Jee=Qee.hasOwnProperty;function Zee(e){if(!Wl(e))return Yee(e);var t=Rm(e),n=[];for(var r in e)r=="constructor"&&(t||!Jee.call(e,r))||n.push(r);return n}function _m(e){return cR(e)?hR(e,!0):Zee(e)}var ete=Li(Object,"create");const bl=ete;function tte(){this.__data__=bl?bl(null):{},this.size=0}function nte(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rte="__lodash_hash_undefined__",ote=Object.prototype,ite=ote.hasOwnProperty;function ate(e){var t=this.__data__;if(bl){var n=t[e];return n===rte?void 0:n}return ite.call(t,e)?t[e]:void 0}var ste=Object.prototype,lte=ste.hasOwnProperty;function cte(e){var t=this.__data__;return bl?t[e]!==void 0:lte.call(t,e)}var ute="__lodash_hash_undefined__";function dte(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bl&&t===void 0?ute:t,this}function Ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ci.prototype.clear=tte;Ci.prototype.delete=nte;Ci.prototype.get=ate;Ci.prototype.has=cte;Ci.prototype.set=dte;function fte(){this.__data__=[],this.size=0}function Vd(e,t){for(var n=e.length;n--;)if(aR(e[n][0],t))return n;return-1}var pte=Array.prototype,hte=pte.splice;function gte(e){var t=this.__data__,n=Vd(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hte.call(t,n,1),--this.size,!0}function vte(e){var t=this.__data__,n=Vd(t,e);return n<0?void 0:t[n][1]}function mte(e){return Vd(this.__data__,e)>-1}function bte(e,t){var n=this.__data__,r=Vd(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ao(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ao.prototype.clear=fte;Ao.prototype.delete=gte;Ao.prototype.get=vte;Ao.prototype.has=mte;Ao.prototype.set=bte;var yte=Li(co,"Map");const yl=yte;function Ste(){this.size=0,this.__data__={hash:new Ci,map:new(yl||Ao),string:new Ci}}function wte(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hd(e,t){var n=e.__data__;return wte(t)?n[typeof t=="string"?"string":"hash"]:n.map}function xte(e){var t=Hd(this,e).delete(e);return this.size-=t?1:0,t}function Cte(e){return Hd(this,e).get(e)}function $te(e){return Hd(this,e).has(e)}function Ote(e,t){var n=Hd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Qa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qa.prototype.clear=Ste;Qa.prototype.delete=xte;Qa.prototype.get=Cte;Qa.prototype.has=$te;Qa.prototype.set=Ote;function vR(e){return e==null?"":rR(e)}function mR(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ete=gR(Object.getPrototypeOf,Object);const Tm=Ete;var Nte="[object Object]",Rte=Function.prototype,Pte=Object.prototype,bR=Rte.toString,Ite=Pte.hasOwnProperty,_te=bR.call(Object);function Wd(e){if(!Ai(e)||ji(e)!=Nte)return!1;var t=Tm(e);if(t===null)return!0;var n=Ite.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&bR.call(n)==_te}function Tte(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Mte(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Tte(e,t,n)}var Dte="\\ud800-\\udfff",jte="\\u0300-\\u036f",Ate="\\ufe20-\\ufe2f",kte="\\u20d0-\\u20ff",Lte=jte+Ate+kte,zte="\\ufe0e\\ufe0f",Bte="\\u200d",Fte=RegExp("["+Bte+Dte+Lte+zte+"]");function yR(e){return Fte.test(e)}function Vte(e){return e.split("")}var SR="\\ud800-\\udfff",Hte="\\u0300-\\u036f",Wte="\\ufe20-\\ufe2f",Ute="\\u20d0-\\u20ff",Kte=Hte+Wte+Ute,Gte="\\ufe0e\\ufe0f",Xte="["+SR+"]",qh="["+Kte+"]",Yh="\\ud83c[\\udffb-\\udfff]",qte="(?:"+qh+"|"+Yh+")",wR="[^"+SR+"]",xR="(?:\\ud83c[\\udde6-\\uddff]){2}",CR="[\\ud800-\\udbff][\\udc00-\\udfff]",Yte="\\u200d",$R=qte+"?",OR="["+Gte+"]?",Qte="(?:"+Yte+"(?:"+[wR,xR,CR].join("|")+")"+OR+$R+")*",Jte=OR+$R+Qte,Zte="(?:"+[wR+qh+"?",qh,xR,CR,Xte].join("|")+")",ene=RegExp(Yh+"(?="+Yh+")|"+Zte+Jte,"g");function tne(e){return e.match(ene)||[]}function nne(e){return yR(e)?tne(e):Vte(e)}function rne(e){return function(t){t=vR(t);var n=yR(t)?nne(t):void 0,r=n?n[0]:t.charAt(0),o=n?Mte(n,1).join(""):t.slice(1);return r[e]()+o}}var one=rne("toUpperCase");const ine=one;function ER(e){return ine(vR(e).toLowerCase())}function ane(){this.__data__=new Ao,this.size=0}function sne(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function lne(e){return this.__data__.get(e)}function cne(e){return this.__data__.has(e)}var une=200;function dne(e,t){var n=this.__data__;if(n instanceof Ao){var r=n.__data__;if(!yl||r.length<une-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qa(r)}return n.set(e,t),this.size=n.size,this}function Ja(e){var t=this.__data__=new Ao(e);this.size=t.size}Ja.prototype.clear=ane;Ja.prototype.delete=sne;Ja.prototype.get=lne;Ja.prototype.has=cne;Ja.prototype.set=dne;function fne(e,t){return e&&Fd(t,Im(t),e)}function pne(e,t){return e&&Fd(t,_m(t),e)}var NR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P1=NR&&typeof module=="object"&&module&&!module.nodeType&&module,hne=P1&&P1.exports===NR,I1=hne?co.Buffer:void 0,_1=I1?I1.allocUnsafe:void 0;function gne(e,t){if(t)return e.slice();var n=e.length,r=_1?_1(n):new e.constructor(n);return e.copy(r),r}function vne(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function RR(){return[]}var mne=Object.prototype,bne=mne.propertyIsEnumerable,T1=Object.getOwnPropertySymbols,yne=T1?function(e){return e==null?[]:(e=Object(e),vne(T1(e),function(t){return bne.call(e,t)}))}:RR;const Mm=yne;function Sne(e,t){return Fd(e,Mm(e),t)}var wne=Object.getOwnPropertySymbols,xne=wne?function(e){for(var t=[];e;)mR(t,Mm(e)),e=Tm(e);return t}:RR;const PR=xne;function Cne(e,t){return Fd(e,PR(e),t)}function IR(e,t,n){var r=t(e);return Bd(e)?r:mR(r,n(e))}function $ne(e){return IR(e,Im,Mm)}function One(e){return IR(e,_m,PR)}var Ene=Li(co,"DataView");const Qh=Ene;var Nne=Li(co,"Promise");const Jh=Nne;var Rne=Li(co,"Set");const Zh=Rne;var M1="[object Map]",Pne="[object Object]",D1="[object Promise]",j1="[object Set]",A1="[object WeakMap]",k1="[object DataView]",Ine=ki(Qh),_ne=ki(yl),Tne=ki(Jh),Mne=ki(Zh),Dne=ki(Xh),ai=ji;(Qh&&ai(new Qh(new ArrayBuffer(1)))!=k1||yl&&ai(new yl)!=M1||Jh&&ai(Jh.resolve())!=D1||Zh&&ai(new Zh)!=j1||Xh&&ai(new Xh)!=A1)&&(ai=function(e){var t=ji(e),n=t==Pne?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case Ine:return k1;case _ne:return M1;case Tne:return D1;case Mne:return j1;case Dne:return A1}return t});const Dm=ai;var jne=Object.prototype,Ane=jne.hasOwnProperty;function kne(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ane.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Lne=co.Uint8Array;const L1=Lne;function jm(e){var t=new e.constructor(e.byteLength);return new L1(t).set(new L1(e)),t}function zne(e,t){var n=t?jm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Bne=/\w*$/;function Fne(e){var t=new e.constructor(e.source,Bne.exec(e));return t.lastIndex=e.lastIndex,t}var z1=Zo?Zo.prototype:void 0,B1=z1?z1.valueOf:void 0;function Vne(e){return B1?Object(B1.call(e)):{}}function Hne(e,t){var n=t?jm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Wne="[object Boolean]",Une="[object Date]",Kne="[object Map]",Gne="[object Number]",Xne="[object RegExp]",qne="[object Set]",Yne="[object String]",Qne="[object Symbol]",Jne="[object ArrayBuffer]",Zne="[object DataView]",ere="[object Float32Array]",tre="[object Float64Array]",nre="[object Int8Array]",rre="[object Int16Array]",ore="[object Int32Array]",ire="[object Uint8Array]",are="[object Uint8ClampedArray]",sre="[object Uint16Array]",lre="[object Uint32Array]";function cre(e,t,n){var r=e.constructor;switch(t){case Jne:return jm(e);case Wne:case Une:return new r(+e);case Zne:return zne(e,n);case ere:case tre:case nre:case rre:case ore:case ire:case are:case sre:case lre:return Hne(e,n);case Kne:return new r;case Gne:case Yne:return new r(e);case Xne:return Fne(e);case qne:return new r;case Qne:return Vne(e)}}function ure(e){return typeof e.constructor=="function"&&!Rm(e)?GZ(Tm(e)):{}}var dre="[object Map]";function fre(e){return Ai(e)&&Dm(e)==dre}var F1=Ia&&Ia.isMap,pre=F1?Pm(F1):fre;const hre=pre;var gre="[object Set]";function vre(e){return Ai(e)&&Dm(e)==gre}var V1=Ia&&Ia.isSet,mre=V1?Pm(V1):vre;const bre=mre;var yre=1,Sre=2,wre=4,_R="[object Arguments]",xre="[object Array]",Cre="[object Boolean]",$re="[object Date]",Ore="[object Error]",TR="[object Function]",Ere="[object GeneratorFunction]",Nre="[object Map]",Rre="[object Number]",MR="[object Object]",Pre="[object RegExp]",Ire="[object Set]",_re="[object String]",Tre="[object Symbol]",Mre="[object WeakMap]",Dre="[object ArrayBuffer]",jre="[object DataView]",Are="[object Float32Array]",kre="[object Float64Array]",Lre="[object Int8Array]",zre="[object Int16Array]",Bre="[object Int32Array]",Fre="[object Uint8Array]",Vre="[object Uint8ClampedArray]",Hre="[object Uint16Array]",Wre="[object Uint32Array]",Xt={};Xt[_R]=Xt[xre]=Xt[Dre]=Xt[jre]=Xt[Cre]=Xt[$re]=Xt[Are]=Xt[kre]=Xt[Lre]=Xt[zre]=Xt[Bre]=Xt[Nre]=Xt[Rre]=Xt[MR]=Xt[Pre]=Xt[Ire]=Xt[_re]=Xt[Tre]=Xt[Fre]=Xt[Vre]=Xt[Hre]=Xt[Wre]=!0;Xt[Ore]=Xt[TR]=Xt[Mre]=!1;function Uc(e,t,n,r,o,i){var a,s=t&yre,l=t&Sre,c=t&wre;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!Wl(e))return e;var u=Bd(e);if(u){if(a=kne(e),!s)return XZ(e,a)}else{var d=Dm(e),f=d==TR||d==Ere;if(fR(e))return gne(e,s);if(d==MR||d==_R||f&&!o){if(a=l||f?{}:ure(e),!s)return l?Cne(e,pne(a,e)):Sne(e,fne(a,e))}else{if(!Xt[d])return o?e:{};a=cre(e,d,s)}}i||(i=new Ja);var p=i.get(e);if(p)return p;i.set(e,a),bre(e)?e.forEach(function(b){a.add(Uc(b,t,n,b,e,i))}):hre(e)&&e.forEach(function(b,g){a.set(g,Uc(b,t,n,g,e,i))});var h=c?l?One:$ne:l?_m:Im,m=u?void 0:h(e);return YZ(m||e,function(b,g){m&&(g=b,b=e[g]),sR(a,g,Uc(b,t,n,g,e,i))}),a}var Ure=1,Kre=4;function H1(e){return Uc(e,Ure|Kre)}const Am="ComponentLib",eg=`plugin:${Am}`,Gre=({children:e})=>v("div",{className:JN.tabTitle,children:e});class Xre extends O.Component{constructor(n){super(n);Le(this,"containerRef");Le(this,"disposeList",[]);Le(this,"leftPanelVisibleCb",async({visible:n,panelName:r})=>{await this.props.pluginCtx.pluginManager.onPluginReadyOk("Designer"),r===Am&&n&&this.registerDragEvent()});Le(this,"registerDragEvent",async()=>{const{containerRef:n}=this,{pluginCtx:r}=this.props,o=await r.pluginManager.get("Designer");if(!o||!n.current)return;const i=r.pageModel,s=o.exports.getDnd(),l=new Bl({name:"ComponentListBox",container:n.current});l.setCanDrag(u=>{const d=u.event.target;if(!d)return;const f=eR(d,ZN);if(!f)return;const p=i.materialsModel.findSnippetById(f);if(!p)return;const h=i==null?void 0:i.createNode(p.schema);return this.props.pluginCtx.pluginManager.get("Designer").then(m=>{(m==null?void 0:m.exports).selectNode("")}),{...u,extraData:{type:"NEW_ADD",startNode:h}}}),s.registerSensor(l);const c=()=>{const{getWorkbench:u}=this.props.pluginCtx,d=u();d.state.leftBoxFixed||d.closeLeftPanel()};this.disposeList.push(()=>{s.emitter.off("dragStart",c)}),s.emitter.on("dragStart",c)});this.containerRef=O.createRef(),this.state={componentsList:[]}}async componentDidMount(){const{pluginCtx:n}=this.props,{pageModel:r,i18n:o}=n,{materialsModel:i}=r;await this.props.pluginCtx.pluginManager.onPluginReadyOk("Designer"),this.registerDragEvent(),Object.keys(m1).forEach(s=>{o.addResourceBundle(s,eg,m1[s],!0,!0)}),o.update();const a=i.getAllSnippets();this.setState({componentsList:a})}componentWillUnmount(){this.disposeList.map(n=>n())}render(){const{componentsList:n}=this.state,r=n.map(o=>({label:v(Gre,{children:ER(o.name)}),key:o.name,children:v(uZ,{dataSource:o.list})}));return v("div",{ref:this.containerRef,className:JN.container,children:v(jl,{defaultActiveKey:"BaseComponent",items:r,style:{flex:1}})})}}const DR={name:Am,async init(e){const t=xa(eg)(Xre),n=xa(eg)(({t:o})=>v(Ht,{children:o("pluginName")}));e.getWorkbench().addLeftPanel({title:v(n,{}),name:"ComponentLib",icon:v(u3,{}),render:v(t,{pluginCtx:e})})},async destroy(e){console.log("destroy",e)},exports:e=>({}),meta:{engine:{version:"1.0.0"}}};const jR="Designer",qre={pluginName:"组件库"},Yre={pluginName:"Component Store"},W1={zh_CN:qre,en_US:Yre},Qre="_toolBarBox_h5ljb_2",Jre="_item_h5ljb_10",Zre="_layoutSelectBox_h5ljb_20",eoe="_hoverBox_h5ljb_25",toe="_hoverBoxActive_h5ljb_35",noe="_hoverItem_h5ljb_39",roe="_placeholder_h5ljb_47",wo={toolBarBox:Qre,item:Jre,layoutSelectBox:Zre,hoverBox:eoe,hoverBoxActive:toe,hoverItem:noe,placeholder:roe},ooe=({dataSource:e,children:t,onSelect:n})=>{const[r,o]=O.useState(!1);return ae("div",{className:wo.layoutSelectBox,children:[v("div",{className:ur([wo.hoverBox,r&&wo.hoverBoxActive]),children:e.map(i=>v("div",{className:wo.hoverItem,onClick:()=>n(i.key),children:i.label},i.key))}),v("div",{className:wo.placeholder,onMouseOver:()=>o(!0),onMouseOut:()=>o(!1),children:t})]})},ioe=({nodeList:e,toSelectNode:t,toDelete:n,toCopy:r,toHidden:o})=>{var f;const i=[...e],a=i.shift(),s=i.map(p=>{var g;const h=p,m=(g=h.materialsModel.findByComponentName(h.value.componentName))==null?void 0:g.value.title,b=h.value.title||m||h.value.componentName||"";return{key:p.id,label:b||"Empty"}}),l=v("div",{className:wo.item,onClick:()=>r((a==null?void 0:a.id)||""),children:v(YO,{})}),c=v("div",{className:wo.item,onClick:()=>n((a==null?void 0:a.id)||""),children:v($v,{})}),u=v("div",{className:wo.item,onClick:()=>o((a==null?void 0:a.id)||""),children:v(tE,{})}),d=v(ooe,{dataSource:s.reverse(),onSelect:t,children:v("div",{children:(a==null?void 0:a.value.title)||((f=a==null?void 0:a.material)==null?void 0:f.value.title)||"Empty"})});return ae("div",{className:wo.toolBarBox,children:[d,u,l,c]})},aoe=(e,t=5)=>{const n=[];let r=0,o=e;for(;r<t&&o;)kU(o)&&(n.push(o),r++),o=o.parent||null;return n},U1=({node:e})=>v("div",{style:{backgroundColor:"rgba(100,100,100)",padding:"3px 10px 3px 15px",borderRadius:"2px",opacity:.9,color:"rgba(220,220,220)"},children:e.value.componentName}),soe="_hoverTips_k3vn7_2",K1={hoverTips:soe};class loe extends O.Component{constructor(n){super(n);Le(this,"layoutRef");Le(this,"onSelectNode",n=>{if(!n)return;const{pluginCtx:r}=this.props;r.engine.updateCurrentSelectNode(n);const o=this.props.pluginCtx.pageModel,i=aoe(n,5),{layoutRef:a}=this;this.setState({selectToolBar:v(ioe,{nodeList:i,toSelectNode:s=>{var l;(l=a.current)==null||l.selectNode(s),this.onSelectNode(o.getNode(s))},toCopy:s=>{var c,u;const l=this.props.pluginCtx.pageModel.copyNodeById(s);l?((c=a.current)==null||c.selectNode(l.id),this.onSelectNode(l)):((u=a.current)==null||u.selectNode(""),this.onSelectNode(null))},toDelete:s=>{var l;this.props.pluginCtx.pageModel.deleteNodeById(s),(l=a.current)==null||l.selectNode(""),this.onSelectNode(null)},toHidden:s=>{const l=this.props.pluginCtx.pageModel.getNode(s);if(!l)return;const c=l.value.configure.devState??{};c.condition=!1,l.value.configure.devState=c,l.updateValue()}})})});Le(this,"onDragStart",n=>{n&&this.setState({ghostView:v(U1,{node:n})})});Le(this,"onHoverNode",(n,r)=>{this.props.pluginCtx.emitter.emit("onHover",n);const o=n==null?void 0:n.material;if(o||console.warn("material not found",n),!r){this.setState({hoverToolBar:v("div",{className:K1.hoverTips,children:(o==null?void 0:o.value.title)||(o==null?void 0:o.componentName)}),ghostView:null});return}this.setState({hoverToolBar:v("div",{className:K1.hoverTips,children:(o==null?void 0:o.value.title)||(o==null?void 0:o.componentName)}),ghostView:v(U1,{node:r})})});this.state={pageModel:n.pluginCtx.pageModel,hoverToolBar:null,selectToolBar:null,ghostView:null,assets:n.pluginCtx.assets||[]},this.layoutRef=O.createRef()}componentDidMount(){const{i18n:n}=this.props.pluginCtx;Object.keys(W1).forEach(r=>{n.addResourceBundle(r,`plugin:${jR}`,W1[r],!0,!0)}),this.init()}updateAssets(n){this.setState({assets:n})}reloadRender({assets:n}){var r;(r=this.layoutRef.current)==null||r.reload({assets:n})}async init(){var i;const{layoutRef:n}=this,{pluginCtx:r}=this.props;if(!n.current){console.warn("layout not ready ok");return}await n.current.ready();const o=n.current;(i=o.dnd)==null||i.emitter.on("drop",a=>{var d,f,p,h,m,b,g;const s=this.props.pluginCtx.pageModel,l=a.extraData,c=l.dropPosInfo,u={before:"BEFORE",after:"AFTER",current:"CHILD_START"}[(c==null?void 0:c.pos)||"after"];if(!l.dropNode){console.warn("cancel drop, because drop node is null");return}if(l.type==="NEW_ADD")((d=l.dropNode)==null?void 0:d.nodeType)!=="NODE"?s==null||s.addNode(l.startNode,l.dropNode,"CHILD_START"):s==null||s.addNode(l.startNode,l.dropNode,u);else{if(((f=l.dropNode)==null?void 0:f.id)===((p=l.startNode)==null?void 0:p.id)){console.warn(" id is the same");return}s.moveNodeById(((h=l.startNode)==null?void 0:h.id)||"",((m=l==null?void 0:l.dropNode)==null?void 0:m.id)||"",u)||console.warn("drop failed")}(g=n.current)==null||g.selectNode(((b=l.startNode)==null?void 0:b.id)||""),this.props.pluginCtx.emitter.emit("onDrop",a)}),r.emitter.emit("ready",{UIInstance:this}),o.dnd.emitter.on("click",({event:a})=>{r.getWorkbench().onGlobalClick(a)}),this.props.pluginCtx.pageModel.emitter.on("onPageChange",({node:a})=>{var s,l,c;(c=(l=(s=n.current)==null?void 0:s.designRenderRef)==null?void 0:l.current)==null||c.rerender(a)}),this.props.pluginCtx.pageModel.emitter.on("onReloadPage",({node:a})=>{var s,l,c;(c=(l=(s=n.current)==null?void 0:s.designRenderRef)==null?void 0:l.current)==null||c.rerender(a)}),r.pluginReadyOk()}render(){const{layoutRef:n,props:r,onSelectNode:o,onDragStart:i,onHoverNode:a}=this,{pageModel:s,hoverToolBar:l,selectToolBar:c,ghostView:u,assets:d}=this.state;return v(QN,{beforeInitRender:r.pluginCtx.config.beforeInitRender,customRender:r.pluginCtx.config.customRender,ref:n,pageModel:s,renderScriptPath:"./render.umd.js",...r,hoverToolBar:l,selectToolBar:c,selectBoxStyle:{},hoverBoxStyle:{},onSelectNode:o,onDragStart:i,onHoverNode:a,ghostView:u,assets:d})}}const AR=e=>{const t=O.createRef();return{name:jR,async init(n){n.getWorkbench().replaceBodyView(v(loe,{ref:t,pluginCtx:n}))},async destroy(n){console.log("destroy",n)},exports:()=>({getDnd:()=>{var n,r;return(r=(n=t.current)==null?void 0:n.layoutRef.current)==null?void 0:r.dnd},selectNode:n=>{var r,o;(o=(r=t.current)==null?void 0:r.layoutRef.current)==null||o.selectNode(n)},updatePage:n=>{var r,o,i,a;(a=(i=(o=(r=t.current)==null?void 0:r.layoutRef.current)==null?void 0:o.designRenderRef)==null?void 0:i.current)==null||a.rerender(n)},reload:({assets:n}={})=>{var r;(r=t.current)==null||r.reloadRender({assets:n})},getComponentInstances:n=>{var r,o,i;return((i=(o=(r=t.current)==null?void 0:r.layoutRef.current)==null?void 0:o.designRenderRef.current)==null?void 0:i.getInstancesById(n))||[]},getDynamicComponentInstances:n=>{var o,i,a,s;const r=(s=(a=(i=(o=t.current)==null?void 0:o.layoutRef.current)==null?void 0:i.designRenderRef.current)==null?void 0:a.renderRef.current)==null?void 0:s.dynamicComponentInstanceMap;return(r==null?void 0:r.get(n))||[]}}),meta:{engine:{version:"1.0.0"}}}};var tg={},coe={get exports(){return tg},set exports(e){tg=e}};(function(e,t){(function(n,r){e.exports=r()})(ys,function(){function n(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}function r(w,y){for(var $=0;$<y.length;$++){var E=y[$];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}function o(w,y,$){return y&&r(w.prototype,y),$&&r(w,$),w}function i(w,y,$){return y in w?Object.defineProperty(w,y,{value:$,enumerable:!0,configurable:!0,writable:!0}):w[y]=$,w}function a(w,y){var $=Object.keys(w);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(w);y&&(E=E.filter(function(N){return Object.getOwnPropertyDescriptor(w,N).enumerable})),$.push.apply($,E)}return $}function s(w){for(var y=1;y<arguments.length;y++){var $=arguments[y]!=null?arguments[y]:{};y%2?a(Object($),!0).forEach(function(E){i(w,E,$[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors($)):a(Object($)).forEach(function(E){Object.defineProperty(w,E,Object.getOwnPropertyDescriptor($,E))})}return w}function l(w){return function(y){if(Array.isArray(y))return u(y)}(w)||function(y){if(typeof Symbol<"u"&&Symbol.iterator in Object(y))return Array.from(y)}(w)||c(w)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
426
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function c(w,y){if(w){if(typeof w=="string")return u(w,y);var $=Object.prototype.toString.call(w).slice(8,-1);return $==="Object"&&w.constructor&&($=w.constructor.name),$==="Map"||$==="Set"?Array.from(w):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?u(w,y):void 0}}function u(w,y){(y==null||y>w.length)&&(y=w.length);for(var $=0,E=new Array(y);$<y;$++)E[$]=w[$];return E}function d(w){if(typeof Symbol>"u"||w[Symbol.iterator]==null){if(Array.isArray(w)||(w=c(w))){var y=0,$=function(){};return{s:$,n:function(){return y>=w.length?{done:!0}:{done:!1,value:w[y++]}},e:function(D){throw D},f:$}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
427
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,N,P=!0,_=!1;return{s:function(){E=w[Symbol.iterator]()},n:function(){var D=E.next();return P=D.done,D},e:function(D){_=!0,N=D},f:function(){try{P||E.return==null||E.return()}finally{if(_)throw N}}}}var f={};f[f.Fatal=0]="Fatal",f[f.Error=0]="Error",f[f.Warn=1]="Warn",f[f.Log=2]="Log",f[f.Info=3]="Info",f[f.Success=3]="Success",f[f.Debug=4]="Debug",f[f.Trace=5]="Trace",f[f.Silent=-1/0]="Silent",f[f.Verbose=1/0]="Verbose";var p={silent:{level:-1},fatal:{level:f.Fatal},error:{level:f.Error},warn:{level:f.Warn},log:{level:f.Log},info:{level:f.Info},success:{level:f.Success},debug:{level:f.Debug},trace:{level:f.Trace},verbose:{level:f.Trace},ready:{level:f.Info},start:{level:f.Info}};function h(w){return y=w,Object.prototype.toString.call(y)==="[object Object]"&&!(!w.message&&!w.args)&&!w.stack;var y}var m=!1,b=[],g=function(){function w(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var $ in n(this,w),this._reporters=y.reporters||[],this._types=y.types||p,this.level=y.level!==void 0?y.level:3,this._defaults=y.defaults||{},this._async=y.async!==void 0?y.async:void 0,this._stdout=y.stdout,this._stderr=y.stderr,this._mockFn=y.mockFn,this._throttle=y.throttle||1e3,this._throttleMin=y.throttleMin||5,this._types){var E=s(s({type:$},this._types[$]),this._defaults);this[$]=this._wrapLogFn(E),this[$].raw=this._wrapLogFn(E,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return o(w,[{key:"create",value:function(y){return new w(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},y))}},{key:"withDefaults",value:function(y){return this.create({defaults:Object.assign({},this._defaults,y)})}},{key:"withTag",value:function(y){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+y:y})}},{key:"addReporter",value:function(y){return this._reporters.push(y),this}},{key:"removeReporter",value:function(y){if(y){var $=this._reporters.indexOf(y);if($>=0)return this._reporters.splice($,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(y){return this._reporters=Array.isArray(y)?y:[y],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var y in this._types)console["__"+y]||(console["__"+y]=console[y]),console[y]=this[y].raw}},{key:"restoreConsole",value:function(){for(var y in this._types)console["__"+y]&&(console[y]=console["__"+y],delete console["__"+y])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(y,$){var E=this;y&&(y.__write||(y.__write=y.write),y.write=function(N){E[$].raw(String(N).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(y){y&&y.__write&&(y.write=y.__write,delete y.__write)}},{key:"pauseLogs",value:function(){m=!0}},{key:"resumeLogs",value:function(){m=!1;var y,$=d(b.splice(0));try{for($.s();!(y=$.n()).done;){var E=y.value;E[0]._logFn(E[1],E[2])}}catch(N){$.e(N)}finally{$.f()}}},{key:"mockTypes",value:function(y){if(this._mockFn=y||this._mockFn,typeof this._mockFn=="function")for(var $ in this._types)this[$]=this._mockFn($,this._types[$])||this[$],this[$].raw=this[$]}},{key:"_wrapLogFn",value:function(y,$){var E=this;return function(){for(var N=arguments.length,P=new Array(N),_=0;_<N;_++)P[_]=arguments[_];if(!m)return E._logFn(y,P,$);b.push([E,y,P,$])}}},{key:"_logFn",value:function(y,$,E){var N=this;if(y.level>this.level)return!!this._async&&Promise.resolve(!1);var P=Object.assign({date:new Date,args:[]},y);!E&&$.length===1&&h($[0])?Object.assign(P,$[0]):P.args=Array.from($),P.message&&(P.args.unshift(P.message),delete P.message),P.additional&&(Array.isArray(P.additional)||(P.additional=P.additional.split(`
|
|
428
|
+
`)),P.args.push(`
|
|
429
|
+
`+P.additional.join(`
|
|
430
|
+
`)),delete P.additional),P.type=typeof P.type=="string"?P.type.toLowerCase():"",P.tag=typeof P.tag=="string"?P.tag.toLowerCase():"";var _=function(){var T=arguments.length>0&&arguments[0]!==void 0&&arguments[0],j=N._lastLogCount-N._throttleMin;if(N._lastLog&&j>0){var A=l(N._lastLog.args);j>1&&A.push("(repeated ".concat(j," times)")),N._log(s(s({},N._lastLog),{},{args:A})),N._lastLogCount=1}if(T){if(N._lastLog=P,N._async)return N._logAsync(P);N._log(P)}};clearTimeout(this._throttleTimeout);var D=this._lastLogTime?P.date-this._lastLogTime:0;if(this._lastLogTime=P.date,D<this._throttle)try{var M=JSON.stringify([P.type,P.tag,P.args]),I=this._lastLogSerialized===M;if(this._lastLogSerialized=M,I&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(_,this._throttle))}catch{}_(!0)}},{key:"_log",value:function(y){var $,E=d(this._reporters);try{for(E.s();!($=E.n()).done;)$.value.log(y,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(N){E.e(N)}finally{E.f()}}},{key:"_logAsync",value:function(y){var $=this;return Promise.all(this._reporters.map(function(E){return E.log(y,{async:!0,stdout:$.stdout,stderr:$.stderr})}))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),w}();g.prototype.add=g.prototype.addReporter,g.prototype.remove=g.prototype.removeReporter,g.prototype.clear=g.prototype.removeReporter,g.prototype.withScope=g.prototype.withTag,g.prototype.mock=g.prototype.mockTypes,g.prototype.pause=g.prototype.pauseLogs,g.prototype.resume=g.prototype.resumeLogs;var S,C=function(){function w(y){n(this,w),this.options=Object.assign({},y),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return o(w,[{key:"log",value:function(y){var $=y.level<1?console.__error||console.error:y.level===1&&console.warn?console.__warn||console.warn:console.__log||console.log,E=y.type!=="log"?y.type:"",N=y.tag?y.tag:"",P=this.typeColorMap[y.type]||this.levelColorMap[y.level]||this.defaultColor,_=`
|
|
431
|
+
background: `.concat(P,`;
|
|
432
|
+
border-radius: 0.5em;
|
|
433
|
+
color: white;
|
|
434
|
+
font-weight: bold;
|
|
435
|
+
padding: 2px 0.5em;
|
|
436
|
+
`),D="%c".concat([N,E].filter(Boolean).join(":"));typeof y.args[0]=="string"?$.apply(void 0,["".concat(D,"%c ").concat(y.args[0]),_,""].concat(l(y.args.slice(1)))):$.apply(void 0,[D,_].concat(l(y.args)))}}]),w}();return typeof window<"u"&&window.consola||((S=new g({reporters:[new C]})).Consola=g,S.LogLevel=f,S.BrowserReporter=C,S)})})(coe);const uoe=tg,Yr=uoe.create({level:1}),ng=(e,t)=>{if(!e)return null;const n=e.getAttribute(t);return n||ng(e.parentElement,t)},kR=(e,t,n)=>{const r=(o,i)=>{var m,b;let a=o.children||[];Array.isArray(a)||(a=[]),a=a.filter(g=>typeof g!="string");const s=(m=n.materialsModel.findByComponentName(o.componentName))==null?void 0:m.value.title,l={title:o.title||s||o.componentName,key:o.id,children:[],parent:i},c=[],u={title:"SLOT",key:`${o.id}-SLOT`,children:c,canBeSelected:!1,canDrop:!1,parent:null,containerRender:({treeNodeView:g})=>v("div",{style:{border:"1px solid #a97cf8",borderTopWidth:"6px",marginRight:"2px",marginTop:"5px"},children:g})},d=o.props||{},f=(g,S,C)=>{if(AU(g)){const y=g,$=n.getNode(o.id);let E="";if($){const D=p($,[...C,S]);E=_h(D)}let N=S;E&&(N=_h(E)||S);const P={title:N,key:`${o.id}-${C.join("_")}`,children:[],canBeSelected:!1,canDrag:!1,canDrop:["current"],parent:u};let _=[];y.value&&!Array.isArray(y.value)?_=[y.value]:_=y.value,P.children=kR(_,P,n),c.push(P);return}if(Wd(g)){const y=g;Object.keys(y).forEach($=>{f(y[$],$,[...C,S])})}Array.isArray(g)&&g.forEach(($,E)=>{f($,String(E),[...C,S])})},p=(g,S)=>{const C=poe(g),w=S.map(y=>String(parseInt(y,10))===y?"$NUM":y);return C[w.join(".")]||""};Object.keys(d).forEach(g=>{f(d[g],g,[])}),c.length>0&&((b=l.children)==null||b.push(u),u.parent=l);const h=a.map(g=>r(g,l))||[];return l.children=[...l.children,...h],l};return Array.isArray(e)?e.map(o=>r(o,t)):r(e,t)},doe=(e,t)=>{const n=e.componentsTree;let r=n.children||[];Array.isArray(r)||(r=[]);const o={title:"Page",key:n.id||"Page",rootNode:!0,children:[]};return o.children=kR(r,o,t),[o]},rp=(e,t)=>{let n=[];Array.isArray(e)?n=e:n=[e];let r=!1;const o=(i,a)=>{var l;if(r)return;a(i)?r=!0:(l=i.children)==null||l.forEach(c=>{o(c,a)})};n.forEach(i=>{o(i,t)})};function foe(e){const{point:t,dom:n}=e;let r;const o=t,i=n.getBoundingClientRect(),a=i.height,s=i.x+50,l=i.y+Math.round(a/2);return o.y>l?r="after":r="before",o.x>s&&r=="after"&&(r="current"),{pos:r,direction:"vertical"}}const poe=e=>{var o;const t={},n=(o=e.material)==null?void 0:o.value.props;if(!n)return t;const r=(i,a)=>{var s,l;if(Wd(i)){const c=[...a],u=i,d=u.componentName;if(d==="ArraySetter"){const p=((s=u.props)==null?void 0:s.item.setters)||[],h=t[a.join(".")];let m="";typeof h=="string"?m=h:m=h.label,c.push("$NUM"),p.forEach(b=>{m=`${m}`,t[c.join(".")]=m,r(b,c)})}else d==="ShapeSetter"&&(((l=u.props)==null?void 0:l.elements)||[]).forEach(h=>{const m=[...c];m.push(h.name),t[m.join(".")]=h.title,(h.setters||[]).forEach(g=>{r(g,[...m])})})}};return n.forEach(i=>{let a=null;nN(i)?a=i.content:a=i;let s=[];Array.isArray(a)?s=a:s=[a],s.forEach(l=>{var u;const c=[l.name];t[c.join(".")]=l.title,(u=l.setters)==null||u.forEach(d=>{r(d,c)})})}),t};var ua=(e=>(e.DRAGGING="DRAGGING",e.NORMAL="NORMAL",e))(ua||{});const LR=O.createContext({state:{treeData:[],currentSelectNodeKeys:[],expandKeys:[],multiSelect:!1,dragState:"NORMAL",pageModel:null},updateState:()=>{},onSelectNode:()=>{},onDeleteNode:e=>{},onCopyNode:e=>{}}),hoe="_contentBox_13nm8_2",goe="_nodeBox_13nm8_13",voe="_toolbarBox_13nm8_16",moe="_iconItem_13nm8_20",boe="_nodeContent_13nm8_24",yoe="_selected_13nm8_34",Soe="_nodeArrow_13nm8_37",woe="_expanded_13nm8_40",xoe="_nodeRenderView_13nm8_44",Coe="_nodeChildren_13nm8_53",$oe="_dropAnchorLine_13nm8_70",Ooe="_arrowSpan_13nm8_79",Vn={contentBox:hoe,nodeBox:goe,toolbarBox:voe,iconItem:moe,nodeContent:boe,selected:yoe,nodeArrow:Soe,expanded:woe,nodeRenderView:xoe,nodeChildren:Coe,dropAnchorLine:$oe,arrowSpan:Ooe},aa="data-drag-key",zR=e=>{var B,H,U,J;const t=O.useRef({titleEditable:!1}),{level:n=0,item:r,paths:o=["0"]}=e,[i,a]=O.useState(!0),{state:s,updateState:l,onSelectNode:c,onDeleteNode:u,getDesignerHandler:d,onCopyNode:f}=O.useContext(LR),[p,h]=O.useState((B=t.current)==null?void 0:B.titleEditable),[m,b]=O.useState("");t.current.titleEditable=p;const g=s.expandKeys.find(F=>F===r.key),S=()=>{let F=s.expandKeys;g?F=F.filter(z=>z!==r.key):F.push(r.key||""),l({expandKeys:F})},C=s.currentSelectNodeKeys.find(F=>F===r.key),w=O.useRef(null),y=()=>{var z;if(p){(z=w==null?void 0:w.current)==null||z.focus();return}if(r.canBeSelected!==void 0&&r.canBeSelected===!1)return;let F=s.currentSelectNodeKeys;if(!s.multiSelect){r.key?c==null||c({keys:[r.key],node:r}):c==null||c({keys:[],node:r}),l({currentSelectNodeKeys:[String(r.key)]});return}C?F=F.filter(k=>k!==r.key):F.push(String(r.key)),c==null||c({keys:F,node:r}),l({currentSelectNodeKeys:F})},$=20,E=$*n,N=r.canBeSelected??!0,P={[aa]:r.key},_=O.useRef(),D=O.useRef();D.current=s,_.current=F=>{const z=s.expandKeys,k=Array.from(new Set([...z,F]));l({expandKeys:k})};const M=O.useRef(null);O.useEffect(()=>{var k,Q;let F=0;(k=M.current)==null||k.addEventListener("mouseenter",()=>{F=window.setTimeout(()=>{var K,Y;((K=D.current)==null?void 0:K.dragState)===ua.DRAGGING&&((Y=_.current)==null||Y.call(_,r.key||""))},.8*1e3)}),(Q=M.current)==null||Q.addEventListener("mouseleave",()=>{clearTimeout(F)});const z=K=>{var Y;if(t.current.titleEditable){if(K.target===((Y=w.current)==null?void 0:Y.input))return;h(!1),I.updateValue()}};return document.addEventListener("click",z),()=>{F&&clearTimeout(F),document.removeEventListener("click",z)}},[]);const I=(H=s.pageModel)==null?void 0:H.getNode(r.key||""),T=()=>{const F=!i;if(!I)return;const z=I.value.configure.devState??{};z.condition=F,I.value.configure.devState=z,I.updateValue(),a(F)};let j=r.title;r.titleViewRender&&(j=r.titleViewRender({item:r,titleView:r.title})),I!=null&&I.value.title||(I==null||I.value.componentName);const A=ae("div",{className:Vn.nodeBox,children:[ae("div",{className:ur([Vn.nodeContent,C&&N&&Vn.selected]),style:{marginLeft:`${-E}px`,paddingLeft:`${E+8}px`},onMouseMove:async()=>{if(!r.key)return;const F=await(d==null?void 0:d()),z=F==null?void 0:F.getDynamicComponentInstances(r.key);typeof(z==null?void 0:z._CONDITION)<"u"&&a(z==null?void 0:z._CONDITION)},children:[(U=r.children)!=null&&U.length?v("span",{style:{paddingRight:"5px"},className:Vn.arrowSpan,onClickCapture:S,children:v(m3,{className:ur([Vn.nodeArrow,g&&Vn.expanded])})}):null,ae("div",{className:Vn.nodeRenderView,...P,ref:M,onClick:y,onDoubleClick:()=>{var Q;if(!I)return;const F=I,z=(Q=F.materialsModel.findByComponentName(F.value.componentName))==null?void 0:Q.value.title,k=F.value.title||z||F.value.componentName||"";b(k),h(!0),setTimeout(()=>{var K;(K=w.current)==null||K.focus()},100)},children:[!p&&j,p&&v("div",{style:{paddingRight:"10px"},children:v(Al,{size:"small",maxLength:20,ref:w,value:m,onPressEnter:()=>{h(!1),I.updateValue()},onChange:F=>{I.value.title=F.target.value,b(F.target.value)}})})]}),!p&&!r.rootNode&&ae("div",{className:Vn.toolbarBox,children:[ae("div",{className:Vn.iconItem,children:[!i&&v(h3,{onClick:T}),i&&v(tE,{onClick:T})]}),v("div",{className:Vn.iconItem,onClick:()=>{f(r.key||"")},children:v(YO,{})}),v("div",{className:Vn.iconItem,onClick:()=>{u(r.key||"")},children:v($v,{})})]})]}),v("div",{className:ur([Vn.nodeChildren,C&&Vn.selected]),style:{paddingLeft:`${$}px`,height:g?"auto":"0"},children:g&&((J=r.children)==null?void 0:J.map((F,z)=>{const k=`${F.key}-${z}`;return v(zR,{item:F,paths:[...o,z],level:n+1},k)}))})]});return r.containerRender?r.containerRender({item:r,treeNodeView:A}):A};class Eoe extends O.Component{constructor(n){super(n);Le(this,"domRef");Le(this,"disposeCbList",[]);Le(this,"sensor");Le(this,"getDesignerHandler",async()=>{const n=await this.props.pluginCtx.pluginManager.get("Designer");return n==null?void 0:n.exports});Le(this,"updateTreeDataFromNode",()=>{const{pluginCtx:n}=this.props,{pageModel:r}=n,o=r.export(),i=doe(o,r);this.setState({treeData:i})});Le(this,"getParentKeyPaths",n=>{const{treeData:r}=this.state;let o=null;if(rp(r,i=>i.key===n?(o=i,!0):!1),o){let i=o==null?void 0:o.parent;const a=[];for(;i;)i.key&&a.push(i.key),i=i.parent;return a}else return[]});Le(this,"scrollNodeToView",n=>{var o;const r=document.querySelector(`[${aa}="${n}"]`);(o=r==null?void 0:r.scrollIntoView)==null||o.call(r,{behavior:"smooth",block:"center"})});Le(this,"toSelectTreeNode",n=>{const r=this.getParentKeyPaths(n.id);Yr.debug("onSelectNodeChange parent path",r,n);const o=Array.from(new Set([...this.state.expandKeys,...r]));Yr.debug("onSelectNodeChange newExpandKeys",o,n),this.setState({currentSelectNodeKeys:[n.id],expandKeys:o}),setTimeout(()=>{this.scrollNodeToView(n.id)},100)});Le(this,"containNode",(n,r)=>{let o=null;return rp(n,i=>i.key===r.key?(o=i,!0):!1),o});Le(this,"getTreeNodeByKey",n=>{const{treeData:r}=this.state;let o=null;return rp(r,i=>i.key===n?(o=i,!0):!1),o});Le(this,"registerDragEvent",async()=>{if(!this.domRef.current)return;const n=new Bl({container:this.domRef.current,name:"OutlineTree",eventPriority:999}),{pluginCtx:r}=this.props,o=r.pageModel,a=(await this.getDesignerHandler()).getDnd();n.setCanDrag(s=>{const l=s.event.target;if(!l)return;const c=ng(l,aa);if(!c)return;const u=o.getNode(c),d=this.getTreeNodeByKey(c);if(!((d==null?void 0:d.canDrag)!==void 0&&(d==null?void 0:d.canDrag)===!1)){if(!u){console.log("targetNode not found");return}return{...s,extraData:{startNode:u}}}}),n.setCanDrop(s=>{var b;const l=s.event.target;if(!l)return Yr.debug("drop dom not found"),s;const c=ng(l,aa);if(!c)return Yr.debug("targetNodeId dom not found",s,l,aa),s;const u=this.getTreeNodeByKey(c);if((u==null?void 0:u.canDrop)!==void 0&&u.canDrop===!1)return Yr.debug("node can not be drop by tree node config"),s;const d=o.getNode(c);if(!d)return Yr.debug("targetNode not found"),s;const f=(b=s.extraData)==null?void 0:b.startNode;if(!f)return Yr.debug("startNode not found"),s;if((f==null?void 0:f.id)===d.id)return Yr.debug("startNode and dropNode is the same"),s;if(f.contains(d.id))return Yr.debug("startNode contain dropNode"),s;const h=foe({point:s.pointer,dom:l});return Array.isArray(u==null?void 0:u.canDrop)&&!(u!=null&&u.canDrop.includes(h.pos))?s:(Yr.info("can dropNode",d),{...s,extraData:{...s.extraData,dropPosInfo:h,dropNode:d,dropNodeUid:void 0}})}),a.registerSensor(n),n.emitter.on("dragging",s=>{var p,h;const l=s.extraData.dropNode;if(this.setState({dragState:ua.DRAGGING}),!l){this.setState({dropPosInfo:null});return}const c=(p=document.querySelectorAll(`[${aa}="${l.id}"]`))==null?void 0:p[0];if(!c)return;const u=(h=s.extraData)==null?void 0:h.dropPosInfo,d=c.getBoundingClientRect(),f={x:0,y:0};f.x=d.x,u.pos==="before"?f.y=d.y:u.pos=="after"?f.y=d.y+d.height:(f.y=d.y+d.height,f.x=d.x+20),this.setState({dropPosInfo:f})}),n.emitter.on("dragEnd",()=>{this.setState({dragState:ua.NORMAL})}),this.sensor=n});this.domRef=O.createRef(),this.state={treeData:[],currentSelectNodeKeys:[],expandKeys:[],multiSelect:n.multiSelect||!1,dropPosInfo:{x:0,y:0},pageModel:n.pluginCtx.pageModel,dragState:ua.NORMAL}}async componentDidMount(){this.updateTreeDataFromNode();const{pluginCtx:n}=this.props,{pageModel:r}=n;r.emitter.on("*",()=>{this.updateTreeDataFromNode()}),n.globalEmitter.on("onSelectNodeChange",({node:a})=>{this.toSelectTreeNode(a)}),n.getWorkbench().emitter.on("leftPanelVisible",({visible:a,panelName:s})=>{if(a&&s==="OutlineTree"){console.log("visible, panelName",a,s);const l=n.engine.getActiveNode();l&&this.toSelectTreeNode(l)}});const i=n.engine.getActiveNode();i&&this.toSelectTreeNode(i),await this.props.pluginCtx.pluginManager.onPluginReadyOk("Designer"),this.registerDragEvent()}render(){const{treeData:n,dragState:r,dropPosInfo:o}=this.state,{pluginCtx:i}=this.props;return v(LR.Provider,{value:{sensor:this.sensor,state:this.state,getDesignerHandler:this.getDesignerHandler,onSelectNode:async({keys:a})=>{const s=await i.pluginManager.get("Designer");if(!s){console.warn("Designer is empty");return}const l=(a==null?void 0:a[0])||"",c=i.pageModel.getNode(l);s.exports.selectNode(l),c&&i.engine.updateCurrentSelectNode(c)},updateState:a=>{this.setState(a)},onDeleteNode:a=>{i.pageModel.deleteNodeById(a)},onCopyNode:a=>{i.pageModel.copyNodeById(a)}},children:ae("div",{className:Vn.contentBox,ref:this.domRef,children:[n.map((a,s)=>v(zR,{item:a},a.key+`${s}`)),r===ua.DRAGGING&&o&&v("div",{className:Vn.dropAnchorLine,style:{left:`${o.x}px`,top:`${o.y}px`}})]})})}}const Noe={pluginName:"大纲树"},Roe={pluginName:"Layout Tree"},G1={zh_CN:Noe,en_US:Roe},rg="OutlineTree",op=`plugin:${rg}`,Poe={name:rg,async init(e){const{i18n:t}=e;Object.keys(G1).forEach(i=>{t.addResourceBundle(i,op,G1[i],!0,!0)});const n=xa(op)(Eoe),r=xa(op)(({t:i})=>v(Ht,{children:i("pluginName")}));e.getWorkbench().addLeftPanel({title:v(r,{}),name:rg,icon:v(c3,{}),render:v(n,{pluginCtx:e})})},async destroy(e){console.log("destroy",e)},exports:e=>({}),meta:{engine:{version:"1.0.0"}}},Ioe="_CFromRenderBox_1vsdm_2",_oe={CFromRenderBox:Ioe},BR=O.createContext({formName:"",formState:{},conditionConfig:{},updateContext:()=>{},updateConditionConfig:()=>{}});class km extends O.Component{constructor(n){super(n);Le(this,"updateContext");Le(this,"getFieldsValue",()=>this.formatValue(this.state.formState));Le(this,"setFields",n=>{this.setState({formState:n})});Le(this,"formatValue",n=>{const r={},o=this.state.conditionConfig;return Object.keys(n).forEach(i=>{var s;(((s=o[i])==null?void 0:s.call(o,n))??!0)&&(r[i]=n[i])}),r});this.updateContext=r=>{var o,i;this.setState({formState:r}),(i=(o=this.props).onValueChange)==null||i.call(o,this.formatValue(r))},this.state={formName:n.name,formState:n.initialValue??{},conditionConfig:{},updateContext:this.updateContext,updateConditionConfig:(r,o)=>{this.setState({conditionConfig:{...this.state.conditionConfig,[r]:o}})}}}render(){const{state:n}=this,{children:r}=this.props;return v(BR.Provider,{value:n,children:r})}}class Toe extends TypeError{constructor(t,n){let r;const{message:o,...i}=t,{path:a}=t,s=a.length===0?o:`At path: ${a.join(".")} -- ${o}`;super(s),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}}function Moe(e){return Lr(e)&&typeof e[Symbol.iterator]=="function"}function Lr(e){return typeof e=="object"&&e!=null}function hr(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function Doe(e){const{done:t,value:n}=e.next();return t?void 0:n}function joe(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:o,branch:i}=t,{type:a}=n,{refinement:s,message:l=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${hr(r)}\``}=e;return{value:r,type:a,refinement:s,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*X1(e,t,n,r){Moe(e)||(e=[e]);for(const o of e){const i=joe(o,t,n,r);i&&(yield i)}}function*Lm(e,t,n){n===void 0&&(n={});const{path:r=[],branch:o=[e],coerce:i=!1,mask:a=!1}=n,s={path:r,branch:o};if(i&&(e=t.coercer(e,s),a&&t.type!=="type"&&Lr(t.schema)&&Lr(e)&&!Array.isArray(e)))for(const c in e)t.schema[c]===void 0&&delete e[c];let l="valid";for(const c of t.validator(e,s))l="not_valid",yield[c,void 0];for(let[c,u,d]of t.entries(e,s)){const f=Lm(u,d,{path:c===void 0?r:[...r,c],branch:c===void 0?o:[...o,u],coerce:i,mask:a});for(const p of f)p[0]?(l=p[0].refinement!=null?"not_refined":"not_valid",yield[p[0],void 0]):i&&(u=p[1],c===void 0?e=u:e instanceof Map?e.set(c,u):e instanceof Set?e.add(u):Lr(e)&&(u!==void 0||c in e)&&(e[c]=u))}if(l!=="not_valid")for(const c of t.refiner(e,s))l="not_refined",yield[c,void 0];l==="valid"&&(yield[void 0,e])}class uo{constructor(t){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:n,schema:r,validator:o,refiner:i,coercer:a=l=>l,entries:s=function*(){}}=t;this.type=n,this.schema=r,this.entries=s,this.coercer=a,o?this.validator=(l,c)=>{const u=o(l,c);return X1(u,c,this,l)}:this.validator=()=>[],i?this.refiner=(l,c)=>{const u=i(l,c);return X1(u,c,this,l)}:this.refiner=()=>[]}assert(t){return Aoe(t,this)}create(t){return koe(t,this)}is(t){return zoe(t,this)}mask(t){return Loe(t,this)}validate(t,n){return n===void 0&&(n={}),Za(t,this,n)}}function Aoe(e,t){const n=Za(e,t);if(n[0])throw n[0]}function koe(e,t){const n=Za(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function Loe(e,t){const n=Za(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}function zoe(e,t){return!Za(e,t)[0]}function Za(e,t,n){n===void 0&&(n={});const r=Lm(e,t,n),o=Doe(r);return o[0]?[new Toe(o[0],function*(){for(const a of r)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function Boe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0].type==="type",o=t.map(a=>a.schema),i=Object.assign({},...o);return r?HR(i):qt(i)}function ni(e,t){return new uo({type:e,schema:null,validator:t})}function _a(e){return new uo({type:"dynamic",schema:null,*entries(t,n){yield*e(t,n).entries(t,n)},validator(t,n){return e(t,n).validator(t,n)},coercer(t,n){return e(t,n).coercer(t,n)},refiner(t,n){return e(t,n).refiner(t,n)}})}function Foe(e,t){const{schema:n}=e,r={...n};for(const o of t)delete r[o];switch(e.type){case"type":return HR(r);default:return qt(r)}}function Pn(){return ni("any",()=>!0)}function _n(e){return new uo({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${hr(t)}`}})}function xo(){return ni("boolean",e=>typeof e=="boolean")}function og(e){const t={},n=e.map(r=>hr(r)).join();for(const r of e)t[r]=r;return new uo({type:"enums",schema:t,validator(r){return e.includes(r)||`Expected one of \`${n}\`, but received: ${hr(r)}`}})}function FR(){return ni("func",e=>typeof e=="function"||`Expected a function, but received: ${hr(e)}`)}function to(e){const t=hr(e),n=typeof e;return new uo({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${t}\`, but received: ${hr(r)}`}})}function Voe(){return ni("never",()=>!1)}function VR(){return ni("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${hr(e)}`)}function qt(e){const t=e?Object.keys(e):[],n=Voe();return new uo({type:"object",schema:e||null,*entries(r){if(e&&Lr(r)){const o=new Set(Object.keys(r));for(const i of t)o.delete(i),yield[i,r[i],e[i]];for(const i of o)yield[i,r[i],n]}},validator(r){return Lr(r)||`Expected an object, but received: ${hr(r)}`},coercer(r){return Lr(r)?{...r}:r}})}function He(e){return new uo({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function Ls(e,t){return new uo({type:"record",schema:null,*entries(n){if(Lr(n))for(const r in n){const o=n[r];yield[r,r,e],yield[r,o,t]}},validator(n){return Lr(n)||`Expected an object, but received: ${hr(n)}`}})}function Fe(){return ni("string",e=>typeof e=="string"||`Expected a string, but received: ${hr(e)}`)}function HR(e){const t=Object.keys(e);return new uo({type:"type",schema:e,*entries(n){if(Lr(n))for(const r of t)yield[r,n[r],e[r]]},validator(n){return Lr(n)||`Expected an object, but received: ${hr(n)}`}})}function Zn(e){const t=e.map(n=>n.type).join(" | ");return new uo({type:"union",schema:null,coercer(n,r){return(e.find(i=>{const[a]=i.validate(n,{coerce:!0});return!a})||Hoe()).coercer(n,r)},validator(n,r){const o=[];for(const i of e){const[...a]=Lm(n,i,r),[s]=a;if(s[0])for(const[l]of a)l&&o.push(l);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${hr(n)}`,...o]}})}function Hoe(){return ni("unknown",()=>!0)}const WR=qt({package:Fe(),version:Fe(),exportName:Fe(),destructuring:He(xo()),subName:He(Fe()),main:He(Fe())});_n(WR);var Go=(e=>(e.SLOT="SLOT",e.FUNCTION="FUNCTION",e.EXPRESSION="EXPRESSION",e))(Go||{}),ig=(e=>(e.FUNC="FUNC",e.COMP="COMP",e))(ig||{});const Woe=()=>ni("normalObj",e=>!Wd(e)||[Go.SLOT,Go.EXPRESSION,Go.FUNCTION].includes(e==null?void 0:e.type)?!1:(Za(e,Ls(Fe(),zm)),!0)),zm=Zn([Fe(),VR(),xo(),qt({type:to(Go.SLOT),renderType:og([ig.FUNC,ig.COMP]),params:He(_n(Fe())),value:_a(()=>Zn([Tu,_n(Tu)]))}),qt({type:to(Go.EXPRESSION),value:Fe()}),qt({type:to(Go.FUNCTION),value:Fe()}),Woe(),_n(_a(()=>zm))]),q1=qt({type:to(Go.EXPRESSION),value:Fe()}),Tu=qt({id:He(Fe()),title:He(Fe()),componentName:Fe(),props:He(Ls(Fe(),zm)),stateName:He(Fe()),state:He(Ls(Fe(),Pn())),children:_a(()=>He(_n(Zn([Fe(),Tu])))),configure:He(Pn()),css:He(Pn()),style:He(Pn()),classNames:He(_n(Pn())),refId:He(Fe()),extra:He(Ls(Pn(),Pn())),condition:He(Zn([xo(),q1])),tempDevConfig:He(Pn()),loop:He(qt({open:xo(),data:Zn([_n(Pn()),q1]),args:He(_n(Fe())),forName:He(Fe()),forIndex:He(Fe()),key:He(Pn()),name:He(Fe())}))}),Uoe=e=>Wd(e)?e.label:e,Mu=Zn([Fe(),qt({label:Fe(),tip:He(Fe())})]),Koe=qt({type:to("shape"),value:_n(qt({name:Fe(),title:Mu,valueType:_a(()=>Ud)}))}),Goe=qt({type:to("enums"),value:_n(Fe())});qt({type:to("array"),value:_a(()=>Ud)});const Xoe=qt({type:to("array"),value:_a(()=>_n(Ud))}),Ud=Zn([og(["array","boolean","number","object","string"]),og(["component","expression","function"]),Koe,Goe,Xoe]),qoe=Zn([Fe(),qt({componentName:Fe(),props:He(Pn()),initialValue:He(Pn()),component:He(Pn())})]),ip=qt({name:Fe(),title:Mu,valueType:Ud,description:He(Fe()),defaultValue:Pn(),setters:He(_n(qoe)),condition:He(FR())}),Yoe=Zn([Fe(),FR()]);Zn([Fe(),qt({name:Fe(),describe:He(Fe()),params:He(qt({name:Fe(),description:Fe()})),template:Fe()})]);const Qoe=qt({id:He(Fe()),title:Fe(),snapshot:Zn([Fe(),Pn()]),snapshotText:He(Fe()),description:He(Fe()),tags:He(_n(Fe())),groupName:He(Fe()),category:He(Fe()),schema:Boe(Foe(Tu,["id"]),qt({componentName:He(Fe())}))});qt({componentName:Fe(),title:Fe(),screenshot:He(Fe()),icon:He(Fe()),tags:He(_n(Fe())),groupName:He(Fe()),category:He(Fe()),priority:He(VR()),npm:He(WR),snippets:_n(Qoe),props:_n(Zn([ip,qt({title:He(Mu),type:to("single"),content:ip}),qt({title:He(Mu),type:to("group"),content:_n(ip)})])),fixedProps:He(Pn()),isContainer:He(Zn([xo(),qt({placeholder:Fe(),width:Fe(),height:Fe()})])),isModal:He(Zn([xo(),qt({visibleKey:Fe()})])),isSupportStyle:He(xo()),isSupportDispatchNativeEvent:He(xo()),isLayout:He(xo()),rootSelector:He(Fe()),selectionToolBars:He(_n(Yoe)),extra:He(Ls(Pn(),Pn()))});const UR=({onValueChange:e,setterContext:t,...n})=>v(Cn,{theme:{token:{borderRadius:4}},children:v(Al,{...n,onChange:r=>{var o;(o=n.onChange)==null||o.call(n,r),e==null||e(r.target.value)}})});UR.setterName="字符设置器";const KR=({onValueChange:e,setterContext:t,...n})=>v(Cn,{theme:{token:{borderRadius:4}},children:v(aF,{style:{width:"100%"},...n,onChange:r=>{var o;(o=n.onChange)==null||o.call(n,r),e==null||e(r)}})});KR.setterName="数字设置器";const Bm=(e=[])=>e.map(t=>typeof t=="string"?{componentName:t}:t);function Joe(e){const{index:t,keyPaths:n,setters:r}=e,o={...e.style},i={[t]:e.value},a=O.useRef(null);return O.useEffect(()=>{var s;(s=a.current)==null||s.setFields({[t]:e.value})},[e.value]),v("div",{style:o,children:v(km,{ref:a,name:String(t),initialValue:i||{},onValueChange:e.onValueChange,children:v(Jm,{suffix:v("div",{onClick:e.onDelete,style:{marginLeft:"8px",cursor:"pointer",fontSize:"12px"},children:v($v,{})}),name:String(t),label:`元素${t}`,keyPaths:[...n,String(t)],setters:r})})})}function Zoe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const Kd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function es(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Fm(e){return"nodeType"in e}function tr(e){var t,n;return e?es(e)?e:Fm(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Vm(e){const{Document:t}=tr(e);return e instanceof t}function Ul(e){return es(e)?!1:e instanceof tr(e).HTMLElement}function eie(e){return e instanceof tr(e).SVGElement}function ts(e){return e?es(e)?e.document:Fm(e)?Vm(e)?e:Ul(e)?e.ownerDocument:document:document:document}const Fr=Kd?O.useLayoutEffect:O.useEffect;function Hm(e){const t=O.useRef(e);return Fr(()=>{t.current=e}),O.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function tie(){const e=O.useRef(null),t=O.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=O.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Sl(e,t){t===void 0&&(t=[e]);const n=O.useRef(e);return Fr(()=>{n.current!==e&&(n.current=e)},t),n}function Kl(e,t){const n=O.useRef();return O.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Du(e){const t=Hm(e),n=O.useRef(null),r=O.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function ag(e){const t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}let ap={};function Gl(e,t){return O.useMemo(()=>{if(t)return t;const n=ap[e]==null?0:ap[e]+1;return ap[e]=n,e+"-"+n},[e,t])}function GR(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,a)=>{const s=Object.entries(a);for(const[l,c]of s){const u=i[l];u!=null&&(i[l]=u+e*c)}return i},{...t})}}const va=GR(1),wl=GR(-1);function nie(e){return"clientX"in e&&"clientY"in e}function Wm(e){if(!e)return!1;const{KeyboardEvent:t}=tr(e.target);return t&&e instanceof t}function rie(e){if(!e)return!1;const{TouchEvent:t}=tr(e.target);return t&&e instanceof t}function sg(e){if(rie(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return nie(e)?{x:e.clientX,y:e.clientY}:null}const Ta=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ta.Translate.toString(e),Ta.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Y1="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function oie(e){return e.matches(Y1)?e:e.querySelector(Y1)}const iie={display:"none"};function aie(e){let{id:t,value:n}=e;return v("div",{id:t,style:iie,children:n})}const sie={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function lie(e){let{id:t,announcement:n}=e;return v("div",{id:t,style:sie,role:"status","aria-live":"assertive","aria-atomic":!0,children:n})}function cie(){const[e,t]=O.useState("");return{announce:O.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const XR=O.createContext(null);function uie(e){const t=O.useContext(XR);O.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function die(){const[e]=O.useState(()=>new Set),t=O.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[O.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var s;return(s=a[o])==null?void 0:s.call(a,i)})},[e]),t]}const fie={draggable:`
|
|
437
|
+
To pick up a draggable item, press the space bar.
|
|
438
|
+
While dragging, use the arrow keys to move the item.
|
|
439
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
440
|
+
`},pie={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function hie(e){let{announcements:t=pie,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=fie}=e;const{announce:i,announcement:a}=cie(),s=Gl("DndLiveRegion"),[l,c]=O.useState(!1);if(O.useEffect(()=>{c(!0)},[]),uie(O.useMemo(()=>({onDragStart(d){let{active:f}=d;i(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&i(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;i(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;i(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;i(t.onDragCancel({active:f,over:p}))}}),[i,t])),!l)return null;const u=ae(Ht,{children:[v(aie,{id:r,value:o.draggable}),v(lie,{id:s,announcement:a})]});return n?ln.createPortal(u,n):u}var En;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(En||(En={}));function ju(){}function Q1(e,t){return O.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function gie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Vr=Object.freeze({x:0,y:0});function vie(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function mie(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function bie(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function J1(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function qR(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}const yie=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=J1(t),i=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=J1(l),u=o.reduce((f,p,h)=>f+vie(c[h],p),0),d=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:a,value:d}})}}return i.sort(mie)};function Sie(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const l=t.width*t.height,c=e.width*e.height,u=a*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const wie=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,s=n.get(a);if(s){const l=Sie(s,t);l>0&&o.push({id:a,data:{droppableContainer:i,value:l}})}}return o.sort(bie)};function xie(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function YR(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Vr}function Cie(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const $ie=Cie(1);function Oie(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Eie(e,t,n){const r=Oie(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const Nie={ignoreTransform:!1};function ns(e,t){t===void 0&&(t=Nie);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=tr(e).getComputedStyle(e);c&&(n=Eie(n,c,u))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function Z1(e){return ns(e,{ignoreTransform:!0})}function Rie(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Pie(e,t){return t===void 0&&(t=tr(e).getComputedStyle(e)),t.position==="fixed"}function Iie(e,t){t===void 0&&(t=tr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function Gd(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Vm(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Ul(o)||eie(o)||n.includes(o))return n;const i=tr(e).getComputedStyle(o);return o!==e&&Iie(o,i)&&n.push(o),Pie(o,i)?n:r(o.parentNode)}return e?r(e):n}function QR(e){const[t]=Gd(e,1);return t??null}function sp(e){return!Kd||!e?null:es(e)?e:Fm(e)?Vm(e)||e===ts(e).scrollingElement?window:Ul(e)?e:null:null}function JR(e){return es(e)?e.scrollX:e.scrollLeft}function ZR(e){return es(e)?e.scrollY:e.scrollTop}function lg(e){return{x:JR(e),y:ZR(e)}}var In;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(In||(In={}));function eP(e){return!Kd||!e?!1:e===document.scrollingElement}function tP(e){const t={x:0,y:0},n=eP(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const _ie={x:.2,y:.2};function Tie(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=_ie);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=tP(e),p={x:0,y:0},h={x:0,y:0},m={height:t.height*o.y,width:t.width*o.x};return!c&&i<=t.top+m.height?(p.y=In.Backward,h.y=r*Math.abs((t.top+m.height-i)/m.height)):!u&&l>=t.bottom-m.height&&(p.y=In.Forward,h.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(p.x=In.Forward,h.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(p.x=In.Backward,h.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:p,speed:h}}function Mie(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function nP(e){return e.reduce((t,n)=>va(t,lg(n)),Vr)}function Die(e){return e.reduce((t,n)=>t+JR(n),0)}function jie(e){return e.reduce((t,n)=>t+ZR(n),0)}function Aie(e,t){if(t===void 0&&(t=ns),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);QR(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const kie=[["x",["left","right"],Die],["y",["top","bottom"],jie]];class Um{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Gd(n),o=nP(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,s]of kie)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=o[i]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class zs{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Lie(e){const{EventTarget:t}=tr(e);return e instanceof t?e:ts(e)}function lp(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var xr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(xr||(xr={}));function ew(e){e.preventDefault()}function zie(e){e.stopPropagation()}var Nt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Nt||(Nt={}));const rP={start:[Nt.Space,Nt.Enter],cancel:[Nt.Esc],end:[Nt.Space,Nt.Enter]},Bie=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Nt.Right:return{...n,x:n.x+25};case Nt.Left:return{...n,x:n.x-25};case Nt.Down:return{...n,y:n.y+25};case Nt.Up:return{...n,y:n.y-25}}};class Km{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new zs(ts(n)),this.windowListeners=new zs(tr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Aie(r),n(Vr)}handleKeyDown(t){if(Wm(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=rP,coordinateGetter:a=Bie,scrollBehavior:s="smooth"}=o,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Vr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=wl(d,u),p={x:0,y:0},{scrollableAncestors:h}=r.current;for(const m of h){const b=t.code,{isTop:g,isRight:S,isLeft:C,isBottom:w,maxScroll:y,minScroll:$}=tP(m),E=Mie(m),N={x:Math.min(b===Nt.Right?E.right-E.width/2:E.right,Math.max(b===Nt.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(b===Nt.Down?E.bottom-E.height/2:E.bottom,Math.max(b===Nt.Down?E.top:E.top+E.height/2,d.y))},P=b===Nt.Right&&!S||b===Nt.Left&&!C,_=b===Nt.Down&&!w||b===Nt.Up&&!g;if(P&&N.x!==d.x){const D=m.scrollLeft+f.x,M=b===Nt.Right&&D<=y.x||b===Nt.Left&&D>=$.x;if(M&&!f.y){m.scrollTo({left:D,behavior:s});return}M?p.x=m.scrollLeft-D:p.x=b===Nt.Right?m.scrollLeft-y.x:m.scrollLeft-$.x,p.x&&m.scrollBy({left:-p.x,behavior:s});break}else if(_&&N.y!==d.y){const D=m.scrollTop+f.y,M=b===Nt.Down&&D<=y.y||b===Nt.Up&&D>=$.y;if(M&&!f.x){m.scrollTo({top:D,behavior:s});return}M?p.y=m.scrollTop-D:p.y=b===Nt.Down?m.scrollTop-y.y:m.scrollTop-$.y,p.y&&m.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,va(wl(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Km.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=rP,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function tw(e){return!!(e&&"distance"in e)}function nw(e){return!!(e&&"delay"in e)}class Gm{constructor(t,n,r){var o;r===void 0&&(r=Lie(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=ts(a),this.documentListeners=new zs(this.document),this.listeners=new zs(r),this.windowListeners=new zs(tr(a)),this.initialCoordinates=(o=sg(i))!=null?o:Vr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.DragStart,ew),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),this.windowListeners.add(xr.ContextMenu,ew),this.documentListeners.add(xr.Keydown,this.handleKeydown),n){if(tw(n))return;if(nw(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(xr.Click,zie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!o)return;const l=(n=sg(t))!=null?n:Vr,c=wl(o,l);if(!r&&s){if(nw(s))return lp(c,s.tolerance)?this.handleCancel():void 0;if(tw(s))return s.tolerance!=null&&lp(c,s.tolerance)?this.handleCancel():lp(c,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Nt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Fie={move:{name:"pointermove"},end:{name:"pointerup"}};class Xm extends Gm{constructor(t){const{event:n}=t,r=ts(n.target);super(t,Fie,r)}}Xm.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Vie={move:{name:"mousemove"},end:{name:"mouseup"}};var cg;(function(e){e[e.RightClick=2]="RightClick"})(cg||(cg={}));class Hie extends Gm{constructor(t){super(t,Vie,ts(t.event.target))}}Hie.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===cg.RightClick?!1:(r==null||r({event:n}),!0)}}];const cp={move:{name:"touchmove"},end:{name:"touchend"}};class Wie extends Gm{constructor(t){super(t,cp)}static setup(){return window.addEventListener(cp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(cp.move.name,t)};function t(){}}}Wie.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Bs;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Bs||(Bs={}));var Au;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Au||(Au={}));function Uie(e){let{acceleration:t,activator:n=Bs.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=Au.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=Gie({delta:d,disabled:!i}),[h,m]=tie(),b=O.useRef({x:0,y:0}),g=O.useRef({x:0,y:0}),S=O.useMemo(()=>{switch(n){case Bs.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Bs.DraggableRect:return o}},[n,o,l]),C=O.useRef(null),w=O.useCallback(()=>{const $=C.current;if(!$)return;const E=b.current.x*g.current.x,N=b.current.y*g.current.y;$.scrollBy(E,N)},[]),y=O.useMemo(()=>s===Au.TreeOrder?[...c].reverse():c,[s,c]);O.useEffect(()=>{if(!i||!c.length||!S){m();return}for(const $ of y){if((r==null?void 0:r($))===!1)continue;const E=c.indexOf($),N=u[E];if(!N)continue;const{direction:P,speed:_}=Tie($,N,S,t,f);for(const D of["x","y"])p[D][P[D]]||(_[D]=0,P[D]=0);if(_.x>0||_.y>0){m(),C.current=$,h(w,a),b.current=_,g.current=P;return}}b.current={x:0,y:0},g.current={x:0,y:0},m()},[t,w,r,m,i,a,JSON.stringify(S),JSON.stringify(p),h,c,y,u,JSON.stringify(f)])}const Kie={x:{[In.Backward]:!1,[In.Forward]:!1},y:{[In.Backward]:!1,[In.Forward]:!1}};function Gie(e){let{delta:t,disabled:n}=e;const r=ag(t);return Kl(o=>{if(n||!r||!o)return Kie;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[In.Backward]:o.x[In.Backward]||i.x===-1,[In.Forward]:o.x[In.Forward]||i.x===1},y:{[In.Backward]:o.y[In.Backward]||i.y===-1,[In.Forward]:o.y[In.Forward]||i.y===1}}},[n,t,r])}function Xie(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Kl(o=>{var i;return t===null?null:(i=r??o)!=null?i:null},[r,t])}function qie(e,t){return O.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var xl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(xl||(xl={}));var ug;(function(e){e.Optimized="optimized"})(ug||(ug={}));const rw=new Map;function Yie(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=O.useState(null),{frequency:s,measure:l,strategy:c}=o,u=O.useRef(e),d=b(),f=Sl(d),p=O.useCallback(function(g){g===void 0&&(g=[]),!f.current&&a(S=>S===null?g:S.concat(g.filter(C=>!S.includes(C))))},[f]),h=O.useRef(null),m=Kl(g=>{if(d&&!n)return rw;if(!g||g===rw||u.current!==e||i!=null){const S=new Map;for(let C of e){if(!C)continue;if(i&&i.length>0&&!i.includes(C.id)&&C.rect.current){S.set(C.id,C.rect.current);continue}const w=C.node.current,y=w?new Um(l(w),w):null;C.rect.current=y,y&&S.set(C.id,y)}return S}return g},[e,i,n,d,l]);return O.useEffect(()=>{u.current=e},[e]),O.useEffect(()=>{d||p()},[n,d]),O.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),O.useEffect(()=>{d||typeof s!="number"||h.current!==null||(h.current=setTimeout(()=>{p(),h.current=null},s))},[s,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:i!=null};function b(){switch(c){case xl.Always:return!1;case xl.BeforeDragging:return n;default:return!n}}}function oP(e,t){return Kl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Qie(e,t){return oP(e,t)}function Jie(e){let{callback:t,disabled:n}=e;const r=Hm(t),o=O.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return O.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Xd(e){let{callback:t,disabled:n}=e;const r=Hm(t),o=O.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return O.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Zie(e){return new Um(ns(e),e)}function ow(e,t,n){t===void 0&&(t=Zie);const[r,o]=O.useReducer(s,null),i=Jie({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),a=Xd({callback:o});return Fr(()=>{o(),e?(a==null||a.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),i==null||i.disconnect())},[e]),r;function s(l){if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u}}function eae(e){const t=oP(e);return YR(e,t)}const iw=[];function tae(e){const t=O.useRef(e),n=Kl(r=>e?r&&r!==iw&&e&&t.current&&e.parentNode===t.current.parentNode?r:Gd(e):iw,[e]);return O.useEffect(()=>{t.current=e},[e]),n}function nae(e){const[t,n]=O.useState(null),r=O.useRef(e),o=O.useCallback(i=>{const a=sp(i.target);a&&n(s=>s?(s.set(a,lg(a)),new Map(s)):null)},[]);return O.useEffect(()=>{const i=r.current;if(e!==i){a(i);const s=e.map(l=>{const c=sp(l);return c?(c.addEventListener("scroll",o,{passive:!0}),[c,lg(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(i)};function a(s){s.forEach(l=>{const c=sp(l);c==null||c.removeEventListener("scroll",o)})}},[o,e]),O.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>va(i,a),Vr):nP(e):Vr,[e,t])}function aw(e,t){t===void 0&&(t=[]);const n=O.useRef(null);return O.useEffect(()=>{n.current=null},t),O.useEffect(()=>{const r=e!==Vr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?wl(e,n.current):Vr}function rae(e){O.useEffect(()=>{if(!Kd)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function oae(e,t){return O.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function iP(e){return O.useMemo(()=>e?Rie(e):null,[e])}const up=[];function iae(e,t){t===void 0&&(t=ns);const[n]=e,r=iP(n?tr(n):null),[o,i]=O.useReducer(s,up),a=Xd({callback:i});return e.length>0&&o===up&&i(),Fr(()=>{e.length?e.forEach(l=>a==null?void 0:a.observe(l)):(a==null||a.disconnect(),i())},[e]),o;function s(){return e.length?e.map(l=>eP(l)?r:new Um(t(l),l)):up}}function aae(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ul(t)?t:e}function sae(e){let{measure:t}=e;const[n,r]=O.useState(null),o=O.useCallback(c=>{for(const{target:u}of c)if(Ul(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),i=Xd({callback:o}),a=O.useCallback(c=>{const u=aae(c);i==null||i.disconnect(),u&&(i==null||i.observe(u)),r(u?t(u):null)},[t,i]),[s,l]=Du(a);return O.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const lae=[{sensor:Xm,options:{}},{sensor:Km,options:{}}],cae={current:{}},Kc={draggable:{measure:Z1},droppable:{measure:Z1,strategy:xl.WhileDragging,frequency:ug.Optimized},dragOverlay:{measure:ns}};class Fs extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const uae={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fs,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ju},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kc,measureDroppableContainers:ju,windowRect:null,measuringScheduled:!1},dae={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ju,draggableNodes:new Map,over:null,measureDroppableContainers:ju},qd=O.createContext(dae),aP=O.createContext(uae);function fae(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fs}}}function pae(e,t){switch(t.type){case En.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case En.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case En.DragEnd:case En.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case En.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Fs(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case En.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Fs(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case En.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Fs(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function hae(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=O.useContext(qd),i=ag(r),a=ag(n==null?void 0:n.id);return O.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!Wm(i)||document.activeElement===i.target)return;const s=o.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=oie(u);if(d){d.focus();break}}})}},[r,t,o,a,i]),null}function gae(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function vae(e){return O.useMemo(()=>({draggable:{...Kc.draggable,...e==null?void 0:e.draggable},droppable:{...Kc.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Kc.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function mae(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=O.useRef(!1),{x:a,y:s}=typeof o=="boolean"?{x:o,y:o}:o;Fr(()=>{if(!a&&!s||!t){i.current=!1;return}if(i.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=YR(u,r);if(a||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=QR(c);f&&f.scrollBy({top:d.y,left:d.x})}},[t,a,s,r,n])}const sP=O.createContext({...Vr,scaleX:1,scaleY:1});var Vo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Vo||(Vo={}));const sw=O.memo(function(t){var n,r,o,i;let{id:a,accessibility:s,autoScroll:l=!0,children:c,sensors:u=lae,collisionDetection:d=wie,measuring:f,modifiers:p,...h}=t;const m=O.useReducer(pae,void 0,fae),[b,g]=m,[S,C]=die(),[w,y]=O.useState(Vo.Uninitialized),$=w===Vo.Initialized,{draggable:{active:E,nodes:N,translate:P},droppable:{containers:_}}=b,D=E?N.get(E):null,M=O.useRef({initial:null,translated:null}),I=O.useMemo(()=>{var Se;return E!=null?{id:E,data:(Se=D==null?void 0:D.data)!=null?Se:cae,rect:M}:null},[E,D]),T=O.useRef(null),[j,A]=O.useState(null),[B,H]=O.useState(null),U=Sl(h,Object.values(h)),J=Gl("DndDescribedBy",a),F=O.useMemo(()=>_.getEnabled(),[_]),z=vae(f),{droppableRects:k,measureDroppableContainers:Q,measuringScheduled:K}=Yie(F,{dragging:$,dependencies:[P.x,P.y],config:z.droppable}),Y=Xie(N,E),te=O.useMemo(()=>B?sg(B):null,[B]),re=Re(),ce=Qie(Y,z.draggable.measure);mae({activeNode:E?N.get(E):null,config:re.layoutShiftCompensation,initialRect:ce,measure:z.draggable.measure});const ne=ow(Y,z.draggable.measure,ce),he=ow(Y?Y.parentElement:null),ee=O.useRef({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:k,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),q=_.getNodeFor((n=ee.current.over)==null?void 0:n.id),oe=sae({measure:z.dragOverlay.measure}),ve=(r=oe.nodeRef.current)!=null?r:Y,fe=$?(o=oe.rect)!=null?o:ne:null,ye=!!(oe.nodeRef.current&&oe.rect),me=eae(ye?null:ne),Ee=iP(ve?tr(ve):null),Oe=tae($?q??Y:null),bt=iae(Oe),pt=gae(p,{transform:{x:P.x-me.x,y:P.y-me.y,scaleX:1,scaleY:1},activatorEvent:B,active:I,activeNodeRect:ne,containerNodeRect:he,draggingNodeRect:fe,over:ee.current.over,overlayNodeRect:oe.rect,scrollableAncestors:Oe,scrollableAncestorRects:bt,windowRect:Ee}),rt=te?va(te,P):null,st=nae(Oe),We=aw(st),Ue=aw(st,[ne]),tt=va(pt,We),qe=fe?$ie(fe,pt):null,Ie=I&&qe?d({active:I,collisionRect:qe,droppableRects:k,droppableContainers:F,pointerCoordinates:rt}):null,_e=qR(Ie,"id"),[lt,Ct]=O.useState(null),Ce=ye?pt:va(pt,Ue),Te=xie(Ce,(i=lt==null?void 0:lt.rect)!=null?i:null,ne),Ye=O.useCallback((Se,xe)=>{let{sensor:Pe,options:Ge}=xe;if(T.current==null)return;const ht=N.get(T.current);if(!ht)return;const ut=Se.nativeEvent,se=new Pe({active:T.current,activeNode:ht,event:ut,options:Ge,context:ee,onStart(ge){const Me=T.current;if(Me==null)return;const Xe=N.get(Me);if(!Xe)return;const{onDragStart:it}=U.current,Dt={active:{id:Me,data:Xe.data,rect:M}};ln.unstable_batchedUpdates(()=>{it==null||it(Dt),y(Vo.Initializing),g({type:En.DragStart,initialCoordinates:ge,active:Me}),S({type:"onDragStart",event:Dt})})},onMove(ge){g({type:En.DragMove,coordinates:ge})},onEnd:pe(En.DragEnd),onCancel:pe(En.DragCancel)});ln.unstable_batchedUpdates(()=>{A(se),H(Se.nativeEvent)});function pe(ge){return async function(){const{active:Xe,collisions:it,over:Dt,scrollAdjustedTranslate:wt}=ee.current;let Mt=null;if(Xe&&wt){const{cancelDrop:ct}=U.current;Mt={activatorEvent:ut,active:Xe,collisions:it,delta:wt,over:Dt},ge===En.DragEnd&&typeof ct=="function"&&await Promise.resolve(ct(Mt))&&(ge=En.DragCancel)}T.current=null,ln.unstable_batchedUpdates(()=>{g({type:ge}),y(Vo.Uninitialized),Ct(null),A(null),H(null);const ct=ge===En.DragEnd?"onDragEnd":"onDragCancel";if(Mt){const R=U.current[ct];R==null||R(Mt),S({type:ct,event:Mt})}})}}},[N]),Qe=O.useCallback((Se,xe)=>(Pe,Ge)=>{const ht=Pe.nativeEvent,ut=N.get(Ge);if(T.current!==null||!ut||ht.dndKit||ht.defaultPrevented)return;const se={active:ut};Se(Pe,xe.options,se)===!0&&(ht.dndKit={capturedBy:xe.sensor},T.current=Ge,Ye(Pe,xe))},[N,Ye]),Et=qie(u,Qe);rae(u),Fr(()=>{ne&&w===Vo.Initializing&&y(Vo.Initialized)},[ne,w]),O.useEffect(()=>{const{onDragMove:Se}=U.current,{active:xe,activatorEvent:Pe,collisions:Ge,over:ht}=ee.current;if(!xe||!Pe)return;const ut={active:xe,activatorEvent:Pe,collisions:Ge,delta:{x:tt.x,y:tt.y},over:ht};ln.unstable_batchedUpdates(()=>{Se==null||Se(ut),S({type:"onDragMove",event:ut})})},[tt.x,tt.y]),O.useEffect(()=>{const{active:Se,activatorEvent:xe,collisions:Pe,droppableContainers:Ge,scrollAdjustedTranslate:ht}=ee.current;if(!Se||T.current==null||!xe||!ht)return;const{onDragOver:ut}=U.current,se=Ge.get(_e),pe=se&&se.rect.current?{id:se.id,rect:se.rect.current,data:se.data,disabled:se.disabled}:null,ge={active:Se,activatorEvent:xe,collisions:Pe,delta:{x:ht.x,y:ht.y},over:pe};ln.unstable_batchedUpdates(()=>{Ct(pe),ut==null||ut(ge),S({type:"onDragOver",event:ge})})},[_e]),Fr(()=>{ee.current={activatorEvent:B,active:I,activeNode:Y,collisionRect:qe,collisions:Ie,droppableRects:k,draggableNodes:N,draggingNode:ve,draggingNodeRect:fe,droppableContainers:_,over:lt,scrollableAncestors:Oe,scrollAdjustedTranslate:tt},M.current={initial:fe,translated:qe}},[I,Y,Ie,qe,N,ve,fe,k,_,lt,Oe,tt]),Uie({...re,delta:P,draggingRect:qe,pointerCoordinates:rt,scrollableAncestors:Oe,scrollableAncestorRects:bt});const It=O.useMemo(()=>({active:I,activeNode:Y,activeNodeRect:ne,activatorEvent:B,collisions:Ie,containerNodeRect:he,dragOverlay:oe,draggableNodes:N,droppableContainers:_,droppableRects:k,over:lt,measureDroppableContainers:Q,scrollableAncestors:Oe,scrollableAncestorRects:bt,measuringConfiguration:z,measuringScheduled:K,windowRect:Ee}),[I,Y,ne,B,Ie,he,oe,N,_,k,lt,Q,Oe,bt,z,K,Ee]),Ne=O.useMemo(()=>({activatorEvent:B,activators:Et,active:I,activeNodeRect:ne,ariaDescribedById:{draggable:J},dispatch:g,draggableNodes:N,over:lt,measureDroppableContainers:Q}),[B,Et,I,ne,g,J,N,lt,Q]);return ae(XR.Provider,{value:C,children:[ae(qd.Provider,{value:Ne,children:[v(aP.Provider,{value:It,children:v(sP.Provider,{value:Te,children:c})}),v(hae,{disabled:(s==null?void 0:s.restoreFocus)===!1})]}),v(hie,{...s,hiddenTextDescribedById:J})]});function Re(){const Se=(j==null?void 0:j.autoScrollEnabled)===!1,xe=typeof l=="object"?l.enabled===!1:l===!1,Pe=$&&!Se&&!xe;return typeof l=="object"?{...l,enabled:Pe}:{enabled:Pe}}}),bae=O.createContext(null),lw="button",yae="Droppable";function lP(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=Gl(yae),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=O.useContext(qd),{role:p=lw,roleDescription:h="draggable",tabIndex:m=0}=o??{},b=(l==null?void 0:l.id)===t,g=O.useContext(b?sP:bae),[S,C]=Du(),[w,y]=Du(),$=oae(a,t),E=Sl(n);Fr(()=>(d.set(t,{id:t,key:i,node:S,activatorNode:w,data:E}),()=>{const P=d.get(t);P&&P.key===i&&d.delete(t)}),[d,t]);const N=O.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":b&&p===lw?!0:void 0,"aria-roledescription":h,"aria-describedby":u.draggable}),[r,p,m,b,h,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:N,isDragging:b,listeners:r?void 0:$,node:S,over:f,setNodeRef:C,setActivatorNodeRef:y,transform:g}}function Sae(){return O.useContext(aP)}const wae="Droppable",xae={timeout:25};function Cae(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=Gl(wae),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=O.useContext(qd),u=O.useRef({disabled:n}),d=O.useRef(!1),f=O.useRef(null),p=O.useRef(null),{disabled:h,updateMeasurementsFor:m,timeout:b}={...xae,...o},g=Sl(m??r),S=O.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(g.current)?g.current:[g.current]),p.current=null},b)},[b]),C=Xd({callback:S,disabled:h||!a}),w=O.useCallback((N,P)=>{C&&(P&&(C.unobserve(P),d.current=!1),N&&C.observe(N))},[C]),[y,$]=Du(w),E=Sl(t);return O.useEffect(()=>{!C||!y.current||(C.disconnect(),d.current=!1,C.observe(y.current))},[y,C]),Fr(()=>(s({type:En.RegisterDroppable,element:{id:r,key:i,disabled:n,node:y,rect:f,data:E}}),()=>s({type:En.UnregisterDroppable,key:i,id:r})),[r]),O.useEffect(()=>{n!==u.current.disabled&&(s({type:En.SetDroppableDisabled,id:r,key:i,disabled:n}),u.current.disabled=n)},[r,i,n,s]),{active:a,rect:f,isOver:(l==null?void 0:l.id)===r,node:y,over:l,setNodeRef:$}}function qm(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function $ae(e,t){return e.reduce((n,r,o)=>{const i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Ic(e){return e!==null&&e>=0}function Oae(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Eae(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const cP=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=qm(t,r,n),a=t[o],s=i[o];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},uP="Sortable",dP=O.createContext({activeIndex:-1,containerId:uP,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:cP,disabled:{draggable:!1,droppable:!1}});function Nae(e){let{children:t,id:n,items:r,strategy:o=cP,disabled:i=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=Sae(),d=Gl(uP,n),f=s.rect!==null,p=O.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),h=a!=null,m=a?p.indexOf(a.id):-1,b=c?p.indexOf(c.id):-1,g=O.useRef(p),S=!Oae(p,g.current),C=b!==-1&&m===-1||S,w=Eae(i);Fr(()=>{S&&h&&u(p)},[S,p,h,u]),O.useEffect(()=>{g.current=p},[p]);const y=O.useMemo(()=>({activeIndex:m,containerId:d,disabled:w,disableTransforms:C,items:p,overIndex:b,useDragOverlay:f,sortedRects:$ae(p,l),strategy:o}),[m,d,w.draggable,w.droppable,C,p,b,l,f,o]);return v(dP.Provider,{value:y,children:t})}const Rae=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return qm(n,r,o).indexOf(t)},Pae=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==i&&o===a?!1:n?!0:a!==o&&t===l},Iae={duration:200,easing:"ease"},fP="transform",_ae=Ta.Transition.toString({property:fP,duration:0,easing:"linear"}),Tae={roleDescription:"sortable"};function Mae(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=O.useState(null),s=O.useRef(n);return Fr(()=>{if(!t&&n!==s.current&&r.current){const l=o.current;if(l){const c=ns(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,o]),O.useEffect(()=>{i&&a(null)},[i]),i}function Dae(e){let{animateLayoutChanges:t=Pae,attributes:n,disabled:r,data:o,getNewIndex:i=Rae,id:a,strategy:s,resizeObserverConfig:l,transition:c=Iae}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:h,sortedRects:m,overIndex:b,useDragOverlay:g,strategy:S}=O.useContext(dP),C=jae(r,p),w=u.indexOf(a),y=O.useMemo(()=>({sortable:{containerId:d,index:w,items:u},...o}),[d,o,w,u]),$=O.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:E,node:N,isOver:P,setNodeRef:_}=Cae({id:a,data:y,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:D,activatorEvent:M,activeNodeRect:I,attributes:T,setNodeRef:j,listeners:A,isDragging:B,over:H,setActivatorNodeRef:U,transform:J}=lP({id:a,data:y,attributes:{...Tae,...n},disabled:C.draggable}),F=Zoe(_,j),z=!!D,k=z&&!h&&Ic(f)&&Ic(b),Q=!g&&B,K=Q&&k?J:null,te=k?K??(s??S)({rects:m,activeNodeRect:I,activeIndex:f,overIndex:b,index:w}):null,re=Ic(f)&&Ic(b)?i({id:a,items:u,activeIndex:f,overIndex:b}):w,ce=D==null?void 0:D.id,ne=O.useRef({activeId:ce,items:u,newIndex:re,containerId:d}),he=u!==ne.current.items,ee=t({active:D,containerId:d,isDragging:B,isSorting:z,id:a,index:w,items:u,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:c,wasDragging:ne.current.activeId!=null}),q=Mae({disabled:!ee,index:w,node:N,rect:E});return O.useEffect(()=>{z&&ne.current.newIndex!==re&&(ne.current.newIndex=re),d!==ne.current.containerId&&(ne.current.containerId=d),u!==ne.current.items&&(ne.current.items=u)},[z,re,d,u]),O.useEffect(()=>{if(ce===ne.current.activeId)return;if(ce&&!ne.current.activeId){ne.current.activeId=ce;return}const ve=setTimeout(()=>{ne.current.activeId=ce},50);return()=>clearTimeout(ve)},[ce]),{active:D,activeIndex:f,attributes:T,data:y,rect:E,index:w,newIndex:re,items:u,isOver:P,isSorting:z,isDragging:B,listeners:A,node:N,overIndex:b,over:H,setNodeRef:F,setActivatorNodeRef:U,setDroppableNodeRef:_,setDraggableNodeRef:j,transform:q??te,transition:oe()};function oe(){if(q||he&&ne.current.newIndex===w)return _ae;if(!(Q&&!Wm(M)||!c)&&(z||ee))return Ta.Transition.toString({...c,property:fP})}}function jae(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function ku(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Aae=[Nt.Down,Nt.Right,Nt.Up,Nt.Left],kae=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:s}}=t;if(Aae.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=o.get(d.id);if(f)switch(e.code){case Nt.Down:r.top<f.top&&l.push(d);break;case Nt.Up:r.top>f.top&&l.push(d);break;case Nt.Left:r.left>f.left&&l.push(d);break;case Nt.Right:r.left<f.left&&l.push(d);break}});const c=yie({active:n,collisionRect:r,droppableRects:o,droppableContainers:l,pointerCoordinates:null});let u=qR(c,"id");if(u===(a==null?void 0:a.id)&&c.length>1&&(u=c[1].id),u!=null){const d=i.get(n.id),f=i.get(u),p=f?o.get(f.id):null,h=f==null?void 0:f.node.current;if(h&&p&&d&&f){const b=Gd(h).some(($,E)=>s[E]!==$),g=pP(d,f),S=Lae(d,f),C=b||!g?{x:0,y:0}:{x:S?r.width-p.width:0,y:S?r.height-p.height:0},w={x:p.left,y:p.top};return C.x&&C.y?w:wl(w,C)}}}};function pP(e,t){return!ku(e)||!ku(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Lae(e,t){return!ku(e)||!ku(t)||!pP(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const zae=e=>{let{transform:t}=e;return{...t,x:0}},Bae="_dragItem_xzliq_2",Fae="_sortModalBox_xzliq_13",Vae="_addOneBtn_xzliq_19",Ym={dragItem:Bae,sortModalBox:Fae,addOneBtn:Vae},Hae=({list:e,onValueChange:t,keyPaths:n,label:r,sortLabelKey:o,...i})=>{const[a,s]=O.useState([]);O.useEffect(()=>{const f=e.map((p,h)=>({val:p,oldIndex:h,id:To()}));s(f)},[i.open]);const l=gie(Q1(Xm,{activationConstraint:{distance:15}}),Q1(Km,{coordinateGetter:kae}));function c(f){const{active:p,over:h}=f;if(p.id!==(h==null?void 0:h.id)){const m=a.findIndex(C=>C.id===(p==null?void 0:p.id)),b=a.findIndex(C=>C.id===(h==null?void 0:h.id)),g=qm(a,m,b),S=g.map(C=>C.val);s(g),t==null||t(S)}}const[u,d]=O.useState({x:0,y:0,scaleX:1,scaleY:1});return v(wd,{...i,title:`Sort: ${r} [${n.join(".")}]`,maskStyle:{backgroundColor:"rgba(0, 0, 0, 0.1)"},modalRender:f=>v(sw,{sensors:l,onDragEnd:({delta:p})=>{const h={...u,...p,x:u.x+((p==null?void 0:p.x)||0),y:u.y+((p==null?void 0:p.y)||0)};d(h)},children:v(Wae,{modal:f,transform:u})}),children:v("div",{className:Ym.sortModalBox,children:v(sw,{sensors:l,onDragEnd:c,modifiers:[zae],children:v(Nae,{items:a,children:a.map(({id:f,val:p},h)=>v(Uae,{id:f,index:h,label:p[o||""]},f))})})})})},Wae=({modal:e,transform:t})=>{const n=O.useRef(To()),{setNodeRef:r,attributes:o,listeners:i,transform:a}=lP({id:n.current}),s={...t,...a,x:t.x+((a==null?void 0:a.x)||0),y:t.y+((a==null?void 0:a.y)||0)};return v("div",{ref:r,style:{pointerEvents:"auto",transform:Ta.Transform.toString(s)},...o,...i,children:e})},Uae=e=>{const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:i}=Dae({id:e.id}),a={transform:Ta.Transform.toString(o),transition:i},s=e.label||`Ele ${e.index}`;return v("div",{className:Ym.dragItem,ref:r,style:a,...t,...n,children:s})};function Kae(e){return Array.isArray(e)?e:[]}const hP=({onValueChange:e,setterContext:t,item:{setters:n,initialValue:r},sortLabelKey:o,...i})=>{const{keyPaths:a,label:s}=t,l=O.useMemo(()=>Kae(i.value),[i.value]),[c,u]=O.useState(!1),d=Bm(n||[{component:"StringSetter"}]);return O.useEffect(()=>{var f;t.setCollapseHeaderExt&&((f=t.setCollapseHeaderExt)==null||f.call(t,v(Ln,{type:"text",size:"small",style:{color:"gray"},onClick:p=>{p.preventDefault(),p.stopPropagation(),u(!0)},children:"sort"})))},[]),ae(Cn,{theme:{token:{borderRadius:4}},children:[l.map((f,p)=>v(Joe,{style:{paddingBottom:"10px"},index:p,keyPaths:a,value:f,onValueChange:h=>{l[p]=h[p],e==null||e([...l])},setters:d,onDelete:()=>{const h=[...l];h.splice(p),e==null||e(h)}},p)),v(Ln,{className:Ym.addOneBtn,size:"small",onClick:()=>{const f=[...l];e==null||e([...f,r??""])},children:"Add One"}),v(Hae,{label:s,sortLabelKey:o,onValueChange:f=>{e==null||e([...f])},open:c,list:l,keyPaths:a,onCancel:()=>{u(!1)},onOk:()=>{u(!1)}})]})};hP.setterName="数组设置器";const gP=({onValueChange:e,elements:t,value:n,setterContext:r})=>{const{keyPaths:o}=r,i=O.useRef(null);return O.useEffect(()=>{var a;(a=i.current)==null||a.setFields(n||{})},[n]),v(Cn,{theme:{token:{borderRadius:4}},children:v(km,{ref:i,name:o.join("."),initialValue:n||{},onValueChange:a=>{e==null||e(a)},children:t.map((a,s)=>{const l=Bm(a.setters),c=_h(a.title),u=tN(a.title);return v("div",{children:v(Jm,{name:a.name,label:c,tips:u,condition:a.condition,keyPaths:[...o,a.name],setters:l})},s)})})})};gP.setterName="对象设置器";const vP=({onValueChange:e,setterContext:t,...n})=>{var r;return v(Cn,{theme:{token:{borderRadius:4}},children:v(Al,{...n,value:((r=n.value)==null?void 0:r.value)||"",onChange:o=>{var i;(i=n.onChange)==null||i.call(n,o),e==null||e({type:Sn.EXPRESSION,value:o.target.value})}})})};vP.setterName="表达式设置器";const mP=({onValueChange:e,setterContext:t,...n})=>v(Cn,{theme:{token:{borderRadius:4}},children:v(FF,{...n,checked:n.value,onChange:(r,o)=>{var i;(i=n.onChange)==null||i.call(n,r,o),e==null||e(r)}})});mP.setterName="Bool 设置器";const bP=({onValueChange:e,setterContext:t,...n})=>v(Cn,{theme:{token:{borderRadius:4}},children:v(du,{showSearch:!0,style:{width:"100%"},...n,onChange:(r,o)=>{var i;(i=n.onChange)==null||i.call(n,r,o),e==null||e(r)}})});bP.setterName="选择设置器";const Xl=e=>{const t=O.useRef(null),n=O.useRef();n.current=e.onChange;const r=O.useRef();r.current=e.onDidChangeMarkers;const o=O.useRef(null);return O.useEffect(()=>{var a,s,l,c;if(!t.current)return;(a=e.beforeMount)==null||a.call(e,Yl);const i=Yl.editor.create(t.current,{...e.options||{},value:e.initialValue||((s=e.options)==null?void 0:s.value),language:e.language||((l=e.options)==null?void 0:l.language)},{...e.override||{}});o.current=i,(c=e.onDidMount)==null||c.call(e,i),i==null||i.onDidChangeModelContent(u=>{var d;u.isFlush||(d=n.current)==null||d.call(n,i.getValue(),u)}),Yl.editor.onDidChangeMarkers(u=>{var h;const d=i.getModel();if(!d)return;const f=d.uri;if(u.find(m=>m.path===f.path)){const m=Yl.editor.getModelMarkers({resource:f});(h=r.current)==null||h.call(r,m)}})},[]),v("div",{style:{width:"100%",height:"100%"},ref:t})},yP=({onValueChange:e,setterContext:t,...n})=>{const r=O.useRef(null),[o,i]=O.useState(!1),a=()=>{var l;const s=((l=r.current)==null?void 0:l.getValue())||"";try{const c=JSON.parse(s);e(c)}catch(c){console.warn(c)}};return ae(Cn,{theme:{token:{borderRadius:4}},children:[v(Ln,{size:"small",style:{marginTop:"5px",width:"100%",color:"#676767",fontSize:"12px"},onClick:()=>{i(!0)},children:"Edit"}),v(wd,{destroyOnClose:!0,open:o,title:"JSON Editor",width:"800px",onCancel:()=>i(!1),onOk:()=>{a(),i(!1)},style:{},children:v("div",{style:{height:"500px"},children:o&&v(Xl,{onDidMount:s=>{r.current=s},initialValue:JSON.stringify(n.value||{},null,2),language:"json",options:{automaticLayout:!0,tabSize:2,suggestOnTriggerCharacters:!1}})})})]})};yP.setterName="JSON 设置器";const cw=`
|
|
441
|
+
type ContextType = {
|
|
442
|
+
/** 渲染函数的入口参数 */
|
|
443
|
+
params?: Record<any, any>;
|
|
444
|
+
/** 全局状态 */
|
|
445
|
+
globalState?: Record<any, any>;
|
|
446
|
+
/** 更新全局状态 */
|
|
447
|
+
updateGlobalState?: (newState: any) => void;
|
|
448
|
+
/** 当前节点状态 **/
|
|
449
|
+
state?: Record<any, any>;
|
|
450
|
+
/** 存储当前节点的数据,不具有响应性 **/
|
|
451
|
+
staticState?: Record<any, any>;
|
|
452
|
+
/** 更新当前节点状态 */
|
|
453
|
+
updateState?: (newState: any) => void;
|
|
454
|
+
/** 所有节点的索引 */
|
|
455
|
+
refs?: RefManager;
|
|
456
|
+
/** 循环渲染中的单个循环数据 */
|
|
457
|
+
loopData?: Record<any, any>;
|
|
458
|
+
/** 用于访访问和管理页面被注册为全局的局部 state */
|
|
459
|
+
stateManager?: Record<string, {
|
|
460
|
+
state: any,
|
|
461
|
+
updateState: (newState: Record<string, any>) => void
|
|
462
|
+
}>;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
/** 渲染上下文 */
|
|
466
|
+
declare var $$context: ContextType;
|
|
467
|
+
`,SP=({onValueChange:e,setterContext:t,...n})=>{var s;const r=O.useRef(null),[o,i]=O.useState(!1),a=()=>{var c;const l=((c=r.current)==null?void 0:c.getValue())||"";e({type:Sn.FUNCTION,value:l})};return ae(Cn,{theme:{token:{borderRadius:4}},children:[v(Ln,{size:"small",style:{marginTop:"5px",width:"100%",color:"#676767",fontSize:"12px"},onClick:()=>{i(!0)},children:"Edit"}),v(wd,{destroyOnClose:!0,open:o,title:"Function Editor",width:"800px",onCancel:()=>i(!1),onOk:()=>{a(),i(!1)},style:{},children:v("div",{style:{height:"500px"},children:o&&v(Xl,{beforeMount:l=>{l.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!1}),l.languages.typescript.javascriptDefaults.setCompilerOptions({target:l.languages.typescript.ScriptTarget.ES5,allowNonTsExtensions:!0});const c="ts:filename/chameleon.default.variable.d.ts";l.languages.typescript.javascriptDefaults.addExtraLib(cw,c),l.editor.getModel(l.Uri.parse(c))||l.editor.createModel(cw,"typescript",l.Uri.parse(c))},onDidMount:l=>{r.current=l},initialValue:((s=n.value)==null?void 0:s.value)||"",language:"javascript",options:{automaticLayout:!0,tabSize:2}})})})]})};SP.setterName="函数 设置器";const wP=({onValueChange:e,setterContext:t,...n})=>v(Cn,{theme:{token:{borderRadius:4}},children:v(Al.TextArea,{...n,onChange:r=>{var o;(o=n.onChange)==null||o.call(n,r),e==null||e(r.target.value)}})});wP.setterName="长文本设置器";function Gae(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Xae(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var xP=function(e){return typeof e=="function"},qae=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";const CP=qae;function $P(e){var t=O.useRef(e);return t.current=e,t}var Yae=function(e){CP&&(xP(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=$P(e);O.useEffect(function(){return function(){t.current()}},[])};const Qae=Yae;function Jae(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var OP=Jae,Zae=typeof ys=="object"&&ys&&ys.Object===Object&&ys,ese=Zae,tse=ese,nse=typeof self=="object"&&self&&self.Object===Object&&self,rse=tse||nse||Function("return this")(),EP=rse,ose=EP,ise=function(){return ose.Date.now()},ase=ise,sse=/\s/;function lse(e){for(var t=e.length;t--&&sse.test(e.charAt(t)););return t}var cse=lse,use=cse,dse=/^\s+/;function fse(e){return e&&e.slice(0,use(e)+1).replace(dse,"")}var pse=fse,hse=EP,gse=hse.Symbol,NP=gse,uw=NP,RP=Object.prototype,vse=RP.hasOwnProperty,mse=RP.toString,bs=uw?uw.toStringTag:void 0;function bse(e){var t=vse.call(e,bs),n=e[bs];try{e[bs]=void 0;var r=!0}catch{}var o=mse.call(e);return r&&(t?e[bs]=n:delete e[bs]),o}var yse=bse,Sse=Object.prototype,wse=Sse.toString;function xse(e){return wse.call(e)}var Cse=xse,dw=NP,$se=yse,Ose=Cse,Ese="[object Null]",Nse="[object Undefined]",fw=dw?dw.toStringTag:void 0;function Rse(e){return e==null?e===void 0?Nse:Ese:fw&&fw in Object(e)?$se(e):Ose(e)}var Pse=Rse;function Ise(e){return e!=null&&typeof e=="object"}var _se=Ise,Tse=Pse,Mse=_se,Dse="[object Symbol]";function jse(e){return typeof e=="symbol"||Mse(e)&&Tse(e)==Dse}var Ase=jse,kse=pse,pw=OP,Lse=Ase,hw=0/0,zse=/^[-+]0x[0-9a-f]+$/i,Bse=/^0b[01]+$/i,Fse=/^0o[0-7]+$/i,Vse=parseInt;function Hse(e){if(typeof e=="number")return e;if(Lse(e))return hw;if(pw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=kse(e);var n=Bse.test(e);return n||Fse.test(e)?Vse(e.slice(2),n?2:8):zse.test(e)?hw:+e}var Wse=Hse,Use=OP,dp=ase,gw=Wse,Kse="Expected a function",Gse=Math.max,Xse=Math.min;function qse(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Kse);t=gw(t)||0,Use(n)&&(u=!!n.leading,d="maxWait"in n,i=d?Gse(gw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p($){var E=r,N=o;return r=o=void 0,c=$,a=e.apply(N,E),a}function h($){return c=$,s=setTimeout(g,t),u?p($):a}function m($){var E=$-l,N=$-c,P=t-E;return d?Xse(P,i-N):P}function b($){var E=$-l,N=$-c;return l===void 0||E>=t||E<0||d&&N>=i}function g(){var $=dp();if(b($))return S($);s=setTimeout(g,m($))}function S($){return s=void 0,f&&r?p($):(r=o=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function w(){return s===void 0?a:S(dp())}function y(){var $=dp(),E=b($);if(r=arguments,o=this,l=$,E){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return y.cancel=C,y.flush=w,y}var Yse=qse;function Qm(e,t){var n;CP&&(xP(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var r=$P(e),o=(n=t==null?void 0:t.wait)!==null&&n!==void 0?n:1e3,i=O.useMemo(function(){return Yse(function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return r.current.apply(r,Xae([],Gae(a),!1))},o,t)},[]);return Qae(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}const Qse="_inputAuto_gk0d2_2",Jse="_active_gk0d2_6",vw={inputAuto:Qse,active:Jse},PP={cssColors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},cssKeyValue:{"align-content":{values:["center","flex-end","flex-start","space-around","space-between","stretch"]},"align-items":{values:["baseline","center","flex-end","flex-start","stretch"]},"align-self":{values:["auto","normal","self-start","self-end","baseline","center","start","end","flex-end","flex-start","safe","stretch","unsafe"]},all:{values:[]},animation:{values:[]},"animation-delay":{values:[]},"animation-direction":{values:["alternate","alternate-reverse","normal","reverse"]},"animation-duration":{values:[]},"animation-fill-mode":{values:["backwards","both","forwards","none"]},"animation-iteration-count":{values:["infinite"]},"animation-name":{values:["none"]},"animation-play-state":{values:["paused","running"]},"animation-timing-function":{values:["cubic-bezier()","ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start","steps()"]},"backface-visibility":{values:["hidden","visible"]},background:{values:[],type:"color"},"background-attachment":{values:["fixed","local","scroll"]},"background-blend-mode":{values:["color","color-burn","color-dodge","darken","difference","exclusion","hard-light","hue","lighten","luminosity","multiply","normal","overlay","saturation","screen","soft-light"]},"background-clip":{values:["border-box","content-box","padding-box"]},"background-color":{values:[],type:"color"},"background-image":{values:["image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()","url()"]},"background-origin":{values:["border-box","content-box","padding-box"]},"background-position":{values:["left","center","right","bottom","top"]},"background-repeat":{values:["no-repeat","repeat","repeat-x","repeat-y","round","space"]},"background-size":{values:["auto","contain","cover"]},border:{values:[]},"border-collapse":{values:["collapse","separate"]},"border-color":{values:[],type:"color"},"border-spacing":{values:[]},"border-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-bottom":{values:[]},"border-bottom-color":{values:[],type:"color"},"border-bottom-left-radius":{values:[]},"border-bottom-right-radius":{values:[]},"border-bottom-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-bottom-width":{values:["medium","thin","thick"]},"border-image":{values:["url()"]},"border-image-outset":{values:[]},"border-image-slice":{values:[]},"border-image-source":{values:[]},"border-image-repeat":{values:["repeat","round","space","stretch"]},"border-image-width":{values:["auto"]},"border-left":{values:[]},"border-left-color":{values:[],type:"color"},"border-left-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-left-width":{values:["medium","thin","thick"]},"border-radius":{values:[]},"border-right":{values:[]},"border-right-color":{values:[],type:"color"},"border-right-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-right-width":{values:["medium","thin","thick"]},"border-top":{values:[]},"border-top-color":{values:[],type:"color"},"border-top-left-radius":{values:[]},"border-top-right-radius":{values:[]},"border-top-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-top-width":{values:["medium","thin","thick"]},"border-width":{values:["medium","thin","thick"]},"box-decoration-break":{values:["clone","slice"]},"box-shadow":{values:["none"]},"box-sizing":{values:["border-box","content-box"]},bottom:{values:["auto"]},"break-after":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"break-before":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"break-inside":{values:["auto","avoid","avoid-column","avoid-page","avoid-region"]},"caption-side":{values:["bottom","top"]},"caret-color":{values:["auto"],type:"color"},clear:{values:["both","left","none","right"]},clip:{values:["auto"]},color:{values:[],type:"color"},columns:{values:[]},"column-count":{values:[]},"column-fill":{values:["auto","balance"]},"column-gap":{values:["normal"]},"column-rule":{values:[]},"column-rule-color":{values:[],type:"color"},"column-rule-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"column-rule-width":{values:["medium","thin","thick"]},"column-span":{values:["all","none"]},"column-width":{values:["auto"]},content:{values:["attr()","close-quote","no-close-quote","no-open-quote","normal","none","open-quote"]},"counter-increment":{values:["none"]},"counter-reset":{values:["none"]},cursor:{values:["alias","all-scroll","auto","cell","col-resize","context-menu","copy","crosshair","default","e-resize","ew-resize","grab","grabbing","help","move","n-resize","ne-resize","nesw-resize","no-drop","none","not-allowed","ns-resize","nw-resize","nwse-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait","zoom-in","zoom-out"]},direction:{values:["ltr","rtl"]},display:{values:["block","contents","flex","flow-root","grid","inline","inline-block","inline-flex","inline-grid","inline-table","list-item","none","run-in","subgrid","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group"]},"empty-cells":{values:["hide","show"]},fill:{values:[]},filter:{values:["blur()","brightness()","contrast()","custom()","drop-shadow()","grayscale()","hue-rotate()","invert()","none","opacity()","sepia()","saturate()","url()"]},flex:{values:["auto","none"]},"flex-basis":{values:["auto"]},"flex-direction":{values:["column","column-reverse","row","row-reverse"]},"flex-flow":{values:["column","column-reverse","nowrap","row","row-reverse","wrap","wrap-reverse"]},"flex-grow":{values:[]},"flex-shrink":{values:[]},"flex-wrap":{values:["nowrap","wrap","wrap-reverse"]},float:{values:["left","right","none","inline-start","inline-end"]},"flow-into":{values:["none"],type:"named-flow"},"flow-from":{values:["none"],type:"named-flow"},font:{values:[]},"font-display":{values:["auto","block","swap","fallback","optional"]},"font-family":{values:["auto","cursive","fantasy","monospace","sans-serif","serif"]},"font-feature-settings":{values:["normal"]},"font-kerning":{values:["auto","none","normal"]},"font-language-override":{values:["normal"]},"font-size":{values:["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","larger","smaller"]},"font-size-adjust":{values:["auto","none"]},"font-stretch":{values:["condensed","expanded","extra-condensed","extra-expanded","normal","semi-condensed","semi-expanded","ultra-condensed","ultra-expanded"]},"font-style":{values:["italic","normal","oblique"]},"font-synthesis":{values:["none","style","weight"]},"font-variant":{values:["normal","small-caps"]},"font-variant-alternates":{values:["normal"]},"font-variant-caps":{values:["normal","small-caps","all-small-caps","petite-caps","all-petite-caps","unicase","titling-caps"]},"font-variant-east-asian":{values:["normal"]},"font-variant-ligatures":{values:["normal","none"]},"font-variant-numeric":{values:["normal"]},"font-variant-position":{values:["normal","sub","super"]},"font-weight":{values:["bold","bolder","lighter","normal","100","200","300","400","500","600","700","800","900"]},gap:{values:["revert-layer"]},grid:{values:[]},"grid-area":{values:[]},"grid-auto-columns":{values:[]},"grid-auto-flow":{values:["row","column","dense"]},"grid-auto-rows":{values:[]},"grid-column":{values:["auto"]},"grid-column-end":{values:[]},"grid-column-gap":{values:[]},"grid-column-start":{values:[]},"grid-gap":{values:[]},"grid-row":{values:["auto"]},"grid-row-end":{values:[]},"grid-row-start":{values:[]},"grid-row-gap":{values:[]},"grid-template":{values:["none"]},"grid-template-areas":{values:[]},"grid-template-columns":{values:["auto"]},"grid-template-rows":{values:["auto"]},"hanging-punctuation":{values:["allow-end","first","force-end","last","none"]},height:{values:["auto","max-content","min-content","fit-content"]},hyphens:{values:["auto","manual","none"]},"image-orientation":{values:[]},"image-resolution":{values:["from-image","snap"]},isolation:{values:["auto","isolate"]},"justify-content":{values:["center","flex-end","flex-start","space-around","space-between"]},"justify-items":{values:["auto","normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline","first","last","safe","unsafe","legacy"]},"justify-self":{values:["auto","normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline","first","last","safe","unsafe"]},left:{values:["auto"]},"letter-spacing":{values:["normal"]},"line-height":{values:["normal"]},"list-style":{values:["none","url()","armenian","circle","decimal","decimal-leading-zero","disc","georgian","inside","lower-alpha","lower-greek","lower-latin","lower-roman","outside","square","upper-alpha","upper-latin","upper-roman"]},"list-style-image":{values:["none","url()"]},"list-style-position":{values:["inside","outside"]},"list-style-type":{values:["armenian","circle","decimal","decimal-leading-zero","disc","georgian","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"]},margin:{values:["auto"]},"margin-bottom":{values:["auto"]},"margin-left":{values:["auto"]},"margin-right":{values:["auto"]},"margin-top":{values:["auto"]},"max-height":{values:["none"]},"max-width":{values:["none"]},"min-height":{values:[]},"min-width":{values:[]},"mix-blend-mode":{values:["color","color-burn","color-dodge","darken","difference","exclusion","hard-light","hue","lighten","luminosity","multiply","normal","overlay","saturation","screen","soft-light"]},"object-fit":{values:["contain","cover","fill","none","scale-down"]},"object-position":{values:["left","center","right","bottom","top"]},opacity:{values:[]},order:{values:[]},orphans:{values:[]},outline:{values:[]},"outline-color":{values:["invert"],type:"color"},"outline-offset":{values:[]},"outline-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"outline-width":{values:["medium","thin","thick"]},overflow:{values:["auto","hidden","scroll","visible"]},"overflow-x":{values:["auto","hidden","scroll","visible"]},"overflow-y":{values:["auto","hidden","scroll","visible"]},"overflow-wrap":{values:["normal","anywhere","break-word"]},padding:{values:[]},"padding-bottom":{values:[]},"padding-left":{values:[]},"padding-right":{values:[]},"padding-top":{values:[]},"page-break-after":{values:["always","auto","avoid","left","right"]},"page-break-before":{values:["always","auto","avoid","left","right"]},"page-break-inside":{values:["auto","avoid"]},perspective:{values:["none"]},"perspective-origin":{values:["bottom","center","left","right","top"]},"pointer-events":{values:["all","auto","fill","none","painted","stroke","visible","visibleFill","visiblePainted","visibleStroke"]},position:{values:["absolute","fixed","relative","static","sticky"]},quotes:{values:["none"]},"region-break-after":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"region-break-before":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"region-break-inside":{values:["auto","avoid","avoid-column","avoid-page","avoid-region"]},"region-fragment":{values:["auto","break"]},resize:{values:["both","horizontal","none","vertical"]},right:{values:["auto"]},"scroll-behavior":{values:["auto","smooth"]},"scroll-snap-type":{values:["none","x","y","block","inline","both","mandatory","proximity"]},src:{values:["url()"]},"shape-image-threshold":{values:[]},"shape-inside":{values:["auto","circle()","ellipse()","outside-shape","polygon()","rectangle()"]},"shape-margin":{values:[]},"shape-outside":{values:["none","circle()","ellipse()","polygon()","inset()","margin-box","border-box","padding-box","content-box","url()","image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()"]},"tab-size":{values:[]},"table-layout":{values:["auto","fixed"]},"text-align":{values:["start","end","center","left","justify","right","match-parent","justify-all"]},"text-align-last":{values:["center","left","justify","right"]},"text-decoration":{values:["line-through","none","overline","underline"]},"text-decoration-color":{values:[],type:"color"},"text-decoration-line":{values:["line-through","none","overline","underline"]},"text-decoration-skip":{values:["edges","ink","none","objects","spaces"]},"text-decoration-style":{values:["dashed","dotted","double","solid","wavy"]},"text-emphasis":{values:[]},"text-emphasis-color":{values:[],type:"color"},"text-emphasis-position":{values:["above","below","left","right"]},"text-emphasis-style":{values:["circle","dot","double-circle","filled","none","open","sesame","triangle"]},"text-indent":{values:[]},"text-justify":{values:["auto","none","inter-word","inter-character"]},"text-overflow":{values:["clip","ellipsis"]},"text-shadow":{values:[]},"text-rendering":{values:["auto","geometricPrecision","optimizeLegibility","optimizeSpeed"]},"text-transform":{values:["capitalize","full-width","lowercase","none","uppercase"]},"text-underline-position":{values:["alphabetic","auto","below","left","right"]},top:{values:["auto"]},transform:{values:["matrix()","matrix3d()","none","perspective()","rotate()","rotate3d()","rotateX()","rotateY()","rotateZ()","scale()","scale3d()","scaleX()","scaleY()","scaleZ()","skewX()","skewY()","translate()","translate3d()","translateX()","translateY()","translateZ()"]},"transform-origin":{values:["bottom","center","left","right","top"]},"transform-style":{values:["flat","preserve-3d"]},transition:{values:[]},"transition-delay":{values:[]},"transition-duration":{values:[]},"transition-property":{values:["all","none"]},"transition-timing-function":{values:["cubic-bezier()","ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start","steps()"]},"unicode-bidi":{values:["bidi-override","embed","normal"]},"unicode-range":{values:[]},"user-select":{values:["all","auto","contain","none","text"]},"vertical-align":{values:["baseline","bottom","middle","sub","super","text-bottom","text-top","top"]},visibility:{values:["collapse","hidden","visible"]},"white-space":{values:["normal","nowrap","pre","pre-line","pre-wrap"]},widows:{values:[]},width:{values:["auto","max-content","min-content","fit-content"]},"will-change":{values:["auto","contents","opacity","scroll-position"]},"word-break":{values:["normal","break-all","keep-all"]},"word-spacing":{values:["normal"]},"z-index":{values:["auto"]}}},IP=PP.cssKeyValue,Zse=Object.keys(PP.cssKeyValue),_P=({onValueChange:e,setterContext:t,propertyKey:n="",value:r,...o})=>{const i=O.useRef(null),[a,s]=O.useState(r||""),[l,c]=O.useState(!1),u=()=>{e==null||e(a)};O.useLayoutEffect(()=>{s(r)},[r]);const{run:d}=Qm(u,{wait:10}),f=O.useMemo(()=>{var h;return(((h=IP[n])==null?void 0:h.values)||[]).map(m=>({value:m}))},[n]);return v(Cn,{theme:{token:{borderRadius:4}},children:v(fu,{ref:i,dropdownMatchSelectWidth:200,bordered:!1,value:a,onChange:p=>{s(p),d()},style:{flex:1},onFocus:()=>{c(!0)},onBlur:()=>{c(!1)},className:ur([vw.inputAuto,l&&vw.active]),placeholder:"value",options:f})})};_P.setterName="CSS值设置器";const mw={StringSetter:UR,ArraySetter:hP,ShapeSetter:gP,NumberSetter:KR,ExpressionSetter:vP,BooleanSetter:mP,SelectSetter:bP,JSONSetter:yP,FunctionSetter:SP,TextAreaSetter:wP,CSSValueSetter:_P},ele="_fieldBox_nltxm_3",tle="_label_nltxm_11",nle="_tipsLabel_nltxm_25",rle="_content_nltxm_32",_c={fieldBox:ele,label:tle,tipsLabel:nle,content:rle},Tc=e=>{const{children:t,label:n,tips:r,name:o}=e;let i=n;const{formState:a,updateContext:s,updateConditionConfig:l}=O.useContext(BR);if(O.useEffect(()=>{e.condition&&l(o,e.condition)},[]),O.useEffect(()=>{var h;const p=(e.condition??(()=>!0))(a);(h=e.onConditionValueChange)==null||h.call(e,p)},[a,e]),r){let f=r;typeof r=="function"&&(f=r()),i=v(Qg,{title:v("span",{style:{color:"rgba(255,255,255,0.9",fontSize:"12px"},children:f}),color:"rgba(50,50,50,0.8)",children:v("span",{className:_c.tipsLabel,children:n})})}let c=t;if(O.isValidElement(t)){const f={onValueChange:p=>{s({...a,[o]:p})}};a[o]!==void 0&&(f.value=a[o]),c=O.cloneElement(t,f)}return(e.condition??(()=>!0))(a)?e.noStyle?v(Ht,{children:c}):ae("div",{className:_c.fieldBox,children:[v("div",{className:_c.label,children:i}),v("div",{className:_c.content,children:c})]}):null},ole="_switchBtn_k17cr_2",ile="_shapeFieldBox_k17cr_8",ale="_collapseHeader_k17cr_9",Mc={switchBtn:ole,shapeFieldBox:ile,collapseHeader:ale},TP=O.createContext({defaultSetterConfig:{},onSetterChange:()=>{}}),Jm=({setters:e,keyPaths:t,condition:n,useField:r=!0,...o})=>{var E,N;const[i,a]=O.useState(!0),{onSetterChange:s,defaultSetterConfig:l,formRef:c,pluginCtx:u}=O.useContext(TP),[d,f]=O.useState(()=>{var _;const P=((_=l[t.join(".")])==null?void 0:_.setter)||"";return e.find(D=>D.componentName===P)||e[0]});let p=null;d!=null&&d.componentName&&(p=mw[d==null?void 0:d.componentName]),p||(p=()=>v("div",{style:{backgroundColor:"whitesmoke",margin:"5px 0",padding:"5px",borderRadius:"2px",color:"gray"},children:`${d==null?void 0:d.componentName} is not found.`}));const h=e.map(P=>{const _=(P==null?void 0:P.componentName)||"",D=mw[_];return{key:P.componentName,label:(D==null?void 0:D.setterName)||P.componentName}}),m=({key:P})=>{const _=e.find(D=>D.componentName===P);_&&(f(_),s==null||s(t,_.componentName))};let b=v("div",{className:Mc.switchBtn,onClick:P=>{P.preventDefault(),P.stopPropagation()},children:v(pv,{trigger:["click"],menu:{selectable:!0,items:h,onClick:m,defaultSelectedKeys:[(d==null?void 0:d.componentName)||""]},children:v(b3,{})})});h.length===1&&(b=null);const g=O.useMemo(()=>{let P={...(d==null?void 0:d.props)||{}};const _=e.find(D=>D.componentName===(d==null?void 0:d.componentName));return _&&(P={...P,..._.props}),P},[e]),S={formRef:c,pluginCtx:u},[C,w]=O.useState([]),y={condition:n,onConditionValueChange:P=>{a(P)}};let $=null;return["ArraySetter"].includes((d==null?void 0:d.componentName)||"")?$=v(Tr,{bordered:!1,style:{marginBottom:"10px"},defaultActiveKey:[o.name],children:ae(Tr.Panel,{header:ae("div",{className:Mc.collapseHeader,children:[v("span",{style:{flex:1},children:o.label}),C,b]}),children:[r&&v(Tc,{...o,noStyle:!0,...y,children:v(p,{...g,setterContext:{...S,keyPaths:[...t],label:o.label,setCollapseHeaderExt:w}})}),!r&&v(p,{...g,setterContext:{...S,keyPaths:[...t],label:o.label,setCollapseHeaderExt:w}})]},o.name)}):["ShapeSetter"].includes((d==null?void 0:d.componentName)||"")?$=ae("div",{className:Mc.shapeFieldBox,children:[o.prefix??null,((E=d==null?void 0:d.props)==null?void 0:E.collapse)===!1&&ae("div",{style:{width:"100%"},children:[r&&v(Tc,{...o,noStyle:!0,...y,children:v(p,{...g,setterContext:{...S,keyPaths:[...t]}})}),!r&&v(p,{...g,setterContext:{...S,keyPaths:[...t]}})]}),((N=d==null?void 0:d.props)==null?void 0:N.collapse)!==!1&&v(Tr,{bordered:!1,style:{flex:1},children:v(Tr.Panel,{header:ae("div",{className:Mc.collapseHeader,children:[v("span",{style:{flex:1},children:o.label}),b]}),children:v(Tc,{...o,noStyle:!0,...y,children:v(p,{...g,setterContext:{...S,keyPaths:[...t]}})})},o.name)}),o.suffix??null]}):$=ae("div",{style:{display:"flex",alignItems:"center",paddingBottom:"8px"},children:[o.prefix??null,r&&v(Tc,{...o,condition:n,onConditionValueChange:P=>{a(P)},children:v(p,{...g,setterContext:{...S,keyPaths:[...t]}})}),!r&&v(p,{...g,setterContext:{...S,keyPaths:[...t]}}),b,o.suffix??null]}),v("div",{style:{display:i?"block":"none",overflow:"auto"},children:$})},sle="_CFromRenderBox_13lda_2",lle={CFromRenderBox:sle},cle=(e,t)=>{const{properties:n,initialValue:r,onValueChange:o,onSetterChange:i,defaultSetterConfig:a,pluginCtx:s}=e,l=n;return v(TP.Provider,{value:{defaultSetterConfig:a,onSetterChange:i,formRef:t,pluginCtx:s},children:v(Cn,{theme:{token:{borderRadius:4}},children:v("div",{className:lle.CFromRenderBox,style:{overflow:"auto",height:"100%"},children:v(km,{ref:t,name:"root-form",initialValue:r,onValueChange:c=>{o==null||o(c)},children:l.map(c=>{if(nN(c))c.content;else{const u=Uoe(c.title),d=tN(c.title),f=Bm(c.setters),p=[c.name];return v(Jm,{condition:c.condition,keyPaths:p,setters:f,label:u,name:c.name||"",tips:d},c.name)}})})})})})},Zm=O.forwardRef(cle),ule=e=>{var s,l;const{node:t}=e,n=((s=t.material)==null?void 0:s.value.props)||[],r=O.useRef(null);O.useEffect(()=>{const c=()=>{var d,f;const u=((d=t.getPlainProps)==null?void 0:d.call(t))||{};(f=r.current)==null||f.setFields(u)};c(),t.emitter.on("onNodeChange",c)},[t]);const o=((l=t.getPlainProps)==null?void 0:l.call(t))||{},i=c=>{t.updateValue({props:c})},a=(c,u)=>{t.value.configure=t.value.configure||{},t.value.configure.propsSetter=t.value.configure.propsSetter||{},t.value.configure.propsSetter[c.join(".")]={name:c.join("."),setter:u}};return v("div",{className:_oe.CFromRenderBox,children:v(Zm,{pluginCtx:e.pluginCtx,defaultSetterConfig:t.value.configure.propsSetter||{},onSetterChange:a,properties:n,initialValue:o,ref:r,onValueChange:i},t.id)})},dle={key:"Property",name:"Property",view:({node:e,pluginCtx:t})=>v(ule,{node:e,pluginCtx:t})},fle=e=>{const{node:t}=e,n=t.value.state||{},r=O.useRef(null);O.useEffect(()=>{var a;const i=t.value.state||{};(a=r==null?void 0:r.current)==null||a.setValue(JSON.stringify(i,null,2))},[t]);const o=i=>{try{const a=JSON.parse(i);t.value.state=a,t.updateValue()}catch(a){console.warn(a)}};return v(Ht,{children:v(Xl,{initialValue:JSON.stringify(n,null,2),language:"json",options:{automaticLayout:!0,tabSize:2,minimap:{enabled:!1},quickSuggestions:!1,suggestOnTriggerCharacters:!1,folding:!1},onDidMount:i=>{r.current=i},onChange:o})})},ple={key:"State",name:"State",view:({node:e,pluginCtx:t})=>v(fle,{node:e,pluginCtx:t})},hle="_advanceBox_9o3af_2",gle={advanceBox:hle},vle=[{name:"condition",title:{label:"Render",tip:"controller component render"},valueType:"boolean",setters:["BooleanSetter","ExpressionSetter"]},{name:"loop",title:"loop render",valueType:"object",setters:[{componentName:"ShapeSetter",props:{elements:[{name:"open",title:"open",valueType:"boolean",setters:["BooleanSetter","ExpressionSetter"]},{name:"data",title:"data",valueType:"array",setters:[{componentName:"ArraySetter",initialValue:[],props:{item:{setters:["JSONSetter","ExpressionSetter"],initialValue:{}}}},"JSONSetter","ExpressionSetter"]},{name:"forName",title:{label:"name",tip:"loop element name"},valueType:"string",setters:["StringSetter"]},{name:"forIndex",title:{label:"index",tip:"loop element index"},valueType:"string",setters:["StringSetter"]},{name:"key",title:{label:"key",tip:"loop element key"},valueType:"expression",setters:["ExpressionSetter"]},{name:"name",title:{label:`variable
|
|
468
|
+
name`,tip:"loop variable name"},valueType:"string",setters:[{componentName:"StringSetter",props:{prefix:"loopData"}}]}]},initialValue:{open:!1,data:[]}}]},{name:"refId",title:{label:"refId",tip:"unique node flag"},valueType:"string",setters:["StringSetter"]},{name:"stateName",title:{label:ae(Ht,{children:["state ",v("br",{})," name"]}),tip:"alias for state"},valueType:"string",setters:["StringSetter"]}],mle=e=>{var a;const{node:t}=e,n=(s,l)=>{t.value.configure=t.value.configure||{},t.value.configure.advanceSetter=t.value.configure.advanceSetter||{},t.value.configure.advanceSetter[s.join(".")]={name:s.join("."),setter:l}},r=t.value.loop,o=O.useRef(null);O.useEffect(()=>{var l;const s={condition:t.value.condition||!0,loop:{open:(r==null?void 0:r.open)||!1,data:(r==null?void 0:r.data)||[],forName:(r==null?void 0:r.forName)||"item",forIndex:(r==null?void 0:r.forIndex)||"index",key:(r==null?void 0:r.key)||"",name:(r==null?void 0:r.name)||""},refId:t.value.refId,stateName:t.value.stateName};(l=o.current)==null||l.setFields(s)},[t]);const i=s=>{t.value.loop=s.loop,t.value.condition=s.condition,t.value.refId=s.refId,t.value.stateName=s.stateName,t.updateValue()};return v("div",{className:gle.advanceBox,children:v(Zm,{defaultSetterConfig:((a=t.value.configure)==null?void 0:a.advanceSetter)||{},onSetterChange:n,properties:vle,initialValue:{},ref:o,onValueChange:i},t.id)})},ble={key:"Advance",name:"Advance",view:({node:e,pluginCtx:t})=>v(mle,{node:e,pluginCtx:t})},yle="_rightPanelContainer_1p332_2",Sle={rightPanelContainer:yle},wle="_visualPanelBox_6q12v_2",xle="_header_6q12v_5",bw={visualPanelBox:wle,header:xle},Cle={cssColors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},cssKeyValue:{"align-content":{values:["center","flex-end","flex-start","space-around","space-between","stretch"]},"align-items":{values:["baseline","center","flex-end","flex-start","stretch"]},"align-self":{values:["auto","normal","self-start","self-end","baseline","center","start","end","flex-end","flex-start","safe","stretch","unsafe"]},all:{values:[]},animation:{values:[]},"animation-delay":{values:[]},"animation-direction":{values:["alternate","alternate-reverse","normal","reverse"]},"animation-duration":{values:[]},"animation-fill-mode":{values:["backwards","both","forwards","none"]},"animation-iteration-count":{values:["infinite"]},"animation-name":{values:["none"]},"animation-play-state":{values:["paused","running"]},"animation-timing-function":{values:["cubic-bezier()","ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start","steps()"]},"backface-visibility":{values:["hidden","visible"]},background:{values:[],type:"color"},"background-attachment":{values:["fixed","local","scroll"]},"background-blend-mode":{values:["color","color-burn","color-dodge","darken","difference","exclusion","hard-light","hue","lighten","luminosity","multiply","normal","overlay","saturation","screen","soft-light"]},"background-clip":{values:["border-box","content-box","padding-box"]},"background-color":{values:[],type:"color"},"background-image":{values:["image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()","url()"]},"background-origin":{values:["border-box","content-box","padding-box"]},"background-position":{values:["left","center","right","bottom","top"]},"background-repeat":{values:["no-repeat","repeat","repeat-x","repeat-y","round","space"]},"background-size":{values:["auto","contain","cover"]},border:{values:[]},"border-collapse":{values:["collapse","separate"]},"border-color":{values:[],type:"color"},"border-spacing":{values:[]},"border-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-bottom":{values:[]},"border-bottom-color":{values:[],type:"color"},"border-bottom-left-radius":{values:[]},"border-bottom-right-radius":{values:[]},"border-bottom-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-bottom-width":{values:["medium","thin","thick"]},"border-image":{values:["url()"]},"border-image-outset":{values:[]},"border-image-slice":{values:[]},"border-image-source":{values:[]},"border-image-repeat":{values:["repeat","round","space","stretch"]},"border-image-width":{values:["auto"]},"border-left":{values:[]},"border-left-color":{values:[],type:"color"},"border-left-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-left-width":{values:["medium","thin","thick"]},"border-radius":{values:[]},"border-right":{values:[]},"border-right-color":{values:[],type:"color"},"border-right-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-right-width":{values:["medium","thin","thick"]},"border-top":{values:[]},"border-top-color":{values:[],type:"color"},"border-top-left-radius":{values:[]},"border-top-right-radius":{values:[]},"border-top-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"border-top-width":{values:["medium","thin","thick"]},"border-width":{values:["medium","thin","thick"]},"box-decoration-break":{values:["clone","slice"]},"box-shadow":{values:["none"]},"box-sizing":{values:["border-box","content-box"]},bottom:{values:["auto"]},"break-after":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"break-before":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"break-inside":{values:["auto","avoid","avoid-column","avoid-page","avoid-region"]},"caption-side":{values:["bottom","top"]},"caret-color":{values:["auto"],type:"color"},clear:{values:["both","left","none","right"]},clip:{values:["auto"]},color:{values:[],type:"color"},columns:{values:[]},"column-count":{values:[]},"column-fill":{values:["auto","balance"]},"column-gap":{values:["normal"]},"column-rule":{values:[]},"column-rule-color":{values:[],type:"color"},"column-rule-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"column-rule-width":{values:["medium","thin","thick"]},"column-span":{values:["all","none"]},"column-width":{values:["auto"]},content:{values:["attr()","close-quote","no-close-quote","no-open-quote","normal","none","open-quote"]},"counter-increment":{values:["none"]},"counter-reset":{values:["none"]},cursor:{values:["alias","all-scroll","auto","cell","col-resize","context-menu","copy","crosshair","default","e-resize","ew-resize","grab","grabbing","help","move","n-resize","ne-resize","nesw-resize","no-drop","none","not-allowed","ns-resize","nw-resize","nwse-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait","zoom-in","zoom-out"]},direction:{values:["ltr","rtl"]},display:{values:["block","contents","flex","flow-root","grid","inline","inline-block","inline-flex","inline-grid","inline-table","list-item","none","run-in","subgrid","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group"]},"empty-cells":{values:["hide","show"]},fill:{values:[]},filter:{values:["blur()","brightness()","contrast()","custom()","drop-shadow()","grayscale()","hue-rotate()","invert()","none","opacity()","sepia()","saturate()","url()"]},flex:{values:["auto","none"]},"flex-basis":{values:["auto"]},"flex-direction":{values:["column","column-reverse","row","row-reverse"]},"flex-flow":{values:["column","column-reverse","nowrap","row","row-reverse","wrap","wrap-reverse"]},"flex-grow":{values:[]},"flex-shrink":{values:[]},"flex-wrap":{values:["nowrap","wrap","wrap-reverse"]},float:{values:["left","right","none","inline-start","inline-end"]},"flow-into":{values:["none"],type:"named-flow"},"flow-from":{values:["none"],type:"named-flow"},font:{values:[]},"font-display":{values:["auto","block","swap","fallback","optional"]},"font-family":{values:["auto","cursive","fantasy","monospace","sans-serif","serif"]},"font-feature-settings":{values:["normal"]},"font-kerning":{values:["auto","none","normal"]},"font-language-override":{values:["normal"]},"font-size":{values:["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","larger","smaller"]},"font-size-adjust":{values:["auto","none"]},"font-stretch":{values:["condensed","expanded","extra-condensed","extra-expanded","normal","semi-condensed","semi-expanded","ultra-condensed","ultra-expanded"]},"font-style":{values:["italic","normal","oblique"]},"font-synthesis":{values:["none","style","weight"]},"font-variant":{values:["normal","small-caps"]},"font-variant-alternates":{values:["normal"]},"font-variant-caps":{values:["normal","small-caps","all-small-caps","petite-caps","all-petite-caps","unicase","titling-caps"]},"font-variant-east-asian":{values:["normal"]},"font-variant-ligatures":{values:["normal","none"]},"font-variant-numeric":{values:["normal"]},"font-variant-position":{values:["normal","sub","super"]},"font-weight":{values:["bold","bolder","lighter","normal","100","200","300","400","500","600","700","800","900"]},gap:{values:["revert-layer"]},grid:{values:[]},"grid-area":{values:[]},"grid-auto-columns":{values:[]},"grid-auto-flow":{values:["row","column","dense"]},"grid-auto-rows":{values:[]},"grid-column":{values:["auto"]},"grid-column-end":{values:[]},"grid-column-gap":{values:[]},"grid-column-start":{values:[]},"grid-gap":{values:[]},"grid-row":{values:["auto"]},"grid-row-end":{values:[]},"grid-row-start":{values:[]},"grid-row-gap":{values:[]},"grid-template":{values:["none"]},"grid-template-areas":{values:[]},"grid-template-columns":{values:["auto"]},"grid-template-rows":{values:["auto"]},"hanging-punctuation":{values:["allow-end","first","force-end","last","none"]},height:{values:["auto","max-content","min-content","fit-content"]},hyphens:{values:["auto","manual","none"]},"image-orientation":{values:[]},"image-resolution":{values:["from-image","snap"]},isolation:{values:["auto","isolate"]},"justify-content":{values:["center","flex-end","flex-start","space-around","space-between"]},"justify-items":{values:["auto","normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline","first","last","safe","unsafe","legacy"]},"justify-self":{values:["auto","normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline","first","last","safe","unsafe"]},left:{values:["auto"]},"letter-spacing":{values:["normal"]},"line-height":{values:["normal"]},"list-style":{values:["none","url()","armenian","circle","decimal","decimal-leading-zero","disc","georgian","inside","lower-alpha","lower-greek","lower-latin","lower-roman","outside","square","upper-alpha","upper-latin","upper-roman"]},"list-style-image":{values:["none","url()"]},"list-style-position":{values:["inside","outside"]},"list-style-type":{values:["armenian","circle","decimal","decimal-leading-zero","disc","georgian","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"]},margin:{values:["auto"]},"margin-bottom":{values:["auto"]},"margin-left":{values:["auto"]},"margin-right":{values:["auto"]},"margin-top":{values:["auto"]},"max-height":{values:["none"]},"max-width":{values:["none"]},"min-height":{values:[]},"min-width":{values:[]},"mix-blend-mode":{values:["color","color-burn","color-dodge","darken","difference","exclusion","hard-light","hue","lighten","luminosity","multiply","normal","overlay","saturation","screen","soft-light"]},"object-fit":{values:["contain","cover","fill","none","scale-down"]},"object-position":{values:["left","center","right","bottom","top"]},opacity:{values:[]},order:{values:[]},orphans:{values:[]},outline:{values:[]},"outline-color":{values:["invert"],type:"color"},"outline-offset":{values:[]},"outline-style":{values:["dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"]},"outline-width":{values:["medium","thin","thick"]},overflow:{values:["auto","hidden","scroll","visible"]},"overflow-x":{values:["auto","hidden","scroll","visible"]},"overflow-y":{values:["auto","hidden","scroll","visible"]},"overflow-wrap":{values:["normal","anywhere","break-word"]},padding:{values:[]},"padding-bottom":{values:[]},"padding-left":{values:[]},"padding-right":{values:[]},"padding-top":{values:[]},"page-break-after":{values:["always","auto","avoid","left","right"]},"page-break-before":{values:["always","auto","avoid","left","right"]},"page-break-inside":{values:["auto","avoid"]},perspective:{values:["none"]},"perspective-origin":{values:["bottom","center","left","right","top"]},"pointer-events":{values:["all","auto","fill","none","painted","stroke","visible","visibleFill","visiblePainted","visibleStroke"]},position:{values:["absolute","fixed","relative","static","sticky"]},quotes:{values:["none"]},"region-break-after":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"region-break-before":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"region-break-inside":{values:["auto","avoid","avoid-column","avoid-page","avoid-region"]},"region-fragment":{values:["auto","break"]},resize:{values:["both","horizontal","none","vertical"]},right:{values:["auto"]},"scroll-behavior":{values:["auto","smooth"]},"scroll-snap-type":{values:["none","x","y","block","inline","both","mandatory","proximity"]},src:{values:["url()"]},"shape-image-threshold":{values:[]},"shape-inside":{values:["auto","circle()","ellipse()","outside-shape","polygon()","rectangle()"]},"shape-margin":{values:[]},"shape-outside":{values:["none","circle()","ellipse()","polygon()","inset()","margin-box","border-box","padding-box","content-box","url()","image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()"]},"tab-size":{values:[]},"table-layout":{values:["auto","fixed"]},"text-align":{values:["start","end","center","left","justify","right","match-parent","justify-all"]},"text-align-last":{values:["center","left","justify","right"]},"text-decoration":{values:["line-through","none","overline","underline"]},"text-decoration-color":{values:[],type:"color"},"text-decoration-line":{values:["line-through","none","overline","underline"]},"text-decoration-skip":{values:["edges","ink","none","objects","spaces"]},"text-decoration-style":{values:["dashed","dotted","double","solid","wavy"]},"text-emphasis":{values:[]},"text-emphasis-color":{values:[],type:"color"},"text-emphasis-position":{values:["above","below","left","right"]},"text-emphasis-style":{values:["circle","dot","double-circle","filled","none","open","sesame","triangle"]},"text-indent":{values:[]},"text-justify":{values:["auto","none","inter-word","inter-character"]},"text-overflow":{values:["clip","ellipsis"]},"text-shadow":{values:[]},"text-rendering":{values:["auto","geometricPrecision","optimizeLegibility","optimizeSpeed"]},"text-transform":{values:["capitalize","full-width","lowercase","none","uppercase"]},"text-underline-position":{values:["alphabetic","auto","below","left","right"]},top:{values:["auto"]},transform:{values:["matrix()","matrix3d()","none","perspective()","rotate()","rotate3d()","rotateX()","rotateY()","rotateZ()","scale()","scale3d()","scaleX()","scaleY()","scaleZ()","skewX()","skewY()","translate()","translate3d()","translateX()","translateY()","translateZ()"]},"transform-origin":{values:["bottom","center","left","right","top"]},"transform-style":{values:["flat","preserve-3d"]},transition:{values:[]},"transition-delay":{values:[]},"transition-duration":{values:[]},"transition-property":{values:["all","none"]},"transition-timing-function":{values:["cubic-bezier()","ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start","steps()"]},"unicode-bidi":{values:["bidi-override","embed","normal"]},"unicode-range":{values:[]},"user-select":{values:["all","auto","contain","none","text"]},"vertical-align":{values:["baseline","bottom","middle","sub","super","text-bottom","text-top","top"]},visibility:{values:["collapse","hidden","visible"]},"white-space":{values:["normal","nowrap","pre","pre-line","pre-wrap"]},widows:{values:[]},width:{values:["auto","max-content","min-content","fit-content"]},"will-change":{values:["auto","contents","opacity","scroll-position"]},"word-break":{values:["normal","break-all","keep-all"]},"word-spacing":{values:["normal"]},"z-index":{values:["auto"]}}},$le=Object.keys(Cle.cssKeyValue),Ole="_cssFieldBox_15f2h_2",Ele="_row_15f2h_9",Nle="_fieldLabel_15f2h_14",Rle="_leftBox_15f2h_20",Ple="_rightBox_15f2h_23",Ile="_inputBox_15f2h_26",_le="_cssBox_15f2h_30",vo={cssFieldBox:Ole,row:Ele,fieldLabel:Nle,leftBox:Rle,rightBox:Ple,inputBox:Ile,cssBox:_le},Tle=async(e,t=14)=>new Promise((n,r)=>{const o=document.createElement("span");o.innerHTML=e,o.style.fontSize=`${t}px`,o.style.position="fixed",o.style.left="-1000px",o.style.bottom="-1000px",o.style.display="inline-block",document.body.appendChild(o),setTimeout(()=>{const i=window.getComputedStyle(o);n(i.width),setTimeout(()=>{document.body.removeChild(o)})})}),fp=$le.map(e=>({value:e})),yw=O.forwardRef(function(t,n){var y,$;const[r,o]=O.useState(""),[i,a]=O.useState(""),{mod:s="create"}=t,[l,c]=O.useState({key:((y=t.value)==null?void 0:y.key)||"",value:(($=t.value)==null?void 0:$.value)||{type:Sn.EXPRESSION,value:""}});O.useEffect(()=>{t.value&&c(t.value)},[t.value]);const[u,d]=O.useState(fp),f=E=>{const N=fp.filter(P=>P.value.includes(E));d(E?N:fp)},p=()=>{t.onValueChange({...l})},{run:h}=Qm(p,{wait:20}),[m,b]=O.useState(0);O.useEffect(()=>{Tle(l.key,13.33).then(E=>{let N=parseFloat(E);l.key===""&&(N=200),b(N+6)})},[l.key]);const g=O.useRef(null),[S,C]=O.useState({key:!1,value:!1});O.useImperativeHandle(n,()=>({reset:()=>{var E;c({key:"",value:{type:Sn.EXPRESSION,value:""}}),(E=g.current)==null||E.focus()}}),[]);const w=()=>{var N,P,_;if(l.key===""){o("error");return}if(l.value.value===""){a("error");return}o(""),a("");const E=(N=t.onCreate)==null?void 0:N.call(t,l);(P=E==null?void 0:E.errorKey)!=null&&P.includes("key")&&o("error"),(_=E==null?void 0:E.errorKey)!=null&&_.includes("value")&&a("error")};return v(Ht,{children:ae("div",{className:vo.cssFieldBox,children:[ae("div",{className:vo.leftBox,children:[ae("div",{className:vo.row,children:[v("span",{className:vo.fieldLabel,children:"Name"}),v(fu,{status:r,disabled:s==="edit",ref:g,onSearch:f,dropdownMatchSelectWidth:200,value:l.key,onChange:E=>{o(""),c({...l,key:E}),h()},style:{width:`${m}px`},className:ur([vo.inputBox]),onFocus:()=>{C({key:!0,value:!1})},onBlur:()=>{C({key:!1,value:!1})},placeholder:"property",options:u})]}),ae("div",{className:vo.row,children:[v("span",{className:vo.fieldLabel,children:"Value"}),v(Cn,{theme:{token:{borderRadius:4}},children:v(Al,{status:i,value:l.value.value,onChange:E=>{a("");const N={type:Sn.EXPRESSION,value:E.target.value};c({...l,value:N})},onKeyDown:E=>{var N;E.code==="Enter"&&s==="create"&&(w(),(N=g.current)==null||N.focus())}})})]})]}),v("div",{className:vo.rightBox,children:t.onDelete&&s==="edit"&&v(Ln,{size:"small",type:"text",onClick:()=>{var E;(E=t.onDelete)==null||E.call(t)},children:v(iE,{style:{display:"inline-flex",fontSize:"12px"}})})}),t.onCreate&&s==="create"&&v("div",{children:v(Ln,{size:"small",type:"text",icon:v(Ov,{style:{fontSize:"12px",display:"inline-flex"}}),onClick:w})})]})})}),Mle=O.forwardRef(function(t,n){const[r,o]=O.useState([]);O.useImperativeHandle(n,()=>({setValue:c=>{o(c)}}),[]),O.useEffect(()=>{t.initialValue&&o(t.initialValue)},[]);const[i,a]=O.useState({key:"",value:{type:Sn.EXPRESSION,value:""}}),s=c=>{var u;(u=t.onValueChange)==null||u.call(t,c)},l=O.useRef(null);return v(Cn,{theme:{token:{borderRadius:4}},children:ae("div",{className:vo.cssBox,children:[r.map((c,u)=>v("div",{children:v(yw,{value:c,mod:"edit",onValueChange:d=>{if(d.key===""){r.splice(u,1),o([...r]);return}r[u]=d,o([...r]),s(r)},onDelete:()=>{r.splice(u,1),o([...r]),s(r)}})},u)),v(yw,{value:i,ref:l,mod:"create",onValueChange:c=>{a(c)},onCreate:c=>{if(r.find(d=>d.key===c.key))return kO.error("The attribute name already exists, please replace"),{errorKey:["key"]};r.push(c),o([...r]),s(r),a({key:"",value:{type:Sn.EXPRESSION,value:""}})}})]})})}),Dle=[{title:"Class Names",name:"className",valueType:"array",setters:[{componentName:"ArraySetter",props:{sortLabelKey:"name",item:{setters:[{componentName:"ShapeSetter",props:{collapse:!1,elements:[{name:"name",title:"类名",valueType:"string",setters:["StringSetter"]},{name:"status",title:"启用",valueType:"boolean",setters:["ExpressionSetter"]}]},initialValue:{}}],initialValue:{name:"",status:{type:Sn.EXPRESSION,value:!0}}}},initialValue:[]}]}],jle=O.forwardRef(function(t,n){return v(Cn,{theme:{token:{borderRadius:4}},children:v("div",{children:v(Zm,{initialValue:[],properties:Dle,onSetterChange:function(){},onValueChange:r=>{var o;(o=t.onValueChange)==null||o.call(t,r.className||[])},defaultSetterConfig:{}})})})}),MP=e=>{const t={};return e.forEach(n=>{t[n.key]=n.value}),t},dg=e=>{const t=[],n=[];return Object.keys(e).forEach(o=>{const i=e[o];jU(i)?n.push({key:o,value:i}):t.push({key:o,value:i})}),{normalProperty:t,expressionProperty:n}},Ale=(e,t)=>{const n={class:e,value:[]},r=[];return Object.keys(t).forEach(o=>{const i=t[o],a={state:o,media:[],style:(i==null?void 0:i.normal)||{}};Object.keys(i||{}).forEach(s=>{s!=="normal"&&a.media.push({type:"max-width",value:s,style:(i==null?void 0:i[s])||{}})}),r.push(a)}),n.value=r,n},kle=e=>{if(!e)return{};const t=e.value,n={};return t.forEach(r=>{const o={normal:r.style};r.media.forEach(i=>{o[i.value]=i.style}),n[r.state]=o}),n},Lle="_cssFieldBox_4b8an_2",zle="_inputAuto_4b8an_20",Ble="_active_4b8an_23",Fle="_cssBox_4b8an_27",sa={cssFieldBox:Lle,inputAuto:zle,active:Ble,cssBox:Fle},Vle=async(e,t=14)=>new Promise((n,r)=>{const o=document.createElement("span");o.innerHTML=e,o.style.fontSize=`${t}px`,o.style.position="fixed",o.style.left="-1000px",o.style.bottom="-1000px",o.style.display="inline-block",document.body.appendChild(o),setTimeout(()=>{const i=window.getComputedStyle(o);n(i.width),setTimeout(()=>{document.body.removeChild(o)})})}),pp=Zse.map(e=>({value:e})),Sw=O.forwardRef(function(t,n){const[r,o]=O.useState(""),[i,a]=O.useState(""),{mode:s="edit"}=t,l=O.useMemo(()=>s==="create",[s]),[c,u]=O.useState({key:t.value.key,value:t.value.value});O.useEffect(()=>{u(t.value)},[t.value]);const[d,f]=O.useState(pp),[p,h]=O.useState([]),[m,b]=O.useState([]),g=T=>{const j=pp.filter(A=>A.value.includes(T));f(T?j:pp)},S=()=>{var A;let T=[];const j=IP[c.key];j&&(T=((A=j.values)==null?void 0:A.map(B=>({value:B})))||[]),h(T),b(T)},C=T=>{const j=m.filter(A=>A.value.includes(T));h(T?j:m)},w=()=>t.allValues.find(T=>T.key===c.key)?(kO.error(`${c.key} is exits`),o("error"),!1):!0,y=()=>{var T;l?c.value?(T=t.onCreate)==null||T.call(t,c):a("error"):E()},$=()=>{o(""),a(""),t.onValueChange({...c})},{run:E}=Qm($,{wait:20}),[N,P]=O.useState(0);O.useEffect(()=>{Vle(c.key,13.33).then(T=>{let j=parseFloat(T);c.key===""&&(j=200),P(j+6)})},[c.key]);const _=O.useRef(null),D=O.useRef(null),[M,I]=O.useState({key:!1,value:!1});return O.useImperativeHandle(n,()=>({reset:()=>{var T;u({key:"",value:""}),(T=D.current)==null||T.focus()}}),[]),ae("div",{className:sa.cssFieldBox,children:[v(fu,{ref:D,bordered:!1,disabled:!l,onSearch:g,status:r,dropdownMatchSelectWidth:200,value:c.key,onChange:T=>{u({...c,key:T}),o("")},style:{width:`${N}px`},className:ur([l&&sa.inputAuto,l&&M.key&&sa.active]),onFocus:()=>{I({key:!0,value:!1})},onBlur:()=>{I({key:!1,value:!1}),w()},onKeyDown:T=>{var j;T.code==="Enter"&&w()&&((j=_.current)==null||j.focus())},placeholder:"property",options:d}),v("span",{children:":"}),v(fu,{bordered:!1,ref:_,status:i,dropdownMatchSelectWidth:200,value:c.value,onChange:T=>{var j;S(),u({...c,value:T}),a(""),l||((j=t.onCreate)==null||j.call(t,c),E())},style:{flex:1},onFocus:()=>{I({key:!1,value:!0})},onBlur:()=>{I({key:!1,value:!1}),E()},className:ur([sa.inputAuto,M.value&&sa.active]),placeholder:"value",onSearch:C,options:p,onKeyDown:T=>{T.code==="Enter"&&y()}}),t.onDelete&&s==="edit"&&v(Ln,{size:"small",type:"text",onClick:()=>{var T;(T=t.onDelete)==null||T.call(t)},children:v(iE,{style:{display:"inline-flex",fontSize:"12px"}})}),t.onCreate&&s==="create"&&v("div",{children:v(Ln,{size:"small",type:"text",icon:v(Ov,{style:{fontSize:"12px",display:"inline-flex"}}),onClick:y})})]})}),ww=O.forwardRef(function(t,n){const[r,o]=O.useState([]);O.useImperativeHandle(n,()=>({setValue:c=>{o(c)}}),[]),O.useEffect(()=>{t.initialValue&&o(t.initialValue)},[]);const[i,a]=O.useState({key:"",value:""}),s=c=>{var u;(u=t.onValueChange)==null||u.call(t,c)},l=O.useRef(null);return v(Cn,{theme:{token:{borderRadius:4}},children:ae("div",{className:sa.cssBox,children:[r.map((c,u)=>v("div",{children:v(Sw,{mode:"edit",allValues:r,value:c,onValueChange:d=>{r[u]=d,o([...r]),s(r)},onDelete:()=>{r.splice(u,1),o([...r]),s(r)}})},u)),v(Sw,{allValues:r,mode:"create",value:i,ref:l,onCreate:c=>{var u;if(c.key&&c.value){const d=r.filter(f=>f.key!==c.key);d.push(c),o(d),s(d),(u=l.current)==null||u.reset(),a({key:"",value:""})}},onValueChange:c=>{a(c)}})]})})}),Hle="_stateTag_5a8hc_2",Wle="_stateTagClose_5a8hc_5",xw={stateTag:Hle,stateTagClose:Wle},Ule=["normal","hover","focus","focus-within","focus-visible","checked","disable","active"],Cw=Ule.map(e=>({key:e,label:e})),Kle=e=>{const[t,n]=O.useState("normal"),[r]=O.useState([{key:"991",maxWidth:"991",label:"Medial Query ( <= 991 px )"},{key:"767",maxWidth:"767",label:"Medial Query ( <= 767 px )"},{key:"479",maxWidth:"479",label:"Medial Query ( <= 479 px )"}]),o=O.useRef({}),i=b=>{n(b)},[a,s]=O.useState(["normal"]),l=O.useMemo(()=>Cw.filter(b=>!a.includes(b.key)),[a]),c=O.useMemo(()=>Cw.filter(b=>a.includes(b.key)),[a]),[u,d]=O.useState(e.initialValue??{});O.useEffect(()=>{const b=Object.keys(u);s(b)},[u]);const f=O.useMemo(()=>{const b=u==null?void 0:u[t];if(!b)return{};const g={};return Object.keys(b).forEach(S=>{g[S]=dg(b[S]||{}).normalProperty}),g},[t,u]),p=O.useCallback(()=>{Object.keys(o.current).forEach(b=>{var C;const g=(C=o.current)==null?void 0:C[b],S=f[b]||[];g&&g.setValue(S)})},[f]),h=O.useRef();h.current=p,e.handler&&(e.handler.current={setValue:async b=>{var g;d(b),await nl(),(g=h.current)==null||g.call(h)}}),O.useEffect(()=>{p()},[t]);const m=O.useCallback((b,g)=>{var C;const S={...u,[t]:{...u[t]||{},[b]:MP(g)}};(C=e.onValueChange)==null||C.call(e,S)},[u,t]);return v(Ht,{children:ae(Z4,{size:"small",type:"inner",title:v("span",{style:{fontSize:"12px"},children:"CSS"}),extra:v(pv,{menu:{items:l,onClick:b=>{s(g=>[...g,b.key])}},children:v(Ov,{})}),children:[v(rO,{size:[0,8],wrap:!0,style:{paddingBottom:"10px"},children:c.map(b=>{const g=t.includes(b.key);return ae(XF,{style:{border:g?"1px solid rgba(0,0,0,0))":"1px solid rgb(216 216 216 / 82%)"},checked:g,onChange:()=>i(b.key),className:xw.stateTag,children:[b.label,b.key!=="normal"&&v(g3,{className:xw.stateTagClose,onClick:S=>{S.stopPropagation(),S.preventDefault(),s(C=>C.filter(w=>w!==b.key)),n("normal")}})]},b.key)})}),ae(Tr,{defaultActiveKey:["normal"],bordered:!1,style:{marginBottom:"10px"},children:[v(Tr.Panel,{header:v("span",{children:"Normal"}),children:v(ww,{ref:b=>{o.current.normal=b},onValueChange:b=>m("normal",b),initialValue:f.normal})},"normal"),r.map(b=>v(Tr.Panel,{header:v("span",{children:b.label}),children:v(ww,{ref:g=>{o.current[b.key]=g},onValueChange:g=>m(b.key,g)})},b.key))]})]})})},Gle=e=>{const t=O.useRef(null),n=e.pluginCtx.pageModel.getNode(e.node.id),r=O.useRef(null),o=O.useRef(null),[i,a]=O.useState({}),s=O.useMemo(()=>dg(i),[i]),l=O.useRef();O.useEffect(()=>{const d=()=>{var b,g,S;l.current=n;const f=n.value.style||{};a(f);const{normalProperty:p,expressionProperty:h}=dg(f);(b=r.current)==null||b.setValue(p),(g=t.current)==null||g.setValue(h);const m=kle(n.value.css);(S=o.current)==null||S.setValue(m)};d(),n.emitter.on("onNodeChange",d),n.emitter.on("onReloadPage",d)},[n]);const c=d=>{const f=MP([...d]);a(f),n.value.style=f,n.updateValue()},u=d=>{n.value.css=Ale(`c_${n.id}`,d),console.log(" node.value.css",n.value.css),n.updateValue()};return ae("div",{className:bw.visualPanelBox,children:[v("div",{style:{marginBottom:"10px"},children:v(jle,{onValueChange:d=>{n.value.classNames=d,n.updateValue()}})}),v(Tr,{defaultActiveKey:["origin-css-edit"],bordered:!1,style:{marginBottom:"10px"},children:v(Tr.Panel,{header:v("span",{className:bw.header,children:"Style Variable Bind"}),children:v(Mle,{ref:t,initialValue:s.expressionProperty,onValueChange:d=>{c([...s.normalProperty,...d])}})},"origin-css-edit")}),v(Kle,{handler:o,onValueChange:u})]})},Xle={key:"VisualPanelPlus",name:"VisualPanel",view:({node:e,pluginCtx:t})=>v(Gle,{node:e,pluginCtx:t})};class qle extends O.Component{constructor(n){super(n);Le(this,"addPanel",n=>{const r=[...this.state.panels,n];this.setState({panels:r}),this.updatePanels()});Le(this,"updatePanels",()=>{const{pluginCtx:n}=this.props,{node:r,panels:o}=this.state,i=o;let a={panels:[],displayPanels:[]};if(r){const s={node:r,pluginCtx:n},l=i.filter(c=>c.show===void 0?!0:c.show(s));a={panels:i,displayPanels:l}}else a={panels:i,displayPanels:[]};return this.setState(a),a});Le(this,"onNodeChange",({node:n})=>{var u;const{pluginCtx:r}=this.props,{panels:o,activeKey:i}=this.state,a={node:n,pluginCtx:r},s=o.filter(d=>d.show===void 0?!0:d.show(a)),l=((u=s.find((d,f)=>f===0))==null?void 0:u.key)||"";s.find(d=>d.key===i)?this.setState({node:n,displayPanels:s}):this.setState({activeKey:l,node:n,displayPanels:s})});this.state={node:n.pluginCtx.engine.getActiveNode(),activeKey:"Visual",panels:[dle,Xle,ple,ble],displayPanels:[]}}componentDidMount(){var a;const{pluginCtx:n}=this.props;n.globalEmitter.on("onSelectNodeChange",this.onNodeChange),n.pageModel.emitter.on("*",()=>{const s=n.engine.getActiveNode();this.onNodeChange({node:s})});const{displayPanels:r}=this.updatePanels(),o=((a=r.find((s,l)=>l===0))==null?void 0:a.key)||"";r.find(s=>s.key===this.state.activeKey)||this.setState({activeKey:o})}render(){const{displayPanels:n,node:r,activeKey:o}=this.state,{pluginCtx:i}=this.props;if(!r)return v("div",{style:{overflow:"hidden"},children:v(li,{image:li.PRESENTED_IMAGE_SIMPLE,description:"Please select a node from left view"})});const a={node:r,pluginCtx:i};return v("div",{className:Sle.rightPanelContainer,children:v(jl,{activeKey:o,tabPosition:"top",style:{flex:1,height:"100%"},onChange:s=>{this.setState({activeKey:s})},items:n.map(s=>{var l;return{label:v("div",{style:{padding:"0 10px"},children:typeof s.name=="string"?s.name:(l=s.name)==null?void 0:l.call(s,a)}),key:s.key,children:s.view(a)}})})})}}const Yle="RightPanel",DP=e=>{const t=O.createRef();return{name:Yle,async init(n){n.getWorkbench().replaceRightView(v(qle,{ref:t,pluginCtx:n}))},async destroy(n){console.log("destroy",n)},exports:n=>({addPanel:r=>{var o;(o=t==null?void 0:t.current)==null||o.addPanel(r)}}),meta:{engine:{version:"1.0.0"}}}},Qle={pluginName:"全局状态"},Jle={pluginName:"Global State"},$w={zh_CN:Qle,en_US:Jle},Zle="_box_tl0hm_2",ece={box:Zle},fg="GlobalState",hp=`plugin:${fg}`,tce=e=>{const{pluginCtx:t}=e,n=t.pageModel.value.componentsTree.value.state||{};let r=!1;const o=O.useRef(null);O.useEffect(()=>{var a;(a=o==null?void 0:o.current)==null||a.setValue(JSON.stringify(n,null,2)),t.pageModel.emitter.on("onReloadPage",s=>{var l;if(console.log(s),r){r=!1;return}(l=o.current)==null||l.setValue(JSON.stringify(t.pageModel.value.componentsTree.value.state,null,2))})},[]);const i=a=>{try{const s=JSON.parse(a);t.pageModel.value.componentsTree.value.state=s,r=!0,t.pageModel.value.componentsTree.updateValue()}catch(s){console.warn(s)}};return v("div",{className:ece.box,children:v(Xl,{language:"json",options:{automaticLayout:!0,tabSize:2,minimap:{enabled:!1},quickSuggestions:!1,suggestOnTriggerCharacters:!1,folding:!1},onDidMount:a=>{o.current=a},onChange:i})})},jP={name:fg,async init(e){const{i18n:t}=e;Object.keys($w).forEach(i=>{t.addResourceBundle(i,hp,$w[i],!0,!0)});const n=xa(hp)(tce),r=xa(hp)(({t:i})=>v(Ht,{children:i("pluginName")}));e.getWorkbench().addLeftPanel({title:v(r,{}),name:fg,icon:v(f3,{}),render:v(n,{pluginCtx:e})})},async destroy(e){console.log("destroy",e)},exports:e=>({}),meta:{engine:{version:"1.0.0"}}},nce=e=>{const t=e.pageModel.export(),{engineCtx:n}=e,[r,o]=O.useState(!1),i=O.useRef(null);return ae(Ht,{children:[v("div",{onClick:()=>{o(!0)},children:e.children}),v(wd,{open:r,title:"Source Schema",width:"100%",onCancel:()=>o(!1),onOk:async()=>{var d;o(!1);const a=(d=i.current)==null?void 0:d.getValue();if(!a)return;const s=JSON.parse(a);e.pageModel.updatePage(s),await nl();const l=n.engine.getActiveNode(),c=await n.pluginManager.get("Designer"),u=(l==null?void 0:l.id)||"";c==null||c.ctx.emitter.on("ready",()=>{c.exports.selectNode(u)}),c&&c.exports.selectNode(u)},style:{height:"calc(100vh - 50px)",top:"25px"},destroyOnClose:!0,children:v("div",{style:{width:"100%",height:"calc(100vh - 200px)"},children:v(Xl,{initialValue:JSON.stringify(t,null,2),language:"json",options:{automaticLayout:!0},onDidMount:a=>{i.current=a}})})})]})},rce="History",AP=e=>{const t=e,n={historyRecords:[],currentStepIndex:0};let r=null;const o=e.pageModel.export();r=o,n.historyRecords.push(o);const i=async s=>{t&&(t.pageModel.reloadPage(s),await nl())},a={addStep:()=>{const{currentStepIndex:s,historyRecords:l}=n,c=e.pageModel.export();s!==l.length-1&&(n.historyRecords=l.slice(0,s+1)),n.historyRecords.push(c),n.currentStepIndex=l.length-1},reset:async()=>{if(!t){console.warn("plugin ctx is null, pls check it");return}r&&(n.historyRecords=[],i(r))},preStep:()=>{const{currentStepIndex:s,historyRecords:l}=n;if(!a.canGoPreStep())return;const c=s-1;n.currentStepIndex=c;const u=H1(l[c]);i(u)},nextStep:()=>{if(!a.canGoNextStep())return;const{currentStepIndex:s,historyRecords:l}=n,c=s+1;n.currentStepIndex=c;const u=H1(l[c]);return i(u)},canGoPreStep:()=>{const{currentStepIndex:s}=n;return!(s<=0)},canGoNextStep:()=>{const{currentStepIndex:s,historyRecords:l}=n;return!(s>=l.length-1)}};return{name:rce,async init(s){s.pageModel.emitter.on("onNodeChange",()=>{a.addStep()}),s.pageModel.emitter.on("onPageChange",()=>{a.addStep()}),s.pluginReadyOk()},async destroy(s){console.log("destroy",s)},exports:()=>a,meta:{engine:{version:"1.0.0"}}}},oce=[AR,Poe,DR,jP,DP,AP],ice=Object.freeze(Object.defineProperty({__proto__:null,ComponentLibPlugin:DR,DEFAULT_PLUGIN_LIST:oce,DesignerPlugin:AR,DisplaySourceSchema:nce,GlobalStatePanelPlugin:jP,HistoryPlugin:AP,RightPanelPlugin:DP},Symbol.toStringTag,{value:"Module"})),mo={name:"$$attributes",title:"属性",valueType:"object",setters:[{componentName:"ArraySetter",props:{item:{setters:[{componentName:"ShapeSetter",props:{elements:[{name:"key",title:"属性名",valueType:"string",setters:["StringSetter"]},{name:"value",title:"值",valueType:"string",setters:["StringSetter","NumberSetter","JSONSetter","FunctionSetter","ExpressionSetter"]}],collapse:!1},initialValue:{}}],initialValue:{}}},initialValue:[]}]},na={name:"width",title:"宽度",valueType:"string",setters:["StringSetter","ExpressionSetter"]},ra={name:"height",title:"高度",valueType:"string",setters:["StringSetter","ExpressionSetter"]},ace=eN.map(e=>({title:ER(e),componentName:e,props:[mo],snippets:[]})),sce=[{title:"块",componentName:"CBlock",isSupportStyle:!0,props:[na,ra,{name:"children",title:"文本",valueType:"string",setters:["StringSetter","ExpressionSetter"]},mo],groupName:"原子组件",snippets:[{title:"块",snapshotText:"Block",category:"基础组件",schema:{props:{width:"100%",height:"100px"}}}]},{title:"容器",componentName:"CContainer",isSupportStyle:!0,isContainer:!0,props:[na,ra,{name:"afterMount",title:"渲染之后",valueType:"function",setters:["FunctionSetter","ExpressionSetter"]},{name:"beforeDestroy",title:"销毁之前",valueType:"function",setters:["FunctionSetter","ExpressionSetter"]},mo],groupName:"原子组件",snippets:[{title:"容器",snapshotText:"Con",category:"基础组件",schema:{props:{width:"100%",height:"100px"}}}]},{title:"图片",componentName:"CImage",isSupportStyle:!0,props:[{name:"src",title:"地址",valueType:"string",setters:["StringSetter","ExpressionSetter"]},na,ra,mo],groupName:"原子组件",snippets:[{title:"图片",snapshotText:"Img",category:"基础组件",schema:{props:{width:"300px",height:"150px"}}}]},{title:"视频",componentName:"CVideo",isSupportStyle:!0,props:[{name:"src",title:"地址",valueType:"string",setters:["StringSetter","ExpressionSetter"]},{name:"autoPlay",title:"自动播放",valueType:"string",setters:["BooleanSetter","ExpressionSetter"]},{name:"controls",title:"控制面板",valueType:"string",setters:["BooleanSetter","ExpressionSetter"]},na,ra,mo],fixedProps:{autoPlay:!1},groupName:"原子组件",snippets:[{title:"视频",snapshotText:"Video",category:"基础组件",schema:{props:{width:"300px",height:"150px",src:"https://vjs.zencdn.net/v/oceans.mp4"}}}]},{title:"音频",groupName:"原子组件",componentName:"CAudio",isSupportStyle:!0,props:[{name:"src",title:"地址",valueType:"string",setters:["StringSetter","ExpressionSetter"]},{name:"autoPlay",title:"自动播放",valueType:"string",setters:["BooleanSetter","ExpressionSetter"]},{name:"controls",title:"控制面板",valueType:"string",setters:["BooleanSetter","ExpressionSetter"]},na,ra,mo],snippets:[{title:"音频",snapshotText:"Audio",category:"基础组件",schema:{props:{src:"https://vjs.zencdn.net/v/oceans.mp4"}}}]},{title:"文本",componentName:"CText",groupName:"原子组件",isSupportStyle:!0,props:[{name:"content",title:"内容",valueType:"string",setters:["TextAreaSetter","ExpressionSetter"]},mo],snippets:[{title:"文本",snapshotText:"Text",category:"基础组件",schema:{props:{content:"text"}}}]},{title:"Canvas",componentName:"CCanvas",isSupportStyle:!0,props:[na,ra,mo],groupName:"原子组件",snippets:[{title:"画布",snapshotText:"Cavs",category:"基础组件",schema:{props:{width:"300px",height:"150px"}}}]},{title:"HTML 标签",componentName:"CNativeTag",isSupportStyle:!0,props:[{name:"htmlTag",title:"标签名",valueType:"string",setters:[{componentName:"SelectSetter",props:{options:eN.map(e=>({name:e,value:e}))}}]},mo],groupName:"原子组件",snippets:[{title:"HTML",snapshotText:"HTML",category:"基础组件",schema:{props:{htmlTag:"div",children:"html tag"}}}]}],lce=[...sce,...ace];class cce extends O.Component{constructor(n){super(n);Le(this,"currentSelectNode");Le(this,"pluginManager");Le(this,"workbenchRef",O.createRef());Le(this,"pageSchema");Le(this,"pageModel");Le(this,"material");Le(this,"emitter");Le(this,"updatePage",n=>{this.emitter.emit("updatePage"),console.log(n)});Le(this,"updateDesignerAssets",n=>{console.log("updateDesignerAssets",n)});Le(this,"updateMaterial",n=>{this.emitter.emit("updateMaterial"),console.log(n)});Le(this,"refresh",()=>{this.emitter.emit("refresh"),console.log("refresh engine")});Le(this,"getWorkbench",()=>this.workbenchRef.current);this.pageSchema=n.schema,this.material=n.material,this.currentSelectNode=null,window.__CHAMELEON_ENG__=this;try{this.pageModel=new DS(this.pageSchema,{materials:this.material||[],assetPackagesList:n.assetPackagesList||[]})}catch(r){console.error(r),this.pageModel=new DS(WU)}this.emitter=wu()}updateCurrentSelectNode(n){this.currentSelectNode=n,this.emitter.emit("onSelectNodeChange",{node:n})}async componentDidMount(){var o,i,a,s;window.__C_ENGINE__=this;const n=this.props.plugins;this.pluginManager=new b5({engine:this,getWorkbench:()=>this.workbenchRef.current,emitter:this.emitter,pageModel:this.pageModel,i18n:hE,assets:this.props.assets||[]}),(i=(o=this.props).beforePluginRun)==null||i.call(o,{pluginManager:this.pluginManager});const r=n.map(l=>this.pluginManager.add(l));await Promise.all(r),this.pageModel.emitter.on("onReloadPage",()=>{var c;if(!this.currentSelectNode)return;const l=this.pageModel.getNode((c=this.currentSelectNode)==null?void 0:c.id);l&&this.updateCurrentSelectNode(l)}),(s=(a=this.props).onReady)==null||s.call(a,{pluginManager:this.pluginManager,engine:this})}getActiveNode(){var r;if(!((r=this.currentSelectNode)!=null&&r.id))return null;const n=this.pageModel.getNode(this.currentSelectNode.id);return this.currentSelectNode=n,n}render(){return v("div",{className:w3.engineContainer,children:v(y3,{ref:this.workbenchRef,emitter:this.emitter})})}}exports.DEmitter=uN;exports.DragAndDrop=pN;exports.Engine=cce;exports.IFrameContainer=Ah;exports.InnerComponentMeta=lce;exports.Layout=QN;exports.Sensor=Bl;exports.addEventListenerReturnCancel=lr;exports.animationFrame=Md;exports.collectVariable=sN;exports.flatObject=lN;exports.isDOM=cl;exports.plugins=ice;
|
|
213
469
|
//# sourceMappingURL=index.cjs.js.map
|