@chamn/engine 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,213 @@
1
+ "use strict";var od=Object.defineProperty;var sd=(e,t,r)=>t in e?od(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var K=(e,t,r)=>(sd(e,typeof t!="symbol"?t+"":t,r),r);const Z=require("react"),no=require("react-dom"),mc=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function yc(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ke=mc(Z),_=yc(Z),ud=mc(no),cd=yc(no);var ni={exports:{}},Lr={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var fs;function ld(){if(fs)return Lr;fs=1;var e=ke.default,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,c){var l,f={},d=null,h=null;c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(h=u.ref);for(l in u)n.call(u,l)&&!a.hasOwnProperty(l)&&(f[l]=u[l]);if(s&&s.defaultProps)for(l in u=s.defaultProps,u)f[l]===void 0&&(f[l]=u[l]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return Lr.Fragment=r,Lr.jsx=o,Lr.jsxs=o,Lr}var Mr={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var ds;function fd(){return ds||(ds=1,process.env.NODE_ENV!=="production"&&function(){var e=ke.default,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator";function y(m){if(m===null||typeof m!="object")return null;var j=v&&m[v]||m[g];return typeof j=="function"?j:null}var p=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(m){{for(var j=arguments.length,M=new Array(j>1?j-1:0),H=1;H<j;H++)M[H-1]=arguments[H];w("error",m,M)}}function w(m,j,M){{var H=p.ReactDebugCurrentFrame,ie=H.getStackAddendum();ie!==""&&(j+="%s",M=M.concat([ie]));var le=M.map(function(te){return String(te)});le.unshift("Warning: "+j),Function.prototype.apply.call(console[m],console,le)}}var S=!1,x=!1,P=!1,R=!1,F=!1,k;k=Symbol.for("react.module.reference");function N(m){return!!(typeof m=="string"||typeof m=="function"||m===n||m===a||F||m===i||m===c||m===l||R||m===h||S||x||P||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===f||m.$$typeof===o||m.$$typeof===s||m.$$typeof===u||m.$$typeof===k||m.getModuleId!==void 0))}function B(m,j,M){var H=m.displayName;if(H)return H;var ie=j.displayName||j.name||"";return ie!==""?M+"("+ie+")":M}function E(m){return m.displayName||"Context"}function C(m){if(m==null)return null;if(typeof m.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case l:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case s:var j=m;return E(j)+".Consumer";case o:var M=m;return E(M._context)+".Provider";case u:return B(m,m.render,"ForwardRef");case f:var H=m.displayName||null;return H!==null?H:C(m.type)||"Memo";case d:{var ie=m,le=ie._payload,te=ie._init;try{return C(te(le))}catch{return null}}}return null}var O=Object.assign,T=0,$,L,W,ee,re,Q,Y;function ue(){}ue.__reactDisabledLog=!0;function Fe(){{if(T===0){$=console.log,L=console.info,W=console.warn,ee=console.error,re=console.group,Q=console.groupCollapsed,Y=console.groupEnd;var m={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}T++}}function $e(){{if(T--,T===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},m,{value:$}),info:O({},m,{value:L}),warn:O({},m,{value:W}),error:O({},m,{value:ee}),group:O({},m,{value:re}),groupCollapsed:O({},m,{value:Q}),groupEnd:O({},m,{value:Y})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=p.ReactCurrentDispatcher,Be;function qe(m,j,M){{if(Be===void 0)try{throw Error()}catch(ie){var H=ie.stack.trim().match(/\n( *(at )?)/);Be=H&&H[1]||""}return`
18
+ `+Be+m}}var Le=!1,Ve;{var ze=typeof WeakMap=="function"?WeakMap:Map;Ve=new ze}function z(m,j){if(!m||Le)return"";{var M=Ve.get(m);if(M!==void 0)return M}var H;Le=!0;var ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var le;le=De.current,De.current=null,Fe();try{if(j){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(Ot){H=Ot}Reflect.construct(m,[],te)}else{try{te.call()}catch(Ot){H=Ot}m.call(te.prototype)}}else{try{throw Error()}catch(Ot){H=Ot}m()}}catch(Ot){if(Ot&&H&&typeof Ot.stack=="string"){for(var X=Ot.stack.split(`
19
+ `),He=H.stack.split(`
20
+ `),be=X.length-1,Ce=He.length-1;be>=1&&Ce>=0&&X[be]!==He[Ce];)Ce--;for(;be>=1&&Ce>=0;be--,Ce--)if(X[be]!==He[Ce]){if(be!==1||Ce!==1)do if(be--,Ce--,Ce<0||X[be]!==He[Ce]){var rt=`
21
+ `+X[be].replace(" at new "," at ");return m.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",m.displayName)),typeof m=="function"&&Ve.set(m,rt),rt}while(be>=1&&Ce>=0);break}}}finally{Le=!1,De.current=le,$e(),Error.prepareStackTrace=ie}var cr=m?m.displayName||m.name:"",ls=cr?qe(cr):"";return typeof m=="function"&&Ve.set(m,ls),ls}function de(m,j,M){return z(m,!1)}function Me(m){var j=m.prototype;return!!(j&&j.isReactComponent)}function st(m,j,M){if(m==null)return"";if(typeof m=="function")return z(m,Me(m));if(typeof m=="string")return qe(m);switch(m){case c:return qe("Suspense");case l:return qe("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case u:return de(m.render);case f:return st(m.type,j,M);case d:{var H=m,ie=H._payload,le=H._init;try{return st(le(ie),j,M)}catch{}}}return""}var At=Object.prototype.hasOwnProperty,me={},ye=p.ReactDebugCurrentFrame;function Pe(m){if(m){var j=m._owner,M=st(m.type,m._source,j?j.type:null);ye.setExtraStackFrame(M)}else ye.setExtraStackFrame(null)}function sr(m,j,M,H,ie){{var le=Function.call.bind(At);for(var te in m)if(le(m,te)){var X=void 0;try{if(typeof m[te]!="function"){var He=Error((H||"React class")+": "+M+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}X=m[te](j,te,H,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){X=be}X&&!(X instanceof Error)&&(Pe(ie),b("%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).",H||"React class",M,te,typeof X),Pe(null)),X instanceof Error&&!(X.message in me)&&(me[X.message]=!0,Pe(ie),b("Failed %s type: %s",M,X.message),Pe(null))}}}var Df=Array.isArray;function Pi(m){return Df(m)}function Vf(m){{var j=typeof Symbol=="function"&&Symbol.toStringTag,M=j&&m[Symbol.toStringTag]||m.constructor.name||"Object";return M}}function Hf(m){try{return es(m),!1}catch{return!0}}function es(m){return""+m}function ts(m){if(Hf(m))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vf(m)),es(m)}var $r=p.ReactCurrentOwner,Wf={key:!0,ref:!0,__self:!0,__source:!0},rs,ns,Ri;Ri={};function Uf(m){if(At.call(m,"ref")){var j=Object.getOwnPropertyDescriptor(m,"ref").get;if(j&&j.isReactWarning)return!1}return m.ref!==void 0}function qf(m){if(At.call(m,"key")){var j=Object.getOwnPropertyDescriptor(m,"key").get;if(j&&j.isReactWarning)return!1}return m.key!==void 0}function Gf(m,j){if(typeof m.ref=="string"&&$r.current&&j&&$r.current.stateNode!==j){var M=C($r.current.type);Ri[M]||(b('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',C($r.current.type),m.ref),Ri[M]=!0)}}function Kf(m,j){{var M=function(){rs||(rs=!0,b("%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)",j))};M.isReactWarning=!0,Object.defineProperty(m,"key",{get:M,configurable:!0})}}function Yf(m,j){{var M=function(){ns||(ns=!0,b("%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)",j))};M.isReactWarning=!0,Object.defineProperty(m,"ref",{get:M,configurable:!0})}}var Xf=function(m,j,M,H,ie,le,te){var X={$$typeof:t,type:m,key:j,ref:M,props:te,_owner:le};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function Jf(m,j,M,H,ie){{var le,te={},X=null,He=null;M!==void 0&&(ts(M),X=""+M),qf(j)&&(ts(j.key),X=""+j.key),Uf(j)&&(He=j.ref,Gf(j,ie));for(le in j)At.call(j,le)&&!Wf.hasOwnProperty(le)&&(te[le]=j[le]);if(m&&m.defaultProps){var be=m.defaultProps;for(le in be)te[le]===void 0&&(te[le]=be[le])}if(X||He){var Ce=typeof m=="function"?m.displayName||m.name||"Unknown":m;X&&Kf(te,Ce),He&&Yf(te,Ce)}return Xf(m,X,He,ie,H,$r.current,te)}}var _i=p.ReactCurrentOwner,is=p.ReactDebugCurrentFrame;function ur(m){if(m){var j=m._owner,M=st(m.type,m._source,j?j.type:null);is.setExtraStackFrame(M)}else is.setExtraStackFrame(null)}var Ti;Ti=!1;function Ni(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function as(){{if(_i.current){var m=C(_i.current.type);if(m)return`
22
+
23
+ Check the render method of \``+m+"`."}return""}}function Qf(m){{if(m!==void 0){var j=m.fileName.replace(/^.*[\\\/]/,""),M=m.lineNumber;return`
24
+
25
+ Check your code at `+j+":"+M+"."}return""}}var os={};function Zf(m){{var j=as();if(!j){var M=typeof m=="string"?m:m.displayName||m.name;M&&(j=`
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:{}};/*!
28
+ Copyright (c) 2018 Jed Watson.
29
+ Licensed under the MIT License (MIT), see
30
+ http://jedwatson.github.io/classnames
31
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(!!a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var s=r.apply(null,a);s&&n.push(s)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var u in a)t.call(a,u)&&a[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(wc);const Dt=wc.exports;var ao={exports:{}},ae={};/** @license React v16.13.1
32
+ * react-is.production.min.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var Ss;function Wd(){if(Ss)return ae;Ss=1;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(x){if(typeof x=="object"&&x!==null){var P=x.$$typeof;switch(P){case t:switch(x=x.type,x){case u:case c:case n:case a:case i:case f:return x;default:switch(x=x&&x.$$typeof,x){case s:case l:case v:case h:case o:return x;default:return P}}case r:return P}}}function S(x){return w(x)===c}return ae.AsyncMode=u,ae.ConcurrentMode=c,ae.ContextConsumer=s,ae.ContextProvider=o,ae.Element=t,ae.ForwardRef=l,ae.Fragment=n,ae.Lazy=v,ae.Memo=h,ae.Portal=r,ae.Profiler=a,ae.StrictMode=i,ae.Suspense=f,ae.isAsyncMode=function(x){return S(x)||w(x)===u},ae.isConcurrentMode=S,ae.isContextConsumer=function(x){return w(x)===s},ae.isContextProvider=function(x){return w(x)===o},ae.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},ae.isForwardRef=function(x){return w(x)===l},ae.isFragment=function(x){return w(x)===n},ae.isLazy=function(x){return w(x)===v},ae.isMemo=function(x){return w(x)===h},ae.isPortal=function(x){return w(x)===r},ae.isProfiler=function(x){return w(x)===a},ae.isStrictMode=function(x){return w(x)===i},ae.isSuspense=function(x){return w(x)===f},ae.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===c||x===a||x===i||x===f||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===h||x.$$typeof===o||x.$$typeof===s||x.$$typeof===l||x.$$typeof===y||x.$$typeof===p||x.$$typeof===b||x.$$typeof===g)},ae.typeOf=w,ae}var oe={};/** @license React v16.13.1
39
+ * react-is.development.js
40
+ *
41
+ * Copyright (c) Facebook, Inc. and its affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
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 G(e){return Qd(e)||Pc(e)||oo(e)||Zd()}function so(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 eh(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Nt(e,t){if(e==null)return{};var r=eh(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function th(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=n.has(a);if(_e(!u,"Warning: There may be circular references"),u)return!1;if(a===o)return!0;if(r&&s>1)return!1;n.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var l=0;l<a.length;l++)if(!i(a[l],o[l],c))return!1;return!0}if(a&&o&&ne(a)==="object"&&ne(o)==="object"){var f=Object.keys(a);return f.length!==Object.keys(o).length?!1:f.every(function(d){return i(a[d],o[d],c)})}return!1}return i(e,t)}var rh=function(){function e(){Ne(this,e),U(this,"cache",new Map)}return je(e,[{key:"get",value:function(r){return this.cache.get(r.join("%"))||null}},{key:"update",value:function(r,n){var i=r.join("%"),a=this.cache.get(i),o=n(a);o===null?this.cache.delete(i):this.cache.set(i,o)}}]),e}(),la="data-token-hash",Ut="data-css-hash",nh="data-dev-cache-path",Vr="__cssinjs_instance__",Vn=Math.random().toString(12).slice(2);function ih(){if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Ut,"]"))||[],t=document.head.firstChild;Array.from(e).forEach(function(n){n[Vr]=n[Vr]||Vn,document.head.insertBefore(n,t)});var r={};Array.from(document.querySelectorAll("style[".concat(Ut,"]"))).forEach(function(n){var i=n.getAttribute(Ut);if(r[i]){if(n[Vr]===Vn){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else r[i]=!0})}return new rh}var ah=_.createContext({hashPriority:"low",cache:ih(),defaultCache:!0});const Rc=ah;function _c(e){if(Array.isArray(e))return e}function oh(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Tc(){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 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=(`
49
+ (?:
50
+ (?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
51
+ (?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 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
+ (?:`+n+":){5}(?::"+r+"|(?::"+n+`){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
+ (?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){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
+ (?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){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
+ (?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){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
+ (?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
57
+ (?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
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,
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}),ui=xg;function Cg(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:u,colorBgBase:c,colorTextBase:l}=e,f=r(u),d=r(i),h=r(a),v=r(o),g=r(s),y=n(c,l);return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new Ze("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Og=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}},Eg=Og;function Pg(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},Eg(n))}const Pt=(e,t)=>new Ze(e).setAlpha(t).toRgbString(),Ir=(e,t)=>new Ze(e).darken(t).toHexString(),Rg=e=>{const t=Jt(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]}},_g=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Pt(n,.88),colorTextSecondary:Pt(n,.65),colorTextTertiary:Pt(n,.45),colorTextQuaternary:Pt(n,.25),colorFill:Pt(n,.15),colorFillSecondary:Pt(n,.06),colorFillTertiary:Pt(n,.04),colorFillQuaternary:Pt(n,.02),colorBgLayout:Ir(r,4),colorBgContainer:Ir(r,0),colorBgElevated:Ir(r,0),colorBgSpotlight:Pt(n,.85),colorBorder:Ir(r,15),colorBorderSecondary:Ir(r,6)}};function Tg(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,a=e*Math.pow(2.71828,i/5),o=n>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const Ng=e=>{const t=Tg(e),r=t.map(i=>i.size),n=t.map(i=>i.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},jg=Ng;function Fg(e){const t=Object.keys(dl).map(r=>{const n=Jt(e[r]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${r}-${o+1}`]=n[o],i[`${r}${o+1}`]=n[o],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Cg(e,{generateColorPalettes:Rg,generateNeutralColorPalettes:_g})),jg(e.fontSize)),wg(e)),Sg(e)),Pg(e))}function Ui(e){return e>=0&&e<=255}function Pn(e,t){const{r,g:n,b:i,a}=new Ze(e).toRgb();if(a<1)return e;const{r:o,g:s,b:u}=new Ze(t).toRgb();for(let c=.01;c<=1;c+=.01){const l=Math.round((r-o*(1-c))/c),f=Math.round((n-s*(1-c))/c),d=Math.round((i-u*(1-c))/c);if(Ui(l)&&Ui(f)&&Ui(d))return new Ze({r:l,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new Ze({r,g:n,b:i,a:1}).toRgbString()}var kg=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 Ag(e){const{override:t}=e,r=kg(e,["override"]),n=Object.assign({},t);Object.keys(ui).forEach(d=>{delete n[d]});const i=Object.assign(Object.assign({},r),n),a=480,o=576,s=768,u=992,c=1200,l=1600;return Object.assign(Object.assign(Object.assign({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Pn(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Pn(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Pn(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Pn(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
62
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
63
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
64
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
65
+ `,boxShadowSecondary:`
66
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
67
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
68
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
69
+ `,boxShadowTertiary:`
70
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
71
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
72
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
73
+ `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
74
+ 0 1px 2px -2px ${new Ze("rgba(0, 0, 0, 0.16)").toRgbString()},
75
+ 0 3px 6px 0 ${new Ze("rgba(0, 0, 0, 0.12)").toRgbString()},
76
+ 0 5px 12px 4px ${new Ze("rgba(0, 0, 0, 0.09)").toRgbString()}
77
+ `,boxShadowDrawerRight:`
78
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
79
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
80
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
81
+ `,boxShadowDrawerLeft:`
82
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
83
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
84
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
85
+ `,boxShadowDrawerUp:`
86
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
87
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
88
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
89
+ `,boxShadowDrawerDown:`
90
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
91
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
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"}}),Lg=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"}}}),Mg=(e,t)=>{const{fontFamily:r,fontSize:n}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ig=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Bg=e=>({"&:focus-visible":Object.assign({},Ig(e))}),hl="anticon",zg=(e,t)=>t||(e?`ant-${e}`:"ant"),rr=_.createContext({getPrefixCls:zg,iconPrefixCls:hl});function pl(e,t,r){return n=>{const[i,a,o]=go(),{getPrefixCls:s,iconPrefixCls:u}=Z.useContext(rr),c=s();return ma({theme:i,token:a,hashId:o,path:["Shared",c]},()=>[{"&":Lg(a)}]),[ma({theme:i,token:a,hashId:o,path:[e,n,u]},()=>{const{token:l,flush:f}=Vg(a),d=typeof r=="function"?r(l):r,h=Object.assign(Object.assign({},d),a[e]),v=`.${n}`,g=ci(l,{componentCls:v,prefixCls:n,iconCls:`.${u}`,antCls:`.${c}`},h),y=t(g,{hashId:o,prefixCls:n,rootPrefixCls:c,iconPrefixCls:u,overrideComponentToken:a[e]});return f(e,h),[Mg(a,n),y]}),o]}}const gl=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Na=!0;function ci(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!gl)return Object.assign.apply(Object,[{}].concat(t));Na=!1;const n={};return t.forEach(i=>{Object.keys(i).forEach(o=>{Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:()=>i[o]})})}),Na=!0,n}function Dg(){}function Vg(e){let t,r=e,n=Dg;return gl&&(t=new Set,r=new Proxy(e,{get(i,a){return Na&&t.add(a),i[a]}}),n=(i,a)=>{Array.from(t)}),{token:r,keys:t,flush:n}}const Hg=Uc(Fg),vl={token:ui,hashed:!0},ml=ke.default.createContext(vl);function go(){const{token:e,hashed:t,theme:r,components:n}=ke.default.useContext(ml),i=`${rg}-${t||""}`,a=r||Hg,[o,s]=Ch(a,[ui,e],{salt:i,override:Object.assign({override:e},n),formatToken:Ag});return[a,o,t?s:""]}const Wg=`-ant-${Date.now()}-${Math.random()}`;function Ug(e,t){const r={},n=(o,s)=>{let u=o.clone();return u=(s==null?void 0:s(u))||u,u.toRgbString()},i=(o,s)=>{const u=new Ze(o),c=Jt(u.toRgbString());r[`${s}-color`]=n(u),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=u.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new Ze(t.primaryColor),s=Jt(o.toRgbString());s.forEach((c,l)=>{r[`primary-${l+1}`]=c}),r["primary-color-deprecated-l-35"]=n(o,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(o,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(o,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(o,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(o,c=>c.setAlpha(c.getAlpha()*.12));const u=new Ze(s[0]);r["primary-color-active-deprecated-f-30"]=n(u,c=>c.setAlpha(c.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(u,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
95
+ :root {
96
+ ${Object.keys(r).map(o=>`--${e}-${o}: ${r[o]};`).join(`
97
+ `)}
98
+ }
99
+ `.trim()}function qg(e,t){const r=Ug(e,t);tr()?Sr(r,`${Wg}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Xt(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ja=_.createContext(!1),Gg=e=>{let{children:t,disabled:r}=e;const n=_.useContext(ja);return I(ja.Provider,{value:r!=null?r:n,children:t})},yl=ja,Fa=_.createContext(void 0),Kg=e=>{let{children:t,size:r}=e;const n=_.useContext(Fa);return I(Fa.Provider,{value:r||n,children:t})},li=Fa;function Yg(){const e=Z.useContext(yl),t=Z.useContext(li);return{componentDisabled:e,componentSize:t}}function Xg(e,t){const r=e||{},n=r.inherit===!1||!t?vl:t;return Cc(()=>{if(!e)return t;const a=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(o=>{a[o]=Object.assign(Object.assign({},a[o]),e.components[o])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:a})},[r,n],(a,o)=>a.some((s,u)=>{const c=o[u];return!th(s,c,!0)}))}const Jg=e=>{const[t,r]=go();return ma({theme:t,token:r,hashId:"",path:["ant-design-icons",e]},()=>[{[`.${e}`]:Object.assign(Object.assign({},$g()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Qg=Jg;var Zg=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};let ka=!1;process.env.NODE_ENV;const ev=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],tv="ant";let bl;function rv(){return bl||tv}const nv=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(bl=t),n&&qg(rv(),n)},iv=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,form:i,locale:a,componentSize:o,direction:s,space:u,virtual:c,dropdownMatchSelectWidth:l,legacyLocale:f,parentContext:d,iconPrefixCls:h,theme:v,componentDisabled:g}=e,y=_.useCallback((C,O)=>{const{prefixCls:T}=e;if(O)return O;const $=T||d.getPrefixCls("");return C?`${$}-${C}`:$},[d.getPrefixCls,e.prefixCls]),p=h||d.iconPrefixCls||hl,b=p!==d.iconPrefixCls,w=r||d.csp,S=Qg(p),x=Xg(v,d.theme);process.env.NODE_ENV!=="production"&&(ka=ka||!!x);const P={csp:w,autoInsertSpaceInButton:n,locale:a||f,direction:s,space:u,virtual:c,dropdownMatchSelectWidth:l,getPrefixCls:y,iconPrefixCls:p,theme:x},R=Object.assign({},d);Object.keys(P).forEach(C=>{P[C]!==void 0&&(R[C]=P[C])}),ev.forEach(C=>{const O=e[C];O&&(R[C]=O)});const F=Cc(()=>R,R,(C,O)=>{const T=Object.keys(C),$=Object.keys(O);return T.length!==$.length||T.some(L=>C[L]!==O[L])}),k=_.useMemo(()=>({prefixCls:p,csp:w}),[p,w]);let N=b?S(t):t;const B=_.useMemo(()=>{var C,O,T;return qr({},((C=po.Form)===null||C===void 0?void 0:C.defaultValidateMessages)||{},((T=(O=F.locale)===null||O===void 0?void 0:O.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[F,i==null?void 0:i.validateMessages]);Object.keys(B).length>0&&(N=I(nl,{validateMessages:B,children:t})),a&&(N=I(tg,{locale:a,_ANT_MARK__:sl,children:N})),(p||w)&&(N=I(fo.Provider,{value:k,children:N})),o&&(N=I(Kg,{size:o,children:N}));const E=_.useMemo(()=>{const C=x||{},{algorithm:O,token:T}=C,$=Zg(C,["algorithm","token"]),L=O&&(!Array.isArray(O)||O.length>0)?Uc(O):void 0;return Object.assign(Object.assign({},$),{theme:L,token:Object.assign(Object.assign({},ui),T)})},[x]);return v&&(N=I(ml.Provider,{value:E,children:N})),g!==void 0&&(N=I(Gg,{disabled:g,children:N})),I(rr.Provider,{value:F,children:N})},Nr=e=>{const t=_.useContext(rr),r=_.useContext(ol);return I(iv,{...Object.assign({parentContext:t,legacyLocale:r},e)})};Nr.ConfigContext=rr;Nr.SizeContext=li;Nr.config=nv;Nr.useConfig=Yg;Object.defineProperty(Nr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Xt(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),li)});process.env.NODE_ENV!=="production"&&(Nr.displayName="ConfigProvider");var Sl=function(t){return+setTimeout(t,16)},wl=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Sl=function(t){return window.requestAnimationFrame(t)},wl=function(t){return window.cancelAnimationFrame(t)});var Xs=0,vo=new Map;function xl(e){vo.delete(e)}var tn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xs+=1;var n=Xs;function i(a){if(a===0)xl(n),t();else{var o=Sl(function(){i(a-1)});vo.set(n,o)}}return i(r),n};tn.cancel=function(e){var t=vo.get(e);return xl(t),wl(t)};function av(e,t){_e(e,"[@ant-design/icons] ".concat(t))}function Js(e){return ne(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ne(e.icon)==="object"||typeof e.icon=="function")}function Qs(){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 Aa(e,t,r){return r?ke.default.createElement(e.tag,A(A({key:t},Qs(e.attrs)),r),(e.children||[]).map(function(n,i){return Aa(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ke.default.createElement(e.tag,A({key:t},Qs(e.attrs)),(e.children||[]).map(function(n,i){return Aa(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Cl(e){return Jt(e)[0]}function Ol(e){return e?Array.isArray(e)?e:[e]:[]}var ov=`
100
+ .anticon {
101
+ display: inline-block;
102
+ color: inherit;
103
+ font-style: normal;
104
+ line-height: 0;
105
+ text-align: center;
106
+ text-transform: none;
107
+ vertical-align: -0.125em;
108
+ text-rendering: optimizeLegibility;
109
+ -webkit-font-smoothing: antialiased;
110
+ -moz-osx-font-smoothing: grayscale;
111
+ }
112
+
113
+ .anticon > * {
114
+ line-height: 1;
115
+ }
116
+
117
+ .anticon svg {
118
+ display: inline-block;
119
+ }
120
+
121
+ .anticon::before {
122
+ display: none;
123
+ }
124
+
125
+ .anticon .anticon-icon {
126
+ display: block;
127
+ }
128
+
129
+ .anticon[tabindex] {
130
+ cursor: pointer;
131
+ }
132
+
133
+ .anticon-spin::before,
134
+ .anticon-spin {
135
+ display: inline-block;
136
+ -webkit-animation: loadingCircle 1s infinite linear;
137
+ animation: loadingCircle 1s infinite linear;
138
+ }
139
+
140
+ @-webkit-keyframes loadingCircle {
141
+ 100% {
142
+ -webkit-transform: rotate(360deg);
143
+ transform: rotate(360deg);
144
+ }
145
+ }
146
+
147
+ @keyframes loadingCircle {
148
+ 100% {
149
+ -webkit-transform: rotate(360deg);
150
+ transform: rotate(360deg);
151
+ }
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,
154
+ &: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=`
156
+ .anticon {
157
+ display: inline-block;
158
+ color: inherit;
159
+ font-style: normal;
160
+ line-height: 0;
161
+ text-align: center;
162
+ text-transform: none;
163
+ vertical-align: -0.125em;
164
+ text-rendering: optimizeLegibility;
165
+ -webkit-font-smoothing: antialiased;
166
+ -moz-osx-font-smoothing: grayscale;
167
+ }
168
+
169
+ .anticon > * {
170
+ line-height: 1;
171
+ }
172
+
173
+ .anticon svg {
174
+ display: inline-block;
175
+ }
176
+
177
+ .anticon::before {
178
+ display: none;
179
+ }
180
+
181
+ .anticon .anticon-icon {
182
+ display: block;
183
+ }
184
+
185
+ .anticon[tabindex] {
186
+ cursor: pointer;
187
+ }
188
+
189
+ .anticon-spin::before,
190
+ .anticon-spin {
191
+ display: inline-block;
192
+ -webkit-animation: loadingCircle 1s infinite linear;
193
+ animation: loadingCircle 1s infinite linear;
194
+ }
195
+
196
+ @-webkit-keyframes loadingCircle {
197
+ 100% {
198
+ -webkit-transform: rotate(360deg);
199
+ transform: rotate(360deg);
200
+ }
201
+ }
202
+
203
+ @keyframes loadingCircle {
204
+ 100% {
205
+ -webkit-transform: rotate(360deg);
206
+ transform: rotate(360deg);
207
+ }
208
+ }
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&&lt(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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};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={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xA9","&#169;":"\xA9","&reg;":"\xAE","&#174;":"\xAE","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},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"&&gt(t.schema)&&gt(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&&gt(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}
210
+ originData: ${JSON.stringify(t)}`):new Error(`${JSON.stringify(t)}
211
+ data struct format is invalidate`);return i},Jo=e=>{const{data:t,message:r,throwError:n,dataStruct:i}=e;return eC(({data:a})=>{try{return $f(a,i),{isValidate:!0}}catch(o){let s=o;return o instanceof Af&&(s=o.failures().map(u=>`\u3010${u.path.join(".")}\u3011: ${u.message}
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;
213
+ //# sourceMappingURL=index.cjs.js.map