react-frontend-common-components 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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=n(e),o=n(t);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,l={exports:{}},c={};var s,u={};
1
+ "use strict";var e=require("react"),t=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=n(e),r=n(t);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,s={exports:{}},l={};var c,u={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,13 +7,13 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */"production"===process.env.NODE_ENV?l.exports=function(){if(a)return c;a=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var a,c={},s=null,u=null;for(a in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,a)&&!l.hasOwnProperty(a)&&(c[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===c[a]&&(c[a]=t[a]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:i.current}}return c.Fragment=r,c.jsx=s,c.jsxs=s,c}():l.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator",b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=b.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var w,x=!1,E=!1,C=!1,S=!1,$=!1;function k(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return k(e)+".Consumer";case l:return k(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case m:var n=e,u=n._payload,v=n._init;try{return O(v(u))}catch(e){return null}}return null}w=Symbol.for("react.module.reference");var N,P,I,R,M,j,_,A=Object.assign,T=0;function F(){}F.__reactDisabledLog=!0;var B,z=b.ReactCurrentDispatcher;function D(e,t,n){if(void 0===B)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);B=r&&r[1]||""}return"\n"+B+e}var L,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,r=L.get(e);if(void 0!==r)return r;H=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=z.current,z.current=null,function(){if(0===T){N=console.log,P=console.info,I=console.warn,R=console.error,M=console.group,j=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}T++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),c=n.stack.split("\n"),s=l.length-1,u=c.length-1;s>=1&&u>=0&&l[s]!==c[u];)u--;for(;s>=1&&u>=0;s--,u--)if(l[s]!==c[u]){if(1!==s||1!==u)do{if(s--,--u<0||l[s]!==c[u]){var d="\n"+l[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&L.set(e,d),d}}while(s>=1&&u>=0);break}}}finally{H=!1,z.current=o,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:N}),info:A({},e,{value:P}),warn:A({},e,{value:I}),error:A({},e,{value:R}),group:A({},e,{value:M}),groupCollapsed:A({},e,{value:j}),groupEnd:A({},e,{value:_})})}T<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?D(f):"";return"function"==typeof e&&L.set(e,p),p}function q(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return D(e);switch(e){case d:return D("Suspense");case f:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return W(e.render,!1);case p:return q(e.type,t,n);case m:var o=e,i=o._payload,a=o._init;try{return q(a(i),t,n)}catch(e){}}return""}L=new V;var X=Object.prototype.hasOwnProperty,G={},K=b.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function Q(e){return Y(e)}function Z(e){return""+e}function J(e){if(function(e){try{return Z(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Z(e)}var ee,te,ne,re=b.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,l){var c={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function ae(e,t,n,r,o){var i,a={},l=null,c=null;for(i in void 0!==n&&(J(n),l=""+n),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),l=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=O(re.current.type);ne[n]||(y('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',O(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)X.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){ee||(ee=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),c&&function(e,t){var n=function(){te||(te=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,l,c,o,r,re.current,a)}var le,ce=b.ReactCurrentOwner,se=b.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(ce.current){var e=O(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+O(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function ve(e,t){if("object"==typeof e)if(Q(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&me(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[h];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&me(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=O(n);!function(e,t,n,r,o){var i=Function.call.bind(X);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(o),y("%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).",r||"React class",n,a,typeof l),U(null)),l instanceof Error&&!(l.message in G)&&(G[l.message]=!0,U(o),y("Failed %s type: %s",n,l.message),U(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function be(e,t,r,u,g,h){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||$||e===i||e===d||e===f||S||e===v||x||E||C)||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===s||e.$$typeof===w||void 0!==e.getModuleId)}(e);if(!b){var k,N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),N+=fe(),null===e?k="null":Q(e)?k="array":void 0!==e&&e.$$typeof===n?(k="<"+(O(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,N)}var P=ae(e,t,r,g,h);if(null==P)return P;if(b){var I=t.children;if(void 0!==I)if(u)if(Q(I)){for(var R=0;R<I.length;R++)ve(I[R],e);Object.freeze&&Object.freeze(I)}else y("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 ve(I,e)}if(X.call(t,"key")){var M=O(e),j=Object.keys(t).filter((function(e){return"key"!==e})),_=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";he[M+_]||(y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',_,M,j.length>0?"{"+j.join(": ..., ")+": ...}":"{}",M),he[M+_]=!0)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(P):ge(P),P}var ye=function(e,t,n){return be(e,t,n,!1)},we=function(e,t,n){return be(e,t,n,!0)};u.Fragment=o,u.jsx=ye,u.jsxs=we}()),u);var d=l.exports,f={exports:{}};
10
+ */"production"===process.env.NODE_ENV?s.exports=function(){if(a)return l;a=1;var t=e,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,o){var a,l={},c=null,u=null;for(a in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,a)&&!s.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===l[a]&&(l[a]=t[a]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return l.Fragment=o,l.jsx=c,l.jsxs=c,l}():s.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m=Symbol.iterator,v="@@iterator",b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=b.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var r=n.map((function(e){return String(e)}));r.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,r)}("error",e,n)}var x,w=!1,C=!1,E=!1,S=!1,k=!1;function O(e){return e.displayName||"Context"}function _(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return O(e)+".Consumer";case s:return O(e._context)+".Provider";case c:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case h:var t=e.displayName||null;return null!==t?t:_(e.type)||"Memo";case p:var n=e,u=n._payload,g=n._init;try{return _(g(u))}catch(e){return null}}return null}x=Symbol.for("react.module.reference");var $,M,N,P,I,R,T,j=Object.assign,A=0;function D(){}D.__reactDisabledLog=!0;var L,z=b.ReactCurrentDispatcher;function B(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var F,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,o=F.get(e);if(void 0!==o)return o;H=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=z.current,z.current=null,function(){if(0===A){$=console.log,M=console.info,N=console.warn,P=console.error,I=console.group,R=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{H=!1,z.current=r,function(){if(0==--A){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:$}),info:j({},e,{value:M}),warn:j({},e,{value:N}),error:j({},e,{value:P}),group:j({},e,{value:I}),groupCollapsed:j({},e,{value:R}),groupEnd:j({},e,{value:T})})}A<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",h=f?B(f):"";return"function"==typeof e&&F.set(e,h),h}function X(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(o=e.prototype)||!o.isReactComponent));var o;if("string"==typeof e)return B(e);switch(e){case d:return B("Suspense");case f:return B("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return W(e.render,!1);case h:return X(e.type,t,n);case p:var r=e,i=r._payload,a=r._init;try{return X(a(i),t,n)}catch(e){}}return""}F=new V;var q=Object.prototype.hasOwnProperty,U={},Y=b.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,n=X(e.type,e._source,t?t.type:null);Y.setExtraStackFrame(n)}else Y.setExtraStackFrame(null)}var K=Array.isArray;function Z(e){return K(e)}function Q(e){return""+e}function J(e){if(function(e){try{return Q(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Q(e)}var ee,te,ne,oe=b.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,o,r,i,a,s){var l={$$typeof:n,type:e,key:t,ref:o,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n,o,r){var i,a={},s=null,l=null;for(i in void 0!==n&&(J(n),s=""+n),function(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),s=""+t.key),function(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&oe.current&&t&&oe.current.stateNode!==t){var n=_(oe.current.type);ne[n]||(y('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',_(oe.current.type),e.ref),ne[n]=!0)}}(t,r)),t)q.call(t,i)&&!re.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){ee||(ee=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),l&&function(e,t){var n=function(){te||(te=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,s,l,r,o,oe.current,a)}var se,le=b.ReactCurrentOwner,ce=b.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=X(e.type,e._source,t?t.type:null);ce.setExtraStackFrame(n)}else ce.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(le.current){var e=_(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var he={};function pe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!he[n]){he[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" It was passed a child from "+_(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function ge(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];de(o)&&pe(o,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[v];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)de(i.value)&&pe(i.value,t)}}function me(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==h)return;t=n.propTypes}if(t){var o=_(n);!function(e,t,n,o,r){var i=Function.call.bind(q);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((o||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(G(r),y("%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).",o||"React class",n,a,typeof s),G(null)),s instanceof Error&&!(s.message in U)&&(U[s.message]=!0,G(r),y("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||se||(se=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ve={};function be(e,t,o,u,m,v){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||k||e===i||e===d||e===f||S||e===g||w||C||E)||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===x||void 0!==e.getModuleId)}(e);if(!b){var O,$="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),$+=fe(),null===e?O="null":Z(e)?O="array":void 0!==e&&e.$$typeof===n?(O="<"+(_(e.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,$)}var M=ae(e,t,o,m,v);if(null==M)return M;if(b){var N=t.children;if(void 0!==N)if(u)if(Z(N)){for(var P=0;P<N.length;P++)ge(N[P],e);Object.freeze&&Object.freeze(N)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(N,e)}if(q.call(t,"key")){var I=_(e),R=Object.keys(t).filter((function(e){return"key"!==e})),T=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";ve[I+T]||(y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',T,I,R.length>0?"{"+R.join(": ..., ")+": ...}":"{}",I),ve[I+T]=!0)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(M):me(M),M}var ye=function(e,t,n){return be(e,t,n,!1)},xe=function(e,t,n){return be(e,t,n,!0)};u.Fragment=r,u.jsx=ye,u.jsxs=xe}()),u);var d=s.exports,f={exports:{}};
11
11
  /*!
12
12
  Copyright (c) 2018 Jed Watson.
13
13
  Licensed under the MIT License (MIT), see
14
14
  http://jedwatson.github.io/classnames
15
15
  */
16
- !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(f);var p=i(f.exports);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}var v,g={exports:{}},h={};var b,y={};
16
+ !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var i in e)t.call(e,i)&&e[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(f);var h=i(f.exports);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(null,arguments)}var g,m={exports:{}},v={};var b,y={};
17
17
  /**
18
18
  * @license React
19
19
  * react-is.development.js
@@ -22,5 +22,24 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */"production"===process.env.NODE_ENV?g.exports=function(){if(v)return h;v=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),h.ContextConsumer=l,h.ContextProvider=a,h.Element=t,h.ForwardRef=s,h.Fragment=r,h.Lazy=p,h.Memo=f,h.Portal=n,h.Profiler=i,h.StrictMode=o,h.Suspense=u,h.SuspenseList=d,h.isAsyncMode=function(){return!1},h.isConcurrentMode=function(){return!1},h.isContextConsumer=function(e){return g(e)===l},h.isContextProvider=function(e){return g(e)===a},h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},h.isForwardRef=function(e){return g(e)===s},h.isFragment=function(e){return g(e)===r},h.isLazy=function(e){return g(e)===p},h.isMemo=function(e){return g(e)===f},h.isPortal=function(e){return g(e)===n},h.isProfiler=function(e){return g(e)===i},h.isStrictMode=function(e){return g(e)===o},h.isSuspense=function(e){return g(e)===u},h.isSuspenseList=function(e){return g(e)===d},h.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},h.typeOf=g,h}():g.exports=(b||(b=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var v=e.type;switch(v){case r:case i:case o:case u:case d:return v;default:var g=v&&v.$$typeof;switch(g){case c:case l:case s:case p:case f:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=l,h=a,b=t,w=s,x=r,E=p,C=f,S=n,$=i,k=o,O=u,N=d,P=!1,I=!1;y.ContextConsumer=g,y.ContextProvider=h,y.Element=b,y.ForwardRef=w,y.Fragment=x,y.Lazy=E,y.Memo=C,y.Portal=S,y.Profiler=$,y.StrictMode=k,y.Suspense=O,y.SuspenseList=N,y.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isConcurrentMode=function(e){return I||(I=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isContextConsumer=function(e){return v(e)===l},y.isContextProvider=function(e){return v(e)===a},y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},y.isForwardRef=function(e){return v(e)===s},y.isFragment=function(e){return v(e)===r},y.isLazy=function(e){return v(e)===p},y.isMemo=function(e){return v(e)===f},y.isPortal=function(e){return v(e)===n},y.isProfiler=function(e){return v(e)===i},y.isStrictMode=function(e){return v(e)===o},y.isSuspense=function(e){return v(e)===u},y.isSuspenseList=function(e){return v(e)===d},y.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},y.typeOf=v}()),y);var w=g.exports;function x(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(x(e)):w.isFragment(e)&&e.props?r=r.concat(x(e.props.children,n)):r.push(e))})),r}var E={},C=[];function S(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=C.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function $(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=C.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function k(){E={}}function O(e,t,n){t||E[n]||(e(!1,n),E[n]=!0)}function N(e,t){O(S,e,t)}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function I(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}function R(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){return e instanceof HTMLElement||e instanceof SVGElement}function A(n){var r,o=function(e){return e&&"object"===P(e)&&_(e.nativeElement)?e.nativeElement:_(e)?e:null}(n);return o||(n instanceof e.Component?null===(r=t.findDOMNode)||void 0===r?void 0:r.call(t,n):null)}function T(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}N.preMessage=function(e){C.push(e)},N.resetWarned=k,N.noteOnce=function(e,t){O($,e,t)};var F=function(e,t){"function"==typeof e?e(t):"object"===P(e)&&e&&"current"in e&&(e.current=t)},B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){F(t,e)}))}},z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T((function(){return B.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},D=function(e){var t,n,r=w.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===w.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===w.ForwardRef)};Number(e.version.split(".")[0]);var L=r.createContext(null);var H=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),V="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,W="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),q="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(W):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var X=["top","right","bottom","left","width","height","size","weight"],G="undefined"!=typeof MutationObserver,K=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){q(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){V&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),G?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){V&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;X.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),U=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Y=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||W},Q=re(0,0,0,0);function Z(e){return parseFloat(e)||0}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Z(e["border-"+n+"-width"])}),0)}function ee(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Q;var r=Y(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Z(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Z(r.width),c=Z(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=J(r,"left","right")+i),Math.round(c+a)!==n&&(c-=J(r,"top","bottom")+a)),!function(e){return e===Y(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return re(o.left,o.top,l,c)}var te="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Y(e).SVGGraphicsElement}:function(e){return e instanceof Y(e).SVGElement&&"function"==typeof e.getBBox};function ne(e){return V?te(e)?function(e){var t=e.getBBox();return re(0,0,t.width,t.height)}(e):ee(e):Q}function re(e,t,n,r){return{x:e,y:t,width:n,height:r}}var oe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=re(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ne(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ie=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),U(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);U(this,{target:e,contentRect:s})},ae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new H,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new oe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Y(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ie(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),le="undefined"!=typeof WeakMap?new WeakMap:new H,ce=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=K.getInstance(),r=new ae(t,n,this);le.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ce.prototype[e]=function(){var t;return(t=le.get(this))[e].apply(t,arguments)}}));var se=void 0!==W.ResizeObserver?W.ResizeObserver:ce,ue=new Map;function de(e){e.forEach((function(e){var t,n=e.target;null===(t=ue.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var fe=new se(de);function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function ve(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function he(e,t){if("function"!=typeof t&&null!==t)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&&ge(e,t)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ye=function(){return!!e})()}function we(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(e){var t=ye();return function(){var n,r=be(e);if(t){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ee=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ce(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(L),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&D(s),f=d?s.ref:null,p=z(f,i),m=function(){var e;return A(i.current)||(i.current&&"object"===P(i.current)?A(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||A(a.current)};r.useImperativeHandle(t,(function(){return m()}));var v=r.useRef(e);v.current=e;var g=r.useCallback((function(e){var t=v.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,g=s===Math.round(a)?a:s,h=j(j({},p),{},{offsetWidth:m,offsetHeight:g});null==l||l(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return r.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=g,ue.has(e)||(ue.set(e,new Set),fe.observe(e)),ue.get(e).add(t)),function(){return function(e,t){ue.has(e)&&(ue.get(e).delete(t),ue.get(e).size||(fe.unobserve(e),ue.delete(e)))}(n,g)}}),[i.current,o]),r.createElement(Ee,{ref:a},d?r.cloneElement(s,{ref:p}):s)}var Se=r.forwardRef(Ce);"production"!==process.env.NODE_ENV&&(Se.displayName="SingleObserver");function $e(e,t){var n=e.children,o="function"==typeof n?[n]:x(n);return"production"!==process.env.NODE_ENV&&(o.length>1?S(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&S(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,m({},e,{key:i,ref:0===o?t:void 0}),n)}))}var ke=r.forwardRef($e);function Oe(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ie(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}function Re(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||Pe(e)||Ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(ke.displayName="ResizeObserver"),ke.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(L),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(L.Provider,{value:l},t)};var Me=function(e){return+setTimeout(e,16)},je=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Me=function(e){return window.requestAnimationFrame(e)},je=function(e){return window.cancelAnimationFrame(e)});var _e=0,Ae=new Map;function Te(e){Ae.delete(e)}var Fe=function(e){var t=_e+=1;return function n(r){if(0===r)Te(t),e();else{var o=Me((function(){n(r-1)}));Ae.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Be(e){if(Array.isArray(e))return e}function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function De(e,t){return Be(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Ie(e,t)||ze()}function Le(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function He(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Fe.cancel=function(e){var t=Ae.get(e);return Te(e),je(t)},"production"!==process.env.NODE_ENV&&(Fe.ids=function(){return Ae});var Ve="data-rc-order",We="data-rc-priority",qe="rc-util-key",Xe=new Map;function Ge(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Ke(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ue(e){return Array.from((Xe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Ve,a),l&&i&&c.setAttribute(We,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=Ke(t),u=s.firstChild;if(r){if(l){var d=(t.styles||Ue(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ve)))return!1;var t=Number(e.getAttribute(We)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ke(t);return(t.styles||Ue(n)).find((function(n){return n.getAttribute(Ge(t))===e}))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qe(e,t);n&&Ke(t).removeChild(n)}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ke(n),o=Ue(r),i=j(j({},n),{},{styles:o});!function(e,t){var n=Xe.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Ye("",t),o=r.parentNode;Xe.set(e,o),e.removeChild(r)}}(r,i);var a=Qe(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ye(e,i);return u.setAttribute(Ge(i),t),u}function et(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(N(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===P(t)&&"object"===P(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}var nt="%";function rt(e){return e.join(nt)}var ot=function(){function e(t){pe(this,e),R(this,"instanceId",void 0),R(this,"cache",new Map),this.instanceId=t}return ve(e,[{key:"get",value:function(e){return this.opGet(rt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(rt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),it="data-token-hash",at="data-css-hash",lt="data-cache-path",ct="__cssinjs_instance__";var st=r.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(at,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ct]=t[ct]||e,t[ct]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(at,"]"))).forEach((function(t){var n,o=t.getAttribute(at);r[o]?t[ct]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new ot(e)}(),defaultCache:!0});var ut=function(){function e(){pe(this,e),R(this,"cache",void 0),R(this,"keys",void 0),R(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ve(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=De(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=De(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();R(ut,"MAX_CACHE_SIZE",20),R(ut,"MAX_CACHE_OFFSET",5);var dt=0,ft=function(){function e(t){pe(this,e),R(this,"derivatives",void 0),R(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=dt,0===t.length&&S(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),dt+=1}return ve(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),pt=new ut;function mt(e){var t=Array.isArray(e)?e:[e];return pt.has(t)||pt.set(t,new ft(t)),pt.get(t)}var vt=new WeakMap,gt={};var ht=new WeakMap;function bt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ht.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof ft?n+=o.id:o&&"object"===P(o)?n+=bt(o,t):n+=o})),t&&(n=Le(n)),ht.set(e,n)),n}function yt(e,t){return Le("".concat(t,"_").concat(bt(e,!0)))}var wt=He();function xt(e){return"number"==typeof e?"".concat(e,"px"):e}function Et(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=j(j({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},R(R({},it,t),at,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},St=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=De(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},$t=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=De(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Ct(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,St(r,t,{scope:null==n?void 0:n.scope})]},kt="test"!==process.env.NODE_ENV&&He()?r.useLayoutEffect:r.useEffect,Ot=function(e,t){var n=r.useRef(!0);kt((function(){return e(n.current)}),t),kt((function(){return n.current=!1,function(){n.current=!0}}),[])},Nt=function(e,t){Ot((function(t){if(!t)return e()}),t)},Pt=j({},r).useInsertionEffect,It=Pt?function(e,t,n){return Pt((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Ot((function(){return t(!0)}),n)},Rt=void 0!==j({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&S(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var Mt=!1;var jt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Mt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var _t=window;if("function"==typeof _t.webpackHotUpdate){var At=_t.webpackHotUpdate;_t.webpackHotUpdate=function(){return Mt=!0,setTimeout((function(){Mt=!1}),0),At.apply(void 0,arguments)}}}function Tt(e,t,n,o,i){var a=r.useContext(st).cache,l=rt([e].concat(Re(t))),c=Rt([l]),s=jt(),u=function(e){a.opUpdate(l,(function(t){var r=De(t||[void 0,void 0],2),i=r[0],a=void 0===i?0:i,l=r[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==o||o(c,s),c=null);var u=[a,c||n()];return e?e(u):u}))};r.useMemo((function(){u()}),[l]);var d=a.opGet(l);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(l));var f=d[1];return It((function(){null==i||i(f)}),(function(e){return u((function(t){var n=De(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(f)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=De(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),f}var Ft={},Bt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",zt=new Map;var Dt=0;function Lt(e,t){zt.set(e,(zt.get(e)||0)-1);var n=Array.from(zt.keys()),r=n.filter((function(e){return(zt.get(e)||0)<=0}));n.length-r.length>Dt&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(it,'="').concat(e,'"]')).forEach((function(e){var n;e[ct]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),zt.delete(e)}))}var Ht=function(e,t,n,r){var o=j(j({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},Vt="token";function Wt(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.useContext(st),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?Ft:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var n=vt,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(gt)||n.set(gt,e()),n.get(gt)}((function(){return Object.assign.apply(Object,[{}].concat(Re(n)))}),n),v=bt(m),g=bt(u),h=p?bt(p):"",b=Tt(Vt,[c,t.id,v,g,h],(function(){var e,n=f?f(m,u,t):Ht(m,u,t,d),r=j({},n),o="";if(p){var i=De($t(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=yt(n,c);n._tokenKey=a,r._tokenKey=yt(r,c);var l=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=l,function(e){zt.set(e,(zt.get(e)||0)+1)}(l);var s="".concat(Bt,"-").concat(Le(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){Lt(e[0]._themeKey,i)}),(function(e){var t=De(e,4),n=t[0],r=t[3];if(p&&r){var o=Je(r,Le("css-variables-".concat(n._themeKey)),{mark:at,prepend:"queue",attachTo:a,priority:-999});o[ct]=i,o.setAttribute(it,n._themeKey)}}));return b}var qt={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},Xt="comm",Gt="rule",Kt="decl",Ut="@import",Yt="@keyframes",Qt="@layer",Zt=Math.abs,Jt=String.fromCharCode;function en(e){return e.trim()}function tn(e,t,n){return e.replace(t,n)}function nn(e,t,n){return e.indexOf(t,n)}function rn(e,t){return 0|e.charCodeAt(t)}function on(e,t,n){return e.slice(t,n)}function an(e){return e.length}function ln(e,t){return t.push(e),e}var cn=1,sn=1,un=0,dn=0,fn=0,pn="";function mn(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cn,column:sn,length:a,return:"",siblings:l}}function vn(){return fn=dn>0?rn(pn,--dn):0,sn--,10===fn&&(sn=1,cn--),fn}function gn(){return fn=dn<un?rn(pn,dn++):0,sn++,10===fn&&(sn=1,cn++),fn}function hn(){return rn(pn,dn)}function bn(){return dn}function yn(e,t){return on(pn,e,t)}function wn(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 xn(e){return en(yn(dn-1,Sn(91===e?e+2:40===e?e+1:e)))}function En(e){for(;(fn=hn())&&fn<33;)gn();return wn(e)>2||wn(fn)>3?"":" "}function Cn(e,t){for(;--t&&gn()&&!(fn<48||fn>102||fn>57&&fn<65||fn>70&&fn<97););return yn(e,bn()+(t<6&&32==hn()&&32==gn()))}function Sn(e){for(;gn();)switch(fn){case e:return dn;case 34:case 39:34!==e&&39!==e&&Sn(fn);break;case 40:41===e&&Sn(e);break;case 92:gn()}return dn}function $n(e,t){for(;gn()&&e+fn!==57&&(e+fn!==84||47!==hn()););return"/*"+yn(t,dn-1)+"*"+Jt(47===e?e:gn())}function kn(e){for(;!wn(hn());)gn();return yn(e,dn)}function On(e){return function(e){return pn="",e}(Nn("",null,null,null,[""],e=function(e){return cn=sn=1,un=an(pn=e),dn=0,[]}(e),0,[0],e))}function Nn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,v=1,g=1,h=1,b=0,y="",w=o,x=i,E=r,C=y;g;)switch(m=b,b=gn()){case 40:if(108!=m&&58==rn(C,d-1)){-1!=nn(C+=tn(xn(b),"&","&\f"),"&\f",Zt(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:C+=xn(b);break;case 9:case 10:case 13:case 32:C+=En(m);break;case 92:C+=Cn(bn()-1,7);continue;case 47:switch(hn()){case 42:case 47:ln(In($n(gn(),bn()),t,n,c),c),5!=wn(m||1)&&5!=wn(hn()||1)||!an(C)||" "===on(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*v:l[s++]=an(C)*h;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==h&&(C=tn(C,/\f/g,"")),p>0&&(an(C)-d||0===v&&47===m)&&ln(p>32?Rn(C+";",r,n,d-1,c):Rn(tn(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if(ln(E=Pn(C,t,n,s,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)Nn(C,t,E,E,w,i,d,l,x);else switch(99===f&&110===rn(C,3)?100:f){case 100:case 108:case 109:case 115:Nn(e,E,E,r&&ln(Pn(e,E,E,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Nn(C,E,E,E,[""],x,0,l,x)}}s=u=p=0,v=h=1,y=C="",d=a;break;case 58:d=1+an(C),p=m;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==vn())continue;switch(C+=Jt(b),b*v){case 38:h=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(an(C)-1)*h,h=1;break;case 64:45===hn()&&(C+=xn(gn())),f=hn(),u=d=an(y=C+=kn(bn())),b++;break;case 45:45===m&&2==an(C)&&(v=0)}}return i}function Pn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),v=0,g=0,h=0;v<r;++v)for(var b=0,y=on(e,f+1,f=Zt(g=a[v])),w=e;b<m;++b)(w=en(g>0?p[b]+" "+y:tn(y,/&\f/g,p[b])))&&(c[h++]=w);return mn(e,t,n,0===o?Gt:l,c,s,u,d)}function In(e,t,n,r){return mn(e,t,n,Xt,Jt(fn),on(e,2,-2),0,r)}function Rn(e,t,n,r,o){return mn(e,t,n,Kt,on(e,0,r),on(e,r+1,-1),r,o)}function Mn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function jn(e,t,n,r){switch(e.type){case Qt:if(e.children.length)break;case Ut:case Kt:return e.return=e.return||e.value;case Xt:return"";case Yt:return e.return=e.value+"{"+Mn(e.children,r)+"}";case Gt:if(!an(e.value=e.props.join(",")))return""}return an(n=Mn(e.children,r))?e.return=e.value+"{"+n+"}":""}function _n(e,t){var n=t.path,r=t.parentSelectors;N(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var An,Tn=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&_n("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Fn=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&_n("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Bn="data-ant-cssinjs-cache-path",zn="_FILE_STYLE__",Dn=!0;function Ln(e){return function(){if(!An&&(An={},He())){var e=document.createElement("div");e.className=Bn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=De(e.split(":"),2),n=t[0],r=t[1];An[n]=r}));var n,r=document.querySelector("style[".concat(Bn,"]"));r&&(Dn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!An[e]}var Hn="_skip_check_",Vn="_multi_value_";function Wn(e){return Mn(On(e),jn).replace(/\{%%%\:[^;];}/g,";")}function qn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Re(n.slice(1))).join(" ")})).join(",")}var Xn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,m=void 0===p?[]:p,v="",g={};function h(t){var r=t.getName(l);if(!g[r]){var o=De(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)v+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==P(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===P(e)&&e&&(Hn in e||Vn in e)}(r)){var d;function C(e,t){"production"===process.env.NODE_ENV||"object"===P(r)&&null!=r&&r[Hn]||[Tn,Fn].concat(Re(m)).forEach((function(n){return n(e,t,{path:s,hashId:l,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;qt[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(l)),v+="".concat(n,":").concat(o,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===P(r)&&null!=r&&r[Vn]&&Array.isArray(f)?f.forEach((function(e){C(t,e)})):C(t,f)}else{var p=!1,b=t.trim(),y=!1;(o||i)&&l?b.startsWith("@")?p=!0:b=qn("&"===b?"":t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var w=De(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Re(a),[b])}),2),x=w[0],E=w[1];g=j(j({},g),E),v+="".concat(b).concat(x)}}))}})),o?c&&(v="@layer ".concat(c.name," {").concat(v,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,g]};function Gn(e,t){return Le("".concat(e.join("%")).concat(t))}function Kn(){return null}var Un="style";function Yn(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=r.useContext(st),f=d.autoClear,p=d.mock,v=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,y=d.transformers,w=d.linters,x=d.cache,E=d.layer,C=n._tokenKey,S=[C];E&&S.push("layer"),S.push.apply(S,Re(o));var $=wt;"production"!==process.env.NODE_ENV&&void 0!==p&&($="client"===p);var k=Tt(Un,S,(function(){var e=S.join("|");if(Ln(e)){var n=function(e){var t=An[e],n=null;if(t&&He())if(Dn)n=zn;else{var r=document.querySelector("style[".concat(at,'="').concat(An[e],'"]'));r?n=r.innerHTML:delete An[e]}return[n,t]}(e),r=De(n,2),l=r[0],s=r[1];if(l)return[l,C,s,{},c,u]}var d=t(),f=De(Xn(d,{hashId:i,hashPriority:g,layer:E?a:void 0,path:o.join("-"),transformers:y,linters:w}),2),p=f[0],m=f[1],v=Wn(p),h=Gn(S,v);return[v,C,h,m,c,u]}),(function(e,t){var n=De(e,3)[2];(t||f)&&wt&&Ze(n,{mark:at})}),(function(e){var t=De(e,4),n=t[0];t[1];var r=t[2],o=t[3];if($&&n!==zn){var i={mark:at,prepend:!E&&"queue",attachTo:h,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){Je(Wn(o[e]),"_layer-".concat(e),j(j({},i),{},{prepend:!0}))}));var d=Je(n,r,i);d[ct]=x.instanceId,d.setAttribute(it,C),"production"!==process.env.NODE_ENV&&d.setAttribute(lt,S.join("|")),s.forEach((function(e){Je(Wn(o[e]),"_effect-".concat(e),i)}))}})),O=De(k,3),N=O[0],P=O[1],I=O[2];return function(e){var t;return t=b&&!$&&v?r.createElement("style",m({},R(R({},it,P),at,I),{dangerouslySetInnerHTML:{__html:N}})):r.createElement(Kn,null),r.createElement(r.Fragment,null,t,e)}}var Qn="cssVar";R(R(R({},Un,(function(e,t,n){var r=De(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Et(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Et(Wn(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),Vt,(function(e,t,n){var r=De(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Et(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Qn,(function(e,t,n){var r=De(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Et(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var Zn=function(){function e(t,n){pe(this,e),R(this,"name",void 0),R(this,"style",void 0),R(this,"_keyframe",!0),this.name=t,this.style=n}return ve(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Jn(e){return e.notSplit=!0,e}Jn(["borderTop","borderBottom"]),Jn(["borderTop"]),Jn(["borderBottom"]),Jn(["borderLeft","borderRight"]),Jn(["borderLeft"]),Jn(["borderRight"]);var er=e.createContext({});function tr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function nr(e,t,n,r){if(!t.length)return n;var o,i,a=Be(o=t)||Pe(o)||Ie(o)||ze(),l=a[0],c=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?Re(e):j({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=nr(i[l],c,n,r),i}function rr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!tr(e,t.slice(0,-1))?e:nr(e,t,n,r)}function or(e){return Array.isArray(e)?[]:{}}var ir="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ar(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=or(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=tr(e,n),c=Array.isArray(l);if(c||"object"===P(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=tr(r,n);c?r=rr(r,n,[]):s&&"object"===P(s)||(r=rr(r,n,or(l))),ir(l).forEach((function(e){t([].concat(Re(n),[e]),a)}))}}else r=rr(r,n,l)}([])})),r}function lr(){}let cr=null;let sr=lr;"production"!==process.env.NODE_ENV&&(sr=(e,t,n)=>{N(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(cr=null,k())});const ur=r.createContext({}),dr="production"!==process.env.NODE_ENV?e=>{const{strict:t}=r.useContext(ur),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=cr;cr||(cr={}),cr[e]=cr[e]||[],cr[e].includes(o||"")||cr[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",cr)}else"production"!==process.env.NODE_ENV&&sr(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=lr,e};var fr=sr,pr=e.createContext(void 0),mr=j(j({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 vr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},gr={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"]},mr),timePickerLocale:Object.assign({},vr)},hr="${label} is not a valid ${type}",br={locale:"en",Pagination:{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"},DatePicker:gr,TimePicker:vr,Calendar:gr,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},br.Modal);let yr=[];const wr=()=>yr.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),br.Modal);const xr=e.createContext(void 0),Er="internalMark",Cr=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;if("production"!==process.env.NODE_ENV){const e=dr("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===Er,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return yr.push(t),wr(),()=>{yr=yr.filter((e=>e!==t)),wr()}}Object.assign({},br.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(xr.Provider,{value:i},n)};function Sr(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function $r(e){return Math.min(1,Math.max(0,e))}function kr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Or(e){return e<=1?"".concat(100*Number(e),"%"):e}function Nr(e){return 1===e.length?"0"+e:String(e)}function Pr(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Ir(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Rr(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function Mr(e,t,n,r){var o=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jr(e){return _r(e)/255}function _r(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Cr.displayName="LocaleProvider");var Ar={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 Tr(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Ar[e])e=Ar[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Dr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Dr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Dr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Dr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Dr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Dr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Dr.hex8.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),a:jr(n[4]),format:t?"name":"hex8"};if(n=Dr.hex6.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),format:t?"name":"hex"};if(n=Dr.hex4.exec(e),n)return{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),a:jr(n[4]+n[4]),format:t?"name":"hex8"};if(n=Dr.hex3.exec(e),n)return{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Lr(e.r)&&Lr(e.g)&&Lr(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Sr(t,255),g:255*Sr(n,255),b:255*Sr(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Lr(e.h)&&Lr(e.s)&&Lr(e.v)?(a=Or(e.s),l=Or(e.v),o=function(e,t,n){e=6*Sr(e,360),t=Sr(t,100),n=Sr(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):Lr(e.h)&&Lr(e.s)&&Lr(e.l)&&(a=Or(e.s),c=Or(e.l),o=function(e,t,n){var r,o,i;if(e=Sr(e,360),t=Sr(t,100),n=Sr(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Ir(l,a,e+1/3),o=Ir(l,a,e),i=Ir(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=kr(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var Fr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Br="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),zr="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),Dr={CSS_UNIT:new RegExp(Fr),rgb:new RegExp("rgb"+Br),rgba:new RegExp("rgba"+zr),hsl:new RegExp("hsl"+Br),hsla:new RegExp("hsla"+zr),hsv:new RegExp("hsv"+Br),hsva:new RegExp("hsva"+zr),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 Lr(e){return Boolean(Dr.CSS_UNIT.exec(String(e)))}var Hr=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Tr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=kr(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Rr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Rr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Pr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Pr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Mr(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Nr(Math.round(e).toString(16)),Nr(Math.round(t).toString(16)),Nr(Math.round(n).toString(16)),Nr((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&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("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Sr(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Sr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Mr(this.r,this.g,this.b,!1),t=0,n=Object.entries(Ar);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=$r(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=$r(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=$r(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=$r(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Vr=2,Wr=.16,qr=.05,Xr=.05,Gr=.15,Kr=5,Ur=4,Yr=[{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 Qr(e){var t=Rr(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Zr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Mr(t,n,r,!1))}function Jr(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Vr*t:Math.round(e.h)+Vr*t:n?Math.round(e.h)+Vr*t:Math.round(e.h)-Vr*t)<0?r+=360:r>=360&&(r-=360),r}function eo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Wr*t:t===Ur?e.s+Wr:e.s+qr*t)>1&&(r=1),n&&t===Kr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function to(e,t,n){var r;return(r=n?e.v+Xr*t:e.v-Gr*t)>1&&(r=1),Number(r.toFixed(2))}function no(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Tr(e),o=Kr;o>0;o-=1){var i=Qr(r),a=Zr(Tr({h:Jr(i,o,!0),s:eo(i,o,!0),v:to(i,o,!0)}));n.push(a)}n.push(Zr(r));for(var l=1;l<=Ur;l+=1){var c=Qr(r),s=Zr(Tr({h:Jr(c,l),s:eo(c,l),v:to(c,l)}));n.push(s)}return"dark"===t.theme?Yr.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Zr((r=Tr(t.backgroundColor||"#141414"),o=Tr(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var ro={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"},oo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];oo.primary=oo[5];var io=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];io.primary=io[5];var ao=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ao.primary=ao[5];var lo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lo.primary=lo[5];var co=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];co.primary=co[5];var so=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];so.primary=so[5];var uo=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];uo.primary=uo[5];var fo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fo.primary=fo[5];var po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];po.primary=po[5];var mo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];mo.primary=mo[5];var vo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];vo.primary=vo[5];var go=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];go.primary=go[5];var ho=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ho.primary=ho[5];var bo={red:oo,volcano:io,orange:ao,gold:lo,yellow:co,lime:so,green:uo,cyan:fo,blue:po,geekblue:mo,purple:vo,magenta:go,grey:ho};const yo={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"},wo=Object.assign(Object.assign({},yo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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,motion:!0});const xo=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Eo(e){return(e+8)/e}const Co=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Eo(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const So=(e,t)=>new Hr(e).setAlpha(t).toRgbString(),$o=(e,t)=>new Hr(e).darken(t).toHexString(),ko=e=>{const t=no(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Oo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:So(r,.88),colorTextSecondary:So(r,.65),colorTextTertiary:So(r,.45),colorTextQuaternary:So(r,.25),colorFill:So(r,.15),colorFillSecondary:So(r,.06),colorFillTertiary:So(r,.04),colorFillQuaternary:So(r,.02),colorBgLayout:$o(n,4),colorBgContainer:$o(n,0),colorBgElevated:$o(n,0),colorBgSpotlight:So(r,.85),colorBgBlur:"transparent",colorBorder:$o(n,15),colorBorderSecondary:$o(n,6)}};const No=mt((function(e){ro.pink=ro.magenta,bo.pink=bo.magenta;const t=Object.keys(yo).map((t=>{const n=e[t]===ro[t]?bo[t]:no(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),v=n(l),g=r(s,u),h=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Hr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:ko,generateNeutralColorPalettes:Oo})),Co(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},xo(r))}(e))})),Po={token:wo,override:{override:wo},hashed:!0},Io=e.createContext(Po),Ro="ant",Mo="anticon",jo=["outlined","borderless","filled"],_o=r.createContext({getPrefixCls:(e,t)=>t||(e?`${Ro}-${e}`:Ro),iconPrefixCls:Mo}),Ao=`-ant-${Date.now()}-${Math.random()}`;function To(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Hr(e),i=no(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Hr(t.primaryColor),i=no(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Hr(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);He()?Je(n,`${Ao}-dynamic-theme`):"production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fo=r.createContext(!1),Bo=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Fo);return r.createElement(Fo.Provider,{value:null!=n?n:o},t)},zo=r.createContext(void 0),Do=e=>{let{children:t,size:n}=e;const o=r.useContext(zo);return r.createElement(zo.Provider,{value:n||o},t)};var Lo=ve((function e(){pe(this,e)})),Ho="CALC_UNIT",Vo=new RegExp(Ho,"g");function Wo(e){return"number"==typeof e?"".concat(e).concat(Ho):e}var qo=function(){he(t,Lo);var e=xe(t);function t(n,r){var o;pe(this,t),R(we(o=e.call(this)),"result",""),R(we(o),"unitlessCssVar",void 0),R(we(o),"lowPriority",void 0);var i=P(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=Wo(n):"string"===i&&(o.result=n),o}return ve(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Wo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Vo,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Xo=function(){he(t,Lo);var e=xe(t);function t(n){var r;return pe(this,t),R(we(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return ve(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Go=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ko(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Uo(e){var t=r.useRef(!1),n=De(r.useState(e),2),o=n[0],i=n[1];return r.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function Yo(e){return void 0!==e}function Qo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=De(Uo((function(){return Yo(o)?o:Yo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=Ko(i),p=De(Uo([u]),2),m=p[0],v=p[1];return Nt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),Nt((function(){Yo(o)||s(o)}),[o]),[d,Ko((function(e,t){s(e,t),v([u],t)}))]}function Zo(e,t,n,r){var o=j({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=De(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&N(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=j(j({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Jo="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,ei=!0;function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Jo)return Object.assign.apply(Object,[{}].concat(t));ei=!1;var r={};return t.forEach((function(e){"object"===P(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ei=!0,r}var ni={};function ri(){}function oi(e,t,n){var r;return"function"==typeof n?n(ti(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var ii=function(){function e(){pe(this,e),R(this,"map",new Map),R(this,"objectIDMap",new WeakMap),R(this,"nextID",0),R(this,"lastAccessBeat",new Map),R(this,"accessBeat",0)}return ve(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===P(e)?"obj_".concat(t.getObjectID(e)):"".concat(P(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ai=new ii;var li=function(){return{}};const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var si="5.20.5";function ui(e){return e>=0&&e<=255}function di(e,t){const{r:n,g:r,b:o,a:i}=new Hr(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Hr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(ui(t)&&ui(i)&&ui(s))return new Hr({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Hr({r:n,g:r,b:o,a:1}).toRgbString()}var fi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function pi(e){const{override:t}=e,n=fi(e,["override"]),r=Object.assign({},t);Object.keys(wo).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:di(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:di(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:di(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:di(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Hr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Hr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Hr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var mi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},gi={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},hi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},bi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=mi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=pi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=mi(n,["theme"]);let i=o;r&&(i=bi(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function yi(){const{token:t,hashed:n,theme:r,override:o,cssVar:i}=e.useContext(Io),a=`${si}-${n||""}`,l=r||No,[c,s,u]=Wt(l,[wo,t],{salt:a,override:o,getComputedToken:bi,formatToken:pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:vi,ignore:gi,preserve:hi}});return[l,u,n?s:"",c,i]}const wi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},xi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ei=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ci=e=>({outline:`${xt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Si=e=>({"&:focus-visible":Object.assign({},Ci(e))}),$i=(e,t)=>{const[n,r]=yi();return Yn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:ki,genComponentStyleHook:Oi,genSubStyleComponent:Ni}=function(t){var n=t.useCSP,r=void 0===n?li:n,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,c=t.getCompUnitless;function s(t,n,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=De(u,1)[0],f=u.join("-");return function(t){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,v=o(),g=v.theme,h=v.realToken,b=v.hashId,y=v.token,w=v.cssVar,x=i(),E=x.rootPrefixCls,C=x.iconPrefixCls,S=r(),$=w?"css":"js",k=(u=function(){var e=new Set;return w&&Object.keys(s.unitless||{}).forEach((function(t){e.add(Ct(t,w.prefix)),e.add(Ct(t,Go(d,w.prefix)))})),function(e,t){var n="css"===e?qo:Xo;return function(e){return new n(e,t)}}($,e)},p=[$,d,null==w?void 0:w.prefix],e.useMemo((function(){var e=ai.get(p);if(e)return e;var t=u();return ai.set(p,t),t}),p)),O=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return xt(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return xt(e)})).join(","),")")}}}($),N=O.max,I=O.min,R={theme:g,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};Yn(j(j({},R),{},{clientOnly:!1,path:["Shared",E]}),(function(){return"function"==typeof a?a(y):[]}));var M=Yn(j(j({},R),{},{path:[f,t,C]}),(function(){if(!1===s.injectStyle)return[];var e=function(e){var t,n=e,r=ri;return Jo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return ei&&t.add(n),e[n]}}),r=function(e,n){var r;ni[e]={global:Array.from(t),component:j(j({},null===(r=ni[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=e.token,o=e.flush,i=oi(d,h,c),a=".".concat(t),u=Zo(d,h,i,{deprecatedTokens:s.deprecatedTokens});w&&"object"===P(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(Ct(e,Go(d,w.prefix)),")")}));var f=ti(r,{componentCls:a,prefixCls:t,iconCls:".".concat(C),antCls:".".concat(E),calc:k,max:N,min:I},w?i:u),p=n(f,{hashId:b,prefixCls:t,rootPrefixCls:E,iconPrefixCls:C});o(d,u);var v="function"==typeof l?l(f,t,m,s.resetFont):null;return[!1===s.resetStyle?null:v,p]}));return[M,b]}}return{genStyleHooks:function(t,n,r,i){var a=Array.isArray(t)?t[0]:t;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=j(j({},"function"==typeof c?c(t):{}),{},R({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=j(j({},i),{},{unitless:d,prefixToken:l}),p=s(t,n,r,f),m=function(t,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(a){var l=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=o().realToken;return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,s=void 0===c?"":c,u=e.useContext(st),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Re(t.path),[r,s,p]),v=Tt(Qn,m,(function(){var e=n(),t=De($t(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,Gn(m,c),r]}),(function(e){var t=De(e,3)[2];wt&&Ze(t,{mark:at})}),(function(e){var t=De(e,3),n=t[1],o=t[2];if(n){var i=Je(n,o,{mark:at,prepend:"queue",attachTo:f,priority:-999});i[ct]=d,i.setAttribute(it,r)}}))}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:s,token:f,scope:l},(function(){var e=oi(t,f,n),o=Zo(t,f,e,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(e).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null},d=function(n){var r=o().cssVar;return[function(o){return l&&r?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:r,component:t}),o):o},null==r?void 0:r.key]};return d}(a,r,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=De(p(e,t),2)[1],r=De(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,j({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(_o);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=yi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(_o);return $i(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":Ei(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>vi});function Pi(e,t){return ci.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Ii=Object.assign({},r),{useId:Ri}=Ii,Mi=void 0===Ri?()=>"":Ri;var ji=["children"],_i=r.createContext({});function Ai(e){var t=e.children,n=et(e,ji);return r.createElement(_i.Provider,{value:n},t)}var Ti=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){return this.props.children}}]),t}();var Fi="none",Bi="appear",zi="enter",Di="leave",Li="none",Hi="prepare",Vi="start",Wi="active",qi="end",Xi="prepared";function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Ki=function(e,t){var n={animationend:Gi("Animation","AnimationEnd"),transitionend:Gi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(He(),"undefined"!=typeof window?window:{}),Ui={};if(He()){var Yi=document.createElement("div");Ui=Yi.style}var Qi={};function Zi(e){if(Qi[e])return Qi[e];var t=Ki[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ui)return Qi[e]=t[i],Qi[e]}return""}var Ji=Zi("animationend"),ea=Zi("transitionend"),ta=!(!Ji||!ea),na=Ji||"animationend",ra=ea||"transitionend";function oa(e,t){if(!e)return null;if("object"===P(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var ia=function(t){var n=e.useRef();function o(e){e&&(e.removeEventListener(ra,t),e.removeEventListener(na,t))}return r.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(ra,t),e.addEventListener(na,t),n.current=e)},o]},aa=He()?e.useLayoutEffect:e.useEffect,la=[Hi,Vi,Wi,qi],ca=[Hi,Xi],sa=!1,ua=!0;function da(e){return e===Wi||e===qi}var fa=function(e,t,n){var o=De(Uo(Li),2),i=o[0],a=o[1],l=function(){var e=r.useRef(null);function t(){Fe.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Fe((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=De(l,2),s=c[0],u=c[1];var d=t?ca:la;return aa((function(){if(i!==Li&&i!==qi){var e=d.indexOf(i),t=d[e+1],r=n(i);r===sa?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Hi,!0)},i]};function pa(t,n,o,i){var a,l,c,s=i.motionEnter,u=void 0===s||s,d=i.motionAppear,f=void 0===d||d,p=i.motionLeave,m=void 0===p||p,v=i.motionDeadline,g=i.motionLeaveImmediately,h=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,w=i.onAppearStart,x=i.onEnterStart,E=i.onLeaveStart,C=i.onAppearActive,S=i.onEnterActive,$=i.onLeaveActive,k=i.onAppearEnd,O=i.onEnterEnd,N=i.onLeaveEnd,P=i.onVisibleChanged,I=De(Uo(),2),M=I[0],_=I[1],A=(a=Fi,l=De(r.useReducer((function(e){return e+1}),0),2)[1],c=r.useRef(a),[Ko((function(){return c.current})),Ko((function(e){c.current="function"==typeof e?e(c.current):e,l()}))]),T=De(A,2),F=T[0],B=T[1],z=De(Uo(null),2),D=z[0],L=z[1],H=F(),V=e.useRef(!1),W=e.useRef(null);function q(){return o()}var X=e.useRef(!1);function G(){B(Fi),L(null,!0)}var K=Ko((function(e){var t=F();if(t!==Fi){var n=q();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Bi&&o?r=null==k?void 0:k(n,e):t===zi&&o?r=null==O?void 0:O(n,e):t===Di&&o&&(r=null==N?void 0:N(n,e)),o&&!1!==r&&G()}}})),U=De(ia(K),1)[0],Y=function(e){switch(e){case Bi:return R(R(R({},Hi,h),Vi,w),Wi,C);case zi:return R(R(R({},Hi,b),Vi,x),Wi,S);case Di:return R(R(R({},Hi,y),Vi,E),Wi,$);default:return{}}},Q=r.useMemo((function(){return Y(H)}),[H]),Z=De(fa(H,!t,(function(e){if(e===Hi){var t=Q[Hi];return t?t(q()):sa}var n;ee in Q&&L((null===(n=Q[ee])||void 0===n?void 0:n.call(Q,q(),null))||null);return ee===Wi&&H!==Fi&&(U(q()),v>0&&(clearTimeout(W.current),W.current=setTimeout((function(){K({deadline:!0})}),v))),ee===Xi&&G(),ua})),2),J=Z[0],ee=Z[1],te=da(ee);X.current=te,aa((function(){_(n);var e,r=V.current;V.current=!0,!r&&n&&f&&(e=Bi),r&&n&&u&&(e=zi),(r&&!n&&m||!r&&g&&!n&&m)&&(e=Di);var o=Y(e);e&&(t||o[Hi])?(B(e),J()):B(Fi)}),[n]),e.useEffect((function(){(H===Bi&&!f||H===zi&&!u||H===Di&&!m)&&B(Fi)}),[f,u,m]),e.useEffect((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ne=r.useRef(!1);e.useEffect((function(){M&&(ne.current=!0),void 0!==M&&H===Fi&&((ne.current||M)&&(null==P||P(M)),ne.current=!0)}),[M,H]);var re=D;return Q[Hi]&&ee===Vi&&(re=j({transition:"none"},re)),[H,ee,re,null!=M?M:n]}var ma=function(t){var n=t;"object"===P(t)&&(n=t.transitionSupport);var o=r.forwardRef((function(t,o){var i=t.visible,a=void 0===i||i,l=t.removeOnLeave,c=void 0===l||l,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,m=t.eventProps,v=function(e,t){return!(!e.motionName||!n||!1===t)}(t,r.useContext(_i).motion),g=e.useRef(),h=e.useRef();var b=De(pa(v,a,(function(){try{return g.current instanceof HTMLElement?g.current:A(h.current)}catch(e){return null}}),t),4),y=b[0],w=b[1],x=b[2],E=b[3],C=r.useRef(E);E&&(C.current=!0);var S,$=r.useCallback((function(e){g.current=e,F(o,e)}),[o]),k=j(j({},m),{},{visible:a});if(u)if(y===Fi)S=E?u(j({},k),$):!c&&C.current&&f?u(j(j({},k),{},{className:f}),$):s||!c&&!f?u(j(j({},k),{},{style:{display:"none"}}),$):null;else{var O;w===Hi?O="prepare":da(w)?O="active":w===Vi&&(O="start");var N=oa(d,"".concat(y,"-").concat(O));S=u(j(j({},k),{},{className:p(oa(d,y),R(R({},N,N&&O),d,"string"==typeof d)),style:x}),$)}else S=null;r.isValidElement(S)&&D(S)&&(S.ref||(S=r.cloneElement(S,{ref:$})));return r.createElement(Ti,{ref:h},S)}));return o.displayName="CSSMotion",o}(ta),va="add",ga="keep",ha="remove",ba="removed";function ya(e){var t;return j(j({},t=e&&"object"===P(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function wa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ya)}var xa=["component","children","onVisibleChanged","onAllRemoved"],Ea=["status"],Ca=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Sa(e){const{children:t}=e,[,n]=yi(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(Ai,{motion:o},t):t}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ma,t=function(){he(n,r.Component);var t=xe(n);function n(){var e;pe(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return R(we(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),R(we(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:j(j({},e),{},{status:ba})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ba})).length})),e}return ve(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=et(o,xa),u=i||r.Fragment,d={};return Ca.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,r.createElement(u,s,n.map((function(n,o){var i=n.status,s=et(n,Ea),u=i===va||i===ga;return r.createElement(e,m({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===t.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(j(j({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=wa(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=wa(e),a=wa(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return j(j({},e),{},{status:va})}))),r=i),n.push(j(j({},l),{},{status:ga})),r+=1,t=!0;break}}t||n.push(j(j({},e),{},{status:ha}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return j(j({},e),{},{status:va})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ha}))).forEach((function(t){t.key===e&&(t.status=ga)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ba||e.status!==ha}))}}}]),n}();R(t,"defaultProps",{component:"div"})}(ta);const $a=r.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return dr("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&($a.displayName="PropWarning");var ka="production"!==process.env.NODE_ENV?$a:()=>null,Oa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let Na=!1;process.env.NODE_ENV;const Pa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ia;const Ra=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:g,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:R,drawer:M,skeleton:j,steps:_,image:A,layout:F,list:B,mentions:z,modal:D,progress:L,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,input:G,textArea:K,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce}=e,Se=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||h.getPrefixCls("");return t?`${o}-${t}`:o}),[h.getPrefixCls,e.prefixCls]),$e=b||h.iconPrefixCls||Mo,ke=n||h.csp;$i($e,ke);const Oe=function(e,t,n){var r,o;const i=dr("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Po),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Po.hashed,cssVar:null==t?void 0:t.cssVar}),c=Mi();if("production"!==process.env.NODE_ENV){const e=a.cssVar||l.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return T((()=>{var r,o;if(!e)return t;const i=Object.assign({},l.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const s=`css-var-${c.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof l.cssVar?l.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||s});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:i,cssVar:u})}),[a,l],((e,t)=>e.some(((e,n)=>!tt(e,t[n],!0)))))}(y,h.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Na=Na||!!Oe);const Ne={csp:ke,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:v,getPrefixCls:Se,iconPrefixCls:$e,theme:Oe,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:R,drawer:M,skeleton:j,steps:_,image:A,input:G,textArea:K,layout:F,list:B,mentions:z,modal:D,progress:L,result:H,slider:V,breadcrumb:W,menu:q,pagination:X,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce};if("production"!==process.env.NODE_ENV){dr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Pe=Object.assign({},h);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(Pe[e]=Ne[e])})),Pa.forEach((t=>{const n=e[t];n&&(Pe[t]=n)})),void 0!==o&&(Pe.button=Object.assign({autoInsertSpace:o},Pe.button));const Ie=T((()=>Pe),Pe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Re=r.useMemo((()=>({prefixCls:$e,csp:ke})),[$e,ke]);let Me=r.createElement(r.Fragment,null,r.createElement(ka,{dropdownMatchSelectWidth:p}),t);const je=r.useMemo((()=>{var e,t,n,r;return ar((null===(e=br.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ie.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ie.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ie,null==l?void 0:l.validateMessages]);Object.keys(je).length>0&&(Me=r.createElement(pr.Provider,{value:je},Me)),c&&(Me=r.createElement(Cr,{locale:c,_ANT_MARK__:Er},Me)),($e||ke)&&(Me=r.createElement(er.Provider,{value:Re},Me)),s&&(Me=r.createElement(Do,{size:s},Me)),Me=r.createElement(Sa,null,Me);const _e=r.useMemo((()=>{const e=Oe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Oa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?mt(t):No,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=mt(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},wo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[Oe]);return y&&(Me=r.createElement(Io.Provider,{value:_e},Me)),Ie.warning&&(Me=r.createElement(ur.Provider,{value:Ie.warning},Me)),void 0!==w&&(Me=r.createElement(Bo,{disabled:w},Me)),r.createElement(_o.Provider,{value:Ie},Me)},Ma=e=>{const t=r.useContext(_o),n=r.useContext(xr);return r.createElement(Ra,Object.assign({parentContext:t,legacyLocale:n},e))};function ja(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function _a(e){return function(e){return ja(e)instanceof ShadowRoot}(e)?ja(e):null}function Aa(e){return"object"===P(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===P(e.icon)||"function"==typeof e.icon)}function Ta(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function Fa(t,n,r){return r?e.createElement(t.tag,j(j({key:n},Ta(t.attrs)),r),(t.children||[]).map((function(e,r){return Fa(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.createElement(t.tag,j({key:n},Ta(t.attrs)),(t.children||[]).map((function(e,r){return Fa(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Ba(e){return no(e)[0]}function za(e){return e?Array.isArray(e)?e:[e]:[]}Ma.ConfigContext=_o,Ma.SizeContext=zo,Ma.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ia=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),To(Ia||Ro,r))},Ma.useConfig=function(){return{componentDisabled:e.useContext(Fo),componentSize:e.useContext(zo)}},Object.defineProperty(Ma,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&fr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),zo)}),"production"!==process.env.NODE_ENV&&(Ma.displayName="ConfigProvider");var Da=["icon","className","onClick","style","primaryColor","secondaryColor"],La={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ha=function(t){var n,o,i,a,l,c,s,u=t.icon,d=t.className,f=t.onClick,p=t.style,m=t.primaryColor,v=t.secondaryColor,g=et(t,Da),h=r.useRef(),b=La;if(m&&(b={primaryColor:m,secondaryColor:v||Ba(m)}),n=h,o=e.useContext(er),i=o.csp,a=o.prefixCls,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(l=l.replace(/anticon/g,a)),e.useEffect((function(){var e=_a(n.current);Je(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),c=Aa(u),s="icon should be icon definiton, but got ".concat(u),N(c,"[@ant-design/icons] ".concat(s)),!Aa(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=j(j({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),Fa(y.icon,"svg-".concat(y.name),j(j({className:d,onClick:f,style:p,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:h}))};function Va(e){var t=De(za(e),2),n=t[0],r=t[1];return Ha.setTwoToneColors({primaryColor:n,secondaryColor:r})}Ha.displayName="IconReact",Ha.getTwoToneColors=function(){return j({},La)},Ha.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;La.primaryColor=t,La.secondaryColor=n||Ba(t),La.calculated=!!n};var Wa=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Va(po.primary);var qa=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=et(e,Wa),d=r.useContext(er),f=d.prefixCls,v=void 0===f?"anticon":f,g=d.rootClassName,h=p(g,v,R(R({},"".concat(v,"-").concat(o.name),!!o.name),"".concat(v,"-spin"),!!i||"loading"===o.name),n),b=l;void 0===b&&c&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=De(za(s),2),x=w[0],E=w[1];return r.createElement("span",m({role:"img","aria-label":o.name},u,{ref:t,tabIndex:b,onClick:c,className:h}),r.createElement(Ha,{icon:o,primaryColor:x,secondaryColor:E,style:y}))}));qa.displayName="AntdIcon",qa.getTwoToneColor=function(){var e=Ha.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},qa.setTwoToneColor=Va;var Xa={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Ga=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Xa}))},Ka=r.forwardRef(Ga);"production"!==process.env.NODE_ENV&&(Ka.displayName="CloseCircleFilled");var Ua={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Ya=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Ua}))},Qa=r.forwardRef(Ya);"production"!==process.env.NODE_ENV&&(Qa.displayName="CloseOutlined");var Za="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Ja(e,t){return 0===e.indexOf(t)}function el(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const tl=(t,n,r)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof r?r(t.props||{}):r):n;function nl(e,t){return tl(e,e,t)}const rl=e=>{const[,,,,t]=yi();return t?`${e}-css-var`:""};var ol={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ol.F1&&t<=ol.F12)return!1;switch(t){case ol.ALT:case ol.CAPS_LOCK:case ol.CONTEXT_MENU:case ol.CTRL:case ol.DOWN:case ol.END:case ol.ESC:case ol.HOME:case ol.INSERT:case ol.LEFT:case ol.MAC_FF_META:case ol.META:case ol.NUMLOCK:case ol.NUM_CENTER:case ol.PAGE_DOWN:case ol.PAGE_UP:case ol.PAUSE:case ol.PRINT_SCREEN:case ol.RIGHT:case ol.SHIFT:case ol.UP:case ol.WIN_KEY:case ol.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ol.ZERO&&e<=ol.NINE)return!0;if(e>=ol.NUM_ZERO&&e<=ol.NUM_MULTIPLY)return!0;if(e>=ol.A&&e<=ol.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ol.SPACE:case ol.QUESTION_MARK:case ol.NUM_PLUS:case ol.NUM_MINUS:case ol.NUM_PERIOD:case ol.NUM_DIVISION:case ol.SEMICOLON:case ol.DASH:case ol.EQUALS:case ol.COMMA:case ol.PERIOD:case ol.SLASH:case ol.APOSTROPHE:case ol.SINGLE_QUOTE:case ol.OPEN_SQUARE_BRACKET:case ol.BACKSLASH:case ol.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},il={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"},al=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:il}))},ll=r.forwardRef(al);"production"!==process.env.NODE_ENV&&(ll.displayName="LoadingOutlined");const cl=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(cl.displayName="zIndexContext");const sl=100,ul={Modal:sl,Drawer:sl,Popover:sl,Popconfirm:sl,Tooltip:sl,Tour:sl},dl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fl(t,n){const[,r]=yi(),o=e.useContext(cl),i=function(e){return e in ul}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=o?o:0;e+=i?(o?0:r.zIndexPopupBase)+ul[t]:dl[t],a=[void 0===o?n:e,e]}if("production"!==process.env.NODE_ENV){const e=dr(t),o=r.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&e(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function pl(){pl=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new R(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",v="completed",g={};function h(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(M([])));E&&E!==n&&r.call(E,a)&&(w=E);var C=y.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==P(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=O(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(P(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S($.prototype),s($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new $(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function ml(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function vl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ml(i,r,o,a,l,"next",e)}function l(e){ml(i,r,o,a,l,"throw",e)}a(void 0)}))}}var gl,hl=j({},o),bl=hl.version,yl=hl.render,wl=hl.unmountComponentAtNode;try{Number((bl||"").split(".")[0])>=18&&(gl=hl.createRoot)}catch(e){}function xl(e){var t=hl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===P(t)&&(t.usingClientEntryPoint=e)}var El="__rc_react_root__";function Cl(e,t){gl?function(e,t){xl(!0);var n=t[El]||gl(t);xl(!1),n.render(e),t[El]=n}(e,t):function(e,t){yl(e,t)}(e,t)}function Sl(e){return $l.apply(this,arguments)}function $l(){return($l=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[El])||void 0===e||e.unmount(),delete t[El]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kl(e){wl(e)}function Ol(){return(Ol=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===gl){e.next=2;break}return e.abrupt("return",Sl(t));case 2:kl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Nl=()=>({height:0,opacity:0}),Pl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Il=e=>({height:e?e.offsetHeight:0}),Rl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ml=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro}-motion-collapse`,onAppearStart:Nl,onEnterStart:Nl,onAppearActive:Pl,onEnterActive:Pl,onLeaveStart:Il,onLeaveActive:Nl,onAppearEnd:Rl,onEnterEnd:Rl,onLeaveEnd:Rl,motionDeadline:500}},jl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var _l=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const Al=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Tl=Oi("Wave",(e=>[Al(e)]));const Fl=`${Ro}-wave-target`;function Bl(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(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])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function zl(e){return Number.isNaN(e)?0:e}const Dl=e=>{const{className:t,target:n,component:o}=e,i=r.useRef(null),[a,l]=r.useState(null),[c,s]=r.useState([]),[u,d]=r.useState(0),[f,m]=r.useState(0),[v,g]=r.useState(0),[h,b]=r.useState(0),[y,w]=r.useState(!1),x={left:u,top:f,width:v,height:h,borderRadius:c.map((e=>`${e}px`)).join(" ")};function E(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Bl(t)?t:Bl(n)?n:Bl(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:zl(-parseFloat(r))),m(t?n.offsetTop:zl(-parseFloat(o))),g(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>zl(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),r.useEffect((()=>{if(n){const e=Fe((()=>{E(),w(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(E),t.observe(n)),()=>{Fe.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(Fl));return r.createElement(ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return Ol.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:B(i,n),className:p(t,o,{"wave-quick":C}),style:x})}))},Ll=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Cl(r.createElement(Dl,Object.assign({},t,{target:e})),i)},Hl=(e,t,n)=>{const{wave:o}=r.useContext(_o),[,i,a]=yi(),l=Ko((r=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${Fl}`)||l,{showEffect:s}=o||{};(s||Ll)(c,{className:t,token:i,component:n,event:r,hashId:a})})),c=r.useRef();return e=>{Fe.cancel(c.current),c.current=Fe((()=>{l(e)}))}},Vl=t=>{const{children:n,disabled:r,component:o}=t,{getPrefixCls:i}=e.useContext(_o),a=e.useRef(null),l=i("wave"),[,c]=Tl(l),s=Hl(a,p(l,c),o);if(e.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!_l(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!e.isValidElement(n))return null!=n?n:null;return nl(n,{ref:D(n)?B(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(Vl.displayName="Wave");const Wl=t=>{const n=e.useContext(zo);return e.useMemo((()=>t?"string"==typeof t?null!=t?t:n:t instanceof Function?t(n):n:n),[t,n])},ql=r.createContext(null),Xl=(e,t)=>{const n=r.useContext(ql),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return p(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},Gl=e=>{let{children:t}=e;return r.createElement(ql.Provider,{value:null},t)};var Kl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ul=r.createContext(void 0),Yl=/^[\u4e00-\u9fa5]{2}$/,Ql=Yl.test.bind(Yl);function Zl(e){return"string"==typeof e}function Jl(e){return"text"===e||"link"===e}function ec(t,n){let r=!1;const o=[];return e.Children.forEach(t,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),e.Children.map(o,(t=>function(t,n){if(null==t)return;const r=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&Zl(t.type)&&Ql(t.props.children)?nl(t,{children:t.props.children.split("").join(r)}):Zl(t)?Ql(t)?e.createElement("span",null,t.split("").join(r)):e.createElement("span",null,t):el(t)?e.createElement("span",null,t):t}(t,n)))}const tc=e.forwardRef(((t,n)=>{const{className:r,style:o,children:i,prefixCls:a}=t,l=p(`${a}-icon`,r);return e.createElement("span",{ref:n,className:l,style:o},i)})),nc=e.forwardRef(((t,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=t,l=p(`${r}-loading-icon`,o);return e.createElement(tc,{prefixCls:r,className:l,style:i,ref:n},e.createElement(ll,{className:a}))})),rc=()=>({width:0,opacity:0,transform:"scale(0)"}),oc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ic=t=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=t,l=!!r;return o?e.createElement(nc,{prefixCls:n,className:i,style:a}):e.createElement(ma,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:rc,onAppearActive:oc,onEnterStart:rc,onEnterActive:oc,onLeaveStart:oc,onLeaveActive:rc},((t,r)=>{let{className:o,style:l}=t;return e.createElement(nc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},ac=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),lc=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ac(`${t}-primary`,o),ac(`${t}-danger`,i)]}},cc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ti(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},sc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Eo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Eo(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Eo(s);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},uc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${xt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Si(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},dc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),fc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},dc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),gc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mc(e))}),hc=e=>Object.assign({},gc(e)),bc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),dc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),vc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},dc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),gc(e))}),wc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),dc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),vc(e.componentCls,e.ghostBg,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({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},dc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),vc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gc(e))}),xc=e=>Object.assign(Object.assign({},yc(e)),{borderStyle:"dashed"}),Ec=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},dc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),bc(e))}),Cc=e=>Object.assign(Object.assign(Object.assign({},dc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),bc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bc(e)),dc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Sc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:yc(e),[`${t}-primary`]:wc(e),[`${t}-dashed`]:xc(e),[`${t}-link`]:Ec(e),[`${t}-text`]:Cc(e),[`${t}-ghost`]:vc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},$c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${xt(s)} ${xt(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:fc(e)},{[`${n}${n}-round${t}`]:pc(e)}]},kc=e=>{const t=ti(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return $c(t,e.componentCls)},Oc=e=>{const t=ti(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $c(t,`${e.componentCls}-sm`)},Nc=e=>{const t=ti(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $c(t,`${e.componentCls}-lg`)},Pc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Ic=ki("Button",(e=>{const t=cc(e);return[uc(t),kc(t),Oc(t),Nc(t),Pc(t),Sc(t),lc(t)]}),sc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Rc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Mc(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function jc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Rc(e,r,t)),Mc(n,r,t))}}function _c(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ac(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_c(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Tc=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${xt(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${xt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Fc=Ni(["Button","compact"],(e=>{const t=cc(e);return[jc(t),Ac(t),Tc(t)]}),sc),Bc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zc=e.forwardRef(((t,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s=!1,shape:u="default",size:d,styles:f,disabled:m,className:v,rootClassName:g,children:h,icon:b,iconPosition:y="start",ghost:w=!1,block:x=!1,htmlType:E="button",classNames:C,style:S={},autoInsertSpace:$}=t,k=Bc(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=c||"default",{getPrefixCls:N,direction:P,button:I}=e.useContext(_o),R=null===(r=null!=$?$:null==I?void 0:I.autoInsertSpace)||void 0===r||r,M=N("btn",l),[j,_,A]=Ic(M),T=e.useContext(Fo),F=null!=m?m:T,z=e.useContext(Ul),D=e.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[L,H]=e.useState(D.loading),[V,W]=e.useState(!1),q=B(n,e.createRef()),X=1===e.Children.count(h)&&!b&&!Jl(O);e.useEffect((()=>{let e=null;return D.delay>0?e=setTimeout((()=>{e=null,H(!0)}),D.delay):H(D.loading),function(){e&&(clearTimeout(e),e=null)}}),[D]),e.useEffect((()=>{if(!q||!q.current||!R)return;const e=q.current.textContent;X&&Ql(e)?V||W(!0):V&&W(!1)}),[q]);const G=e=>{const{onClick:n}=t;L||F?e.preventDefault():null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=dr("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof b&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(w&&Jl(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:K,compactItemClassnames:U}=Xl(M,P),Y={large:"lg",small:"sm",middle:void 0},Q=Wl((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:K)&&void 0!==t?t:z)&&void 0!==n?n:e})),Z=Q&&Y[Q]||"",J=L?"loading":b,ee=Oe(k,["navigate"]),te=p(M,_,A,{[`${M}-${u}`]:"default"!==u&&u,[`${M}-${O}`]:O,[`${M}-${Z}`]:Z,[`${M}-icon-only`]:!h&&0!==h&&!!J,[`${M}-background-ghost`]:w&&!Jl(O),[`${M}-loading`]:L,[`${M}-two-chinese-chars`]:V&&R&&!L,[`${M}-block`]:x,[`${M}-dangerous`]:s,[`${M}-rtl`]:"rtl"===P,[`${M}-icon-end`]:"end"===y},U,v,g,null==I?void 0:I.className),ne=Object.assign(Object.assign({},null==I?void 0:I.style),S),re=p(null==C?void 0:C.icon,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.icon),oe=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==I?void 0:I.styles)||void 0===i?void 0:i.icon)||{}),ie=b&&!L?e.createElement(tc,{prefixCls:M,className:re,style:oe},b):e.createElement(ic,{existIcon:!!b,prefixCls:M,loading:L}),ae=h||0===h?ec(h,X&&R):null;if(void 0!==ee.href)return j(e.createElement("a",Object.assign({},ee,{className:p(te,{[`${M}-disabled`]:F}),href:F?void 0:ee.href,style:ne,onClick:G,ref:q,tabIndex:F?-1:0}),ie,ae));let le=e.createElement("button",Object.assign({},k,{type:E,className:te,style:ne,onClick:G,disabled:F,ref:q}),ie,ae,!!U&&e.createElement(Fc,{key:"compact",prefixCls:M}));return Jl(O)||(le=e.createElement(Vl,{component:"Button",disabled:L},le)),j(le)})),Dc=zc;Dc.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(_o),{prefixCls:o,size:i,className:a}=e,l=Kl(e,["prefixCls","size","className"]),c=t("btn-group",o),[,,s]=yi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=dr("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=p(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},a,s);return r.createElement(Ul.Provider,{value:i},r.createElement("div",Object.assign({},l,{className:d})))},Dc.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Dc.displayName="Button");var Lc=r.createContext(null),Hc=[];function Vc(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";Je("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ze(t),{width:f,height:p}}(e):{width:0,height:0}}var Wc="rc-util-locker-".concat(Date.now()),qc=0;function Xc(e){var t=!!e,n=De(r.useState((function(){return qc+=1,"".concat(Wc,"_").concat(qc)})),1)[0];Ot((function(){if(t){var e=Vc(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Je("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Ze(n);return function(){Ze(n)}}),[t,n])}var Gc=function(e){return!1!==e&&(He()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Kc=r.forwardRef((function(e,n){var o=e.open,i=e.autoLock,a=e.getContainer,l=e.debug,c=e.autoDestroy,s=void 0===c||c,u=e.children,d=De(r.useState(o),2),f=d[0],p=d[1],m=f||o;"production"!==process.env.NODE_ENV&&N(He()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),r.useEffect((function(){(s||o)&&p(o)}),[o,s]);var v=De(r.useState((function(){return Gc(a)})),2),g=v[0],h=v[1];r.useEffect((function(){var e=Gc(a);h(null!=e?e:null)}));var b=function(e,t){var n=De(r.useState((function(){if(!He())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],o=r.useRef(!1),i=r.useContext(Lc),a=De(r.useState(Hc),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Re(t))}))});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return Ot((function(){return e?i?i(u):u():d(),d}),[e]),Ot((function(){l.length&&(l.forEach((function(e){return e()})),c(Hc))}),[l]),[n,s]}(m&&!g,l),y=De(b,2),w=y[0],x=y[1],E=null!=g?g:w;Xc(i&&o&&He()&&(E===w||E===document.body));var C=null;u&&D(u)&&n&&(C=u.ref);var S=z(C,n);if(!m||!He()||void 0===g)return null;var $=!1===E||!1,k=u;return n&&(k=r.cloneElement(u,{ref:S})),r.createElement(Lc.Provider,{value:x},$?k:t.createPortal(k,E))}));"production"!==process.env.NODE_ENV&&(Kc.displayName="Portal");var Uc=0,Yc=j({},r).useId,Qc=Yc?function(e){var t=Yc();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=De(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=Uc;Uc+=1,o("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)},Zc="RC_FORM_INTERNAL_HOOKS",Jc=function(){N(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},es=r.createContext({getFieldValue:Jc,getFieldsValue:Jc,getFieldError:Jc,getFieldWarning:Jc,getFieldsError:Jc,isFieldsTouched:Jc,isFieldTouched:Jc,isFieldValidating:Jc,isFieldsValidating:Jc,resetFields:Jc,setFields:Jc,setFieldValue:Jc,setFieldsValue:Jc,validateFields:Jc,submit:Jc,getInternalHooks:function(){return Jc(),{dispatch:Jc,initEntityValue:Jc,registerField:Jc,useSubscribe:Jc,setInitialValues:Jc,destroyForm:Jc,setCallbacks:Jc,registerWatch:Jc,getFields:Jc,setValidateMessages:Jc,setPreserve:Jc,getInitialValue:Jc}}}),ts=r.createContext(null);function ns(e){return null==e?[]:Array.isArray(e)?e:[e]}function rs(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var os=rs();function is(e){var t="function"==typeof Map?new Map:void 0;return is=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ye())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ge(o,n.prototype),o}(e,arguments,be(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ge(n,e)},is(e)}var as=/%[sdj%]/g,ls=function(){};function cs(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function ss(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(as,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function us(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function ds(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(ls=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var fs=function(){he(t,is(Error));var e=xe(t);function t(n,r){var o;return pe(this,t),R(we(o=e.call(this,"Async Validation Error")),"errors",void 0),R(we(o),"fields",void 0),o.errors=n,o.fields=r,o}return ve(t)}();function ps(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Re(e[n]||[]))})),t}(e);ds(a,n,(function(e){return r(e),e.length?i(new fs(e,cs(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new fs(u,cs(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?ds(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Re(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function ms(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function vs(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===P(r)&&"object"===P(e[n])?e[n]=j(j({},e[n]),r):e[n]=r}return e}var gs,hs="enum",bs=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!us(t,i||e.type)||r.push(ss(o.messages.required,e.fullField))},ys=/^(([^<>()\[\]\\.,;:\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,}))$/,ws=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,xs={integer:function(e){return xs.number(e)&&parseInt(e,10)===e},float:function(e){return xs.number(e)&&!xs.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===P(e)&&!xs.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ys)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(gs)return gs;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return gs=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ws)}},Es={required:bs,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ss(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)bs(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?xs[i](t)||r.push(ss(o.messages.types[i],e.fullField,e.type)):i&&P(t)!==e.type&&r.push(ss(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(ss(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(ss(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(ss(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(ss(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[hs]=Array.isArray(e[hs])?e[hs]:[],-1===e[hs].indexOf(t)&&r.push(ss(o.messages[hs],e.fullField,e[hs].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(ss(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ss(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Cs=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,i)&&!e.required)return n();Es.required(e,t,r,a,o,i),us(t,i)||Es.type(e,t,r,a,o)}n(a)},Ss={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o,"string"),us(t,"string")||(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o),Es.pattern(e,t,r,i,o),!0===e.whitespace&&Es.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),us(t)||Es.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Es.required(e,t,r,i,o,"array"),null!=t&&(Es.type(e,t,r,i,o),Es.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o),void 0!==t&&Es.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"string")&&!e.required)return n();Es.required(e,t,r,i,o),us(t,"string")||Es.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t,"date")&&!e.required)return n();var a;if(Es.required(e,t,r,i,o),!us(t,"date"))a=t instanceof Date?t:new Date(t),Es.type(e,a,r,i,o),a&&Es.range(e,a.getTime(),r,i,o)}n(i)},url:Cs,hex:Cs,email:Cs,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":P(t);Es.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(us(t)&&!e.required)return n();Es.required(e,t,r,i,o)}n(i)}},$s=function(){function e(t){pe(this,e),R(this,"rules",null),R(this,"_messages",os),this.define(t)}return ve(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==P(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=vs(rs(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===os&&(a=rs()),vs(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=j({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":P(i)))),(a="function"==typeof a?{validator:a}:j({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return ps(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==P(a.fields)&&"object"!==P(a.defaultField));function s(e,t){return j(j({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Re(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(ms(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(ms(a,r)):o.error&&(d=[o.error(a,ss(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=j(j({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Re(d)),e&&e.length&&t.push.apply(t,Re(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Re(t)):o.push(t);o.length?(a=cs(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ss.hasOwnProperty(e.type))throw new Error(ss("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ss.required:Ss[this.getType(e)]||void 0}}]),e}();R($s,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ss[e]=t})),R($s,"warning",ls),R($s,"messages",os),R($s,"validators",Ss);var ks="'${name}' is not a valid ${type}",Os={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:ks,method:ks,array:ks,object:ks,number:ks,date:ks,boolean:ks,integer:ks,float:ks,regexp:ks,email:ks,url:ks,hex:ks},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}"}},Ns=$s;function Ps(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Is="CODE_LOGIC_ERROR";function Rs(e,t,n,r,o){return Ms.apply(this,arguments)}function Ms(){return Ms=vl(pl().mark((function e(t,n,o,i,a){var l,c,s,u,d,f,p,m,v;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=j({},o)).ruleIndex,Ns.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Is)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Ns(R({},t,[l])),d=ar(Os,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(R({},t,n),j({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,o=n===Is?d.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Rs("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Re(e),Re(t))}),[]));case 23:return m=j(j({},o),{},{name:t,enum:(o.enum||[]).join(", ")},a),v=f.map((function(e){return"string"==typeof e?Ps(e,m):e})),e.abrupt("return",v);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Ms.apply(this,arguments)}function js(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=j(j({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){N(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));N(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=vl(pl().mark((function e(n,o){var a,s,u;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Rs(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return Rs(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return As.apply(this,arguments)}(s):function(e){return _s.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function _s(){return(_s=vl(pl().mark((function e(t){return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Re(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function As(){return(As=vl(pl().mark((function e(t){var n;return pl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ts(e){return ns(e)}function Fs(e,t){var n={};return t.forEach((function(t){var r=tr(e,t);n=rr(n,t,r)})),n}function Bs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return zs(t,e,n)}))}function zs(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function Ds(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===P(t.target)&&e in t.target?t.target[e]:t}function Ls(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Re(e.slice(0,n)),[o],Re(e.slice(n,t)),Re(e.slice(t+1,r))):i<0?[].concat(Re(e.slice(0,t)),Re(e.slice(t+1,n+1)),[o],Re(e.slice(n+1,r))):e}var Hs=["name"],Vs=[];function Ws(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var qs=function(){he(t,r.Component);var e=xe(t);function t(n){var o;(pe(this,t),R(we(o=e.call(this,n)),"state",{resetCount:0}),R(we(o),"cancelRegisterFunc",null),R(we(o),"mounted",!1),R(we(o),"touched",!1),R(we(o),"dirty",!1),R(we(o),"validatePromise",void 0),R(we(o),"prevValidating",void 0),R(we(o),"errors",Vs),R(we(o),"warnings",Vs),R(we(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Ts(r)),o.cancelRegisterFunc=null})),R(we(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Re(void 0===n?[]:n),Re(t)):[]})),R(we(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),R(we(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),R(we(o),"metaCache",null),R(we(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=j(j({},o.getMeta()),{},{destroy:e});tt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),R(we(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&Bs(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||tt(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&Ws(i,e,s,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||Vs),"warnings"in m&&(o.warnings=m.warnings||Vs),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Bs(t,u,!0))return void o.reRender();if(i&&!u.length&&Ws(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Ts).some((function(e){return Bs(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Ws(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),R(we(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(vl(pl().mark((function r(){var a,l,s,u,d,f,p;return pl().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||ns(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=js(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vs;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Vs:o;t?r.push.apply(r,Re(i)):n.push.apply(n,Re(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=Vs,o.warnings=Vs,o.triggerMetaEvent(),o.reRender()),c})),R(we(o),"isFieldValidating",(function(){return!!o.validatePromise})),R(we(o),"isFieldTouched",(function(){return o.touched})),R(we(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Zc).getInitialValue)(o.getNamePath())})),R(we(o),"getErrors",(function(){return o.errors})),R(we(o),"getWarnings",(function(){return o.warnings})),R(we(o),"isListField",(function(){return o.props.isListField})),R(we(o),"isList",(function(){return o.props.isList})),R(we(o),"isPreserve",(function(){return o.props.preserve})),R(we(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),R(we(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return j(j({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=x(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),R(we(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return tr(e||t(!0),n)})),R(we(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,v=p(Zc).dispatch,g=o.getValue(),h=s||function(e){return R({},c,e)},b=e[r],y=void 0!==n?h(g):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){N("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var w=j(j({},e),y);return w[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):Ds.apply(void 0,[c].concat(n)),l&&(e=l(e,g,m(!0))),v({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},ns(d||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}})),w})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(Zc).initEntityValue)(we(o));return o}return ve(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Zc).registerField;this.cancelRegisterFunc=r(this)}!0===t&&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(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),i=o.child;return o.isFunction?e=i:r.isValidElement(i)?e=r.cloneElement(i,this.getControlled(i.props)):(N(!i,"`children` of Field is not validate ReactElement."),e=i),r.createElement(r.Fragment,{key:t},e)}}]),t}();function Xs(e){var t=e.name,n=et(e,Hs),o=r.useContext(es),i=r.useContext(ts),a=void 0!==t?Ts(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&N(!1,"`preserve` should not apply on Form.List fields."),r.createElement(qs,m({key:l,name:a,isListField:!!i},n,{fieldContext:o}))}R(qs,"contextType",es),R(qs,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Gs="__@field_split__";function Ks(e){return e.map((function(e){return"".concat(P(e),":").concat(e)})).join(Gs)}var Us=function(){function e(){pe(this,e),R(this,"kvs",new Map)}return ve(e,[{key:"set",value:function(e,t){this.kvs.set(Ks(e),t)}},{key:"get",value:function(e){return this.kvs.get(Ks(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Ks(e))}},{key:"map",value:function(e){return Re(this.kvs.entries()).map((function(t){var n=De(t,2),r=n[0],o=n[1],i=r.split(Gs);return e({key:i.map((function(e){var t=De(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Ys=["name"],Qs=ve((function e(t){var n=this;pe(this,e),R(this,"formHooked",!1),R(this,"forceRootUpdate",void 0),R(this,"subscribable",!0),R(this,"store",{}),R(this,"fieldEntities",[]),R(this,"initialValues",{}),R(this,"callbacks",{}),R(this,"validateMessages",null),R(this,"preserve",null),R(this,"lastValidatePromise",null),R(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),R(this,"getInternalHooks",(function(e){return e===Zc?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(N(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),R(this,"useSubscribe",(function(e){n.subscribable=e})),R(this,"prevWithoutPreserves",null),R(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=ar(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=rr(o,n,tr(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),R(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Us;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),R(this,"getInitialValue",(function(e){var t=tr(n.initialValues,e);return e.length?ar(t):t})),R(this,"setCallbacks",(function(e){n.callbacks=e})),R(this,"setValidateMessages",(function(e){n.validateMessages=e})),R(this,"setPreserve",(function(e){n.preserve=e})),R(this,"watchList",[]),R(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),R(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),R(this,"timeoutId",null),R(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||N(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),R(this,"updateStore",(function(e){n.store=e})),R(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),R(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Us;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),R(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Ts(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ts(e)}}))})),R(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===P(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),Fs(n.store,l.map(Ts))})),R(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ts(e);return tr(n.store,t)})),R(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ts(e[n]),errors:[],warnings:[]}}))})),R(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ts(e);return n.getFieldsError([t])[0].errors})),R(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ts(e);return n.getFieldsError([t])[0].warnings})),R(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Ts),l=!1):(o=null,l=i):(o=i.map(Ts),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new Us;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Re(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),R(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),R(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Ts);return t.some((function(e){var t=e.getNamePath();return Bs(r,t)&&e.isFieldValidating()}))})),R(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),R(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Us,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Re(Re(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))N(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)N(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(rr(n.store,o,Re(i)[0].value))}}}}))})),R(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(ar(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ts);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(rr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),R(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=et(e,Ys),a=Ts(o);r.push(a),"value"in i&&n.updateStore(rr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),R(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=j(j({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),R(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===tr(n.store,r)&&n.updateStore(rr(n.store,r,t))}})),R(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),R(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!zs(e.getNamePath(),t)}))){var l=n.store;n.updateStore(rr(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),R(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),R(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=j(j({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),R(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Re(r))}),r})),R(this,"updateValue",(function(e,t){var r=Ts(e),o=n.store;n.updateStore(rr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Fs(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Re(i)))})),R(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=ar(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),R(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),R(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Us;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ts(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),R(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Us;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Bs(e,n)}));a.length&&r(a,o)}})),R(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Ts):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Bs(a,t,d)){var r=e.validateRules(j({validateMessages:j(j({},Os),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Re(n)):r.push.apply(r,Re(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(v),m})),R(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function Zs(e){var t=r.useRef(),n=De(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new Qs((function(){n({})}));t.current=o.getForm()}return[t.current]}var Js=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],tu=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,v=e.onValuesChange,g=e.onFieldsChange,h=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,w=et(e,eu),x=r.useRef(null),E=r.useContext(Js),C=De(Zs(a),1)[0],S=C.getInternalHooks(Zc),$=S.useSubscribe,k=S.setInitialValues,O=S.setCallbacks,N=S.setValidateMessages,I=S.setPreserve,R=S.destroyForm;r.useImperativeHandle(t,(function(){return j(j({},C),{},{nativeElement:x.current})})),r.useEffect((function(){return E.registerForm(n,C),function(){E.unregisterForm(n)}}),[E,C,n]),N(j(j({},E.validateMessages),d)),O({onValuesChange:v,onFieldsChange:function(e){if(E.triggerFormChange(n,e),g){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];g.apply(void 0,[e].concat(r))}},onFinish:function(e){E.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:b}),I(l);var M,_=r.useRef(null);k(o,!_.current),_.current||(_.current=!0),r.useEffect((function(){return function(){return R(y)}}),[]);var A="function"==typeof c;A?M=c(C.getFieldsValue(!0),C):M=c;$(!A);var T=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==P(e)||"object"!==P(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Re(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(T.current||[],i||[])||C.setFields(i||[]),T.current=i}),[i,C]);var F=r.useMemo((function(){return j(j({},C),{},{validateTrigger:p})}),[C,p]),B=r.createElement(ts.Provider,{value:null},r.createElement(es.Provider,{value:F},M));return!1===u?B:r.createElement(u,m({},w,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),null===(t=w.onReset)||void 0===t||t.call(w,e)}}),B)};function nu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ru="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");N(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var ou=r.forwardRef(tu);ou.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(Js),l=r.useRef({});return r.createElement(Js.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=j(j({},l.current),{},R({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=j({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},ou.Field=Xs,ou.List=function(e){var t=e.name,n=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=r.useContext(es),s=r.useContext(ts),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var e=Ts(c.prefixName)||[];return[].concat(Re(e),Re(Ts(t)))}),[c.prefixName,t]),f=r.useMemo((function(){return j(j({},c),{},{prefixName:d})}),[c,d]),p=r.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(N(!1,"Form.List only accepts function as children."),null):r.createElement(ts.Provider,{value:p},r.createElement(es.Provider,{value:f},r.createElement(Xs,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Re(u.keys.slice(0,t)),[u.id],Re(u.keys.slice(t))),i([].concat(Re(n.slice(0,t)),[e],Re(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&N(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Re(u.keys),[u.id]),i([].concat(Re(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Ls(u.keys,e,t),i(Ls(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&N(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))},ou.useForm=Zs,ou.useWatch=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=De(e.useState(),2),u=s[0],d=s[1],f=e.useMemo((function(){return nu(u)}),[u]),p=e.useRef(f);p.current=f;var m=e.useContext(es),v=c||m,g=v&&v._init;"production"!==process.env.NODE_ENV&&N(2===n.length&&!c||g,"useWatch requires a form instance since it can not auto detect from context.");var h=Ts(o),b=e.useRef(h);return b.current=h,ru(h),e.useEffect((function(){if(g){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(Zc).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):tr(n,b.current)},r=t((function(e,t){var r=n(e,t),o=nu(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[g]),u};const iu=r.createContext({});"production"!==process.env.NODE_ENV&&(iu.displayName="FormItemInputContext");const au=t=>{let{children:n,status:o,override:i}=t;const a=e.useContext(iu),l=e.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,a]);return r.createElement(iu.Provider,{value:l},n)},lu=e.createContext(void 0),cu=t=>{const{space:n,form:r,children:o}=t;if(null==o)return null;let i=o;return r&&(i=e.createElement(au,{override:!0,status:!0},i)),n&&(i=e.createElement(Gl,null,i)),i},su=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),uu=e=>({animationDuration:e,animationFillMode:"both"}),du=e=>({animationDuration:e,animationFillMode:"both"}),fu=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},uu(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},du(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pu={"slide-up":{inKeyframes:new Zn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Zn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new Zn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new Zn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new Zn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Zn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new Zn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new Zn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},mu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=pu[t];return[fu(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},vu=new Zn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gu=new Zn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hu=new Zn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bu=new Zn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yu=new Zn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wu=new Zn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),xu={zoom:{inKeyframes:vu,outKeyframes:gu},"zoom-big":{inKeyframes:hu,outKeyframes:bu},"zoom-big-fast":{inKeyframes:hu,outKeyframes:bu},"zoom-left":{inKeyframes:new Zn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Zn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Zn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Zn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:yu,outKeyframes:wu},"zoom-down":{inKeyframes:new Zn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Zn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Eu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=xu[t];return[fu(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Cu=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Su=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$u=void 0;function ku(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,g=e.display,h=e.order,b=e.component,y=void 0===b?"div":b,w=et(e,Su),x=l&&!g;function E(e){s(u,e)}r.useEffect((function(){return function(){E(null)}}),[]);var C,S=a&&i!==$u?a(i):v;o||(C={opacity:x?0:1,height:x?0:$u,overflowY:x?"hidden":$u,order:l?h:$u,pointerEvents:x?"none":$u,position:x?"absolute":$u});var $={};x&&($["aria-hidden"]=!0);var k=r.createElement(y,m({className:p(!o&&n,d),style:j(j({},C),f)},$,w,{ref:t}),S);return l&&(k=r.createElement(ke,{onResize:function(e){E(e.offsetWidth)},disabled:c},k)),k}var Ou=r.forwardRef(ku);function Nu(){var e=r.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Fe(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){t.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function Pu(e,t){var n=De(r.useState(t),2),o=n[0],i=n[1];return[o,Ko((function(t){e((function(){i(t)}))}))]}Ou.displayName="Item";var Iu=e.createContext(null),Ru=["component"],Mu=["className"],ju=["className"],_u=function(e,t){var n=r.useContext(Iu);if(!n){var o=e.component,i=void 0===o?"div":o,a=et(e,Ru);return r.createElement(i,m({},a,{ref:t}))}var l=n.className,c=et(n,Mu),s=e.className,u=et(e,ju);return r.createElement(Iu.Provider,{value:null},r.createElement(Ou,m({ref:t,className:p(l,s)},c,u)))},Au=r.forwardRef(_u);Au.displayName="RawItem";var Tu=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fu="responsive",Bu="invalidate";function zu(e){return"+ ".concat(e.length," ...")}function Du(t,n){var o=t.prefixCls,i=void 0===o?"rc-overflow":o,a=t.data,l=void 0===a?[]:a,c=t.renderItem,s=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,v=t.ssr,g=t.style,h=t.className,b=t.maxCount,y=t.renderRest,w=t.renderRawRest,x=t.suffix,E=t.component,C=void 0===E?"div":E,S=t.itemComponent,$=t.onVisibleChange,k=et(t,Tu),O="full"===v,N=Nu(),P=De(Pu(N,null),2),I=P[0],R=P[1],M=I||0,_=De(Pu(N,new Map),2),A=_[0],T=_[1],F=De(Pu(N,0),2),B=F[0],z=F[1],D=De(Pu(N,0),2),L=D[0],H=D[1],V=De(Pu(N,0),2),W=V[0],q=V[1],X=De(e.useState(null),2),G=X[0],K=X[1],U=De(e.useState(null),2),Y=U[0],Q=U[1],Z=r.useMemo((function(){return null===Y&&O?Number.MAX_SAFE_INTEGER:Y||0}),[Y,I]),J=De(e.useState(!1),2),ee=J[0],te=J[1],ne="".concat(i,"-item"),re=Math.max(B,L),oe=b===Fu,ie=l.length&&oe,ae=b===Bu,le=ie||"number"==typeof b&&l.length>b,ce=e.useMemo((function(){var e=l;return ie?e=null===I&&O?l:l.slice(0,Math.min(l.length,M/f)):"number"==typeof b&&(e=l.slice(0,b)),e}),[l,f,I,b,ie]),se=e.useMemo((function(){return ie?l.slice(Z+1):l.slice(ce.length)}),[l,ce,ie,Z]),ue=e.useCallback((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=e.useCallback(c||function(e){return e},[c]);function fe(e,t,n){(Y!==e||void 0!==t&&t!==G)&&(Q(e),n||(te(e<l.length-1),null==$||$(e)),void 0!==t&&K(t))}function pe(e,t){T((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function me(e){return A.get(ue(ce[e],e))}Ot((function(){if(M&&"number"==typeof re&&ce){var e=W,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var o=me(r);if(O&&(o=o||0),void 0===o){fe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=M||r===n-1&&e+me(n)<=M){fe(n,null);break}if(e+re>M){fe(r-1,e-o-W+L);break}}x&&me(0)+W>M&&K(null)}}),[M,A,L,W,ue,ce]);var ve=ee&&!!se.length,ge={};null!==G&&ie&&(ge={position:"absolute",left:G,top:0});var he,be={prefixCls:ne,responsive:ie,component:S,invalidate:ae},ye=s?function(e,t){var n=ue(e,t);return r.createElement(Iu.Provider,{key:n,value:j(j({},be),{},{order:t,item:e,itemKey:n,registerSize:pe,display:t<=Z})},s(e,t))}:function(e,t){var n=ue(e,t);return r.createElement(Ou,m({},be,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:pe,display:t<=Z}))},we={order:ve?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){H(t),z(L)},display:ve};if(w)w&&(he=r.createElement(Iu.Provider,{value:j(j({},be),we)},w(se)));else{var xe=y||zu;he=r.createElement(Ou,m({},be,we),"function"==typeof xe?xe(se):xe)}var Ee=r.createElement(C,m({className:p(!ae&&i,h),style:g,ref:n},k),ce.map(ye),le?he:null,x&&r.createElement(Ou,m({},be,{responsive:oe,responsiveDisabled:!ie,order:Z,className:"".concat(ne,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:ge}),x));return oe&&(Ee=r.createElement(ke,{onResize:function(e,t){R(t.clientWidth)},disabled:!ie},Ee)),Ee}var Lu=r.forwardRef(Du);function Hu(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,m=r.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],h=n.points[1],b=g[0],y=g[1],w=h[0],x=h[1];b!==w&&["t","b"].includes(b)?"t"===b?v.top=0:v.bottom=0:v.top=f,y!==x&&["l","r"].includes(y)?"l"===y?v.left=0:v.right=0:v.left=u}return r.createElement("div",{ref:m,className:p("".concat(t,"-arrow"),l),style:v},c)}function Vu(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?r.createElement(ma,m({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:p("".concat(t,"-mask"),n)})})):null}Lu.displayName="Overflow",Lu.Item=Au,Lu.RESPONSIVE=Fu,Lu.INVALIDATE=Bu;var Wu=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Wu.displayName="PopupContent");var qu=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,y=e.motion,w=e.maskMotion,x=e.forceRender,E=e.getPopupContainer,C=e.autoDestroy,S=e.portal,$=e.zIndex,k=e.onMouseEnter,O=e.onMouseLeave,N=e.onPointerEnter,P=e.ready,I=e.offsetX,R=e.offsetY,M=e.offsetR,_=e.offsetB,A=e.onAlign,T=e.onPrepare,F=e.stretch,z=e.targetWidth,D=e.targetHeight,L="function"==typeof n?n():n,H=s||u,V=(null==E?void 0:E.length)>0,W=De(r.useState(!E||!V),2),q=W[0],X=W[1];if(Ot((function(){!q&&V&&l&&X(!0)}),[q,V,l]),!q)return null;var G="auto",K={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(P||!s){var U,Y=b.points,Q=b.dynamicInset||(null===(U=b._experimental)||void 0===U?void 0:U.dynamicInset),Z=Q&&"r"===Y[0][1],J=Q&&"b"===Y[0][0];Z?(K.right=M,K.left=G):(K.left=I,K.right=G),J?(K.bottom=_,K.top=G):(K.top=R,K.bottom=G)}var ee={};return F&&(F.includes("height")&&D?ee.height=D:F.includes("minHeight")&&D&&(ee.minHeight=D),F.includes("width")&&z?ee.width=z:F.includes("minWidth")&&z&&(ee.minWidth=z)),s||(ee.pointerEvents="none"),r.createElement(S,{open:x||H,getContainer:E&&function(){return E(l)},autoDestroy:C},r.createElement(Vu,{prefixCls:i,open:s,zIndex:$,mask:v,motion:w}),r.createElement(ke,{onResize:A,disabled:!s},(function(e){return r.createElement(ma,m({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:T,onEnterPrepare:T,visible:s,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),c(e)}}),(function(n,l){var c=n.className,u=n.style,m=p(i,c,o);return r.createElement("div",{ref:B(e,t,l),className:m,style:j(j(j(j({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},K),ee),u),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:k,onMouseLeave:O,onPointerEnter:N,onClick:f},g&&r.createElement(Hu,{prefixCls:i,arrow:g,arrowPos:h,align:b}),r.createElement(Wu,{cache:!s&&!d},L))}))})))}));"production"!==process.env.NODE_ENV&&(qu.displayName="Popup");var Xu=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=D(n),a=r.useCallback((function(e){F(t,o?o(e):e)}),[o]),l=z(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));"production"!==process.env.NODE_ENV&&(Xu.displayName="TriggerWrapper");var Gu=r.createContext(null);function Ku(e){return e?Array.isArray(e)?e:[e]:[]}function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Yu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Qu(e){return e.ownerDocument.defaultView}function Zu(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Qu(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Ju(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function ed(e){return Ju(parseFloat(e),0)}function td(e,t){var n=j({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Qu(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=ed(i),v=ed(a),g=ed(l),h=ed(c),b=Ju(Math.round(s.width/f*1e3)/1e3),y=Ju(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-h)*b,x=(u-d-m-v)*y,E=m*y,C=v*y,S=g*b,$=h*b,k=0,O=0;if("clip"===r){var N=ed(o);k=N*b,O=N*y}var P=s.x+S-k,I=s.y+E-O,R=P+s.width+2*k-S-$-w,M=I+s.height+2*O-E-C-x;n.left=Math.max(n.left,P),n.top=Math.max(n.top,I),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,M)}})),n}function nd(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function rd(e,t){var n=De(t||[],2),r=n[0],o=n[1];return[nd(e.width,r),nd(e.height,o)]}function od(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function id(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function ad(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ld=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var cd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kc,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=t.children,l=t.action,c=void 0===l?"hover":l,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,m=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,g=t.mouseEnterDelay,h=t.mouseLeaveDelay,b=void 0===h?.1:h,y=t.focusDelay,w=t.blurDelay,x=t.mask,E=t.maskClosable,C=void 0===E||E,$=t.getPopupContainer,k=t.forceRender,O=t.autoDestroy,N=t.destroyPopupOnHide,P=t.popup,I=t.popupClassName,R=t.popupStyle,M=t.popupPlacement,A=t.builtinPlacements,T=void 0===A?{}:A,F=t.popupAlign,B=t.zIndex,z=t.stretch,D=t.getPopupClassNameFromAlign,L=t.fresh,H=t.alignPoint,V=t.onPopupClick,W=t.onPopupAlign,q=t.arrow,X=t.popupMotion,G=t.maskMotion,K=t.popupTransitionName,U=t.popupAnimation,Y=t.maskTransitionName,Q=t.maskAnimation,Z=t.className,J=t.getTriggerDOMNode,ee=et(t,ld),te=O||N||!1,ne=De(r.useState(!1),2),re=ne[0],oe=ne[1];Ot((function(){oe(Cu())}),[]);var ie=r.useRef({}),ae=r.useContext(Gu),le=r.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=Qc(),se=De(r.useState(null),2),ue=se[0],de=se[1],fe=r.useRef(null),pe=Ko((function(e){fe.current=e,_(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),me=De(r.useState(null),2),ve=me[0],ge=me[1],he=r.useRef(null),be=Ko((function(e){_(e)&&ve!==e&&(ge(e),he.current=e)})),ye=r.Children.only(a),we=(null==ye?void 0:ye.props)||{},xe={},Ee=function(e,t){var n,r;return e===t||t.contains(e)||(null===(n=_a(t))||void 0===n?void 0:n.host)===e||t.contains(null===(r=_a(e))||void 0===r?void 0:r.host)},Ce=Ko((function(e){var t=ve,n=Ee.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=Yu(i,X,U,K),$e=Yu(i,G,Q,Y),Oe=De(r.useState(f||!1),2),Ne=Oe[0],Pe=Oe[1],Ie=null!=d?d:Ne,Me=Ko((function(e){void 0===d&&Pe(e)}));Ot((function(){Pe(d||!1)}),[d]);var je=r.useRef(Ie);je.current=Ie;var _e=r.useRef([]);_e.current=[];var Ae=Ko((function(e){var t;Me(e),(null!==(t=_e.current[_e.current.length-1])&&void 0!==t?t:Ie)!==e&&(_e.current.push(e),null==m||m(e))})),Te=r.useRef(),Fe=function(){clearTimeout(Te.current)},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Fe(),0===t?Ae(e):Te.current=setTimeout((function(){Ae(e)}),1e3*t)};r.useEffect((function(){return Fe}),[]);var ze=De(r.useState(!1),2),Le=ze[0],He=ze[1];Ot((function(e){e&&!Ie||He(!0)}),[Ie]);var Ve=De(r.useState(null),2),We=Ve[0],qe=Ve[1],Xe=De(r.useState(null),2),Ge=Xe[0],Ke=Xe[1],Ue=function(e){Ke([e.clientX,e.clientY])},Ye=function(e,t,n,o,i,a,l){var c=De(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?Zu(t):[]}),[t]),p=r.useRef({});e||(p.current={});var m=Ko((function(){if(t&&n&&e){var r,c,s,d,m,v=t,g=v.ownerDocument,h=Qu(v).getComputedStyle(v),b=h.width,y=h.height,w=h.position,x=v.style.left,E=v.style.top,C=v.style.right,S=v.style.bottom,$=v.style.overflow,k=j(j({},i[o]),a),O=g.createElement("div");if(null===(r=v.parentElement)||void 0===r||r.appendChild(O),O.style.left="".concat(v.offsetLeft,"px"),O.style.top="".concat(v.offsetTop,"px"),O.style.position=w,O.style.height="".concat(v.offsetHeight,"px"),O.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var N,P,I=n.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(P=I.y)&&void 0!==P?P:I.top,m={x:I.x,y:I.y,width:I.width,height:I.height}}var R=v.getBoundingClientRect();R.x=null!==(c=R.x)&&void 0!==c?c:R.left,R.y=null!==(s=R.y)&&void 0!==s?s:R.top;var M=g.documentElement,A=M.clientWidth,T=M.clientHeight,F=M.scrollWidth,B=M.scrollHeight,z=M.scrollTop,D=M.scrollLeft,L=R.height,H=R.width,V=m.height,W=m.width,q={left:0,top:0,right:A,bottom:T},X={left:-D,top:-z,right:F-D,bottom:B-z},G=k.htmlRegion,K="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=K);var Y=G===U,Q=td(X,f),Z=td(q,f),J=G===K?Z:Q,ee=Y?Z:J;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var te=v.getBoundingClientRect();v.style.left=x,v.style.top=E,v.style.right=C,v.style.bottom=S,v.style.overflow=$,null===(d=v.parentElement)||void 0===d||d.removeChild(O);var ne=Ju(Math.round(H/parseFloat(b)*1e3)/1e3),re=Ju(Math.round(L/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||_(n)&&!_l(n))return;var oe=k.offset,ie=k.targetOffset,ae=De(rd(R,oe),2),le=ae[0],ce=ae[1],se=De(rd(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=De(k.points||[],2),pe=fe[0],me=od(fe[1]),ve=od(pe),ge=id(m,me),he=id(R,ve),be=j({},k),ye=ge.x-he.x+le,we=ge.y-he.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=R.x+e,o=R.y+t,i=r+H,a=o+L,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var xe,Ee,Ce,Se,$e=mt(ye,we),ke=mt(ye,we,Z),Oe=id(m,["t","l"]),Ne=id(R,["t","l"]),Pe=id(m,["b","r"]),Ie=id(R,["b","r"]),Re=k.overflow||{},Me=Re.adjustX,je=Re.adjustY,_e=Re.shiftX,Ae=Re.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function vt(){xe=R.y+we,Ee=xe+L,Ce=R.x+ye,Se=Ce+H}vt();var Fe=Te(je),Be=ve[0]===me[0];if(Fe&&"t"===ve[0]&&(Ee>ee.bottom||p.current.bt)){var ze=we;Be?ze-=L-V:ze=Oe.y-Ie.y-ce;var Le=mt(ye,ze),He=mt(ye,ze,Z);Le>$e||Le===$e&&(!Y||He>=ke)?(p.current.bt=!0,we=ze,ce=-ce,be.points=[ad(ve,0),ad(me,0)]):p.current.bt=!1}if(Fe&&"b"===ve[0]&&(xe<ee.top||p.current.tb)){var Ve=we;Be?Ve+=L-V:Ve=Pe.y-Ne.y-ce;var We=mt(ye,Ve),qe=mt(ye,Ve,Z);We>$e||We===$e&&(!Y||qe>=ke)?(p.current.tb=!0,we=Ve,ce=-ce,be.points=[ad(ve,0),ad(me,0)]):p.current.tb=!1}var Xe=Te(Me),Ge=ve[1]===me[1];if(Xe&&"l"===ve[1]&&(Se>ee.right||p.current.rl)){var Ke=ye;Ge?Ke-=H-W:Ke=Oe.x-Ie.x-le;var Ue=mt(Ke,we),Ye=mt(Ke,we,Z);Ue>$e||Ue===$e&&(!Y||Ye>=ke)?(p.current.rl=!0,ye=Ke,le=-le,be.points=[ad(ve,1),ad(me,1)]):p.current.rl=!1}if(Xe&&"r"===ve[1]&&(Ce<ee.left||p.current.lr)){var Qe=ye;Ge?Qe+=H-W:Qe=Pe.x-Ne.x-le;var Ze=mt(Qe,we),Je=mt(Qe,we,Z);Ze>$e||Ze===$e&&(!Y||Je>=ke)?(p.current.lr=!0,ye=Qe,le=-le,be.points=[ad(ve,1),ad(me,1)]):p.current.lr=!1}vt();var et=!0===_e?0:_e;"number"==typeof et&&(Ce<Z.left&&(ye-=Ce-Z.left-le,m.x+W<Z.left+et&&(ye+=m.x-Z.left+W-et)),Se>Z.right&&(ye-=Se-Z.right-le,m.x>Z.right-et&&(ye+=m.x-Z.right+et)));var tt=!0===Ae?0:Ae;"number"==typeof tt&&(xe<Z.top&&(we-=xe-Z.top-ce,m.y+V<Z.top+tt&&(we+=m.y-Z.top+V-tt)),Ee>Z.bottom&&(we-=Ee-Z.bottom-ce,m.y>Z.bottom-tt&&(we+=m.y-Z.bottom+tt)));var nt=R.x+ye,rt=nt+H,ot=R.y+we,it=ot+L,at=m.x,lt=at+W,ct=m.y,st=ct+V,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(t,be);var ft=te.right-R.x-(ye+R.width),pt=te.bottom-R.y-(we+R.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(we=Math.round(we),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:we/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),v=function(){u((function(e){return j(j({},e),{},{ready:!1})}))};return Ot(v,[o]),Ot((function(){e||v()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Ie,ue,H&&null!==Ge?Ge:ve,M,T,F,W),Qe=De(Ye,11),Ze=Qe[0],Je=Qe[1],tt=Qe[2],nt=Qe[3],rt=Qe[4],ot=Qe[5],it=Qe[6],at=Qe[7],lt=Qe[8],ct=Qe[9],st=Qe[10],ut=function(e,t,n,o){return r.useMemo((function(){var r=Ku(null!=n?n:t),i=Ku(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(re,c,s,u),dt=De(ut,2),ft=dt[0],pt=dt[1],mt=ft.has("click"),vt=pt.has("click")||pt.has("contextMenu"),gt=Ko((function(){Le||st()}));!function(e,t,n,r,o){Ot((function(){if(e&&t&&n){var i=n,a=Zu(t),l=Zu(i),c=Qu(i),s=new Set([c].concat(Re(a),Re(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ie,ve,ue,gt,(function(){je.current&&H&&vt&&Be(!1)})),Ot((function(){gt()}),[Ge,M]),Ot((function(){!Ie||null!=T&&T[M]||gt()}),[JSON.stringify(F)]);var ht=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Uu(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(T,i,ct,H);return p(e,null==D?void 0:D(ct))}),[ct,D,T,i,H]);r.useImperativeHandle(n,(function(){return{nativeElement:he.current,popupElement:fe.current,forceAlign:gt}}));var bt=De(r.useState(0),2),yt=bt[0],wt=bt[1],xt=De(r.useState(0),2),Et=xt[0],Ct=xt[1],St=function(){if(z&&ve){var e=ve.getBoundingClientRect();wt(e.width),Ct(e.height)}};function $t(e,t,n,r){xe[e]=function(o){var i;null==r||r(o),Be(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=we[e])||void 0===i||i.call.apply(i,[we,o].concat(l))}}Ot((function(){We&&(st(),We(),qe(null))}),[We]),(mt||vt)&&(xe.onClick=function(e){var t;je.current&&vt?Be(!1):!je.current&&mt&&(Ue(e),Be(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onClick)||void 0===t||t.call.apply(t,[we,e].concat(r))}),function(e,t,n,o,i,a,l,c){var s=r.useRef(e);s.current=e,r.useEffect((function(){if(t&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},r=Qu(o);r.addEventListener("mousedown",e,!0),r.addEventListener("contextmenu",e,!0);var u,d,f=_a(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&S((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=o.getRootNode)||void 0===d?void 0:d.call(o)),"trigger element and popup element should in same shadow root."),function(){r.removeEventListener("mousedown",e,!0),r.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,o,i,a])}(Ie,vt,ve,ue,x,C,Ce,Be);var kt,Nt,Pt=ft.has("hover"),It=pt.has("hover");Pt&&($t("onMouseEnter",!0,g,(function(e){Ue(e)})),$t("onPointerEnter",!0,g,(function(e){Ue(e)})),kt=function(e){(Ie||Le)&&null!=ue&&ue.contains(e.target)&&Be(!0,g)},H&&(xe.onMouseMove=function(e){var t;null===(t=we.onMouseMove)||void 0===t||t.call(we,e)})),It&&($t("onMouseLeave",!1,b),$t("onPointerLeave",!1,b),Nt=function(){Be(!1,b)}),ft.has("focus")&&$t("onFocus",!0,y),pt.has("focus")&&$t("onBlur",!1,w),ft.has("contextMenu")&&(xe.onContextMenu=function(e){var t;je.current&&pt.has("contextMenu")?Be(!1):(Ue(e),Be(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onContextMenu)||void 0===t||t.call.apply(t,[we,e].concat(r))}),Z&&(xe.className=p(we.className,Z));var Rt=j(j({},we),xe),Mt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Mt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Rt[e])||void 0===t||t.call.apply(t,[Rt].concat(r)),ee[e].apply(ee,r)})}));var jt=r.cloneElement(ye,j(j({},Rt),Mt)),_t={x:ot,y:it},At=q?j({},!0!==q?q:{}):null;return r.createElement(r.Fragment,null,r.createElement(ke,{disabled:!Ie,ref:be,onResize:function(){St(),gt()}},r.createElement(Xu,{getTriggerDOMNode:J},jt)),r.createElement(Gu.Provider,{value:le},r.createElement(qu,{portal:e,ref:pe,prefixCls:i,popup:P,className:p(I,ht),style:R,target:ve,onMouseEnter:kt,onMouseLeave:Nt,onPointerEnter:kt,zIndex:B,open:Ie,keepDom:Le,fresh:L,onClick:V,mask:x,motion:Se,maskMotion:$e,onVisibleChanged:function(e){He(!1),st(),null==v||v(e)},onPrepare:function(){return new Promise((function(e){St(),qe((function(){return e}))}))},forceRender:k,autoDestroy:te,getPopupContainer:$,align:ct,arrow:At,arrowPos:_t,ready:Ze,offsetX:Je,offsetY:tt,offsetR:nt,offsetB:rt,onAlign:gt,stretch:z,targetWidth:yt/at,targetHeight:Et/lt})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Kc);function sd(e,t,n){return p({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const ud=(e,t)=>t||e,dd=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[t]:l}=e.useContext(_o),c=e.useContext(lu),s=null==l?void 0:l.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,jo.includes(u)]};var fd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},pd=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:fd}))},md=r.forwardRef(pd);function vd(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return r.createElement("div",{className:p("".concat(n,"-content"),a),style:l},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}"production"!==process.env.NODE_ENV&&(md.displayName="SearchOutlined");var gd={shiftX:64,adjustY:1},hd={adjustX:1,shiftY:!0},bd=[0,0],yd={left:{points:["cr","cl"],overflow:hd,offset:[-4,0],targetOffset:bd},right:{points:["cl","cr"],overflow:hd,offset:[4,0],targetOffset:bd},top:{points:["bc","tc"],overflow:gd,offset:[0,-4],targetOffset:bd},bottom:{points:["tc","bc"],overflow:gd,offset:[0,4],targetOffset:bd},topLeft:{points:["bl","tl"],overflow:gd,offset:[0,-4],targetOffset:bd},leftTop:{points:["tr","tl"],overflow:hd,offset:[-4,0],targetOffset:bd},topRight:{points:["br","tr"],overflow:gd,offset:[0,-4],targetOffset:bd},rightTop:{points:["tl","tr"],overflow:hd,offset:[4,0],targetOffset:bd},bottomRight:{points:["tr","br"],overflow:gd,offset:[0,4],targetOffset:bd},rightBottom:{points:["bl","br"],overflow:hd,offset:[4,0],targetOffset:bd},bottomLeft:{points:["tl","bl"],overflow:gd,offset:[0,4],targetOffset:bd},leftBottom:{points:["br","bl"],overflow:hd,offset:[-4,0],targetOffset:bd}},wd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],xd=function(t,n){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,l=t.mouseEnterDelay,c=void 0===l?0:l,s=t.mouseLeaveDelay,u=void 0===s?.1:s,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,v=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,b=t.transitionName,y=t.animation,w=t.motion,x=t.placement,E=void 0===x?"right":x,C=t.align,S=void 0===C?{}:C,$=t.destroyTooltipOnHide,k=void 0!==$&&$,O=t.defaultVisible,N=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,R=t.id,M=t.showArrow,_=void 0===M||M,A=et(t,wd),T=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var F=j({},A);"visible"in t&&(F.popupVisible=t.visible);return r.createElement(cd,m({popupClassName:o,prefixCls:p,popup:function(){return r.createElement(vd,{key:"content",prefixCls:p,id:R,overlayInnerStyle:P},I)},action:a,builtinPlacements:yd,popupPlacement:E,ref:T,popupAlign:S,getPopupContainer:N,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:b,popupAnimation:y,popupMotion:w,defaultPopupVisible:O,autoDestroy:k,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:_},F),v)},Ed=e.forwardRef(xd);const Cd=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${xt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Sd=8;function $d(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Sd:r}}function kd(e,t){return e?t:{}}function Od(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Cd(e,t,o)),{"&:before":{background:t}})]},kd(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${xt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kd(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${xt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kd(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),kd(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Nd={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Pd={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Id=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rd(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Nd).forEach((e=>{const s=r&&Pd[e]||Nd[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Id.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=$d({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Md=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${xt(e.calc(s).div(2).equal())} ${xt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Sd)}},[`${t}-content`]:{position:"relative"}}),Pi(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Od(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},$d({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,v=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}(ti(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var _d=function(e){const t=ki("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ti(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Md(o),Eu(e,"zoom-big-fast")]}),jd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Ad=ci.map((e=>`${e}-inverse`));function Td(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ci.includes(e):[].concat(Re(Ad),Re(ci)).includes(e)}(t),r=p({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Fd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bd=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:g=!0,title:h,overlay:b,builtinPlacements:y,arrowPointAtCenter:w=!1,autoAdjustOverflow:x=!0}=e,E=!!g,[,C]=yi(),{getPopupContainer:S,getPrefixCls:$,direction:k}=r.useContext(_o),O=dr("Tooltip"),N=r.useRef(null),P=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:P,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),P()},nativeElement:null===(e=N.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,r]=t;O.deprecated(!(n in e),n,r)})),"production"!==process.env.NODE_ENV&&O(!v||"boolean"==typeof v,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&O(!g||"boolean"==typeof g||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[I,R]=Qo(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),M=!h&&!b&&0!==h,j=r.useMemo((()=>{var e,t;let n=w;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:w),y||Rd({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[w,g,y,C]),_=r.useMemo((()=>0===h?h:b||h||""),[b,h]),A=r.createElement(cu,{space:!0},"function"==typeof _?_():_),{getPopupContainer:T,placement:F="top",mouseEnterDelay:B=.1,mouseLeaveDelay:z=.1,overlayStyle:D,rootClassName:L}=e,H=Fd(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=$("tooltip",i),W=$(),q=e["data-popover-inject"];let X=I;"open"in e||"visible"in e||!M||(X=!1);const G=r.isValidElement(d)&&!el(d)?d:r.createElement("span",null,d),K=G.props,U=K.className&&"string"!=typeof K.className?K.className:p(K.className,a||`${V}-open`),[Y,Q,Z]=_d(V,!q),J=Td(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=p(c,{[`${V}-rtl`]:"rtl"===k},J.className,L,Q,Z),[re,oe]=fl("Tooltip",H.zIndex),ie=r.createElement(Ed,Object.assign({},H,{zIndex:re,showArrow:E,placement:F,mouseEnterDelay:B,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),D),getTooltipContainer:T||l||S,ref:N,builtinPlacements:j,overlay:A,visible:X,onVisibleChange:t=>{var n,r;R(!M&&t),M||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:jl(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),X?nl(G,{className:U}):G);return Y(r.createElement(cl.Provider,{value:oe},ie))})),zd=Bd;"production"!==process.env.NODE_ENV&&(zd.displayName="Tooltip"),zd._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=r.useContext(_o),s=c("tooltip",t),[u,d,f]=_d(s),m=Td(s,a),v=m.arrowStyle,g=Object.assign(Object.assign({},l),m.overlayStyle),h=p(d,f,s,`${s}-pure`,`${s}-placement-${o}`,n,m.className);return u(r.createElement("div",{className:h,style:v},r.createElement("div",{className:`${s}-arrow`}),r.createElement(vd,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:g}),i)))};var Dd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ld=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Dd}))},Hd=r.forwardRef(Ld);"production"!==process.env.NODE_ENV&&(Hd.displayName="RightOutlined");var Vd=ol.ESC,Wd=ol.TAB;var qd=e.forwardRef((function(t,n){var r=t.overlay,o=t.arrow,i=t.prefixCls,a=e.useMemo((function(){return"function"==typeof r?r():r}),[r]),l=B(n,null==a?void 0:a.ref);return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:D(a)?l:void 0}))})),Xd={adjustX:1,adjustY:1},Gd=[0,0],Kd={topLeft:{points:["bl","tl"],overflow:Xd,offset:[0,-4],targetOffset:Gd},top:{points:["bc","tc"],overflow:Xd,offset:[0,-4],targetOffset:Gd},topRight:{points:["br","tr"],overflow:Xd,offset:[0,-4],targetOffset:Gd},bottomLeft:{points:["tl","bl"],overflow:Xd,offset:[0,4],targetOffset:Gd},bottom:{points:["tc","bc"],overflow:Xd,offset:[0,4],targetOffset:Gd},bottomRight:{points:["tr","br"],overflow:Xd,offset:[0,4],targetOffset:Gd}},Ud=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Yd(t,n){var o,i=t.arrow,a=void 0!==i&&i,l=t.prefixCls,c=void 0===l?"rc-dropdown":l,s=t.transitionName,u=t.animation,d=t.align,f=t.placement,v=void 0===f?"bottomLeft":f,g=t.placements,h=void 0===g?Kd:g,b=t.getPopupContainer,y=t.showAction,w=t.hideAction,x=t.overlayClassName,E=t.overlayStyle,C=t.visible,S=t.trigger,$=void 0===S?["hover"]:S,k=t.autoFocus,O=t.overlay,N=t.children,P=t.onVisibleChange,I=et(t,Ud),M=De(e.useState(),2),j=M[0],_=M[1],A="visible"in t?C:j,T=e.useRef(null),F=e.useRef(null),z=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var L=function(e){_(e),null==P||P(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case Vd:c();break;case Wd:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Fe(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:A,triggerRef:z,onVisibleChange:L,autoFocus:k,overlayRef:F});var H,V,W,q=function(){return e.createElement(qd,{ref:F,overlay:O,prefixCls:c,arrow:a})},X=e.cloneElement(N,{className:p(null===(o=N.props)||void 0===o?void 0:o.className,A&&(H=t.openClassName,void 0!==H?H:"".concat(c,"-open"))),ref:D(N)?B(z,N.ref):void 0}),G=w;return G||-1===$.indexOf("contextMenu")||(G=["click"]),e.createElement(cd,m({builtinPlacements:h},I,{prefixCls:c,ref:T,popupClassName:p(x,R({},"".concat(c,"-show-arrow"),a)),popupStyle:E,action:$,showAction:y,hideAction:G,popupPlacement:v,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:A,stretch:(V=t.minOverlayWidthMatchTrigger,W=t.alignPoint,("minOverlayWidthMatchTrigger"in t?V:!W)?"minWidth":""),popup:"function"==typeof O?q:q(),onPopupVisibleChange:L,onPopupClick:function(e){var n=t.onOverlayClick;_(!1),n&&n(e)},getPopupContainer:b}),X)}var Qd=e.forwardRef(Yd),Zd=r.createContext(null);function Jd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ef(e){return Jd(r.useContext(Zd),e)}var tf=["children","locked"],nf=r.createContext(null);function rf(e){var t=e.children,n=e.locked,o=et(e,tf),i=r.useContext(nf),a=T((function(){return e=o,t=j({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&tt(e[1],t[1],!0))}));return r.createElement(nf.Provider,{value:a},t)}var of=[],af=r.createContext(null);function lf(){return r.useContext(af)}var cf=r.createContext(of);function sf(e){var t=r.useContext(cf);return r.useMemo((function(){return void 0!==e?[].concat(Re(t),[e]):t}),[t,e])}var uf=r.createContext(null),df=r.createContext({});function ff(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(_l(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var pf=ol.LEFT,mf=ol.RIGHT,vf=ol.UP,gf=ol.DOWN,hf=ol.ENTER,bf=ol.ESC,yf=ol.HOME,wf=ol.END,xf=[vf,gf,pf,mf];function Ef(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Re(e.querySelectorAll("*")).filter((function(e){return ff(e,t)}));return ff(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Cf(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Ef(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Sf=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Jd(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function $f(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Fe.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(xf,[hf,bf,yf,wf]).includes(m)){var v=a(),g=Sf(v,o),h=g,b=h.elements,y=h.key2element,w=h.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),E=w.get(x),C=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===hf)return{inlineTrigger:!0};var f=(R(o={},vf,c),R(o,gf,s),o),p=(R(i={},pf,n?s:c),R(i,mf,n?c:s),R(i,gf,u),R(i,hf,u),i),m=(R(a={},vf,c),R(a,gf,s),R(a,hf,u),R(a,bf,d),R(a,pf,n?u:d),R(a,mf,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(E,!0).length,n,m);if(!C&&m!==yf&&m!==wf)return;(xf.includes(m)||[yf,wf].includes(m))&&r.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),p(),d.current=Fe((function(){f.current===r&&t.focus()}))}};if([yf,wf].includes(m)||C.sibling||!x){var $,k,O=Ef($=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);k=m===yf?O[0]:m===wf?O[O.length-1]:Cf($,b,x,C.offset),S(k)}else if(C.inlineTrigger)s(E);else if(C.offset>0)s(E,!0),p(),d.current=Fe((function(){g=Sf(v,o);var e=x.getAttribute("aria-controls"),t=Cf(document.getElementById(e),g.elements);S(t)}),5);else if(C.offset<0){var N=l(E,!0),P=N[N.length-2],I=y.get(P);s(P,!1),S(I)}}null==u||u(r)}}var kf="__RC_UTIL_PATH_SPLIT__",Of=function(e){return e.join(kf)},Nf="rc-menu-more";function Pf(){var t=De(r.useState({}),2)[1],n=e.useRef(new Map),o=e.useRef(new Map),i=De(r.useState([]),2),a=i[0],l=i[1],c=e.useRef(0),s=e.useRef(!1),u=e.useCallback((function(e,r){"production"!==process.env.NODE_ENV&&N(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=Of(r);o.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),d=e.useCallback((function(e,t){var r=Of(t);o.current.delete(r),n.current.delete(e)}),[]),f=e.useCallback((function(e){l(e)}),[]),p=e.useCallback((function(e,t){var r=n.current.get(e)||"",o=r.split(kf);return t&&a.includes(o[0])&&o.unshift(Nf),o}),[a]),m=e.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),v=e.useCallback((function(e){var t="".concat(n.current.get(e)).concat(kf),r=new Set;return Re(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=Re(n.current.keys());return a.length&&e.push(Nf),e},getSubPathKeys:v}}function If(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var Rf=Math.random().toFixed(5).toString().slice(2),Mf=0;function jf(e,t,n,o){var i=r.useContext(nf),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function _f(e){var t=r.useContext(nf),n=t.mode,o=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function Af(e){var t,n=e.icon,o=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=r.createElement(n,j({},o)):"boolean"!=typeof n&&(t=n),t||i||null)}var Tf=["item"];function Ff(e){var t=e.item,n=et(e,Tf);return Object.defineProperty(n,"item",{get:function(){return N(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Bf=["title","attribute","elementRef"],zf=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Df=["active"],Lf=function(){he(t,r.Component);var e=xe(t);function t(){return pe(this,t),e.apply(this,arguments)}return ve(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=Oe(et(e,Bf),["eventKey","popupClassName","popupOffset","onTitleClick"]);return N(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(Lu.Item,m({},n,{title:"string"==typeof t?t:void 0},i,{ref:o}))}}]),t}(),Hf=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.eventKey,l=e.warnKey,c=e.disabled,s=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,b=e.onFocus,y=et(e,zf),w=ef(a),x=r.useContext(nf),E=x.prefixCls,C=x.onItemClick,S=x.disabled,$=x.overflowDisabled,k=x.itemIcon,O=x.selectedKeys,P=x.onActive,I=r.useContext(df)._internalRenderMenuItem,M="".concat(E,"-item"),_=r.useRef(),A=r.useRef(),T=S||c,F=z(t,A),B=sf(a);"production"!==process.env.NODE_ENV&&l&&N(!1,"MenuItem should not leave undefined `key`.");var D=function(e){return{key:a,keyPath:Re(B).reverse(),item:_.current,domEvent:e}},L=s||k,H=jf(a,T,f,v),V=H.active,W=et(H,Df),q=O.includes(a),X=_f(B.length),G={};"option"===e.role&&(G["aria-selected"]=q);var K=r.createElement(Lf,m({ref:_,elementRef:F,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":$&&w?null:w},y,W,G,{component:"li","aria-disabled":c,style:j(j({},X),o),className:p(M,(n={},R(n,"".concat(M,"-active"),V),R(n,"".concat(M,"-selected"),q),R(n,"".concat(M,"-disabled"),T),n),i),onClick:function(e){if(!T){var t=D(e);null==g||g(Ff(t)),C(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===ol.ENTER){var t=D(e);null==g||g(Ff(t)),C(t)}},onFocus:function(e){P(a),null==b||b(e)}}),u,r.createElement(Af,{props:j(j({},e),{},{isSelected:q}),icon:L}));return I&&(K=I(K,e,{selected:q})),K}));function Vf(e,t){var n=e.eventKey,o=lf(),i=sf(n);return r.useEffect((function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}}),[i]),o?null:r.createElement(Hf,m({},e,{ref:t}))}var Wf=r.forwardRef(Vf),qf=["className","children"],Xf=function(e,t){var n=e.className,o=e.children,i=et(e,qf),a=r.useContext(nf),l=a.prefixCls,c=a.mode,s=a.rtl;return r.createElement("ul",m({className:p(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)},Gf=r.forwardRef(Xf);function Kf(e,t){return x(e).map((function(e,n){if(r.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Re(t),[n]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),r.cloneElement(e,s)}return e}))}Gf.displayName="SubMenuList";var Uf={adjustX:1,adjustY:1},Yf={topLeft:{points:["bl","tl"],overflow:Uf},topRight:{points:["br","tr"],overflow:Uf},bottomLeft:{points:["tl","bl"],overflow:Uf},bottomRight:{points:["tr","br"],overflow:Uf},leftTop:{points:["tr","tl"],overflow:Uf},leftBottom:{points:["br","bl"],overflow:Uf},rightTop:{points:["tl","tr"],overflow:Uf},rightBottom:{points:["bl","br"],overflow:Uf}},Qf={topLeft:{points:["bl","tl"],overflow:Uf},topRight:{points:["br","tr"],overflow:Uf},bottomLeft:{points:["tl","bl"],overflow:Uf},bottomRight:{points:["tr","br"],overflow:Uf},rightTop:{points:["tr","tl"],overflow:Uf},rightBottom:{points:["br","bl"],overflow:Uf},leftTop:{points:["tl","tr"],overflow:Uf},leftBottom:{points:["bl","br"],overflow:Uf}};function Zf(e,t,n){return t||(n?n[e]||n.other:void 0)}var Jf={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ep(e){var t=e.prefixCls,n=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=r.useContext(nf),m=f.getPopupContainer,v=f.rtl,g=f.subMenuOpenDelay,h=f.subMenuCloseDelay,b=f.builtinPlacements,y=f.triggerSubMenuAction,w=f.forceSubMenuRender,x=f.rootClassName,E=f.motion,C=f.defaultMotions,S=De(r.useState(!1),2),$=S[0],k=S[1],O=j(j({},v?Qf:Yf),b),N=Jf[u],P=Zf(u,E,C),I=r.useRef(P);"inline"!==u&&(I.current=P);var M=j(j({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=r.useRef();return r.useEffect((function(){return _.current=Fe((function(){k(n)})),function(){Fe.cancel(_.current)}}),[n]),r.createElement(cd,{prefixCls:t,popupClassName:p("".concat(t,"-popup"),R({},"".concat(t,"-rtl"),v),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:m,builtinPlacements:O,popupPlacement:N,popupVisible:$,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[y],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:w,popupMotion:M,fresh:!0},o)}function tp(e){var t=e.id,n=e.open,o=e.keyPath,i=e.children,a="inline",l=r.useContext(nf),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=r.useRef(!1);p.current=f===a;var v=De(r.useState(!p.current),2),g=v[0],h=v[1],b=!!p.current&&n;r.useEffect((function(){p.current&&h(!1)}),[f]);var y=j({},Zf(a,u,d));o.length>1&&(y.motionAppear=!1);var w=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||h(!0),null==w?void 0:w(e)},g?null:r.createElement(rf,{mode:a,locked:!p.current},r.createElement(ma,m({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Gf,{id:t,className:n,style:o},i)})))}var np=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],rp=["active"],op=r.forwardRef((function(e,t){var n,o=e.style,i=e.className,a=e.title,l=e.eventKey,c=e.warnKey,s=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,g=e.popupClassName,h=e.popupOffset,b=e.popupStyle,y=e.onClick,w=e.onMouseEnter,x=e.onMouseLeave,E=e.onTitleClick,C=e.onTitleMouseEnter,S=e.onTitleMouseLeave,$=et(e,np),k=ef(l),O=r.useContext(nf),P=O.prefixCls,I=O.mode,M=O.openKeys,_=O.disabled,A=O.overflowDisabled,T=O.activeKey,F=O.selectedKeys,B=O.itemIcon,z=O.expandIcon,D=O.onItemClick,L=O.onOpenChange,H=O.onActive,V=r.useContext(df)._internalRenderSubMenuItem,W=r.useContext(uf).isSubPathKey,q=sf(),X="".concat(P,"-submenu"),G=_||s,K=r.useRef(),U=r.useRef();"production"!==process.env.NODE_ENV&&c&&N(!1,"SubMenu should not leave undefined `key`.");var Y=null!=f?f:B,Q=null!=v?v:z,Z=M.includes(l),J=!A&&Z,ee=W(F,l),te=jf(l,G,C,S),ne=te.active,re=et(te,rp),oe=De(r.useState(!1),2),ie=oe[0],ae=oe[1],le=function(e){G||ae(e)},ce=r.useMemo((function(){return ne||"inline"!==I&&(ie||W([T],l))}),[I,ne,T,ie,l,W]),se=_f(q.length),ue=If((function(e){null==y||y(Ff(e)),D(e)})),de=k&&"".concat(k,"-popup"),fe=r.createElement("div",m({role:"menuitem",style:se,className:"".concat(X,"-title"),tabIndex:G?null:-1,ref:K,title:"string"==typeof a?a:null,"data-menu-id":A&&k?null:k,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":G,onClick:function(e){G||(null==E||E({key:l,domEvent:e}),"inline"===I&&L(l,!Z))},onFocus:function(){H(l)}},re),a,r.createElement(Af,{icon:"horizontal"!==I?Q:void 0,props:j(j({},e),{},{isOpen:J,isSubMenu:!0})},r.createElement("i",{className:"".concat(X,"-arrow")}))),pe=r.useRef(I);if("inline"!==I&&q.length>1?pe.current="vertical":pe.current=I,!A){var me=pe.current;fe=r.createElement(ep,{mode:me,prefixCls:X,visible:!u&&J&&"inline"!==I,popupClassName:g,popupOffset:h,popupStyle:b,popup:r.createElement(rf,{mode:"horizontal"===me?"vertical":me},r.createElement(Gf,{id:de,ref:U},d)),disabled:G,onVisibleChange:function(e){"inline"!==I&&L(l,e)}},fe)}var ve=r.createElement(Lu.Item,m({ref:t,role:"none"},$,{component:"li",style:o,className:p(X,"".concat(X,"-").concat(I),i,(n={},R(n,"".concat(X,"-open"),J),R(n,"".concat(X,"-active"),ce),R(n,"".concat(X,"-selected"),ee),R(n,"".concat(X,"-disabled"),G),n)),onMouseEnter:function(e){le(!0),null==w||w({key:l,domEvent:e})},onMouseLeave:function(e){le(!1),null==x||x({key:l,domEvent:e})}}),fe,!A&&r.createElement(tp,{id:de,open:J,keyPath:q},d));return V&&(ve=V(ve,e,{selected:ee,active:ce,open:J,disabled:G})),r.createElement(rf,{onItemClick:ue,mode:"horizontal"===I?"vertical":I,itemIcon:Y,expandIcon:Q},ve)})),ip=r.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=sf(o),l=Kf(i,a),c=lf();return r.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),n=c?l:r.createElement(op,m({ref:t},e),l),r.createElement(cf.Provider,{value:a},n)}));function ap(e){var t=e.className,n=e.style,o=r.useContext(nf).prefixCls;return lf()?null:r.createElement("li",{role:"separator",className:p("".concat(o,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(ip.displayName="SubMenu");var lp=["className","title","eventKey","children"],cp=r.forwardRef((function(e,t){var n=e.className,o=e.title;e.eventKey;var i=e.children,a=et(e,lp),l=r.useContext(nf).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",m({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:p(c,n)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),sp=r.forwardRef((function(e,t){var n=e.eventKey,o=Kf(e.children,sf(n));return lf()?o:r.createElement(cp,m({ref:t},Oe(e,["warnKey"])),o)}));"production"!==process.env.NODE_ENV&&(sp.displayName="MenuItemGroup");var up=["label","children","key","type"];function dp(e,t){var n=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,l){if(e&&"object"===P(e)){var c=e,s=c.label,u=c.children,d=c.key,f=c.type,p=et(c,up),v=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?r.createElement(o,m({key:v},p,{title:s}),dp(u,t)):r.createElement(i,m({key:v},p,{title:s}),dp(u,t)):"divider"===f?r.createElement(a,m({key:v},p)):r.createElement(n,m({key:v},p),s)}return null})).filter((function(e){return e}))}function fp(e,t,n,r){var o=e,i=j({divider:ap,item:Wf,group:sp,submenu:ip},r);return t&&(o=dp(t,i)),Kf(o,n)}var pp=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],mp=[],vp=r.forwardRef((function(n,o){var i,a,l=n,c=l.prefixCls,s=void 0===c?"rc-menu":c,u=l.rootClassName,d=l.style,f=l.className,v=l.tabIndex,g=void 0===v?0:v,h=l.items,b=l.children,y=l.direction,w=l.id,x=l.mode,E=void 0===x?"vertical":x,C=l.inlineCollapsed,S=l.disabled,$=l.disabledOverflow,k=l.subMenuOpenDelay,O=void 0===k?.1:k,P=l.subMenuCloseDelay,I=void 0===P?.1:P,M=l.forceSubMenuRender,_=l.defaultOpenKeys,A=l.openKeys,T=l.activeKey,F=l.defaultActiveFirst,B=l.selectable,z=void 0===B||B,D=l.multiple,L=void 0!==D&&D,H=l.defaultSelectedKeys,V=l.selectedKeys,W=l.onSelect,q=l.onDeselect,X=l.inlineIndent,G=void 0===X?24:X,K=l.motion,U=l.defaultMotions,Y=l.triggerSubMenuAction,Q=void 0===Y?"hover":Y,Z=l.builtinPlacements,J=l.itemIcon,ee=l.expandIcon,te=l.overflowedIndicator,ne=void 0===te?"...":te,re=l.overflowedIndicatorPopupClassName,oe=l.getPopupContainer,ie=l.onClick,ae=l.onOpenChange,le=l.onKeyDown,ce=l.openAnimation,se=l.openTransitionName,ue=l._internalRenderMenuItem,de=l._internalRenderSubMenuItem,fe=l._internalComponents,pe=et(l,pp),me=De(r.useMemo((function(){return[fp(b,h,mp,fe),fp(b,h,mp,{})]}),[b,h,fe]),2),ve=me[0],ge=me[1],he=De(r.useState(!1),2),be=he[0],ye=he[1],we=r.useRef(),xe=function(e){var t=De(Qo(e,{value:e}),2),n=t[0],o=t[1];return r.useEffect((function(){Mf+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Rf,"-").concat(Mf);o("rc-menu-uuid-".concat(e))}),[]),n}(w),Ee="rtl"===y;"production"!==process.env.NODE_ENV&&N(!ce&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ce=Qo(_,{value:A,postState:function(e){return e||mp}}),Se=De(Ce,2),$e=Se[0],ke=Se[1],Oe=function(e){function n(){ke(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.flushSync(n):n()},Ne=De(r.useState($e),2),Pe=Ne[0],Ie=Ne[1],Me=r.useRef(!1),je=De(r.useMemo((function(){return"inline"!==E&&"vertical"!==E||!C?[E,!1]:["vertical",C]}),[E,C]),2),_e=je[0],Ae=je[1],Te="inline"===_e,Fe=De(r.useState(_e),2),Be=Fe[0],ze=Fe[1],Le=De(r.useState(Ae),2),He=Le[0],Ve=Le[1];r.useEffect((function(){ze(_e),Ve(Ae),Me.current&&(Te?ke(Pe):Oe(mp))}),[_e,Ae]);var We=De(r.useState(0),2),qe=We[0],Xe=We[1],Ge=qe>=ve.length-1||"horizontal"!==Be||$;r.useEffect((function(){Te&&Ie($e)}),[$e]),r.useEffect((function(){return Me.current=!0,function(){Me.current=!1}}),[]);var Ke=Pf(),Ue=Ke.registerPath,Ye=Ke.unregisterPath,Qe=Ke.refreshOverflowKeys,Ze=Ke.isSubPathKey,Je=Ke.getKeyPath,nt=Ke.getKeys,rt=Ke.getSubPathKeys,ot=r.useMemo((function(){return{registerPath:Ue,unregisterPath:Ye}}),[Ue,Ye]),it=r.useMemo((function(){return{isSubPathKey:Ze}}),[Ze]);r.useEffect((function(){Qe(Ge?mp:ve.slice(qe+1).map((function(e){return e.key})))}),[qe,Ge]);var at=De(Qo(T||F&&(null===(i=ve[0])||void 0===i?void 0:i.key),{value:T}),2),lt=at[0],ct=at[1],st=If((function(e){ct(e)})),ut=If((function(){ct(void 0)}));e.useImperativeHandle(o,(function(){return{list:we.current,focus:function(e){var t,n,r=nt(),o=Sf(r,xe),i=o.elements,a=o.key2element,l=o.element2key,c=Ef(we.current,i),s=null!=lt?lt:c[0]?l.get(c[0]):null===(t=ve.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var dt=Qo(H||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?mp:[e]}}),ft=De(dt,2),pt=ft[0],mt=ft[1],vt=If((function(e){null==ie||ie(Ff(e)),function(e){if(z){var t,n=e.key,r=pt.includes(n);t=L?r?pt.filter((function(e){return e!==n})):[].concat(Re(pt),[n]):[n],mt(t);var o=j(j({},e),{},{selectedKeys:t});r?null==q||q(o):null==W||W(o)}!L&&$e.length&&"inline"!==Be&&Oe(mp)}(e)})),gt=If((function(e,t){var n=$e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Be){var r=rt(e);n=n.filter((function(e){return!r.has(e)}))}tt($e,n,!0)||Oe(n,!0)})),ht=$f(Be,lt,Ee,xe,we,nt,Je,ct,(function(e,t){var n=null!=t?t:!$e.includes(e);gt(e,n)}),le);r.useEffect((function(){ye(!0)}),[]);var bt=r.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Be||$?ve:ve.map((function(e,t){return r.createElement(rf,{key:e.key,overflowDisabled:t>qe},e)})),wt=r.createElement(Lu,m({id:w,ref:we,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Wf,className:p(s,"".concat(s,"-root"),"".concat(s,"-").concat(Be),f,(a={},R(a,"".concat(s,"-inline-collapsed"),He),R(a,"".concat(s,"-rtl"),Ee),a),u),dir:y,style:d,role:"menu",tabIndex:g,data:yt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ve.slice(-t):null;return r.createElement(ip,{eventKey:Nf,title:ne,disabled:Ge,internalPopupClose:0===t,popupClassName:re},n)},maxCount:"horizontal"!==Be||$?Lu.INVALIDATE:Lu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Xe(e)},onKeyDown:ht},pe));return r.createElement(df.Provider,{value:bt},r.createElement(Zd.Provider,{value:xe},r.createElement(rf,{prefixCls:s,rootClassName:u,mode:Be,openKeys:$e,rtl:Ee,disabled:S,motion:be?K:null,defaultMotions:be?U:null,activeKey:lt,onActive:st,onInactive:ut,selectedKeys:pt,inlineIndent:G,subMenuOpenDelay:O,subMenuCloseDelay:I,forceSubMenuRender:M,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:oe,itemIcon:J,expandIcon:ee,onItemClick:vt,onOpenChange:gt},r.createElement(uf.Provider,{value:it},wt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(af.Provider,{value:ot},ge)))))})),gp=vp;gp.Item=Wf,gp.SubMenu=ip,gp.ItemGroup=sp,gp.Divider=ap;var hp={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},bp=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:hp}))},yp=r.forwardRef(bp);"production"!==process.env.NODE_ENV&&(yp.displayName="BarsOutlined");var wp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},xp=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:wp}))},Ep=r.forwardRef(xp);"production"!==process.env.NODE_ENV&&(Ep.displayName="LeftOutlined");const Cp=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Sp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $p={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},kp=r.createContext({}),Op=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Np=r.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:a,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:y}=t,w=Sp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=e.useContext(Cp),[E,C]=e.useState("collapsed"in t?t.collapsed:c),[S,$]=e.useState(!1);e.useEffect((()=>{"collapsed"in t&&C(t.collapsed)}),[t.collapsed]);const k=(e,n)=>{"collapsed"in t||C(e),null==b||b(e,n)},O=e.useRef();O.current=e=>{$(e.matches),null==y||y(e.matches),E!==e.matches&&k(e.matches,"responsive")},e.useEffect((()=>{function e(e){return O.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&h&&h in $p){t=n(`screen and (max-width: ${$p[h]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[h]),e.useEffect((()=>{const e=Op("ant-sider-");return x.addSider(e),()=>x.removeSider(e)}),[]);const N=()=>{k(!E,"clickTrigger")},{getPrefixCls:P}=e.useContext(_o),I=r.useMemo((()=>({siderCollapsed:E})),[E]);return r.createElement(kp.Provider,{value:I},(()=>{const e=P("layout-sider",o),t=Oe(w,["collapsed"]),c=E?v:m,h=(b=c,!isNaN(parseFloat(b))&&isFinite(b)?`${c}px`:String(c));var b;const y=0===parseFloat(String(v||0))?r.createElement("span",{onClick:N,className:p(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${f?"right":"left"}`),style:g},a||r.createElement(yp,null)):null,x={expanded:f?r.createElement(Hd,null):r.createElement(Ep,null),collapsed:f?r.createElement(Ep,null):r.createElement(Hd,null)}[E?"collapsed":"expanded"],C=null!==a?y||r.createElement("div",{className:`${e}-trigger`,onClick:N,style:{width:h}},a||x):null,$=Object.assign(Object.assign({},u),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),k=p(e,`${e}-${s}`,{[`${e}-collapsed`]:!!E,[`${e}-has-trigger`]:d&&null!==a&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(h)},i);return r.createElement("aside",Object.assign({className:k},t,{style:$,ref:n}),r.createElement("div",{className:`${e}-children`},l),d||S&&y?C:null)})())}));"production"!==process.env.NODE_ENV&&(Np.displayName="Sider");var Pp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Ip=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Pp}))},Rp=r.forwardRef(Ip);"production"!==process.env.NODE_ENV&&(Rp.displayName="EllipsisOutlined");const Mp=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var jp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _p=e=>{const{prefixCls:t,className:n,dashed:o}=e,i=jp(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=r.useContext(_o),l=a("menu",t),c=p({[`${l}-item-divider-dashed`]:!!o},n);return r.createElement(ap,Object.assign({className:c},i))},Ap=e=>{var t;const{className:n,children:o,icon:i,title:a,danger:l}=e,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=r.useContext(Mp),{siderCollapsed:m}=r.useContext(kp);let v=a;void 0===a?v=s?o:"":!1===a&&(v="");const g={title:v};m||f||(g.title=null,g.open=!1);const h=x(o).length;let b=r.createElement(Wf,Object.assign({},Oe(e,["title","icon","danger"]),{className:p({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?h+1:h)},n),title:"string"==typeof a?a:void 0}),nl(i,{className:p(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),(e=>{const t=r.createElement("span",{className:`${c}-title-content`},o);return(!i||r.isValidElement(o)&&"span"===o.type)&&o&&e&&s&&"string"==typeof o?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):t})(f));return d||(b=r.createElement(zd,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),b)),b},Tp=r.createContext(null),Fp=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${xt(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Bp=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${xt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${xt(n)})`}}}}},zp=e=>Object.assign({},Ci(e)),Dp=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:g,itemHoverColor:h,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:k,itemHoverBg:O,itemActiveBg:N,menuSubMenuBg:P,horizontalItemSelectedColor:I,horizontalItemSelectedBg:R,horizontalItemBorderRadius:M,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},zp(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},zp(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${xt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:s,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:s,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${xt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${xt(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},Lp=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:xt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:xt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Hp=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:v,collapsedIconSize:g}=e,h={height:r,lineHeight:xt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Lp(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Lp(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${xt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${xt(e.calc(d).div(2).equal())} - ${xt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:xt(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},wi),{paddingInline:p})}}]},Vp=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Wp=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${xt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${xt(a)})`}}}}},qp=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:v,lineType:g,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${xt(l)} ${xt(c)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Vp(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${xt(e.calc(r).mul(2).equal())} ${xt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Vp(e)),Wp(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Wp(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xt(v)})`},"&::after":{transform:`rotate(45deg) translateX(${xt(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${xt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${xt(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${xt(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Xp=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:v,colorBgTextHover:g,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:E,controlHeightSM:C,fontSizeLG:S,colorTextLightSolid:$,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new Hr($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:S,groupTitleFontSize:E,darkItemDisabledColor:new Hr($).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${N}px)`:`calc(100% - ${2*P}px)`}};const Gp=e=>{var t;const{popupClassName:n,icon:o,title:i,theme:a}=e,l=r.useContext(Mp),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=sf();let f;if(o){const e=r.isValidElement(i)&&"span"===i.type;f=r.createElement(r.Fragment,null,nl(o,{className:p(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),e?i:r.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?r.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):r.createElement("span",{className:`${c}-title-content`},i);const m=r.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[v]=fl("Menu");return r.createElement(Mp.Provider,{value:m},r.createElement(ip,Object.assign({},Oe(e,["icon"]),{title:f,popupClassName:p(c,n,`${c}-${a||u}`),popupStyle:{zIndex:v}})))};var Kp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Up(e){return null===e||!1===e}const Yp={item:Ap,submenu:Gp,divider:_p},Qp=e.forwardRef(((e,t)=>{var n;const o=r.useContext(Tp),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=r.useContext(_o),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,rootClassName:w,mode:x,selectable:E,onClick:C,overflowedIndicatorPopupClassName:S}=e,$=Oe(Kp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=dr("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:x});const k=Ko((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,N=null!=E?E:i.selectable,P=r.useMemo((()=>void 0!==y?y:b),[b,y]),I={horizontal:{motionName:`${u}-slide-up`},inline:Ml(u),other:{motionName:`${u}-zoom-big`}},R=a("menu",d||i.prefixCls),M=rl(R),[j,_,A]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=ki("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=ti(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),E=ti(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:v,dangerItemSelectedColor:g,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[qp(x),Fp(x),Hp(x),Dp(x,"light"),Dp(E,"dark"),Bp(x),su(x),mu(x,"slide-up"),mu(x,"slide-down"),Eu(x,"zoom-big")]}),Xp,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(R,M,!o),T=p(`${R}-${v}`,null==s?void 0:s.className,f),F=r.useMemo((()=>{var e,t;if("function"==typeof g||Up(g))return g||null;if("function"==typeof i.expandIcon||Up(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||Up(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return nl(n,{className:p(`${R}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,R]),B=r.useMemo((()=>({prefixCls:R,inlineCollapsed:P||!1,direction:c,firstLevel:!0,theme:v,mode:O,disableMenuItemTitleTooltip:h})),[R,P,c,h,v]);return j(r.createElement(Tp.Provider,{value:null},r.createElement(Mp.Provider,{value:B},r.createElement(gp,Object.assign({getPopupContainer:l,overflowedIndicator:r.createElement(Rp,null),overflowedIndicatorPopupClassName:p(R,`${R}-${v}`,S),mode:O,selectable:N,onClick:k},$,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==s?void 0:s.style),m),className:T,prefixCls:R,direction:c,defaultMotions:I,expandIcon:F,ref:t,rootClassName:p(w,_,i.rootClassName,A,M),_internalComponents:Yp})))))})),Zp=e.forwardRef(((t,n)=>{const o=e.useRef(null),i=r.useContext(kp);return e.useImperativeHandle(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),r.createElement(Qp,Object.assign({ref:o},t,i))}));function Jp(e){return ti(e,{inputAffixPadding:e.paddingXXS})}Zp.Item=Ap,Zp.SubMenu=Gp,Zp.Divider=_p,Zp.ItemGroup=sp,"production"!==process.env.NODE_ENV&&(Zp.displayName="Menu");const em=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${h}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},tm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),nm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},tm(ti(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rm=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),im=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},nm(e))}),om(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),om(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),am=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},am(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),am(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},nm(e))}})}),cm=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},sm=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),um=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),dm=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},nm(e))}),um(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),um(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),fm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),pm=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},fm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),fm(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mm=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${xt(t)} ${xt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vm=e=>({padding:`${xt(e.paddingBlockSM)} ${xt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${xt(e.paddingBlock)} ${xt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},mm(e)),"&-sm":Object.assign({},vm(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),hm=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},mm(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vm(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${xt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${xt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${xt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${xt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${xt(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},bm=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),gm(e)),im(e)),dm(e)),cm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ym=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${xt(e.inputAffixPadding)}`}}}},wm=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},gm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ym(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},xm=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},xi(e)),hm(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},lm(e)),pm(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Em=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Cm=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Sm=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var $m=ki("Input",(e=>{const t=ti(e,Jp(e));return[bm(t),Cm(t),wm(t),xm(t),Em(t),Sm(t),jc(t)]}),em,{resetFont:!1}),km={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Om=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:km}))},Nm=r.forwardRef(Om);"production"!==process.env.NODE_ENV&&(Nm.displayName="PlusOutlined");var Pm=e.createContext(null),Im={width:0,height:0,left:0,top:0};function Rm(e,t){var n=r.useRef(e),o=De(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var Mm=Math.pow(.995,20);function jm(t){var n=De(e.useState(0),2),r=n[0],o=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Nt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var _m={width:0,height:0,left:0,top:0,right:0};function Am(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Tm(e){return String(e).replace(/"/g,"TABS_DQ")}function Fm(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var Bm=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),zm=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==P(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));"production"!==process.env.NODE_ENV&&(zm.displayName="ExtraContent");var Dm=r.forwardRef((function(t,n){var o=t.prefixCls,i=t.id,a=t.tabs,l=t.locale,c=t.mobile,s=t.more,u=void 0===s?{}:s,d=t.style,f=t.className,v=t.editable,g=t.tabBarGutter,h=t.rtl,b=t.removeAriaLabel,y=t.onTabClick,w=t.getPopupContainer,x=t.popupClassName,E=De(e.useState(!1),2),C=E[0],S=E[1],$=De(e.useState(null),2),k=$[0],O=$[1],N=u.icon,P=void 0===N?"More":N,I="".concat(i,"-more-popup"),M="".concat(o,"-dropdown"),j=null!==k?"".concat(I,"-").concat(k):null,_=null==l?void 0:l.dropdownAriaLabel;var A=r.createElement(gp,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),S(!1)},prefixCls:"".concat(M,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[k],"aria-label":void 0!==_?_:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,l=e.label,c=Fm(t,o,v,n);return r.createElement(Wf,{key:a,id:"".concat(I,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,a)}},o||v.removeIcon||"×"))})));function T(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,o=0;o<r;o+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void O(i.key)}}e.useEffect((function(){var e=document.getElementById(j);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),e.useEffect((function(){C||O(null)}),[C]);var F=R({},h?"marginRight":"marginLeft",g);a.length||(F.visibility="hidden",F.order=1);var B=p(R({},"".concat(M,"-rtl"),h)),z=c?null:r.createElement(Qd,m({prefixCls:M,overlay:A,visible:!!a.length&&C,onVisibleChange:S,overlayClassName:p(B,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:w},u),r.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":I,id:"".concat(i,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case ol.UP:T(-1),e.preventDefault();break;case ol.DOWN:T(1),e.preventDefault();break;case ol.ESC:S(!1);break;case ol.SPACE:case ol.ENTER:null!==k&&y(k,e)}else[ol.DOWN,ol.SPACE,ol.ENTER].includes(t)&&(S(!0),e.preventDefault())}},P));return r.createElement("div",{className:p("".concat(o,"-nav-operations"),f),style:d,ref:n},z,r.createElement(Bm,{prefixCls:o,locale:l,editable:v}))})),Lm=r.memo(Dm,(function(e,t){return t.tabMoving})),Hm=function(e){var t=e.prefixCls,n=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,m=e.removeAriaLabel,v=e.editable,g=e.onClick,h=e.onFocus,b=e.style,y="".concat(t,"-tab"),w=Fm(d,s,v,c);function x(e){c||g(e)}var E=r.useMemo((function(){return u&&"string"==typeof l?r.createElement("span",null,l):l}),[l,u]),C=r.createElement("div",{key:a,"data-node-key":Tm(a),className:p(y,R(R(R({},"".concat(y,"-with-remove"),w),"".concat(y,"-active"),o),"".concat(y,"-disabled"),c)),style:b,onClick:x},r.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[ol.SPACE,ol.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:h},u&&r.createElement("span",{className:"".concat(y,"-icon")},u),l&&E),w&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),v.onEdit("remove",{key:a,event:t})}},s||v.removeIcon||"×"));return f?f(C):C},Vm=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},Wm=function(e,t){return e[t?0:1]},qm=r.forwardRef((function(t,n){var o,i,a,l,c,s=t.className,u=t.style,d=t.id,f=t.animated,v=t.activeKey,g=t.rtl,h=t.extra,b=t.editable,y=t.locale,w=t.tabPosition,x=t.tabBarGutter,E=t.children,C=t.onTabClick,S=t.onTabScroll,$=t.indicator,k=r.useContext(Pm),O=k.prefixCls,N=k.tabs,P=e.useRef(null),I=e.useRef(null),M=e.useRef(null),_=e.useRef(null),A=e.useRef(null),T=e.useRef(null),F=e.useRef(null),B="top"===w||"bottom"===w,D=Rm(0,(function(e,t){B&&S&&S({direction:e>t?"left":"right"})})),L=De(D,2),H=L[0],V=L[1],W=Rm(0,(function(e,t){!B&&S&&S({direction:e>t?"top":"bottom"})})),q=De(W,2),X=q[0],G=q[1],K=De(e.useState([0,0]),2),U=K[0],Y=K[1],Q=De(e.useState([0,0]),2),Z=Q[0],J=Q[1],ee=De(e.useState([0,0]),2),te=ee[0],ne=ee[1],re=De(e.useState([0,0]),2),oe=re[0],ie=re[1],ae=(o=new Map,i=e.useRef([]),a=De(e.useState({}),2)[1],l=e.useRef("function"==typeof o?o():o),c=jm((function(){var e=l.current;i.current.forEach((function(t){e=t(e)})),i.current=[],l.current=e,a({})})),[l.current,function(e){i.current.push(e),c()}]),le=De(ae,2),ce=le[0],se=le[1],ue=function(t,n,r){return e.useMemo((function(){for(var e,r=new Map,o=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||Im,i=o.left+o.width,a=0;a<t.length;a+=1){var l,c=t[a].key,s=n.get(c);s||(s=n.get(null===(l=t[a-1])||void 0===l?void 0:l.key)||Im);var u=r.get(c)||j({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[t.map((function(e){return e.key})).join("_"),n,r])}(N,ce,Z[0]),de=Wm(U,B),fe=Wm(Z,B),pe=Wm(te,B),me=Wm(oe,B),ve=de<fe+pe,ge=ve?de-me:de-pe,he="".concat(O,"-nav-operations-hidden"),be=0,ye=0;function we(e){return e<be?be:e>ye?ye:e}B&&g?(be=0,ye=Math.max(0,fe-ge)):(be=Math.min(0,ge-fe),ye=0);var xe=e.useRef(null),Ee=De(e.useState(),2),Ce=Ee[0],Se=Ee[1];function $e(){Se(Date.now())}function Oe(){xe.current&&clearTimeout(xe.current)}!function(t,n){var o=De(e.useState(),2),i=o[0],a=o[1],l=De(e.useState(0),2),c=l[0],s=l[1],u=De(e.useState(0),2),d=u[0],f=u[1],p=De(e.useState(),2),m=p[0],v=p[1],g=e.useRef(),h=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(i){e.preventDefault();var t=e.touches[0],r=t.screenX,o=t.screenY;a({x:r,y:o});var l=r-i.x,u=o-i.y;n(l,u);var d=Date.now();s(d),f(d-c),v({x:l,y:u})}},onTouchEnd:function(){if(i&&(a(null),v(null),m)){var e=m.x/d,t=m.y/d,r=Math.abs(e),o=Math.abs(t);if(Math.max(r,o)<.1)return;var l=e,c=t;g.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(g.current):n(20*(l*=Mm),20*(c*=Mm))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===h.current?t:r:i>a?(o=t,h.current="x"):(o=r,h.current="y"),n(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){b.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){b.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(_,(function(e,t){function n(e,t){e((function(e){return we(e+t)}))}return!!ve&&(B?n(V,e):n(G,t),Oe(),$e(),!0)})),e.useEffect((function(){return Oe(),Ce&&(xe.current=setTimeout((function(){Se(0)}),100)),Oe}),[Ce]);var Ne=function(t,n,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),e.useMemo((function(){if(!d.length)return[0,0];for(var e=d.length,r=e,o=0;o<e;o+=1){var i=t.get(d[o].key)||_m;if(i[s]+i[c]>u+n){r=o-1;break}}for(var a=0,l=e-1;l>=0;l-=1)if((t.get(d[l].key)||_m)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[t,n,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ge,B?H:X,fe,pe,me,j(j({},t),{},{tabs:N})),Pe=De(Ne,2),Ie=Pe[0],Me=Pe[1],je=Ko((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=H;g?t.right<H?n=t.right:t.right+t.width>H+ge&&(n=t.right+t.width-ge):t.left<-H?n=-t.left:t.left+t.width>-H+ge&&(n=-(t.left+t.width-ge)),G(0),V(we(n))}else{var r=X;t.top<-X?r=-t.top:t.top+t.height>-X+ge&&(r=-(t.top+t.height-ge)),V(0),G(we(r))}})),_e={};"top"===w||"bottom"===w?_e[g?"marginRight":"marginLeft"]=x:_e.marginTop=x;var Ae=N.map((function(e,t){var n=e.key;return r.createElement(Hm,{id:d,prefixCls:O,key:n,tab:e,style:0===t?void 0:_e,closable:e.closable,editable:b,active:n===v,renderWrapper:E,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){C(n,e)},onFocus:function(){je(n),$e(),_.current&&(g||(_.current.scrollLeft=0),_.current.scrollTop=0)}})})),Te=function(){return se((function(){var e,t=new Map,n=null===(e=A.current)||void 0===e?void 0:e.getBoundingClientRect();return N.forEach((function(e){var r,o=e.key,i=null===(r=A.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Tm(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=De(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};e.useEffect((function(){Te()}),[N.map((function(e){return e.key})).join("_")]);var Be=jm((function(){var e=Vm(P),t=Vm(I),n=Vm(M);Y([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Vm(F);ne(r);var o=Vm(T);ie(o);var i=Vm(A);J([i[0]-r[0],i[1]-r[1]]),Te()})),ze=N.slice(0,Ie),Le=N.slice(Me+1),He=[].concat(Re(ze),Re(Le)),Ve=ue.get(v),We=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=De(e.useState(),2),d=u[0],f=u[1],p=e.useRef(),m=e.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){Fe.cancel(p.current)}return e.useEffect((function(){var e={};if(n)if(r){e.width=m(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=m(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return v(),p.current=Fe((function(){f(e)})),v}),[n,r,o,s,m]),{style:d}}({activeTabOffset:Ve,horizontal:B,indicator:$,rtl:g}),qe=We.style;e.useEffect((function(){je()}),[v,be,ye,Am(Ve),Am(ue),B]),e.useEffect((function(){Be()}),[g]);var Xe,Ge,Ke,Ue,Ye=!!He.length,Qe="".concat(O,"-nav-wrap");return B?g?(Ge=H>0,Xe=H!==ye):(Xe=H<0,Ge=H!==be):(Ke=X<0,Ue=X!==be),r.createElement(ke,{onResize:Be},r.createElement("div",{ref:z(n,P),role:"tablist",className:p("".concat(O,"-nav"),s),style:u,onKeyDown:function(){$e()}},r.createElement(zm,{ref:I,position:"left",extra:h,prefixCls:O}),r.createElement(ke,{onResize:Be},r.createElement("div",{className:p(Qe,R(R(R(R({},"".concat(Qe,"-ping-left"),Xe),"".concat(Qe,"-ping-right"),Ge),"".concat(Qe,"-ping-top"),Ke),"".concat(Qe,"-ping-bottom"),Ue)),ref:_},r.createElement(ke,{onResize:Be},r.createElement("div",{ref:A,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(X,"px)"),transition:Ce?"none":void 0}},Ae,r.createElement(Bm,{ref:F,prefixCls:O,locale:y,editable:b,style:j(j({},0===Ae.length?void 0:_e),{},{visibility:Ye?"hidden":null})}),r.createElement("div",{className:p("".concat(O,"-ink-bar"),R({},"".concat(O,"-ink-bar-animated"),f.inkBar)),style:qe}))))),r.createElement(Lm,m({},t,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:T,prefixCls:O,tabs:He,className:!Ye&&he,tabMoving:!!Ce})),r.createElement(zm,{ref:M,position:"right",extra:h,prefixCls:O})))})),Xm=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:p(n,l&&"".concat(n,"-active"),o),ref:t},s)}));"production"!==process.env.NODE_ENV&&(Xm.displayName="TabPane");var Gm=["renderTabBar"],Km=["label","key"],Um=function(e){var t=e.renderTabBar,n=et(e,Gm),o=r.useContext(Pm).tabs;return t?t(j(j({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=et(e,Km);return r.createElement(Xm,m({tab:t,key:n,tabKey:n},o))}))}),qm):r.createElement(qm,n)};"production"!==process.env.NODE_ENV&&(Um.displayName="TabNavListWrapper");var Ym=["key","forceRender","style","className","destroyInactiveTabPane"],Qm=function(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=r.useContext(Pm),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return r.createElement("div",{className:p("".concat(c,"-content-holder"))},r.createElement("div",{className:p("".concat(c,"-content"),"".concat(c,"-content-").concat(i),R({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,v=et(e,Ym),g=i===n;return r.createElement(ma,m({key:i,visible:g,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,a=e.className;return r.createElement(Xm,m({},v,{prefixCls:d,id:t,tabKey:i,animated:u,active:g,style:j(j({},c),o),className:p(s,a),ref:n}))}))}))))};var Zm=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Jm=0,ev=r.forwardRef((function(t,n){var o=t.id,i=t.prefixCls,a=void 0===i?"rc-tabs":i,l=t.className,c=t.items,s=t.direction,u=t.activeKey,d=t.defaultActiveKey,f=t.editable,v=t.animated,g=t.tabPosition,h=void 0===g?"top":g,b=t.tabBarGutter,y=t.tabBarStyle,w=t.tabBarExtraContent,x=t.locale,E=t.more,C=t.destroyInactiveTabPane,S=t.renderTabBar,$=t.onChange,k=t.onTabClick,O=t.onTabScroll,I=t.getPopupContainer,M=t.popupClassName,_=t.indicator,A=et(t,Zm),T=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===P(e)&&"key"in e}))}),[c]),F="rtl"===s,B=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:j({inkBar:!0},"object"===P(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&N(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(v),z=De(e.useState(!1),2),D=z[0],L=z[1];e.useEffect((function(){L(Cu())}),[]);var H=De(Qo((function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),V=H[0],W=H[1],q=De(e.useState((function(){return T.findIndex((function(e){return e.key===V}))})),2),X=q[0],G=q[1];e.useEffect((function(){var e,t=T.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(X,T.length-1)),W(null===(e=T[t])||void 0===e?void 0:e.key));G(t)}),[T.map((function(e){return e.key})).join("_"),V,X]);var K=De(Qo(null,{value:o}),2),U=K[0],Y=K[1];e.useEffect((function(){o||(Y("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":Jm)),Jm+=1)}),[]);var Q={id:U,activeKey:V,animated:B,tabPosition:h,rtl:F,mobile:D},Z=j(j({},Q),{},{editable:f,locale:x,more:E,tabBarGutter:b,onTabClick:function(e,t){null==k||k(e,t);var n=e!==V;W(e),n&&(null==$||$(e))},onTabScroll:O,extra:w,style:y,panes:null,getPopupContainer:I,popupClassName:M,indicator:_});return r.createElement(Pm.Provider,{value:{tabs:T,prefixCls:a}},r.createElement("div",m({ref:n,id:o,className:p(a,"".concat(a,"-").concat(h),R(R(R({},"".concat(a,"-mobile"),D),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),F),l)},A),r.createElement(Um,m({},Z,{renderTabBar:S})),r.createElement(Qm,m({destroyInactiveTabPane:C},Q,{animated:B}))))}));"production"!==process.env.NODE_ENV&&(ev.displayName="Tabs");const tv={motionAppear:!1,motionEnter:!0,motionLeave:!0};var nv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rv=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[mu(e,"slide-up"),mu(e,"slide-down")]]},ov=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${xt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:xt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:xt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt(e.borderRadiusLG)} 0 0 ${xt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},iv=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},xi(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${xt(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},wi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${xt(e.paddingXXS)} ${xt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},av=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${xt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:xt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},lv=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${xt(e.borderRadius)} ${xt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${xt(e.borderRadius)} ${xt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xt(e.borderRadius)} ${xt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xt(e.borderRadius)} 0 0 ${xt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},cv=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Si(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},sv=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:xt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:xt(e.marginXS)},marginLeft:{_skip_check_:!0,value:xt(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},uv=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xi(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${xt(e.paddingXS)}`,background:"transparent",border:`${xt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${xt(e.borderRadiusLG)} ${xt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Si(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),cv(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var dv=ki("Tabs",(e=>{const t=ti(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${xt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${xt(e.horizontalItemGutter)}`});return[lv(t),sv(t),av(t),iv(t),ov(t),uv(t),rv(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const fv=()=>null;"production"!==process.env.NODE_ENV&&(fv.displayName="DeprecatedTabPane");var pv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mv=e=>{var t,n,o,i,a,l,c,s,u,d,f;const{type:m,className:v,rootClassName:g,size:h,onEdit:b,hideAdd:y,centered:w,addIcon:E,removeIcon:C,moreIcon:S,more:$,popupClassName:k,children:O,items:N,animated:P,style:I,indicatorSize:R,indicator:M}=e,j=pv(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:_}=j,{direction:A,tabs:T,getPrefixCls:F,getPopupContainer:B}=r.useContext(_o),z=F("tabs",_),D=rl(z),[L,H,V]=dv(z,D);let W;"editable-card"===m&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null==b||b("add"===e?r:n,e)},removeIcon:null!==(t=null!=C?C:null==T?void 0:T.removeIcon)&&void 0!==t?t:r.createElement(Qa,null),addIcon:(null!=E?E:null==T?void 0:T.addIcon)||r.createElement(Nm,null),showAdd:!0!==y});const q=F();if("production"!==process.env.NODE_ENV){const t=dr("Tabs");"production"!==process.env.NODE_ENV&&t(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&t(!(R||(null==T?void 0:T.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=Wl(h),G=function(e,t){"production"!==process.env.NODE_ENV&&dr("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=x(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=nv(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}(N,O),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tv),{motionName:jl(e,"switch")})),t}(z,P),U=Object.assign(Object.assign({},null==T?void 0:T.style),I),Y={align:null!==(n=null==M?void 0:M.align)&&void 0!==n?n:null===(o=null==T?void 0:T.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==M?void 0:M.size)&&void 0!==i?i:R)&&void 0!==a?a:null===(l=null==T?void 0:T.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==T?void 0:T.indicatorSize};return L(r.createElement(ev,Object.assign({direction:A,getPopupContainer:B},j,{items:G,className:p({[`${z}-${X}`]:X,[`${z}-card`]:["card","editable-card"].includes(m),[`${z}-editable-card`]:"editable-card"===m,[`${z}-centered`]:w},null==T?void 0:T.className,v,g,H,V,D),popupClassName:p(k,H,V,D),style:U,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==T?void 0:T.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==T?void 0:T.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:r.createElement(Rp,null),transitionName:`${q}-slide-up`},$),prefixCls:z,animated:K,indicator:Y})))};function vv(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function gv(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=vv(t,e,r)):n(o=vv(t,e,""))}}mv.TabPane=fv,"production"!==process.env.NODE_ENV&&(mv.displayName="Tabs");var hv=e.forwardRef((function(t,n){var r,o,i=t.inputElement,a=t.children,l=t.prefixCls,c=t.prefix,s=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,v=t.style,g=t.disabled,h=t.readOnly,b=t.focused,y=t.triggerFocus,w=t.allowClear,x=t.value,E=t.handleReset,C=t.hidden,S=t.classes,$=t.classNames,k=t.dataAttrs,O=t.styles,N=t.components,I=t.onClear,M=null!=a?a:i,_=(null==N?void 0:N.affixWrapper)||"span",A=(null==N?void 0:N.groupWrapper)||"span",T=(null==N?void 0:N.wrapper)||"span",F=(null==N?void 0:N.groupAddon)||"span",B=e.useRef(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),D=e.cloneElement(M,{value:x,className:p(M.props.className,!z&&(null==$?void 0:$.variant))||null}),L=e.useRef(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:L.current||B.current}})),z){var H=null;if(w){var V=!g&&!h&&x,W="".concat(l,"-clear-icon"),q="object"===P(w)&&null!=w&&w.clearIcon?w.clearIcon:"✖";H=e.createElement("span",{onClick:function(e){null==E||E(e),null==I||I()},onMouseDown:function(e){return e.preventDefault()},className:p(W,R(R({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!s)),role:"button",tabIndex:-1},q)}var X="".concat(l,"-affix-wrapper"),G=p(X,R(R(R(R(R({},"".concat(l,"-disabled"),g),"".concat(X,"-disabled"),g),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),h),"".concat(X,"-input-with-clear-btn"),s&&w&&x),null==S?void 0:S.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),K=(s||w)&&e.createElement("span",{className:p("".concat(l,"-suffix"),null==$?void 0:$.suffix),style:null==O?void 0:O.suffix},H,s);D=e.createElement(_,m({className:G,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==k?void 0:k.affixWrapper,{ref:B}),c&&e.createElement("span",{className:p("".concat(l,"-prefix"),null==$?void 0:$.prefix),style:null==O?void 0:O.prefix},c),D,K)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var U="".concat(l,"-group"),Y="".concat(U,"-addon"),Q="".concat(U,"-wrapper"),Z=p("".concat(l,"-wrapper"),U,null==S?void 0:S.wrapper,null==$?void 0:$.wrapper),J=p(Q,R({},"".concat(Q,"-disabled"),g),null==S?void 0:S.group,null==$?void 0:$.groupWrapper);D=e.createElement(A,{className:J,ref:L},e.createElement(T,{className:Z},u&&e.createElement(F,{className:Y},u),D,d&&e.createElement(F,{className:Y},d)))}return e.cloneElement(D,{className:p(null===(r=D.props)||void 0===r?void 0:r.className,f)||null,style:j(j({},null===(o=D.props)||void 0===o?void 0:o.style),v),hidden:C})})),bv=["show"];function yv(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===P(t)&&t.formatter?t.formatter:!!t);var r=n=j(j({},n),e),o=r.show,i=et(r,bv);return j(j({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var wv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],xv=e.forwardRef((function(t,n){var r=t.autoComplete,o=t.onChange,i=t.onFocus,a=t.onBlur,l=t.onPressEnter,c=t.onKeyDown,s=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,f=t.disabled,v=t.htmlSize,g=t.className,h=t.maxLength,b=t.suffix,y=t.showCount,w=t.count,x=t.type,E=void 0===x?"text":x,C=t.classes,S=t.classNames,$=t.styles,k=t.onCompositionStart,O=t.onCompositionEnd,N=et(t,wv),P=De(e.useState(!1),2),I=P[0],M=P[1],_=e.useRef(!1),A=e.useRef(!1),T=e.useRef(null),F=e.useRef(null),B=function(e){T.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(T.current,e)},z=De(Qo(t.defaultValue,{value:t.value}),2),D=z[0],L=z[1],H=null==D?"":String(D),V=De(e.useState(null),2),W=V[0],q=V[1],X=yv(w,y),G=X.max||h,K=X.strategy(H),U=!!G&&K>G;e.useImperativeHandle(n,(function(){var e;return{focus:B,blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=T.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=T.current)||void 0===e||e.select()},input:T.current,nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||T.current}})),e.useEffect((function(){M((function(e){return(!e||!f)&&e}))}),[f]);var Y=function(e,t,n){var r,i,a=t;if(!_.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&q([(null===(r=T.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=T.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;L(a),T.current&&gv(T.current,e,o,a)};e.useEffect((function(){var e;W&&(null===(e=T.current)||void 0===e||e.setSelectionRange.apply(e,Re(W)))}),[W]);var Q,Z=function(e){Y(e,e.target.value,{source:"change"})},J=function(e){_.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)},ee=function(e){l&&"Enter"===e.key&&!A.current&&(A.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(A.current=!1),null==s||s(e)},ne=function(e){M(!0),null==i||i(e)},re=function(e){M(!1),null==a||a(e)},oe=U&&"".concat(d,"-out-of-range");return e.createElement(hv,m({},N,{prefixCls:d,className:p(g,oe),handleReset:function(e){L(""),B(),T.current&&gv(T.current,e,o)},value:H,focused:I,triggerFocus:B,suffix:function(){var t=Number(G)>0;if(b||X.show){var n=X.showFormatter?X.showFormatter({value:H,count:K,maxLength:G}):"".concat(K).concat(t?" / ".concat(G):"");return e.createElement(e.Fragment,null,X.show&&e.createElement("span",{className:p("".concat(d,"-show-count-suffix"),R({},"".concat(d,"-show-count-has-suffix"),!!b),null==S?void 0:S.count),style:j({},null==$?void 0:$.count)},n),b)}return null}(),disabled:f,classes:C,classNames:S,styles:$}),(Q=Oe(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",m({autoComplete:r},Q,{onChange:Z,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:p(d,R({},"".concat(d,"-disabled"),f),null==S?void 0:S.input),style:null==$?void 0:$.input,ref:T,size:v,type:E,onCompositionStart:function(e){_.current=!0,null==k||k(e)},onCompositionEnd:J}))))}));const Ev=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Ka,null)}),n};function Cv(t,n){const r=e.useRef([]),o=()=>{r.current.push(setTimeout((()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))})))};return e.useEffect((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Sv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $v=e.forwardRef(((t,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:v,className:g,style:h,styles:b,rootClassName:y,onChange:w,classNames:x,variant:E}=t,C=Sv(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=dr("Input");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:S,direction:$,input:k}=e.useContext(_o),O=S("input",o),N=e.useRef(null),P=rl(O),[I,R,M]=$m(O,P),{compactSize:j,compactItemClassnames:_}=Xl(O,$),A=Wl((e=>{var t;return null!==(t=null!=l?l:j)&&void 0!==t?t:e})),T=e.useContext(Fo),F=null!=c?c:T,{status:z,hasFeedback:D,feedbackIcon:L}=e.useContext(iu),H=ud(z,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!D,W=e.useRef(V);if("production"!==process.env.NODE_ENV){const t=dr("Input");e.useEffect((()=>{var e;V&&!W.current&&"production"!==process.env.NODE_ENV&&t(document.activeElement===(null===(e=N.current)||void 0===e?void 0:e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),W.current=V}),[V])}const q=Cv(N,!0),X=(D||d)&&e.createElement(e.Fragment,null,d,D&&L),G=Ev(null!=f?f:null==k?void 0:k.allowClear),[K,U]=dd("input",E,i);return I(e.createElement(xv,Object.assign({ref:B(n,N),prefixCls:O,autoComplete:null==k?void 0:k.autoComplete},C,{disabled:F,onBlur:e=>{q(),null==s||s(e)},onFocus:e=>{q(),null==u||u(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),h),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),b),suffix:X,allowClear:G,className:p(g,y,M,P,_,null==k?void 0:k.className),onChange:e=>{q(),null==w||w(e)},addonBefore:v&&e.createElement(cu,{form:!0,space:!0},v),addonAfter:m&&e.createElement(cu,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},x),null==k?void 0:k.classNames),{input:p({[`${O}-sm`]:"small"===A,[`${O}-lg`]:"large"===A,[`${O}-rtl`]:"rtl"===$},null==x?void 0:x.input,null===(r=null==k?void 0:k.classNames)||void 0===r?void 0:r.input,R),variant:p({[`${O}-${K}`]:U},sd(O,H)),affixWrapper:p({[`${O}-affix-wrapper-sm`]:"small"===A,[`${O}-affix-wrapper-lg`]:"large"===A,[`${O}-affix-wrapper-rtl`]:"rtl"===$},R),wrapper:p({[`${O}-group-rtl`]:"rtl"===$},R),groupWrapper:p({[`${O}-group-wrapper-sm`]:"small"===A,[`${O}-group-wrapper-lg`]:"large"===A,[`${O}-group-wrapper-rtl`]:"rtl"===$,[`${O}-group-wrapper-${K}`]:U},sd(`${O}-group-wrapper`,H,D),R)})})))}));"production"!==process.env.NODE_ENV&&($v.displayName="Input");const kv=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Ov=ki(["Input","OTP"],(e=>{const t=ti(e,Jp(e));return[kv(t)]}),em),Nv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pv=r.forwardRef(((e,t)=>{const{value:n,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=Nv(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,u=r.useRef(null);r.useImperativeHandle(t,(()=>u.current));const d=()=>{Fe((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return r.createElement($v,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var Iv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Rv(e){return(e||"").split("")}const Mv=r.forwardRef(((e,t)=>{const{prefixCls:n,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:m,mask:v}=e,g=Iv(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=dr("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof v&&v.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:h,direction:b}=r.useContext(_o),y=h("otp",n),w=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:j({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Ja(n,"aria-"))||t.data&&Ja(n,"data-")||t.attr&&Za.includes(n))&&(r[n]=e[n])})),r}(g,{aria:!0,data:!0,attr:!0}),x=rl(y),[E,C,S]=Ov(y,x),$=Wl((e=>null!=i?i:e)),k=r.useContext(iu),O=ud(k.status,f),N=r.useMemo((()=>Object.assign(Object.assign({},k),{status:O,hasFeedback:!1,feedbackIcon:null})),[k,O]),P=r.useRef(null),I=r.useRef({});r.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=I.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=I.current[t])||void 0===e||e.blur()},nativeElement:P.current})));const R=e=>s?s(e):e,[M,_]=r.useState(Rv(R(a||"")));r.useEffect((()=>{void 0!==l&&_(Rv(l))}),[l]);const A=Ko((e=>{_(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>M[t]!==e))&&c(e.join(""))})),T=Ko(((e,t)=>{let n=Re(M);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Rv(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=R(n.map((e=>e||" ")).join(""));return n=Rv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),F=(e,t)=>{var n;const r=T(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=I.current[i])||void 0===n||n.focus()),A(r)},B=e=>{var t;null===(t=I.current[e])||void 0===t||t.focus()},z={variant:u,disabled:d,status:O,mask:v};return E(r.createElement("div",Object.assign({},w,{ref:P,className:p(y,{[`${y}-sm`]:"small"===$,[`${y}-lg`]:"large"===$,[`${y}-rtl`]:"rtl"===b},S,C)}),r.createElement(iu.Provider,{value:N},Array.from({length:o}).map(((e,t)=>{const n=`otp-${t}`,o=M[t]||"";return r.createElement(Pv,Object.assign({ref:e=>{I.current[t]=e},key:n,index:t,size:$,htmlSize:1,className:`${y}-input`,onChange:F,value:o,onActiveChange:B,autoFocus:0===t&&m},z))})))))}));var jv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},_v=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:jv}))},Av=r.forwardRef(_v);"production"!==process.env.NODE_ENV&&(Av.displayName="EyeInvisibleOutlined");var Tv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Fv=function(e,t){return r.createElement(qa,m({},e,{ref:t,icon:Tv}))},Bv=r.forwardRef(Fv);"production"!==process.env.NODE_ENV&&(Bv.displayName="EyeOutlined");var zv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Dv=e=>e?r.createElement(Bv,null):r.createElement(Av,null),Lv={click:"onClick",hover:"onMouseOver"},Hv=r.forwardRef(((t,n)=>{const{disabled:o,action:i="click",visibilityToggle:a=!0,iconRender:l=Dv}=t,c="object"==typeof a&&void 0!==a.visible,[s,u]=e.useState((()=>!!c&&a.visible)),d=e.useRef(null);r.useEffect((()=>{c&&u(a.visible)}),[c,a]);const f=Cv(d),m=()=>{o||(s&&f(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:v,prefixCls:g,inputPrefixCls:h,size:b}=t,y=zv(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=r.useContext(_o),x=w("input",h),E=w("input-password",g),C=a&&(e=>{const t=Lv[i]||"",n=l(s),o={[t]:m,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),o)})(E),S=p(E,v,{[`${E}-${b}`]:!!b}),$=Object.assign(Object.assign({},Oe(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:x,suffix:C});return b&&($.size=b),r.createElement($v,Object.assign({ref:B(n,d)},$))}));"production"!==process.env.NODE_ENV&&(Hv.displayName="Input.Password");var Vv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Wv=r.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:g}=e,h=Vv(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=r.useContext(_o),w=r.useRef(!1),x=b("input-search",n),E=b("input",o),{compactSize:C}=Xl(x,y),S=Wl((e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),$=r.useRef(null),k=e=>{var t;document.activeElement===(null===(t=$.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=$.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},N="boolean"==typeof c?r.createElement(md,null):null,P=`${x}-button`;let I;const R=c||{},M=R.type&&!0===R.type.__ANT_BUTTON;I=M||"button"===R.type?nl(R,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},M?{className:P,size:S}:{})):r.createElement(Dc,{className:P,type:c?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:k,onClick:O,loading:u,icon:N},c),s&&(I=[I,nl(s,{key:"addonAfter"})]);const j=p(x,{[`${x}-rtl`]:"rtl"===y,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!c},i);return r.createElement($v,Object.assign({ref:B($,t),onPressEnter:e=>{w.current||u||O(e)}},h,{size:S,onCompositionStart:e=>{w.current=!0,null==v||v(e)},onCompositionEnd:e=>{w.current=!1,null==g||g(e)},prefixCls:E,addonAfter:I,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==m||m(e)},className:j,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Wv.displayName="Search");var qv,Xv=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Gv={};function Kv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;qv||((qv=document.createElement("textarea")).setAttribute("tab-index","-1"),qv.setAttribute("aria-hidden","true"),document.body.appendChild(qv)),e.getAttribute("wrap")?qv.setAttribute("wrap",e.getAttribute("wrap")):qv.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Gv[n])return Gv[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Xv.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Gv[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;qv.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),qv.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=qv.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){qv.value=" ";var p=qv.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var Uv=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Yv=r.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange,v=n.onInternalAutoSize,g=et(n,Uv),h=De(Qo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),b=h[0],y=h[1],w=r.useRef();r.useImperativeHandle(t,(function(){return{textArea:w.current}}));var x=De(r.useMemo((function(){return l&&"object"===P(l)?[l.minRows,l.maxRows]:[]}),[l]),2),E=x[0],C=x[1],S=!!l,$=De(r.useState(2),2),k=$[0],O=$[1],N=De(r.useState(),2),I=N[0],M=N[1],_=function(){O(0),"test"===process.env.NODE_ENV&&(null==v||v())};Ot((function(){S&&_()}),[a,E,C,S]),Ot((function(){if(0===k)O(1);else if(1===k){var e=Kv(w.current,!1,E,C);O(2),M(e)}else!function(){try{if(document.activeElement===w.current){var e=w.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;w.current.setSelectionRange(t,n),w.current.scrollTop=r}}catch(e){}}()}),[k]);var A=r.useRef(),T=function(){Fe.cancel(A.current)};r.useEffect((function(){return T}),[]);var F=S?I:null,B=j(j({},u),F);return 0!==k&&1!==k||(B.overflowY="hidden",B.overflowX="hidden"),r.createElement(ke,{onResize:function(e){2===k&&(null==c||c(e),l&&(T(),A.current=Fe((function(){_()}))))},disabled:!(l||c)},r.createElement("textarea",m({},g,{ref:w,style:B,className:p(o,s,R({},"".concat(o,"-disabled"),d)),disabled:d,value:b,onChange:function(e){y(e.target.value),null==f||f(e)}})))})),Qv=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Zv=e.forwardRef((function(t,n){var r,o=t.defaultValue,i=t.value,a=t.onFocus,l=t.onBlur,c=t.onChange,s=t.allowClear,u=t.maxLength,d=t.onCompositionStart,f=t.onCompositionEnd,v=t.suffix,g=t.prefixCls,h=void 0===g?"rc-textarea":g,b=t.showCount,y=t.count,w=t.className,x=t.style,E=t.disabled,C=t.hidden,S=t.classNames,$=t.styles,k=t.onResize,O=t.onClear,N=t.onPressEnter,P=t.readOnly,I=t.autoSize,M=t.onKeyDown,_=et(t,Qv),A=De(Qo(o,{value:i,defaultValue:o}),2),T=A[0],F=A[1],B=null==T?"":String(T),z=De(e.useState(!1),2),D=z[0],L=z[1],H=e.useRef(!1),V=De(e.useState(null),2),W=V[0],q=V[1],X=e.useRef(null),G=e.useRef(null),K=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},U=function(){K().focus()};e.useImperativeHandle(n,(function(){var e;return{resizableTextArea:G.current,focus:U,blur:function(){K().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||K()}})),e.useEffect((function(){L((function(e){return!E&&e}))}),[E]);var Y=De(e.useState(null),2),Q=Y[0],Z=Y[1];e.useEffect((function(){var e;Q&&(e=K()).setSelectionRange.apply(e,Re(Q))}),[Q]);var J,ee=yv(y,b),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(B),oe=!!te&&re>te,ie=function(e,t){var n=t;!H.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Z([K().selectionStart||0,K().selectionEnd||0]),F(n),gv(e.currentTarget,e,c,n)},ae=v;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:B,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:p("".concat(h,"-data-count"),null==S?void 0:S.count),style:null==$?void 0:$.count},J)));var le=!I&&!b&&!s;return e.createElement(hv,{ref:X,value:B,allowClear:s,handleReset:function(e){F(""),U(),gv(K(),e,c)},suffix:ae,prefixCls:h,classNames:j(j({},S),{},{affixWrapper:p(null==S?void 0:S.affixWrapper,R(R({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),s))}),disabled:E,focused:D,className:p(w,oe&&"".concat(h,"-out-of-range")),style:j(j({},x),W&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:C,readOnly:P,onClear:O},e.createElement(Yv,m({},_,{autoSize:I,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null==M||M(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){L(!0),null==a||a(e)},onBlur:function(e){L(!1),null==l||l(e)},onCompositionStart:function(e){H.current=!0,null==d||d(e)},onCompositionEnd:function(e){H.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:p(null==S?void 0:S.textarea),style:j(j({},null==$?void 0:$.textarea),{},{resize:null==x?void 0:x.resize}),disabled:E,prefixCls:h,onResize:function(e){var t;null==k||k(e),null!==(t=K())&&void 0!==t&&t.style.height&&q(!0)},ref:G,readOnly:P})))})),Jv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const eg=e.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:m,style:v,styles:g,variant:h}=e,b=Jv(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=dr("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:w,textArea:x}=r.useContext(_o),E=Wl(l),C=r.useContext(Fo),S=null!=c?c:C,{status:$,hasFeedback:k,feedbackIcon:O}=r.useContext(iu),N=ud($,s),P=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=P.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=P.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.blur()}}}));const I=y("input",i),R=rl(I),[M,j,_]=$m(I,R),[A,T]=dd("textArea",h,a),F=Ev(null!=u?u:null==x?void 0:x.allowClear);return M(r.createElement(Zv,Object.assign({autoComplete:null==x?void 0:x.autoComplete},b,{style:Object.assign(Object.assign({},null==x?void 0:x.style),v),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:F,className:p(_,R,m,f,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:p({[`${I}-sm`]:"small"===E,[`${I}-lg`]:"large"===E},j,null==d?void 0:d.textarea,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:p({[`${I}-${A}`]:T},sd(I,N)),affixWrapper:p(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:"rtl"===w,[`${I}-affix-wrapper-sm`]:"small"===E,[`${I}-affix-wrapper-lg`]:"large"===E,[`${I}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},j)}),prefixCls:I,suffix:k&&r.createElement("span",{className:`${I}-textarea-suffix`},O),ref:P})))})),tg=$v;tg.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(_o),{prefixCls:i,className:a}=t,l=n("input-group",i),c=n("input"),[s,u]=$m(c),d=p(l,{[`${l}-lg`]:"large"===t.size,[`${l}-sm`]:"small"===t.size,[`${l}-compact`]:t.compact,[`${l}-rtl`]:"rtl"===o},u,a),f=e.useContext(iu),m=e.useMemo((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){dr("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(r.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},r.createElement(iu.Provider,{value:m},t.children)))},tg.Search=Wv,tg.TextArea=eg,tg.Password=Hv,tg.OTP=Mv;const ng=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},rg=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:m,motionDurationSlow:v,fontSize:g,borderRadius:h,bodyBg:b,headerBg:y,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:xt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},ng(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:xt(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:g,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}};var og=ki("Layout",(e=>[rg(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ig=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ag(e){let{suffixCls:t,tagName:n,displayName:o}=e;return e=>{const i=r.forwardRef(((o,i)=>r.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},o))));return"production"!==process.env.NODE_ENV&&(i.displayName=o),i}}const lg=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:i,tagName:a}=e,l=ig(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=r.useContext(_o),s=c("layout",n),[u,d,f]=og(s),m=o?`${s}-${o}`:s;return u(r.createElement(a,Object.assign({className:p(n||m,i,d,f),ref:t},l)))})),cg=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(_o),[o,i]=r.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=e,m=Oe(ig(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:v,layout:g}=r.useContext(_o),h=v("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||x(t).some((e=>e.type===Np))}(o,s,u),[y,w,E]=og(h),C=p(h,{[`${h}-has-sider`]:b,[`${h}-rtl`]:"rtl"===n},null==g?void 0:g.className,l,c,w,E),S=r.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Re(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return y(r.createElement(Cp.Provider,{value:S},r.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},null==g?void 0:g.style),f)},m),s)))})),sg=ag({tagName:"div",displayName:"Layout"})(cg),ug=ag({suffixCls:"header",tagName:"header",displayName:"Header"})(lg),dg=ag({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(lg),fg=ag({suffixCls:"content",tagName:"main",displayName:"Content"})(lg),pg=sg;function mg(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}pg.Header=ug,pg.Footer=dg,pg.Content=fg,pg.Sider=Np,pg._InternalSiderContext=kp;mg(".appInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n &:hover {\n .ant-input {\n border-color: #d9d9d9;\n }\n }\n\n &:has(.ant-input-affix-wrapper) {\n .ant-input {\n border: none !important;\n height: unset !important;\n }\n }\n .ant-input-affix-wrapper {\n height: 40px;\n display: flex;\n align-items: center;\n .ant-input-outlined:focus-within {\n box-shadow: unset !important;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #d9d9d9;\n }\n &:focus {\n box-shadow: unset;\n }\n &:focus-within {\n box-shadow: unset;\n border-color: #d9d9d9;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");mg(".appButton {\n width: max-content;\n\n .ant-btn {\n background-color: red;\n padding: 12px;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");mg('.sideBar {\n height: 100vh;\n .sider {\n height: 100%;\n .ant-layout-sider-children {\n height: 100%;\n display: flex;\n flex-direction: column;\n row-gap: 2.875rem;\n .ant-menu {\n border: none;\n }\n }\n }\n}\n\n.logo {\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px;\n}\n\n.menu {\n border-right: 0;\n}\n\n.footer {\n position: relative;\n &::before {\n content: "";\n height: 1px;\n width: 80%;\n position: absolute;\n top: 0;\n right: 50%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #acacac;\n }\n}\n\n.tag {\n margin-left: 8px;\n}\n');var vg=pg.Sider;mg(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");mg(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");exports.AppButton=function(e){var t=e.type,n=e.size,r=e.className,o=e.handleClick,i=e.icon,a=e.text,l=e.disabled,c=e.iconPosition,s=e.isLoading;return d.jsx("div",{className:"appButton ".concat(r),children:d.jsx(Dc,{disabled:l,type:t,className:["customBtn",i?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:n,onClick:o,icon:i,loading:s,children:a})})},exports.AppInput=function(t){var n=t.className,r=t.label,o=t.name,i=t.value,a=t.dataTestId,l=t.type,c=t.id,s=t.disabled,u=t.handleChange,f=t.onClick,p=t.defaultValue,m=t.onPressEnter,v=t.isAutoFocus,g=t.triggerFocus,h=t.isOptional,b=t.errorMessage,y=t.suffixIcon,w=t.prefixIcon,x=e.useRef(null);e.useEffect((function(){v&&x.current&&x.current.focus()}),[g,v]);var E=h?"".concat(r," (optional)"):r;return d.jsxs("div",{className:"appInput ".concat(n),children:[d.jsx(tg,{type:l,"data-test-id":a,id:c,disabled:s,name:o,className:"input",value:i,onChange:u,onClick:f,defaultValue:p,onPressEnter:m,placeholder:E,ref:x,prefix:w&&w,suffix:y&&y}),b&&d.jsx("div",{className:"error",children:b})]})},exports.AppSidebar=function(e){var t=e.links,n=e.logo,r=e.footerLinks,o=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:d.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&d.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==r?void 0:r.map((function(e){return{key:e.path,label:d.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return d.jsx("div",{className:"sideBar ".concat(o),children:d.jsxs(vg,{className:"sider",children:[d.jsx("div",{className:"logo",children:n}),d.jsx(Zp,{mode:"inline",className:"menu",items:a}),r&&d.jsx("div",{className:"footer",children:d.jsx(Zp,{mode:"inline",items:l})})]})})},exports.AppTab=function(e){var t=e.className,n=e.items,r=e.handleChange,o=e.defaultActiveKey;return d.jsx("div",{className:"appTab ".concat(t),children:d.jsx(mv,{defaultActiveKey:o,items:n,onChange:r,className:"tab"})})},exports.AppTextarea=function(e){var t=e.id,n=e.placeholder,r=e.name,o=e.value,i=e.dataTestId,a=e.defaultValue,l=e.onPressEnter,c=e.handleChange,s=e.rows,u=e.cols,f=e.className,p=e.error;return d.jsxs("div",{className:"appTextArea ".concat(f),children:[d.jsx(tg.TextArea,{"data-test-id":i,id:t,name:r,placeholder:n,value:o,className:"textArea",onChange:c,defaultValue:a,onPressEnter:l,rows:s,cols:u}),p&&d.jsx("div",{className:"error",children:p})]})};
25
+ */"production"===process.env.NODE_ENV?m.exports=function(){if(g)return v;g=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case o:case i:case r:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}return e=Symbol.for("react.module.reference"),v.ContextConsumer=s,v.ContextProvider=a,v.Element=t,v.ForwardRef=c,v.Fragment=o,v.Lazy=h,v.Memo=f,v.Portal=n,v.Profiler=i,v.StrictMode=r,v.Suspense=u,v.SuspenseList=d,v.isAsyncMode=function(){return!1},v.isConcurrentMode=function(){return!1},v.isContextConsumer=function(e){return m(e)===s},v.isContextProvider=function(e){return m(e)===a},v.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},v.isForwardRef=function(e){return m(e)===c},v.isFragment=function(e){return m(e)===o},v.isLazy=function(e){return m(e)===h},v.isMemo=function(e){return m(e)===f},v.isPortal=function(e){return m(e)===n},v.isProfiler=function(e){return m(e)===i},v.isStrictMode=function(e){return m(e)===r},v.isSuspense=function(e){return m(e)===u},v.isSuspenseList=function(e){return m(e)===d},v.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},v.typeOf=m,v}():m.exports=(b||(b=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case o:case i:case r:case u:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case s:case c:case h:case f:case a:return m;default:return p}}case n:return p}}}e=Symbol.for("react.module.reference");var m=s,v=a,b=t,x=c,w=o,C=h,E=f,S=n,k=i,O=r,_=u,$=d,M=!1,N=!1;y.ContextConsumer=m,y.ContextProvider=v,y.Element=b,y.ForwardRef=x,y.Fragment=w,y.Lazy=C,y.Memo=E,y.Portal=S,y.Profiler=k,y.StrictMode=O,y.Suspense=_,y.SuspenseList=$,y.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isContextConsumer=function(e){return g(e)===s},y.isContextProvider=function(e){return g(e)===a},y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},y.isForwardRef=function(e){return g(e)===c},y.isFragment=function(e){return g(e)===o},y.isLazy=function(e){return g(e)===h},y.isMemo=function(e){return g(e)===f},y.isPortal=function(e){return g(e)===n},y.isProfiler=function(e){return g(e)===i},y.isStrictMode=function(e){return g(e)===r},y.isSuspense=function(e){return g(e)===u},y.isSuspenseList=function(e){return g(e)===d},y.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},y.typeOf=g}()),y);var x=m.exports;function w(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?o=o.concat(w(e)):x.isFragment(e)&&e.props?o=o.concat(w(e.props.children,n)):o.push(e))})),o}var C={},E=[];function S(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function k(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function O(){C={}}function _(e,t,n){t||C[n]||(e(!1,n),C[n]=!0)}function $(e,t){_(S,e,t)}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function N(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=M(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}function P(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){return e instanceof HTMLElement||e instanceof SVGElement}function j(n){var o,r=function(e){return e&&"object"===M(e)&&T(e.nativeElement)?e.nativeElement:T(e)?e:null}(n);return r||(n instanceof e.Component?null===(o=t.findDOMNode)||void 0===o?void 0:o.call(t,n):null)}function A(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}$.preMessage=function(e){E.push(e)},$.resetWarned=O,$.noteOnce=function(e,t){_(k,e,t)};var D=function(e,t){"function"==typeof e?e(t):"object"===M(e)&&e&&"current"in e&&(e.current=t)},L=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){D(t,e)}))}},z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A((function(){return L.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},B=function(e){var t,n,o=x.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===x.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===x.ForwardRef)};Number(e.version.split(".")[0]);var F=o.createContext(null);var H=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),V="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,W="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),X="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(W):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var q=["top","right","bottom","left","width","height","size","weight"],U="undefined"!=typeof MutationObserver,Y=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){X(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){V&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),U?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){V&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;q.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),G=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},K=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||W},Z=oe(0,0,0,0);function Q(e){return parseFloat(e)||0}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Q(e["border-"+n+"-width"])}),0)}function ee(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Z;var o=K(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Q(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=Q(o.width),l=Q(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=J(o,"left","right")+i),Math.round(l+a)!==n&&(l-=J(o,"top","bottom")+a)),!function(e){return e===K(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return oe(r.left,r.top,s,l)}var te="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof K(e).SVGGraphicsElement}:function(e){return e instanceof K(e).SVGElement&&"function"==typeof e.getBBox};function ne(e){return V?te(e)?function(e){var t=e.getBBox();return oe(0,0,t.width,t.height)}(e):ee(e):Z}function oe(e,t,n,o){return{x:e,y:t,width:n,height:o}}var re=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=oe(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ne(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ie=function(e,t){var n,o,r,i,a,s,l,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),G(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);G(this,{target:e,contentRect:c})},ae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new H,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof K(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new re(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof K(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ie(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),se="undefined"!=typeof WeakMap?new WeakMap:new H,le=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Y.getInstance(),o=new ae(t,n,this);se.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){le.prototype[e]=function(){var t;return(t=se.get(this))[e].apply(t,arguments)}}));var ce=void 0!==W.ResizeObserver?W.ResizeObserver:le,ue=new Map;function de(e){e.forEach((function(e){var t,n=e.target;null===(t=ue.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var fe=new ce(de);function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,N(o.key),o)}}function ge(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}function ve(e,t){if("function"!=typeof t&&null!==t)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&&me(e,t)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ye=function(){return!!e})()}function xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(e){var t=ye();return function(){var n,o=be(e);if(t){var r=be(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xe(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ce=function(){ve(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ee(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),s=o.useContext(F),l="function"==typeof n,c=l?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&o.isValidElement(c)&&B(c),f=d?c.ref:null,h=z(f,i),p=function(){var e;return j(i.current)||(i.current&&"object"===M(i.current)?j(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||j(a.current)};o.useImperativeHandle(t,(function(){return p()}));var g=o.useRef(e);g.current=e;var m=o.useCallback((function(e){var t=g.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var h={width:d,height:f,offsetWidth:l,offsetHeight:c};u.current=h;var p=l===Math.round(i)?i:l,m=c===Math.round(a)?a:c,v=R(R({},h),{},{offsetWidth:p,offsetHeight:m});null==s||s(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e=p();return e&&!r&&function(e,t){ue.has(e)||(ue.set(e,new Set),fe.observe(e)),ue.get(e).add(t)}(e,m),function(){return function(e,t){ue.has(e)&&(ue.get(e).delete(t),ue.get(e).size||(fe.unobserve(e),ue.delete(e)))}(e,m)}}),[i.current,r]),o.createElement(Ce,{ref:a},d?o.cloneElement(c,{ref:h}):c)}var Se=o.forwardRef(Ee);"production"!==process.env.NODE_ENV&&(Se.displayName="SingleObserver");function ke(e,t){var n=e.children,r="function"==typeof n?[n]:w(n);return"production"!==process.env.NODE_ENV&&(r.length>1?S(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&S(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(n,r){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(Se,p({},e,{key:i,ref:0===r?t:void 0}),n)}))}var Oe=o.forwardRef(ke);function _e(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Me(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ne(e,t){if(e){if("string"==typeof e)return $e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(e,t):void 0}}function Pe(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||Me(e)||Ne(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(Oe.displayName="ResizeObserver"),Oe.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(F),s=o.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(F.Provider,{value:s},t)};var Ie=function(e){return+setTimeout(e,16)},Re=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ie=function(e){return window.requestAnimationFrame(e)},Re=function(e){return window.cancelAnimationFrame(e)});var Te=0,je=new Map;function Ae(e){je.delete(e)}var De=function(e){var t=Te+=1;return function n(o){if(0===o)Ae(t),e();else{var r=Ie((function(){n(o-1)}));je.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Le(e){if(Array.isArray(e))return e}function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(e,t){return Le(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Ne(e,t)||ze()}function Fe(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function He(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ve(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}De.cancel=function(e){var t=je.get(e);return Ae(e),Re(t)},"production"!==process.env.NODE_ENV&&(De.ids=function(){return je});var We="data-rc-order",Xe="data-rc-priority",qe="rc-util-key",Ue=new Map;function Ye(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ke(e){return Array.from((Ue.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(We,a),s&&i&&l.setAttribute(Xe,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Ge(t),u=c.firstChild;if(o){if(s){var d=(t.styles||Ke(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(We)))return!1;var t=Number(e.getAttribute(Xe)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ge(t);return(t.styles||Ke(n)).find((function(n){return n.getAttribute(Ye(t))===e}))}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qe(e,t);n&&Ge(t).removeChild(n)}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ge(n),r=Ke(o),i=R(R({},n),{},{styles:r});!function(e,t){var n=Ue.get(e);if(!n||!Ve(document,n)){var o=Ze("",t),r=o.parentNode;Ue.set(e,r),e.removeChild(o)}}(o,i);var a=Qe(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ze(e,i);return u.setAttribute(Ye(i),t),u}function tt(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if($(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],r[l],s))return!1;return!0}if(t&&r&&"object"===M(t)&&"object"===M(r)){var c=Object.keys(t);return c.length===Object.keys(r).length&&c.every((function(n){return e(t[n],r[n],s)}))}return!1}(e,t)}var ot="%";function rt(e){return e.join(ot)}var it=function(){function e(t){he(this,e),P(this,"instanceId",void 0),P(this,"cache",new Map),this.instanceId=t}return ge(e,[{key:"get",value:function(e){return this.opGet(rt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(rt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),at="data-token-hash",st="data-css-hash",lt="data-cache-path",ct="__cssinjs_instance__";var ut=o.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(st,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ct]=t[ct]||e,t[ct]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(st,"]"))).forEach((function(t){var n,r=t.getAttribute(st);o[r]?t[ct]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new it(e)}(),defaultCache:!0});var dt=function(){function e(){he(this,e),P(this,"cache",void 0),P(this,"keys",void 0),P(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ge(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r?r=null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):r=void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=Be(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Be(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();P(dt,"MAX_CACHE_SIZE",20),P(dt,"MAX_CACHE_OFFSET",5);var ft=0,ht=function(){function e(t){he(this,e),P(this,"derivatives",void 0),P(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ft,0===t.length&&S(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ft+=1}return ge(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),pt=new dt;function gt(e){var t=Array.isArray(e)?e:[e];return pt.has(t)||pt.set(t,new ht(t)),pt.get(t)}var mt=new WeakMap,vt={};var bt=new WeakMap;function yt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=bt.get(e)||"";return n||(Object.keys(e).forEach((function(o){var r=e[o];n+=o,r instanceof ht?n+=r.id:r&&"object"===M(r)?n+=yt(r,t):n+=r})),t&&(n=Fe(n)),bt.set(e,n)),n}function xt(e,t){return Fe("".concat(t,"_").concat(yt(e,!0)))}var wt=He();function Ct(e){return"number"==typeof e?"".concat(e,"px"):e}function Et(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=R(R({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},P(P({},at,t),st,n)),r=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(r,">").concat(e,"</style>")}var St=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},kt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Be(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Ot=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=Be(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])r[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=St(s,null==n?void 0:n.prefix);o[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),r[s]="var(".concat(u,")")}})),[r,kt(o,t,{scope:null==n?void 0:n.scope})]},_t="test"!==process.env.NODE_ENV&&He()?o.useLayoutEffect:o.useEffect,$t=function(e,t){var n=o.useRef(!0);_t((function(){return e(n.current)}),t),_t((function(){return n.current=!1,function(){n.current=!0}}),[])},Mt=function(e,t){$t((function(t){if(!t)return e()}),t)},Nt=R({},o).useInsertionEffect,Pt=Nt?function(e,t,n){return Nt((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),$t((function(){return t(!0)}),n)},It=void 0!==R({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&S(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var Rt=!1;var Tt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Rt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var jt=window;if("function"==typeof jt.webpackHotUpdate){var At=jt.webpackHotUpdate;jt.webpackHotUpdate=function(){return Rt=!0,setTimeout((function(){Rt=!1}),0),At.apply(void 0,arguments)}}}function Dt(e,t,n,r,i){var a=o.useContext(ut).cache,s=rt([e].concat(Pe(t))),l=It([s]),c=Tt(),u=function(e){a.opUpdate(s,(function(t){var o=Be(t||[void 0,void 0],2),i=o[0],a=void 0===i?0:i,s=o[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==r||r(l,c),l=null);var u=[a,l||n()];return e?e(u):u}))};o.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var f=d[1];return Pt((function(){null==i||i(f)}),(function(e){return u((function(t){var n=Be(t,2),o=n[0],r=n[1];return e&&0===o&&(null==i||i(f)),[o+1,r]})),function(){a.opUpdate(s,(function(t){var n=Be(t||[],2),o=n[0],i=void 0===o?0:o,c=n[1];return 0===i-1?(l((function(){!e&&a.opGet(s)||null==r||r(c,!1)})),null):[i-1,c]}))}}),[s]),f}var Lt={},zt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Bt=new Map;var Ft=0;function Ht(e,t){Bt.set(e,(Bt.get(e)||0)-1);var n=Array.from(Bt.keys()),o=n.filter((function(e){return(Bt.get(e)||0)<=0}));n.length-o.length>Ft&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(at,'="').concat(e,'"]')).forEach((function(e){var n;e[ct]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Bt.delete(e)}))}var Vt=function(e,t,n,o){var r=R(R({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},Wt="token";function Xt(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.useContext(ut),i=r.cache.instanceId,a=r.container,s=o.salt,l=void 0===s?"":s,c=o.override,u=void 0===c?Lt:c,d=o.formatToken,f=o.getComputedToken,h=o.cssVar,p=function(e,t){for(var n=mt,o=0;o<t.length;o+=1){var r=t[o];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(vt)||n.set(vt,e()),n.get(vt)}((function(){return Object.assign.apply(Object,[{}].concat(Pe(n)))}),n),g=yt(p),m=yt(u),v=h?yt(h):"",b=Dt(Wt,[l,t.id,g,m,v],(function(){var e,n=f?f(p,u,t):Vt(p,u,t,d),o=R({},n),r="";if(h){var i=Be(Ot(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],r=i[1]}var a=xt(n,l);n._tokenKey=a,o._tokenKey=xt(o,l);var s=null!==(e=null==h?void 0:h.key)&&void 0!==e?e:a;n._themeKey=s,function(e){Bt.set(e,(Bt.get(e)||0)+1)}(s);var c="".concat(zt,"-").concat(Fe(a));return n._hashId=c,[n,c,o,r,(null==h?void 0:h.key)||""]}),(function(e){Ht(e[0]._themeKey,i)}),(function(e){var t=Be(e,4),n=t[0],o=t[3];if(h&&o){var r=et(o,Fe("css-variables-".concat(n._themeKey)),{mark:st,prepend:"queue",attachTo:a,priority:-999});r[ct]=i,r.setAttribute(at,n._themeKey)}}));return b}var qt={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},Ut="comm",Yt="rule",Gt="decl",Kt="@import",Zt="@keyframes",Qt="@layer",Jt=Math.abs,en=String.fromCharCode;function tn(e){return e.trim()}function nn(e,t,n){return e.replace(t,n)}function on(e,t,n){return e.indexOf(t,n)}function rn(e,t){return 0|e.charCodeAt(t)}function an(e,t,n){return e.slice(t,n)}function sn(e){return e.length}function ln(e,t){return t.push(e),e}var cn=1,un=1,dn=0,fn=0,hn=0,pn="";function gn(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:cn,column:un,length:a,return:"",siblings:s}}function mn(){return hn=fn>0?rn(pn,--fn):0,un--,10===hn&&(un=1,cn--),hn}function vn(){return hn=fn<dn?rn(pn,fn++):0,un++,10===hn&&(un=1,cn++),hn}function bn(){return rn(pn,fn)}function yn(){return fn}function xn(e,t){return an(pn,e,t)}function wn(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 Cn(e){return tn(xn(fn-1,kn(91===e?e+2:40===e?e+1:e)))}function En(e){for(;(hn=bn())&&hn<33;)vn();return wn(e)>2||wn(hn)>3?"":" "}function Sn(e,t){for(;--t&&vn()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return xn(e,yn()+(t<6&&32==bn()&&32==vn()))}function kn(e){for(;vn();)switch(hn){case e:return fn;case 34:case 39:34!==e&&39!==e&&kn(hn);break;case 40:41===e&&kn(e);break;case 92:vn()}return fn}function On(e,t){for(;vn()&&e+hn!==57&&(e+hn!==84||47!==bn()););return"/*"+xn(t,fn-1)+"*"+en(47===e?e:vn())}function _n(e){for(;!wn(bn());)vn();return xn(e,fn)}function $n(e){return function(e){return pn="",e}(Mn("",null,null,null,[""],e=function(e){return cn=un=1,dn=sn(pn=e),fn=0,[]}(e),0,[0],e))}function Mn(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,g=1,m=1,v=1,b=0,y="",x=r,w=i,C=o,E=y;m;)switch(p=b,b=vn()){case 40:if(108!=p&&58==rn(E,d-1)){-1!=on(E+=nn(Cn(b),"&","&\f"),"&\f",Jt(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:E+=Cn(b);break;case 9:case 10:case 13:case 32:E+=En(p);break;case 92:E+=Sn(yn()-1,7);continue;case 47:switch(bn()){case 42:case 47:ln(Pn(On(vn(),yn()),t,n,l),l),5!=wn(p||1)&&5!=wn(bn()||1)||!sn(E)||" "===an(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:s[c++]=sn(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(E=nn(E,/\f/g,"")),h>0&&(sn(E)-d||0===g&&47===p)&&ln(h>32?In(E+";",o,n,d-1,l):In(nn(E," ","")+";",o,n,d-2,l),l);break;case 59:E+=";";default:if(ln(C=Nn(E,t,n,c,u,r,s,y,x=[],w=[],d,i),i),123===b)if(0===u)Mn(E,t,C,C,x,i,d,s,w);else switch(99===f&&110===rn(E,3)?100:f){case 100:case 108:case 109:case 115:Mn(e,C,C,o&&ln(Nn(e,C,C,0,0,r,s,y,r,x=[],d,w),w),r,w,d,s,o?x:w);break;default:Mn(E,C,C,C,[""],w,0,s,w)}}c=u=h=0,g=v=1,y=E="",d=a;break;case 58:d=1+sn(E),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==mn())continue;switch(E+=en(b),b*g){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(sn(E)-1)*v,v=1;break;case 64:45===bn()&&(E+=Cn(vn())),f=bn(),u=d=sn(y=E+=_n(yn())),b++;break;case 45:45===p&&2==sn(E)&&(g=0)}}return i}function Nn(e,t,n,o,r,i,a,s,l,c,u,d){for(var f=r-1,h=0===r?i:[""],p=function(e){return e.length}(h),g=0,m=0,v=0;g<o;++g)for(var b=0,y=an(e,f+1,f=Jt(m=a[g])),x=e;b<p;++b)(x=tn(m>0?h[b]+" "+y:nn(y,/&\f/g,h[b])))&&(l[v++]=x);return gn(e,t,n,0===r?Yt:s,l,c,u,d)}function Pn(e,t,n,o){return gn(e,t,n,Ut,en(hn),an(e,2,-2),0,o)}function In(e,t,n,o,r){return gn(e,t,n,Gt,an(e,0,o),an(e,o+1,-1),o,r)}function Rn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Tn(e,t,n,o){switch(e.type){case Qt:if(e.children.length)break;case Kt:case Gt:return e.return=e.return||e.value;case Ut:return"";case Zt:return e.return=e.value+"{"+Rn(e.children,o)+"}";case Yt:if(!sn(e.value=e.props.join(",")))return""}return sn(n=Rn(e.children,o))?e.return=e.value+"{"+n+"}":""}function jn(e,t){var n=t.path,o=t.parentSelectors;$(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var An,Dn=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&jn("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Ln=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&jn("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},zn="data-ant-cssinjs-cache-path",Bn="_FILE_STYLE__",Fn=!0;function Hn(e){return function(){if(!An&&(An={},He())){var e=document.createElement("div");e.className=zn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Be(e.split(":"),2),n=t[0],o=t[1];An[n]=o}));var n,o=document.querySelector("style[".concat(zn,"]"));o&&(Fn=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!An[e]}var Vn="_skip_check_",Wn="_multi_value_";function Xn(e){return Rn($n(e),Tn).replace(/\{%%%\:[^;];}/g,";")}function qn(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Pe(n.slice(1))).join(" ")})).join(",")}var Un=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,h=n.linters,p=void 0===h?[]:h,g="",m={};function v(t){var o=t.getName(s);if(!m[o]){var r=Be(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];m[o]="@keyframes ".concat(t.getName(s)).concat(r)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var o="string"!=typeof t||r?t:{};if("string"==typeof o)g+="".concat(o,"\n");else if(o._keyframe)v(o);else{var l=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(l).forEach((function(t){var o=l[t];if("object"!==M(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===M(e)&&e&&(Vn in e||Wn in e)}(o)){var d;function E(e,t){"production"===process.env.NODE_ENV||"object"===M(o)&&null!=o&&o[Vn]||[Dn,Ln].concat(Pe(p)).forEach((function(n){return n(e,t,{path:c,hashId:s,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;qt[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(s)),g+="".concat(n,":").concat(r,";")}var f=null!==(d=null==o?void 0:o.value)&&void 0!==d?d:o;"object"===M(o)&&null!=o&&o[Wn]&&Array.isArray(f)?f.forEach((function(e){E(t,e)})):E(t,f)}else{var h=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?h=!0:b=qn("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=Be(e(o,n,{root:y,injectHash:h,parentSelectors:[].concat(Pe(a),[b])}),2),w=x[0],C=x[1];m=R(R({},m),C),g+="".concat(b).concat(w)}}))}})),r?l&&(g="@layer ".concat(l.name," {").concat(g,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,m]};function Yn(e,t){return Fe("".concat(e.join("%")).concat(t))}function Gn(){return null}var Kn="style";function Zn(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=void 0===c?0:c,d=o.useContext(ut),f=d.autoClear,h=d.mock,g=d.defaultCache,m=d.hashPriority,v=d.container,b=d.ssrInline,y=d.transformers,x=d.linters,w=d.cache,C=d.layer,E=n._tokenKey,S=[E];C&&S.push("layer"),S.push.apply(S,Pe(r));var k=wt;"production"!==process.env.NODE_ENV&&void 0!==h&&(k="client"===h);var O=Dt(Kn,S,(function(){var e=S.join("|");if(Hn(e)){var n=function(e){var t=An[e],n=null;if(t&&He())if(Fn)n=Bn;else{var o=document.querySelector("style[".concat(st,'="').concat(An[e],'"]'));o?n=o.innerHTML:delete An[e]}return[n,t]}(e),o=Be(n,2),s=o[0],c=o[1];if(s)return[s,E,c,{},l,u]}var d=t(),f=Be(Un(d,{hashId:i,hashPriority:m,layer:C?a:void 0,path:r.join("-"),transformers:y,linters:x}),2),h=f[0],p=f[1],g=Xn(h),v=Yn(S,g);return[g,E,v,p,l,u]}),(function(e,t){var n=Be(e,3)[2];(t||f)&&wt&&Je(n,{mark:st})}),(function(e){var t=Be(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(k&&n!==Bn){var i={mark:st,prepend:!C&&"queue",attachTo:v,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var l=[],c=[];Object.keys(r).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){et(Xn(r[e]),"_layer-".concat(e),R(R({},i),{},{prepend:!0}))}));var d=et(n,o,i);d[ct]=w.instanceId,d.setAttribute(at,E),"production"!==process.env.NODE_ENV&&d.setAttribute(lt,S.join("|")),c.forEach((function(e){et(Xn(r[e]),"_effect-".concat(e),i)}))}})),_=Be(O,3),$=_[0],M=_[1],N=_[2];return function(e){var t;return t=b&&!k&&g?o.createElement("style",p({},P(P({},at,M),st,N),{dangerouslySetInnerHTML:{__html:$}})):o.createElement(Gn,null),o.createElement(o.Fragment,null,t,e)}}var Qn="cssVar";P(P(P({},Kn,(function(e,t,n){var o=Be(e,6),r=o[0],i=o[1],a=o[2],s=o[3],l=o[4],c=o[5],u=(n||{}).plain;if(l)return null;var d=r,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Et(r,i,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Et(Xn(s[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Wt,(function(e,t,n){var o=Be(e,5),r=o[2],i=o[3],a=o[4],s=(n||{}).plain;if(!i)return null;var l=r._tokenKey;return[-999,l,Et(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Qn,(function(e,t,n){var o=Be(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,Et(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Jn=function(){function e(t,n){he(this,e),P(this,"name",void 0),P(this,"style",void 0),P(this,"_keyframe",!0),this.name=t,this.style=n}return ge(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eo(e){return e.notSplit=!0,e}eo(["borderTop","borderBottom"]),eo(["borderTop"]),eo(["borderBottom"]),eo(["borderLeft","borderRight"]),eo(["borderLeft"]),eo(["borderRight"]);var to=e.createContext({});function no(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function oo(e,t,n,o){if(!t.length)return n;var r,i,a=Le(r=t)||Me(r)||Ne(r)||ze(),s=a[0],l=a.slice(1);return i=e||"number"!=typeof s?Array.isArray(e)?Pe(e):R({},e):[],o&&void 0===n&&1===l.length?delete i[s][l[0]]:i[s]=oo(i[s],l,n,o),i}function ro(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!no(e,t.slice(0,-1))?e:oo(e,t,n,o)}function io(e){return Array.isArray(e)?[]:{}}var ao="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function so(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=io(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=no(e,n),l=Array.isArray(s);if(l||"object"===M(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=no(o,n);l?o=ro(o,n,[]):c&&"object"===M(c)||(o=ro(o,n,io(s))),ao(s).forEach((function(e){t([].concat(Pe(n),[e]),a)}))}}else o=ro(o,n,s)}([])})),o}function lo(){}let co=null;let uo=lo;"production"!==process.env.NODE_ENV&&(uo=(e,t,n)=>{$(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(co=null,O())});const fo=o.createContext({}),ho="production"!==process.env.NODE_ENV?e=>{const{strict:t}=o.useContext(fo),n=(n,o,r)=>{if(!n)if(!1===t&&"deprecated"===o){const t=co;co||(co={}),co[e]=co[e]||[],co[e].includes(r||"")||co[e].push(r||""),t||console.warn("[antd] There exists deprecated usage in your code:",co)}else"production"!==process.env.NODE_ENV&&uo(n,e,r)};return n.deprecated=(e,t,o,r)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${o}\` instead.${r?` ${r}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=lo,e};var po=uo,go=e.createContext(void 0),mo=R(R({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 vo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},bo={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"]},mo),timePickerLocale:Object.assign({},vo)},yo="${label} is not a valid ${type}",xo={locale:"en",Pagination:{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"},DatePicker:bo,TimePicker:vo,Calendar:bo,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:yo,method:yo,array:yo,object:yo,number:yo,date:yo,boolean:yo,integer:yo,float:yo,regexp:yo,email:yo,url:yo,hex:yo},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},xo.Modal);let wo=[];const Co=()=>wo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),xo.Modal);const Eo=e.createContext(void 0),So="internalMark",ko=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=ho("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===So,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}o.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return wo.push(t),Co(),()=>{wo=wo.filter((e=>e!==t)),Co()}}Object.assign({},xo.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=o.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return o.createElement(Eo.Provider,{value:i},n)};function Oo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function _o(e){return Math.min(1,Math.max(0,e))}function $o(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mo(e){return e<=1?"".concat(100*Number(e),"%"):e}function No(e){return 1===e.length?"0"+e:String(e)}function Po(e,t,n){e=Oo(e,255),t=Oo(t,255),n=Oo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,s=(o+r)/2;if(o===r)a=0,i=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function Io(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ro(e,t,n){e=Oo(e,255),t=Oo(t,255),n=Oo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,s=o-r,l=0===o?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function To(e,t,n,o){var r=[No(Math.round(e).toString(16)),No(Math.round(t).toString(16)),No(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function jo(e){return Ao(e)/255}function Ao(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(ko.displayName="LocaleProvider");var Do={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 Lo(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Do[e])e=Do[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Ho.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Ho.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Ho.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Ho.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Ho.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Ho.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Ho.hex8.exec(e),n)return{r:Ao(n[1]),g:Ao(n[2]),b:Ao(n[3]),a:jo(n[4]),format:t?"name":"hex8"};if(n=Ho.hex6.exec(e),n)return{r:Ao(n[1]),g:Ao(n[2]),b:Ao(n[3]),format:t?"name":"hex"};if(n=Ho.hex4.exec(e),n)return{r:Ao(n[1]+n[1]),g:Ao(n[2]+n[2]),b:Ao(n[3]+n[3]),a:jo(n[4]+n[4]),format:t?"name":"hex8"};if(n=Ho.hex3.exec(e),n)return{r:Ao(n[1]+n[1]),g:Ao(n[2]+n[2]),b:Ao(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Vo(e.r)&&Vo(e.g)&&Vo(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Oo(t,255),g:255*Oo(n,255),b:255*Oo(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Vo(e.h)&&Vo(e.s)&&Vo(e.v)?(a=Mo(e.s),s=Mo(e.v),r=function(e,t,n){e=6*Oo(e,360),t=Oo(t,100),n=Oo(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=o%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):Vo(e.h)&&Vo(e.s)&&Vo(e.l)&&(a=Mo(e.s),l=Mo(e.l),r=function(e,t,n){var o,r,i;if(e=Oo(e,360),t=Oo(t,100),n=Oo(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;o=Io(s,a,e+1/3),r=Io(s,a,e),i=Io(s,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=$o(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var zo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Bo="[\\s|\\(]+(".concat(zo,")[,|\\s]+(").concat(zo,")[,|\\s]+(").concat(zo,")\\s*\\)?"),Fo="[\\s|\\(]+(".concat(zo,")[,|\\s]+(").concat(zo,")[,|\\s]+(").concat(zo,")[,|\\s]+(").concat(zo,")\\s*\\)?"),Ho={CSS_UNIT:new RegExp(zo),rgb:new RegExp("rgb"+Bo),rgba:new RegExp("rgba"+Fo),hsl:new RegExp("hsl"+Bo),hsla:new RegExp("hsla"+Fo),hsv:new RegExp("hsv"+Bo),hsva:new RegExp("hsva"+Fo),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 Vo(e){return Boolean(Ho.CSS_UNIT.exec(String(e)))}var Wo=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=Lo(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=$o(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Ro(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Ro(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Po(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Po(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),To(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i,a=[No(Math.round(e).toString(16)),No(Math.round(t).toString(16)),No(Math.round(n).toString(16)),No((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&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("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},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 e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Oo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Oo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+To(this.r,this.g,this.b,!1),t=0,n=Object.entries(Do);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=_o(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=_o(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=_o(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=_o(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Xo=2,qo=.16,Uo=.05,Yo=.05,Go=.15,Ko=5,Zo=4,Qo=[{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 Jo(e){var t=Ro(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function er(e){var t=e.r,n=e.g,o=e.b;return"#".concat(To(t,n,o,!1))}function tr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Xo*t:Math.round(e.h)+Xo*t:n?Math.round(e.h)+Xo*t:Math.round(e.h)-Xo*t)<0?o+=360:o>=360&&(o-=360),o}function nr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-qo*t:t===Zo?e.s+qo:e.s+Uo*t)>1&&(o=1),n&&t===Ko&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function or(e,t,n){var o;return(o=n?e.v+Yo*t:e.v-Go*t)>1&&(o=1),Number(o.toFixed(2))}function rr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Lo(e),r=Ko;r>0;r-=1){var i=Jo(o),a=er(Lo({h:tr(i,r,!0),s:nr(i,r,!0),v:or(i,r,!0)}));n.push(a)}n.push(er(o));for(var s=1;s<=Zo;s+=1){var l=Jo(o),c=er(Lo({h:tr(l,s),s:nr(l,s),v:or(l,s)}));n.push(c)}return"dark"===t.theme?Qo.map((function(e){var o,r,i,a=e.index,s=e.opacity;return er((o=Lo(t.backgroundColor||"#141414"),r=Lo(n[a]),i=100*s/100,{r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var ir={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"},ar=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ar.primary=ar[5];var sr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];sr.primary=sr[5];var lr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];lr.primary=lr[5];var cr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];cr.primary=cr[5];var ur=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ur.primary=ur[5];var dr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];dr.primary=dr[5];var fr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fr.primary=fr[5];var hr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hr.primary=hr[5];var pr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];pr.primary=pr[5];var gr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];gr.primary=gr[5];var mr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];mr.primary=mr[5];var vr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];vr.primary=vr[5];var br=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];br.primary=br[5];var yr={red:ar,volcano:sr,orange:lr,gold:cr,yellow:ur,lime:dr,green:fr,cyan:hr,blue:pr,geekblue:gr,purple:mr,magenta:vr,grey:br};const xr={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"},wr=Object.assign(Object.assign({},xr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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,motion:!0});const Cr=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function Er(e){return(e+8)/e}const Sr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Er(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};const kr=(e,t)=>new Wo(e).setAlpha(t).toRgbString(),Or=(e,t)=>new Wo(e).darken(t).toHexString(),_r=e=>{const t=rr(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]}},$r=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:kr(o,.88),colorTextSecondary:kr(o,.65),colorTextTertiary:kr(o,.45),colorTextQuaternary:kr(o,.25),colorFill:kr(o,.15),colorFillSecondary:kr(o,.06),colorFillTertiary:kr(o,.04),colorFillQuaternary:kr(o,.02),colorBgLayout:Or(n,4),colorBgContainer:Or(n,0),colorBgElevated:Or(n,0),colorBgSpotlight:kr(o,.85),colorBgBlur:"transparent",colorBorder:Or(n,15),colorBorderSecondary:Or(n,6)}};const Mr=gt((function(e){ir.pink=ir.magenta,yr.pink=yr.magenta;const t=Object.keys(xr).map((t=>{const n=e[t]===ir[t]?yr[t]:rr(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(r),h=n(i),p=n(a),g=n(s),m=o(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[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],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Wo("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:_r,generateNeutralColorPalettes:$r})),Sr(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},Cr(o))}(e))})),Nr={token:wr,override:{override:wr},hashed:!0},Pr=e.createContext(Nr),Ir="ant",Rr="anticon",Tr=["outlined","borderless","filled"],jr=o.createContext({getPrefixCls:(e,t)=>t||(e?`${Ir}-${e}`:Ir),iconPrefixCls:Rr}),Ar=`-ant-${Date.now()}-${Math.random()}`;function Dr(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Wo(e),i=rr(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Wo(t.primaryColor),i=rr(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Wo(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);He()?et(n,`${Ar}-dynamic-theme`):"production"!==process.env.NODE_ENV&&po(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Lr=o.createContext(!1),zr=e=>{let{children:t,disabled:n}=e;const r=o.useContext(Lr);return o.createElement(Lr.Provider,{value:null!=n?n:r},t)},Br=o.createContext(void 0),Fr=e=>{let{children:t,size:n}=e;const r=o.useContext(Br);return o.createElement(Br.Provider,{value:n||r},t)};var Hr=ge((function e(){he(this,e)})),Vr="CALC_UNIT",Wr=new RegExp(Vr,"g");function Xr(e){return"number"==typeof e?"".concat(e).concat(Vr):e}var qr=function(){ve(t,Hr);var e=we(t);function t(n,o){var r;he(this,t),P(xe(r=e.call(this)),"result",""),P(xe(r),"unitlessCssVar",void 0),P(xe(r),"lowPriority",void 0);var i=M(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=Xr(n):"string"===i&&(r.result=n),r}return ge(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Xr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Xr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(o=!1),this.result=this.result.replace(Wr,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Ur=function(){ve(t,Hr);var e=we(t);function t(n){var o;return he(this,t),P(xe(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return ge(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),Yr=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Gr(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}function Kr(e){var t=o.useRef(!1),n=Be(o.useState(e),2),r=n[0],i=n[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function Zr(e){return void 0!==e}function Qr(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=Be(Kr((function(){return Zr(r)?r:Zr(o)?"function"==typeof o?o():o:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==r?r:l,d=a?a(u):u,f=Gr(i),h=Be(Kr([u]),2),p=h[0],g=h[1];return Mt((function(){var e=p[0];l!==e&&f(l,e)}),[p]),Mt((function(){Zr(r)||c(r)}),[r]),[d,Gr((function(e,t){c(e,t),g([u],t)}))]}function Jr(e,t,n,o){var r=R({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=Be(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&$(!(null!=r&&r[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=r&&r[i]||null!=r&&r[a])&&(null!==(n=r[a])&&void 0!==n||(r[a]=null==r?void 0:r[i]))}));var i=R(R({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var ei="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,ti=!0;function ni(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ei)return Object.assign.apply(Object,[{}].concat(t));ti=!1;var o={};return t.forEach((function(e){"object"===M(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ti=!0,o}var oi={};function ri(){}function ii(e,t,n){var o;return"function"==typeof n?n(ni(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var ai=function(){function e(){he(this,e),P(this,"map",new Map),P(this,"objectIDMap",new WeakMap),P(this,"nextID",0),P(this,"lastAccessBeat",new Map),P(this,"accessBeat",0)}return ge(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===M(e)?"obj_".concat(t.getObjectID(e)):"".concat(M(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))})),this.accessBeat=0}}}]),e}(),si=new ai;var li=function(){return{}};const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var ui="5.20.5";function di(e){return e>=0&&e<=255}function fi(e,t){const{r:n,g:o,b:r,a:i}=new Wo(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Wo(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((o-s*(1-e))/e),c=Math.round((r-l*(1-e))/e);if(di(t)&&di(i)&&di(c))return new Wo({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Wo({r:n,g:o,b:r,a:1}).toRgbString()}var hi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function pi(e){const{override:t}=e,n=hi(e,["override"]),o=Object.assign({},t);Object.keys(wr).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o),i=1200,a=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:fi(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:fi(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:fi(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:fi(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Wo("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Wo("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Wo("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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)"}),o)}var gi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},vi={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},bi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},yi=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=gi(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=pi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=gi(n,["theme"]);let i=r;o&&(i=yi(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function xi(){const{token:t,hashed:n,theme:o,override:r,cssVar:i}=e.useContext(Pr),a=`${ui}-${n||""}`,s=o||Mr,[l,c,u]=Xt(s,[wr,t],{salt:a,override:r,getComputedToken:yi,formatToken:pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:mi,ignore:vi,preserve:bi}});return[s,u,n?c:"",l,i]}const wi=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Ci={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Si=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ki=e=>({outline:`${Ct(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Oi=e=>({"&:focus-visible":Object.assign({},ki(e))}),_i=(e,t)=>{const[n,o]=xi();return Zn({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:$i,genComponentStyleHook:Mi,genSubStyleComponent:Ni}=function(t){var n=t.useCSP,o=void 0===n?li:n,r=t.useToken,i=t.usePrefix,a=t.getResetStyles,s=t.getCommonStyle,l=t.getCompUnitless;function c(t,n,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Be(u,1)[0],f=u.join("-");return function(t){var u,h,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,g=r(),m=g.theme,v=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,w=i(),C=w.rootPrefixCls,E=w.iconPrefixCls,S=o(),k=x?"css":"js",O=(u=function(){var e=new Set;return x&&Object.keys(c.unitless||{}).forEach((function(t){e.add(St(t,x.prefix)),e.add(St(t,Yr(d,x.prefix)))})),function(e,t){var n="css"===e?qr:Ur;return function(e){return new n(e,t)}}(k,e)},h=[k,d,null==x?void 0:x.prefix],e.useMemo((function(){var e=si.get(h);if(e)return e;var t=u();return si.set(h,t),t}),h)),_=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return Ct(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return Ct(e)})).join(","),")")}}}(k),$=_.max,N=_.min,P={theme:m,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:c.clientOnly,layer:{name:"antd"},order:c.order||-999};Zn(R(R({},P),{},{clientOnly:!1,path:["Shared",C]}),(function(){return"function"==typeof a?a(y):[]}));var I=Zn(R(R({},P),{},{path:[f,t,E]}),(function(){if(!1===c.injectStyle)return[];var e=function(e){var t,n=e,o=ri;return ei&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return ti&&t.add(n),e[n]}}),o=function(e,n){var o;oi[e]={global:Array.from(t),component:R(R({},null===(o=oi[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=e.token,r=e.flush,i=ii(d,v,l),a=".".concat(t),u=Jr(d,v,i,{deprecatedTokens:c.deprecatedTokens});x&&"object"===M(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(St(e,Yr(d,x.prefix)),")")}));var f=ni(o,{componentCls:a,prefixCls:t,iconCls:".".concat(E),antCls:".".concat(C),calc:O,max:$,min:N},x?i:u),h=n(f,{hashId:b,prefixCls:t,rootPrefixCls:C,iconPrefixCls:E});r(d,u);var g="function"==typeof s?s(f,t,p,c.resetFont):null;return[!1===c.resetStyle?null:g,h]}));return[I,b]}}return{genStyleHooks:function(t,n,o,i){var a=Array.isArray(t)?t[0]:t;function s(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=R(R({},"function"==typeof l?l(t):{}),{},P({},s("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[s(e)]=u[e]}));var f=R(R({},i),{},{unitless:d,prefixToken:s}),h=c(t,n,o,f),p=function(t,n,o){var i=o.unitless,a=o.injectStyle,s=void 0===a||a,l=o.prefixToken,c=o.ignore,u=function(a){var s=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=r().realToken;return function(t,n){var o=t.key,r=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=void 0===l?"":l,u=e.useContext(ut),d=u.cache.instanceId,f=u.container,h=s._tokenKey,p=[].concat(Pe(t.path),[o,c,h]),g=Dt(Qn,p,(function(){var e=n(),t=Be(Ot(e,o,{prefix:r,unitless:i,ignore:a,scope:c}),2),s=t[0],l=t[1];return[s,l,Yn(p,l),o]}),(function(e){var t=Be(e,3)[2];wt&&Je(t,{mark:st})}),(function(e){var t=Be(e,3),n=t[1],r=t[2];if(n){var i=et(n,r,{mark:st,prepend:"queue",attachTo:f,priority:-999});i[ct]=d,i.setAttribute(at,o)}}))}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:c,token:f,scope:s},(function(){var e=ii(t,f,n),r=Jr(t,f,e,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(e).forEach((function(e){r[l(e)]=r[e],delete r[e]})),r})),null},d=function(n){var o=r().cssVar;return[function(r){return s&&o?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:o,component:t}),r):r},null==o?void 0:o.key]};return d}(a,o,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Be(h(e,t),2)[1],o=Be(p(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=c(e,t,n,R({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),r=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(r.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),r},genComponentStyleHook:c}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(jr);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,o,r]=xi();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(jr);return _i(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":Si(e)}],getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==o&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[r]:a})}},getCompUnitless:()=>mi});function Pi(e,t){return ci.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const Ii=Object.assign({},o),{useId:Ri}=Ii,Ti=void 0===Ri?()=>"":Ri;var ji=["children"],Ai=o.createContext({});function Di(e){var t=e.children,n=tt(e,ji);return o.createElement(Ai.Provider,{value:n},t)}var Li=function(){ve(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){return this.props.children}}]),t}();var zi="none",Bi="appear",Fi="enter",Hi="leave",Vi="none",Wi="prepare",Xi="start",qi="active",Ui="end",Yi="prepared";function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Ki=function(e,t){var n={animationend:Gi("Animation","AnimationEnd"),transitionend:Gi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(He(),"undefined"!=typeof window?window:{}),Zi={};if(He()){var Qi=document.createElement("div");Zi=Qi.style}var Ji={};function ea(e){if(Ji[e])return Ji[e];var t=Ki[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Zi)return Ji[e]=t[i],Ji[e]}return""}var ta=ea("animationend"),na=ea("transitionend"),oa=!(!ta||!na),ra=ta||"animationend",ia=na||"transitionend";function aa(e,t){if(!e)return null;if("object"===M(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var sa=function(t){var n=e.useRef();function r(e){e&&(e.removeEventListener(ia,t),e.removeEventListener(ra,t))}return o.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(ia,t),e.addEventListener(ra,t),n.current=e)},r]},la=He()?e.useLayoutEffect:e.useEffect,ca=[Wi,Xi,qi,Ui],ua=[Wi,Yi],da=!1,fa=!0;function ha(e){return e===qi||e===Ui}var pa=function(e,t,n){var r=Be(Kr(Vi),2),i=r[0],a=r[1],s=function(){var e=o.useRef(null);function t(){De.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=De((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),l=Be(s,2),c=l[0],u=l[1];var d=t?ua:ca;return la((function(){if(i!==Vi&&i!==Ui){var e=d.indexOf(i),t=d[e+1],o=n(i);o===da?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,i]),o.useEffect((function(){return function(){u()}}),[]),[function(){a(Wi,!0)},i]};function ga(t,n,r,i){var a,s,l,c=i.motionEnter,u=void 0===c||c,d=i.motionAppear,f=void 0===d||d,h=i.motionLeave,p=void 0===h||h,g=i.motionDeadline,m=i.motionLeaveImmediately,v=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,x=i.onAppearStart,w=i.onEnterStart,C=i.onLeaveStart,E=i.onAppearActive,S=i.onEnterActive,k=i.onLeaveActive,O=i.onAppearEnd,_=i.onEnterEnd,$=i.onLeaveEnd,M=i.onVisibleChanged,N=Be(Kr(),2),I=N[0],T=N[1],j=(a=zi,s=Be(o.useReducer((function(e){return e+1}),0),2)[1],l=o.useRef(a),[Gr((function(){return l.current})),Gr((function(e){l.current="function"==typeof e?e(l.current):e,s()}))]),A=Be(j,2),D=A[0],L=A[1],z=Be(Kr(null),2),B=z[0],F=z[1],H=D(),V=e.useRef(!1),W=e.useRef(null);function X(){return r()}var q=e.useRef(!1);function U(){L(zi),F(null,!0)}var Y=Gr((function(e){var t=D();if(t!==zi){var n=X();if(!e||e.deadline||e.target===n){var o,r=q.current;t===Bi&&r?o=null==O?void 0:O(n,e):t===Fi&&r?o=null==_?void 0:_(n,e):t===Hi&&r&&(o=null==$?void 0:$(n,e)),r&&!1!==o&&U()}}})),G=Be(sa(Y),1)[0],K=function(e){switch(e){case Bi:return P(P(P({},Wi,v),Xi,x),qi,E);case Fi:return P(P(P({},Wi,b),Xi,w),qi,S);case Hi:return P(P(P({},Wi,y),Xi,C),qi,k);default:return{}}},Z=o.useMemo((function(){return K(H)}),[H]),Q=Be(pa(H,!t,(function(e){if(e===Wi){var t=Z[Wi];return t?t(X()):da}var n;ee in Z&&F((null===(n=Z[ee])||void 0===n?void 0:n.call(Z,X(),null))||null);return ee===qi&&H!==zi&&(G(X()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){Y({deadline:!0})}),g))),ee===Yi&&U(),fa})),2),J=Q[0],ee=Q[1],te=ha(ee);q.current=te,la((function(){T(n);var e,o=V.current;V.current=!0,!o&&n&&f&&(e=Bi),o&&n&&u&&(e=Fi),(o&&!n&&p||!o&&m&&!n&&p)&&(e=Hi);var r=K(e);e&&(t||r[Wi])?(L(e),J()):L(zi)}),[n]),e.useEffect((function(){(H===Bi&&!f||H===Fi&&!u||H===Hi&&!p)&&L(zi)}),[f,u,p]),e.useEffect((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ne=o.useRef(!1);e.useEffect((function(){I&&(ne.current=!0),void 0!==I&&H===zi&&((ne.current||I)&&(null==M||M(I)),ne.current=!0)}),[I,H]);var oe=B;return Z[Wi]&&ee===Xi&&(oe=R({transition:"none"},oe)),[H,ee,oe,null!=I?I:n]}var ma=function(t){var n=t;"object"===M(t)&&(n=t.transitionSupport);var r=o.forwardRef((function(t,r){var i=t.visible,a=void 0===i||i,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,p=t.eventProps,g=function(e,t){return!(!e.motionName||!n||!1===t)}(t,o.useContext(Ai).motion),m=e.useRef(),v=e.useRef();var b=Be(ga(g,a,(function(){try{return m.current instanceof HTMLElement?m.current:j(v.current)}catch(e){return null}}),t),4),y=b[0],x=b[1],w=b[2],C=b[3],E=o.useRef(C);C&&(E.current=!0);var S,k=o.useCallback((function(e){m.current=e,D(r,e)}),[r]),O=R(R({},p),{},{visible:a});if(u)if(y===zi)S=C?u(R({},O),k):!l&&E.current&&f?u(R(R({},O),{},{className:f}),k):c||!l&&!f?u(R(R({},O),{},{style:{display:"none"}}),k):null;else{var _;x===Wi?_="prepare":ha(x)?_="active":x===Xi&&(_="start");var $=aa(d,"".concat(y,"-").concat(_));S=u(R(R({},O),{},{className:h(aa(d,y),P(P({},$,$&&_),d,"string"==typeof d)),style:w}),k)}else S=null;o.isValidElement(S)&&B(S)&&(S.ref||(S=o.cloneElement(S,{ref:k})));return o.createElement(Li,{ref:v},S)}));return r.displayName="CSSMotion",r}(oa),va="add",ba="keep",ya="remove",xa="removed";function wa(e){var t;return R(R({},t=e&&"object"===M(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ca(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(wa)}var Ea=["component","children","onVisibleChanged","onAllRemoved"],Sa=["status"],ka=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oa(e){const{children:t}=e,[,n]=xi(),{motion:r}=n,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(Di,{motion:r},t):t}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ma,t=function(){ve(n,o.Component);var t=we(n);function n(){var e;he(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(xe(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),P(xe(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:R(R({},e),{},{status:xa})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==xa})).length})),e}return ge(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged,l=r.onAllRemoved,c=tt(r,Ea),u=i||o.Fragment,d={};return ka.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,o.createElement(u,c,n.map((function(n,r){var i=n.status,c=tt(n,Sa),u=i===va||i===ba;return o.createElement(e,p({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){(null==s||s(e,{key:c.key}),e)||0===t.removeKey(c.key)&&l&&l()}}),(function(e,t){return a(R(R({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Ca(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=Ca(e),a=Ca(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return R(R({},e),{},{status:va})}))),o=i),n.push(R(R({},s),{},{status:ba})),o+=1,t=!0;break}}t||n.push(R(R({},e),{},{status:ya}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return R(R({},e),{},{status:va})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==ya}))).forEach((function(t){t.key===e&&(t.status=ba)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==xa||e.status!==ya}))}}}]),n}();P(t,"defaultProps",{component:"div"})}(oa);const _a=o.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return ho("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(_a.displayName="PropWarning");var $a="production"!==process.env.NODE_ENV?_a:()=>null,Ma=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let Na=!1;process.env.NODE_ENV;const Pa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ia;const Ra=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:g,legacyLocale:m,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:E,calendar:S,carousel:k,cascader:O,collapse:_,typography:$,checkbox:M,descriptions:N,divider:P,drawer:I,skeleton:R,steps:T,image:j,layout:D,list:L,mentions:z,modal:B,progress:F,result:H,slider:V,breadcrumb:W,menu:X,pagination:q,input:U,textArea:Y,empty:G,badge:K,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:he,rangePicker:pe,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee}=e,Se=o.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||v.getPrefixCls("");return t?`${r}-${t}`:r}),[v.getPrefixCls,e.prefixCls]),ke=b||v.iconPrefixCls||Rr,Oe=n||v.csp;_i(ke,Oe);const _e=function(e,t,n){var o,r;const i=ho("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Nr),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:Nr.hashed,cssVar:null==t?void 0:t.cssVar}),l=Ti();if("production"!==process.env.NODE_ENV){const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||l);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return A((()=>{var o,r;if(!e)return t;const i=Object.assign({},s.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(o=a.cssVar)&&void 0!==o?o:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:i,cssVar:u})}),[a,s],((e,t)=>e.some(((e,n)=>!nt(e,t[n],!0)))))}(y,v.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Na=Na||!!_e);const $e={csp:Oe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:l||m,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=p?p:h,popupOverflow:g,getPrefixCls:Se,iconPrefixCls:ke,theme:_e,segmented:w,statistic:C,spin:E,calendar:S,carousel:k,cascader:O,collapse:_,typography:$,checkbox:M,descriptions:N,divider:P,drawer:I,skeleton:R,steps:T,image:j,input:U,textArea:Y,layout:D,list:L,mentions:z,modal:B,progress:F,result:H,slider:V,breadcrumb:W,menu:X,pagination:q,empty:G,badge:K,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:he,rangePicker:pe,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee};if("production"!==process.env.NODE_ENV){ho("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Me=Object.assign({},v);Object.keys($e).forEach((e=>{void 0!==$e[e]&&(Me[e]=$e[e])})),Pa.forEach((t=>{const n=e[t];n&&(Me[t]=n)})),void 0!==r&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const Ne=A((()=>Me),Me,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),Pe=o.useMemo((()=>({prefixCls:ke,csp:Oe})),[ke,Oe]);let Ie=o.createElement(o.Fragment,null,o.createElement($a,{dropdownMatchSelectWidth:h}),t);const Re=o.useMemo((()=>{var e,t,n,o;return so((null===(e=xo.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ne.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Ne.form)||void 0===o?void 0:o.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Ne,null==s?void 0:s.validateMessages]);Object.keys(Re).length>0&&(Ie=o.createElement(go.Provider,{value:Re},Ie)),l&&(Ie=o.createElement(ko,{locale:l,_ANT_MARK__:So},Ie)),(ke||Oe)&&(Ie=o.createElement(to.Provider,{value:Pe},Ie)),c&&(Ie=o.createElement(Fr,{size:c},Ie)),Ie=o.createElement(Oa,null,Ie);const Te=o.useMemo((()=>{const e=_e||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=Ma(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?gt(t):Mr,s={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"==typeof o.algorithm)&&(o.theme=gt(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},wr),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[_e]);return y&&(Ie=o.createElement(Pr.Provider,{value:Te},Ie)),Ne.warning&&(Ie=o.createElement(fo.Provider,{value:Ne.warning},Ie)),void 0!==x&&(Ie=o.createElement(zr,{disabled:x},Ie)),o.createElement(jr.Provider,{value:Ne},Ie)},Ta=e=>{const t=o.useContext(jr),n=o.useContext(Eo);return o.createElement(Ra,Object.assign({parentContext:t,legacyLocale:n},e))};function ja(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Aa(e){return function(e){return ja(e)instanceof ShadowRoot}(e)?ja(e):null}function Da(e){return"object"===M(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===M(e.icon)||"function"==typeof e.icon)}function La(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o,r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[(o=n,o.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=r;return t}),{})}function za(t,n,o){return o?e.createElement(t.tag,R(R({key:n},La(t.attrs)),o),(t.children||[]).map((function(e,o){return za(e,"".concat(n,"-").concat(t.tag,"-").concat(o))}))):e.createElement(t.tag,R({key:n},La(t.attrs)),(t.children||[]).map((function(e,o){return za(e,"".concat(n,"-").concat(t.tag,"-").concat(o))})))}function Ba(e){return rr(e)[0]}function Fa(e){return e?Array.isArray(e)?e:[e]:[]}Ta.ConfigContext=jr,Ta.SizeContext=Br,Ta.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(Ia=t),o&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)&&("production"!==process.env.NODE_ENV&&po(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Dr(Ia||Ir,o))},Ta.useConfig=function(){return{componentDisabled:e.useContext(Lr),componentSize:e.useContext(Br)}},Object.defineProperty(Ta,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&po(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Br)}),"production"!==process.env.NODE_ENV&&(Ta.displayName="ConfigProvider");var Ha=["icon","className","onClick","style","primaryColor","secondaryColor"],Va={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Wa=function(t){var n,r,i,a,s,l,c,u=t.icon,d=t.className,f=t.onClick,h=t.style,p=t.primaryColor,g=t.secondaryColor,m=tt(t,Ha),v=o.useRef(),b=Va;if(p&&(b={primaryColor:p,secondaryColor:g||Ba(p)}),n=v,r=e.useContext(to),i=r.csp,a=r.prefixCls,s="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(s=s.replace(/anticon/g,a)),e.useEffect((function(){var e=Aa(n.current);et(s,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),l=Da(u),c="icon should be icon definiton, but got ".concat(u),$(l,"[@ant-design/icons] ".concat(c)),!Da(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=R(R({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),za(y.icon,"svg-".concat(y.name),R(R({className:d,onClick:f,style:h,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:v}))};function Xa(e){var t=Be(Fa(e),2),n=t[0],o=t[1];return Wa.setTwoToneColors({primaryColor:n,secondaryColor:o})}Wa.displayName="IconReact",Wa.getTwoToneColors=function(){return R({},Va)},Wa.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Va.primaryColor=t,Va.secondaryColor=n||Ba(t),Va.calculated=!!n};var qa=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Xa(pr.primary);var Ua=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=tt(e,qa),d=o.useContext(to),f=d.prefixCls,g=void 0===f?"anticon":f,m=d.rootClassName,v=h(m,g,P(P({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!i||"loading"===r.name),n),b=s;void 0===b&&l&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=Be(Fa(c),2),w=x[0],C=x[1];return o.createElement("span",p({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:v}),o.createElement(Wa,{icon:r,primaryColor:w,secondaryColor:C,style:y}))}));Ua.displayName="AntdIcon",Ua.getTwoToneColor=function(){var e=Wa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ua.setTwoToneColor=Xa;var Ya={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Ga=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Ya}))},Ka=o.forwardRef(Ga);"production"!==process.env.NODE_ENV&&(Ka.displayName="CloseCircleFilled");var Za={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Qa=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Za}))},Ja=o.forwardRef(Qa);"production"!==process.env.NODE_ENV&&(Ja.displayName="CloseOutlined");var es="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function ts(e,t){return 0===e.indexOf(t)}function ns(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:R({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ts(n,"aria-"))||t.data&&ts(n,"data-")||t.attr&&es.includes(n))&&(o[n]=e[n])})),o}function os(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const rs=(t,n,o)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof o?o(t.props||{}):o):n;function is(e,t){return rs(e,e,t)}const as=e=>{const[,,,,t]=xi();return t?`${e}-css-var`:""};var ss={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ss.F1&&t<=ss.F12)return!1;switch(t){case ss.ALT:case ss.CAPS_LOCK:case ss.CONTEXT_MENU:case ss.CTRL:case ss.DOWN:case ss.END:case ss.ESC:case ss.HOME:case ss.INSERT:case ss.LEFT:case ss.MAC_FF_META:case ss.META:case ss.NUMLOCK:case ss.NUM_CENTER:case ss.PAGE_DOWN:case ss.PAGE_UP:case ss.PAUSE:case ss.PRINT_SCREEN:case ss.RIGHT:case ss.SHIFT:case ss.UP:case ss.WIN_KEY:case ss.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ss.ZERO&&e<=ss.NINE)return!0;if(e>=ss.NUM_ZERO&&e<=ss.NUM_MULTIPLY)return!0;if(e>=ss.A&&e<=ss.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ss.SPACE:case ss.QUESTION_MARK:case ss.NUM_PLUS:case ss.NUM_MINUS:case ss.NUM_PERIOD:case ss.NUM_DIVISION:case ss.SEMICOLON:case ss.DASH:case ss.EQUALS:case ss.COMMA:case ss.PERIOD:case ss.SLASH:case ss.APOSTROPHE:case ss.SINGLE_QUOTE:case ss.OPEN_SQUARE_BRACKET:case ss.BACKSLASH:case ss.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ls={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"},cs=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:ls}))},us=o.forwardRef(cs);"production"!==process.env.NODE_ENV&&(us.displayName="LoadingOutlined");const ds=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(ds.displayName="zIndexContext");const fs=100,hs={Modal:fs,Drawer:fs,Popover:fs,Popconfirm:fs,Tooltip:fs,Tour:fs},ps={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function gs(t,n){const[,o]=xi(),r=e.useContext(ds),i=function(e){return e in hs}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=r?r:0;e+=i?(r?0:o.zIndexPopupBase)+hs[t]:ps[t],a=[void 0===r?n:e,e]}if("production"!==process.env.NODE_ENV){const e=ho(t),r=o.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&e(void 0!==n||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function ms(){ms=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new P(o||[]);return r(a,"_invoke",{value:O(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(I([])));C&&C!==n&&o.call(C,a)&&(x=C);var E=y.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,i,a,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==M(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function O(t,n,o){var r=f;return function(i,a){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=_(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=p;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?g:h,c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=g,o.method="throw",o.arg=c.arg)}}}function _(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(M(t)+" is not iterable")}return b.prototype=y,r(E,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},S(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new k(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=I,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;N(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function vs(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function bs(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){vs(i,o,r,a,s,"next",e)}function s(e){vs(i,o,r,a,s,"throw",e)}a(void 0)}))}}var ys,xs=R({},r),ws=xs.version,Cs=xs.render,Es=xs.unmountComponentAtNode;try{Number((ws||"").split(".")[0])>=18&&(ys=xs.createRoot)}catch(e){}function Ss(e){var t=xs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===M(t)&&(t.usingClientEntryPoint=e)}var ks="__rc_react_root__";function Os(e,t){ys?function(e,t){Ss(!0);var n=t[ks]||ys(t);Ss(!1),n.render(e),t[ks]=n}(e,t):function(e,t){Cs(e,t)}(e,t)}function _s(e){return $s.apply(this,arguments)}function $s(){return($s=bs(ms().mark((function e(t){return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ks])||void 0===e||e.unmount(),delete t[ks]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ms(e){Es(e)}function Ns(){return(Ns=bs(ms().mark((function e(t){return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ys){e.next=2;break}return e.abrupt("return",_s(t));case 2:Ms(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Ps=()=>({height:0,opacity:0}),Is=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Rs=e=>({height:e?e.offsetHeight:0}),Ts=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,js=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ir}-motion-collapse`,onAppearStart:Ps,onEnterStart:Ps,onAppearActive:Is,onEnterActive:Is,onLeaveStart:Rs,onLeaveActive:Ps,onAppearEnd:Ts,onEnterEnd:Ts,onLeaveEnd:Ts,motionDeadline:500}},As=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Ds=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1};const Ls=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var zs=Mi("Wave",(e=>[Ls(e)]));const Bs=`${Ir}-wave-target`;function Fs(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(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])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Hs(e){return Number.isNaN(e)?0:e}const Vs=e=>{const{className:t,target:n,component:r}=e,i=o.useRef(null),[a,s]=o.useState(null),[l,c]=o.useState([]),[u,d]=o.useState(0),[f,p]=o.useState(0),[g,m]=o.useState(0),[v,b]=o.useState(0),[y,x]=o.useState(!1),w={left:u,top:f,width:g,height:v,borderRadius:l.map((e=>`${e}px`)).join(" ")};function C(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Fs(t)?t:Fs(n)?n:Fs(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;d(t?n.offsetLeft:Hs(-parseFloat(o))),p(t?n.offsetTop:Hs(-parseFloat(r))),m(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>Hs(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),o.useEffect((()=>{if(n){const e=De((()=>{C(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(n)),()=>{De.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const E=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Bs));return o.createElement(ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return Ns.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return o.createElement("div",{ref:L(i,n),className:h(t,r,{"wave-quick":E}),style:w})}))},Ws=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Os(o.createElement(Vs,Object.assign({},t,{target:e})),i)},Xs=(e,t,n)=>{const{wave:r}=o.useContext(jr),[,i,a]=xi(),s=Gr((o=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${Bs}`)||s,{showEffect:c}=r||{};(c||Ws)(l,{className:t,token:i,component:n,event:o,hashId:a})})),l=o.useRef();return e=>{De.cancel(l.current),l.current=De((()=>{s(e)}))}},qs=t=>{const{children:n,disabled:o,component:r}=t,{getPrefixCls:i}=e.useContext(jr),a=e.useRef(null),s=i("wave"),[,l]=zs(s),c=Xs(a,h(s,l),r);if(e.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!Ds(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!e.isValidElement(n))return null!=n?n:null;return is(n,{ref:B(n)?L(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(qs.displayName="Wave");const Us=t=>{const n=e.useContext(Br);return e.useMemo((()=>t?"string"==typeof t?null!=t?t:n:t instanceof Function?t(n):n:n),[t,n])},Ys=o.createContext(null),Gs=(e,t)=>{const n=o.useContext(Ys),r=o.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return h(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},Ks=e=>{let{children:t}=e;return o.createElement(Ys.Provider,{value:null},t)};var Zs=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Qs=o.createContext(void 0),Js=/^[\u4e00-\u9fa5]{2}$/,el=Js.test.bind(Js);function tl(e){return"string"==typeof e}function nl(e){return"text"===e||"link"===e}function ol(t,n){let o=!1;const r=[];return e.Children.forEach(t,(e=>{const t=typeof e,n="string"===t||"number"===t;if(o&&n){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);o=n})),e.Children.map(r,(t=>function(t,n){if(null==t)return;const o=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&tl(t.type)&&el(t.props.children)?is(t,{children:t.props.children.split("").join(o)}):tl(t)?el(t)?e.createElement("span",null,t.split("").join(o)):e.createElement("span",null,t):os(t)?e.createElement("span",null,t):t}(t,n)))}const rl=e.forwardRef(((t,n)=>{const{className:o,style:r,children:i,prefixCls:a}=t,s=h(`${a}-icon`,o);return e.createElement("span",{ref:n,className:s,style:r},i)})),il=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=t,s=h(`${o}-loading-icon`,r);return e.createElement(rl,{prefixCls:o,className:s,style:i,ref:n},e.createElement(us,{className:a}))})),al=()=>({width:0,opacity:0,transform:"scale(0)"}),sl=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ll=t=>{const{prefixCls:n,loading:o,existIcon:r,className:i,style:a}=t,s=!!o;return r?e.createElement(il,{prefixCls:n,className:i,style:a}):e.createElement(ma,{visible:s,motionName:`${n}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:al,onAppearActive:sl,onEnterStart:al,onEnterActive:sl,onLeaveStart:sl,onLeaveActive:al},((t,o)=>{let{className:r,style:s}=t;return e.createElement(il,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),s),ref:o,iconClassName:r})}))},cl=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ul=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},cl(`${t}-primary`,r),cl(`${t}-danger`,i)]}},dl=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return ni(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},fl=e=>{var t,n,o,r,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Er(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Er(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Er(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},hl=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ct(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Oi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},pl=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),gl=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ml=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),vl=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),bl=(e,t,n,o,r,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},pl(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),yl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},vl(e))}),xl=e=>Object.assign({},yl(e)),wl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Cl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xl(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),pl(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),bl(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},pl(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),yl(e))}),El=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xl(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),pl(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),bl(e.componentCls,e.ghostBg,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({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},pl(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),bl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yl(e))}),Sl=e=>Object.assign(Object.assign({},Cl(e)),{borderStyle:"dashed"}),kl=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},pl(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),wl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},pl(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),wl(e))}),Ol=e=>Object.assign(Object.assign(Object.assign({},pl(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),wl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},wl(e)),pl(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),_l=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Cl(e),[`${t}-primary`]:El(e),[`${t}-dashed`]:Sl(e),[`${t}-link`]:kl(e),[`${t}-text`]:Ol(e),[`${t}-ghost`]:bl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},$l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:r,lineHeight:i,height:o,padding:`${Ct(c)} ${Ct(s)}`,borderRadius:a,[`&${u}`]:{width:o,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:gl(e)},{[`${n}${n}-round${t}`]:ml(e)}]},Ml=e=>{const t=ni(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return $l(t,e.componentCls)},Nl=e=>{const t=ni(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $l(t,`${e.componentCls}-sm`)},Pl=e=>{const t=ni(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $l(t,`${e.componentCls}-lg`)},Il=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Rl=$i("Button",(e=>{const t=dl(e);return[hl(t),Ml(t),Nl(t),Pl(t),Il(t),_l(t),ul(t)]}),fl,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Tl(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",s=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function jl(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Al(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},Tl(e,o,t)),jl(n,o,t))}}function Dl(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ll(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Dl(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const zl=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Ct(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Ct(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Bl=Ni(["Button","compact"],(e=>{const t=dl(e);return[Al(t),Ll(t),zl(t)]}),fl),Fl=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hl=e.forwardRef(((t,n)=>{var o,r,i;const{loading:a=!1,prefixCls:s,type:l,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:g,rootClassName:m,children:v,icon:b,iconPosition:y="start",ghost:x=!1,block:w=!1,htmlType:C="button",classNames:E,style:S={},autoInsertSpace:k}=t,O=Fl(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),_=l||"default",{getPrefixCls:$,direction:M,button:N}=e.useContext(jr),P=null===(o=null!=k?k:null==N?void 0:N.autoInsertSpace)||void 0===o||o,I=$("btn",s),[R,T,j]=Rl(I),A=e.useContext(Lr),D=null!=p?p:A,z=e.useContext(Qs),B=e.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[F,H]=e.useState(B.loading),[V,W]=e.useState(!1),X=L(n,e.createRef()),q=1===e.Children.count(v)&&!b&&!nl(_);e.useEffect((()=>{let e=null;return B.delay>0?e=setTimeout((()=>{e=null,H(!0)}),B.delay):H(B.loading),function(){e&&(clearTimeout(e),e=null)}}),[B]),e.useEffect((()=>{if(!X||!X.current||!P)return;const e=X.current.textContent;q&&el(e)?V||W(!0):V&&W(!1)}),[X]);const U=e=>{const{onClick:n}=t;F||D?e.preventDefault():null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=ho("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof b&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(x&&nl(_)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:Y,compactItemClassnames:G}=Gs(I,M),K={large:"lg",small:"sm",middle:void 0},Z=Us((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:Y)&&void 0!==t?t:z)&&void 0!==n?n:e})),Q=Z&&K[Z]||"",J=F?"loading":b,ee=_e(O,["navigate"]),te=h(I,T,j,{[`${I}-${u}`]:"default"!==u&&u,[`${I}-${_}`]:_,[`${I}-${Q}`]:Q,[`${I}-icon-only`]:!v&&0!==v&&!!J,[`${I}-background-ghost`]:x&&!nl(_),[`${I}-loading`]:F,[`${I}-two-chinese-chars`]:V&&P&&!F,[`${I}-block`]:w,[`${I}-dangerous`]:c,[`${I}-rtl`]:"rtl"===M,[`${I}-icon-end`]:"end"===y},G,g,m,null==N?void 0:N.className),ne=Object.assign(Object.assign({},null==N?void 0:N.style),S),oe=h(null==E?void 0:E.icon,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.icon),re=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==N?void 0:N.styles)||void 0===i?void 0:i.icon)||{}),ie=b&&!F?e.createElement(rl,{prefixCls:I,className:oe,style:re},b):e.createElement(ll,{existIcon:!!b,prefixCls:I,loading:F}),ae=v||0===v?ol(v,q&&P):null;if(void 0!==ee.href)return R(e.createElement("a",Object.assign({},ee,{className:h(te,{[`${I}-disabled`]:D}),href:D?void 0:ee.href,style:ne,onClick:U,ref:X,tabIndex:D?-1:0}),ie,ae));let se=e.createElement("button",Object.assign({},O,{type:C,className:te,style:ne,onClick:U,disabled:D,ref:X}),ie,ae,!!G&&e.createElement(Bl,{key:"compact",prefixCls:I}));return nl(_)||(se=e.createElement(qs,{component:"Button",disabled:F},se)),R(se)})),Vl=Hl;Vl.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(jr),{prefixCls:r,size:i,className:a}=e,s=Zs(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=xi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=ho("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=h(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return o.createElement(Qs.Provider,{value:i},o.createElement("div",Object.assign({},s,{className:d})))},Vl.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Vl.displayName="Button");var Wl=o.createContext(null),Xl=[];function ql(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var o,r,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";et("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),o=l,r=c}}document.body.appendChild(n);var f=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,h=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Je(t),{width:f,height:h}}(e):{width:0,height:0}}var Ul="rc-util-locker-".concat(Date.now()),Yl=0;function Gl(e){var t=!!e,n=Be(o.useState((function(){return Yl+=1,"".concat(Ul,"_").concat(Yl)})),1)[0];$t((function(){if(t){var e=ql(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;et("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Je(n);return function(){Je(n)}}),[t,n])}var Kl=function(e){return!1!==e&&(He()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Zl=o.forwardRef((function(e,n){var r=e.open,i=e.autoLock,a=e.getContainer,s=e.debug,l=e.autoDestroy,c=void 0===l||l,u=e.children,d=Be(o.useState(r),2),f=d[0],h=d[1],p=f||r;"production"!==process.env.NODE_ENV&&$(He()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),o.useEffect((function(){(c||r)&&h(r)}),[r,c]);var g=Be(o.useState((function(){return Kl(a)})),2),m=g[0],v=g[1];o.useEffect((function(){var e=Kl(a);v(null!=e?e:null)}));var b=function(e,t){var n=Be(o.useState((function(){if(!He())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],r=o.useRef(!1),i=o.useContext(Wl),a=Be(o.useState(Xl),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(Pe(t))}))});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return $t((function(){return e?i?i(u):u():d(),d}),[e]),$t((function(){s.length&&(s.forEach((function(e){return e()})),l(Xl))}),[s]),[n,c]}(p&&!m,s),y=Be(b,2),x=y[0],w=y[1],C=null!=m?m:x;Gl(i&&r&&He()&&(C===x||C===document.body));var E=null;u&&B(u)&&n&&(E=u.ref);var S=z(E,n);if(!p||!He()||void 0===m)return null;var k=!1===C||!1,O=u;return n&&(O=o.cloneElement(u,{ref:S})),o.createElement(Wl.Provider,{value:w},k?O:t.createPortal(O,C))}));"production"!==process.env.NODE_ENV&&(Zl.displayName="Portal");var Ql=o.createContext({});var Jl=0,ec=R({},o).useId,tc=ec?function(e){var t=ec();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=Be(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=Jl;Jl+=1,r("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function nc(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function oc(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}var rc=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),ic={width:0,height:0,overflow:"hidden",outline:"none"},ac={outline:"none"},sc=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.className,i=t.style,a=t.title,s=t.ariaId,l=t.footer,c=t.closable,u=t.closeIcon,d=t.onClose,f=t.children,g=t.bodyStyle,m=t.bodyProps,v=t.modalRender,b=t.onMouseDown,y=t.onMouseUp,x=t.holderRef,w=t.visible,C=t.forceRender,E=t.width,S=t.height,k=t.classNames,O=t.styles,_=e.useContext(Ql).panel,$=z(x,_),N=e.useRef(),P=e.useRef(),I=e.useRef();e.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===P.current?N.current.focus({preventScroll:!0}):e||t!==N.current||P.current.focus({preventScroll:!0})}}}));var T={};void 0!==E&&(T.width=E),void 0!==S&&(T.height=S);var j=l?e.createElement("div",{className:h("".concat(o,"-footer"),null==k?void 0:k.footer),style:R({},null==O?void 0:O.footer)},l):null,A=a?e.createElement("div",{className:h("".concat(o,"-header"),null==k?void 0:k.header),style:R({},null==O?void 0:O.header)},e.createElement("div",{className:"".concat(o,"-title"),id:s},a)):null,D=e.useMemo((function(){return"object"===M(c)&&null!==c?c:c?{closeIcon:null!=u?u:e.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[c,u,o]),L=ns(D,!0),B="object"===M(c)&&c.disabled,F=c?e.createElement("button",p({type:"button",onClick:d,"aria-label":"Close"},L,{className:"".concat(o,"-close"),disabled:B}),D.closeIcon):null,H=e.createElement("div",{className:h("".concat(o,"-content"),null==k?void 0:k.content),style:null==O?void 0:O.content},F,A,e.createElement("div",p({className:h("".concat(o,"-body"),null==k?void 0:k.body),style:R(R({},g),null==O?void 0:O.body)},m),f),j);return e.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?s:null,"aria-modal":"true",ref:$,style:R(R({},i),T),className:h(o,r),onMouseDown:b,onMouseUp:y},e.createElement("div",{tabIndex:0,ref:N,style:ic,"aria-hidden":"true"}),e.createElement("div",{ref:I,tabIndex:-1,style:ac},e.createElement(rc,{shouldUpdate:w||C},v?v(H):H)),e.createElement("div",{tabIndex:0,ref:P,style:ic,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(sc.displayName="Panel");var lc=o.forwardRef((function(t,n){var r=t.prefixCls,i=t.title,a=t.style,s=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,f=t.ariaId,g=t.onVisibleChanged,m=t.mousePosition,v=e.useRef(),b=Be(o.useState(),2),y=b[0],x=b[1],w={};function C(){var e,t,n,o,r,i=(e=v.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=oc(r),n.top+=oc(r,!0),n);x(m&&(m.x||m.y)?"".concat(m.x-i.left,"px ").concat(m.y-i.top,"px"):"")}return y&&(w.transformOrigin=y),o.createElement(ma,{visible:l,onVisibleChanged:g,onAppearPrepare:C,onEnterPrepare:C,forceRender:c,motionName:d,removeOnLeave:u,ref:v},(function(e,l){var c=e.className,u=e.style;return o.createElement(sc,p({},t,{ref:n,title:i,ariaId:f,prefixCls:r,holderRef:l,style:R(R(R({},u),a),w),className:h(s,c)}))}))}));lc.displayName="Content";var cc=function(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,a=e.motionName,s=e.className;return o.createElement(ma,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var a=e.className,l=e.style;return o.createElement("div",p({ref:r,style:R(R({},l),n),className:h("".concat(t,"-mask"),a,s)},i))}))},uc=function(t){var n=t.prefixCls,r=void 0===n?"rc-dialog":n,i=t.zIndex,a=t.visible,s=void 0!==a&&a,l=t.keyboard,c=void 0===l||l,u=t.focusTriggerAfterClose,d=void 0===u||u,f=t.wrapStyle,g=t.wrapClassName,m=t.wrapProps,v=t.onClose,b=t.afterOpenChange,y=t.afterClose,x=t.transitionName,w=t.animation,C=t.closable,E=void 0===C||C,k=t.mask,O=void 0===k||k,_=t.maskTransitionName,$=t.maskAnimation,M=t.maskClosable,N=void 0===M||M,P=t.maskStyle,I=t.maskProps,T=t.rootClassName,j=t.classNames,A=t.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(e){S(!(e in t),"".concat(e," is deprecated, please use styles instead."))})),"wrapClassName"in t&&S(!1,"wrapClassName is deprecated, please use classNames instead."));var D=e.useRef(),L=e.useRef(),z=e.useRef(),B=Be(o.useState(s),2),F=B[0],H=B[1],V=tc();function W(e){null==v||v(e)}var X=e.useRef(!1),q=e.useRef(),U=null;N&&(U=function(e){X.current?X.current=!1:L.current===e.target&&W(e)}),e.useEffect((function(){s&&(H(!0),Ve(L.current,document.activeElement)||(D.current=document.activeElement))}),[s]),e.useEffect((function(){return function(){clearTimeout(q.current)}}),[]);var Y=R(R(R({zIndex:i},f),null==A?void 0:A.wrapper),{},{display:F?null:"none"});return o.createElement("div",p({className:h("".concat(r,"-root"),T)},ns(t,{data:!0})),o.createElement(cc,{prefixCls:r,visible:O&&s,motionName:nc(r,_,$),style:R(R({zIndex:i},P),null==A?void 0:A.mask),maskProps:I,className:null==j?void 0:j.mask}),o.createElement("div",p({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===ss.ESC)return e.stopPropagation(),void W(e);s&&e.keyCode===ss.TAB&&z.current.changeActive(!e.shiftKey)},className:h("".concat(r,"-wrap"),g,null==j?void 0:j.wrapper),ref:L,onClick:U,style:Y},m),o.createElement(lc,p({},t,{onMouseDown:function(){clearTimeout(q.current),X.current=!0},onMouseUp:function(){q.current=setTimeout((function(){X.current=!1}))},ref:z,closable:E,ariaId:V,prefixCls:r,visible:s&&F,onClose:W,onVisibleChanged:function(e){if(e)Ve(L.current,document.activeElement)||null===(t=z.current)||void 0===t||t.focus();else{if(H(!1),O&&D.current&&d){try{D.current.focus({preventScroll:!0})}catch(e){}D.current=null}F&&(null==y||y())}var t;null==b||b(e)},motionName:nc(r,x,w)}))))},dc=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,s=e.afterClose,l=e.panelRef,c=Be(o.useState(t),2),u=c[0],d=c[1],f=o.useMemo((function(){return{panel:l}}),[l]);return o.useEffect((function(){t&&d(!0)}),[t]),r||!a||u?o.createElement(Ql.Provider,{value:f},o.createElement(Zl,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},o.createElement(uc,p({},e,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};dc.displayName="Dialog";var fc="RC_FORM_INTERNAL_HOOKS",hc=function(){$(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},pc=o.createContext({getFieldValue:hc,getFieldsValue:hc,getFieldError:hc,getFieldWarning:hc,getFieldsError:hc,isFieldsTouched:hc,isFieldTouched:hc,isFieldValidating:hc,isFieldsValidating:hc,resetFields:hc,setFields:hc,setFieldValue:hc,setFieldsValue:hc,validateFields:hc,submit:hc,getInternalHooks:function(){return hc(),{dispatch:hc,initEntityValue:hc,registerField:hc,useSubscribe:hc,setInitialValues:hc,destroyForm:hc,setCallbacks:hc,registerWatch:hc,getFields:hc,setValidateMessages:hc,setPreserve:hc,getInitialValue:hc}}}),gc=o.createContext(null);function mc(e){return null==e?[]:Array.isArray(e)?e:[e]}function vc(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var bc=vc();function yc(e){var t="function"==typeof Map?new Map:void 0;return yc=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ye())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&me(r,n.prototype),r}(e,arguments,be(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),me(n,e)},yc(e)}var xc=/%[sdj%]/g,wc=function(){};function Cc(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Ec(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(xc,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}})):e}function Sc(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function kc(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var s=o;o+=1,s<r?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(wc=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var Oc=function(){ve(t,yc(Error));var e=we(t);function t(n,o){var r;return he(this,t),P(xe(r=e.call(this,"Async Validation Error")),"errors",void 0),P(xe(r),"fields",void 0),r.errors=n,r.fields=o,r}return ge(t)}();function _c(e,t,n,o,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Pe(e[n]||[]))})),t}(e);kc(a,n,(function(e){return o(e),e.length?i(new Oc(e,Cc(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return o(u),u.length?i(new Oc(u,Cc(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?kc(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,Pe(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function $c(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Mc(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===M(o)&&"object"===M(e[n])?e[n]=R(R({},e[n]),o):e[n]=o}return e}var Nc,Pc="enum",Ic=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Sc(t,i||e.type)||o.push(Ec(r.messages.required,e.fullField))},Rc=/^(([^<>()\[\]\\.,;:\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,}))$/,Tc=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,jc={integer:function(e){return jc.number(e)&&parseInt(e,10)===e},float:function(e){return jc.number(e)&&!jc.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===M(e)&&!jc.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Rc)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Nc)return Nc;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Nc=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Tc)}},Ac={required:Ic,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Ec(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Ic(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?jc[i](t)||o.push(Ec(r.messages.types[i],e.fullField,e.type)):i&&M(t)!==e.type&&o.push(Ec(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(Ec(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(Ec(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(Ec(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(Ec(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Pc]=Array.isArray(e[Pc])?e[Pc]:[],-1===e[Pc].indexOf(t)&&o.push(Ec(r.messages[Pc],e.fullField,e[Pc].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Ec(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Ec(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Dc=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t,i)&&!e.required)return n();Ac.required(e,t,o,a,r,i),Sc(t,i)||Ac.type(e,t,o,a,r)}n(a)},Lc={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t,"string")&&!e.required)return n();Ac.required(e,t,o,i,r,"string"),Sc(t,"string")||(Ac.type(e,t,o,i,r),Ac.range(e,t,o,i,r),Ac.pattern(e,t,o,i,r),!0===e.whitespace&&Ac.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&(Ac.type(e,t,o,i,r),Ac.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),Sc(t)||Ac.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&(Ac.type(e,t,o,i,r),Ac.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&(Ac.type(e,t,o,i,r),Ac.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Ac.required(e,t,o,i,r,"array"),null!=t&&(Ac.type(e,t,o,i,r),Ac.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t,"string")&&!e.required)return n();Ac.required(e,t,o,i,r),Sc(t,"string")||Ac.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t,"date")&&!e.required)return n();var a;if(Ac.required(e,t,o,i,r),!Sc(t,"date"))a=t instanceof Date?t:new Date(t),Ac.type(e,a,o,i,r),a&&Ac.range(e,a.getTime(),o,i,r)}n(i)},url:Dc,hex:Dc,email:Dc,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":M(t);Ac.required(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r)}n(i)}},zc=function(){function e(t){he(this,e),P(this,"rules",null),P(this,"_messages",bc),this.define(t)}return ge(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==M(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))}},{key:"messages",value:function(e){return e&&(this._messages=Mc(vc(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(r.messages){var a=this.messages();a===bc&&(a=vc()),Mc(a,r.messages),r.messages=a}else r.messages=this.messages();var s={};(r.keys||Object.keys(this.rules)).forEach((function(e){var r=n.rules[e],i=o[e];r.forEach((function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=R({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":M(i)))),(a="function"==typeof a?{validator:a}:R({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:o,field:e}))}))}));var l={};return _c(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==M(a.fields)&&"object"!==M(a.defaultField));function c(e,t){return R(R({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Pe(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map($c(a,o));if(r.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map($c(a,o)):r.error&&(d=[r.error(a,Ec(r.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=R(R({},f),t.rule.fields);var h={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];h[e]=n.map(c.bind(null,e))}));var p=new e(h);p.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),p.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,Pe(d)),e&&e.length&&t.push.apply(t,Pe(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,r)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),r.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,r=[],a={},s=0;s<e.length;s++)t=e[s],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,Pe(t)):r.push(t);r.length?(a=Cc(r),i(r,a)):i(null,o)}(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Lc.hasOwnProperty(e.type))throw new Error(Ec("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Lc.required:Lc[this.getType(e)]||void 0}}]),e}();P(zc,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Lc[e]=t})),P(zc,"warning",wc),P(zc,"messages",bc),P(zc,"validators",Lc);var Bc="'${name}' is not a valid ${type}",Fc={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:Bc,method:Bc,array:Bc,object:Bc,number:Bc,date:Bc,boolean:Bc,integer:Bc,float:Bc,regexp:Bc,email:Bc,url:Bc,hex:Bc},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}"}},Hc=zc;function Vc(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Wc="CODE_LOGIC_ERROR";function Xc(e,t,n,o,r){return qc.apply(this,arguments)}function qc(){return qc=bs(ms().mark((function e(t,n,r,i,a){var s,l,c,u,d,f,h,p,g;return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(s=R({},r)).ruleIndex,Hc.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Wc)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new Hc(P({},t,[s])),d=so(Fc,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(P({},t,n),R({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,r=n===Wc?d.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(f.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Xc("".concat(t,".").concat(n),e,c,i,a)})));case 21:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat(Pe(e),Pe(t))}),[]));case 23:return p=R(R({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=f.map((function(e){return"string"==typeof e?Vc(e,p):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),qc.apply(this,arguments)}function Uc(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=R(R({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){$(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));$(r=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n==!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=bs(ms().mark((function e(n,r){var a,c,u;return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,Xc(s,t,c,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return Xc(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Gc.apply(this,arguments)}(c):function(e){return Yc.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Yc(){return(Yc=bs(ms().mark((function e(t){return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Pe(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gc(){return Gc=bs(ms().mark((function e(t){var n;return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),Gc.apply(this,arguments)}function Kc(e){return mc(e)}function Zc(e,t){var n={};return t.forEach((function(t){var o=no(e,t);n=ro(n,t,o)})),n}function Qc(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Jc(t,e,n)}))}function Jc(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function eu(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===M(t.target)&&e in t.target?t.target[e]:t}function tu(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Pe(e.slice(0,n)),[r],Pe(e.slice(n,t)),Pe(e.slice(t+1,o))):i<0?[].concat(Pe(e.slice(0,t)),Pe(e.slice(t+1,n+1)),[r],Pe(e.slice(n+1,o))):e}var nu=["name"],ou=[];function ru(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var iu=function(){ve(t,o.Component);var e=we(t);function t(n){var r;(he(this,t),P(xe(r=e.call(this,n)),"state",{resetCount:0}),P(xe(r),"cancelRegisterFunc",null),P(xe(r),"mounted",!1),P(xe(r),"touched",!1),P(xe(r),"dirty",!1),P(xe(r),"validatePromise",void 0),P(xe(r),"prevValidating",void 0),P(xe(r),"errors",ou),P(xe(r),"warnings",ou),P(xe(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Kc(o)),r.cancelRegisterFunc=null})),P(xe(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Pe(void 0===n?[]:n),Pe(t)):[]})),P(xe(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),P(xe(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),P(xe(r),"metaCache",null),P(xe(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=R(R({},r.getMeta()),{},{destroy:e});nt(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),P(xe(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),h=t&&Qc(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||nt(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ou,r.warnings=ou,r.triggerMetaEvent()),n.type){case"reset":if(!t||h)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ou,r.warnings=ou,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&ru(i,e,c,d,f,n))return void r.reRender();break;case"setField":var p=n.data;if(h)return"touched"in p&&(r.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(r.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(r.errors=p.errors||ou),"warnings"in p&&(r.warnings=p.warnings||ou),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in p&&Qc(t,u,!0))return void r.reRender();if(i&&!u.length&&ru(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Kc).some((function(e){return Qc(n.relatedFields,e)})))return void r.reRender();break;default:if(h||(!s.length||u.length||i)&&ru(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),P(xe(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(bs(ms().mark((function o(){var a,s,c,u,d,f,h;return ms().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||mc(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(h=Uc(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ou;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?ou:r;t?o.push.apply(o,Pe(i)):n.push.apply(n,Pe(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",h);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=ou,r.warnings=ou,r.triggerMetaEvent(),r.reRender()),l})),P(xe(r),"isFieldValidating",(function(){return!!r.validatePromise})),P(xe(r),"isFieldTouched",(function(){return r.touched})),P(xe(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(fc).getInitialValue)(r.getNamePath())})),P(xe(r),"getErrors",(function(){return r.errors})),P(xe(r),"getWarnings",(function(){return r.warnings})),P(xe(r),"isListField",(function(){return r.props.isListField})),P(xe(r),"isList",(function(){return r.props.isList})),P(xe(r),"isPreserve",(function(){return r.props.preserve})),P(xe(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),P(xe(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return R(R({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=w(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),P(xe(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return no(e||t(!0),n)})),P(xe(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),h=u.getInternalHooks,p=u.getFieldsValue,g=h(fc).dispatch,m=r.getValue(),v=c||function(e){return P({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){$("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var x=R(R({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):eu.apply(void 0,[l].concat(n)),s&&(e=s(e,m,p(!0))),g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},mc(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),x})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(fc).initEntityValue)(xe(r));return r}return ge(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(fc).registerField;this.cancelRegisterFunc=o(this)}!0===t&&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(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):($(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),t}();function au(e){var t=e.name,n=tt(e,nu),r=o.useContext(pc),i=o.useContext(gc),a=void 0!==t?Kc(t):void 0,s="keep";return n.isListField||(s="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&$(!1,"`preserve` should not apply on Form.List fields."),o.createElement(iu,p({key:s,name:a,isListField:!!i},n,{fieldContext:r}))}P(iu,"contextType",pc),P(iu,"defaultProps",{trigger:"onChange",valuePropName:"value"});var su="__@field_split__";function lu(e){return e.map((function(e){return"".concat(M(e),":").concat(e)})).join(su)}var cu=function(){function e(){he(this,e),P(this,"kvs",new Map)}return ge(e,[{key:"set",value:function(e,t){this.kvs.set(lu(e),t)}},{key:"get",value:function(e){return this.kvs.get(lu(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(lu(e))}},{key:"map",value:function(e){return Pe(this.kvs.entries()).map((function(t){var n=Be(t,2),o=n[0],r=n[1],i=o.split(su);return e({key:i.map((function(e){var t=Be(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}(),uu=["name"],du=ge((function e(t){var n=this;he(this,e),P(this,"formHooked",!1),P(this,"forceRootUpdate",void 0),P(this,"subscribable",!0),P(this,"store",{}),P(this,"fieldEntities",[]),P(this,"initialValues",{}),P(this,"callbacks",{}),P(this,"validateMessages",null),P(this,"preserve",null),P(this,"lastValidatePromise",null),P(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),P(this,"getInternalHooks",(function(e){return e===fc?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):($(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),P(this,"useSubscribe",(function(e){n.subscribable=e})),P(this,"prevWithoutPreserves",null),P(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=so(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=ro(r,n,no(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),P(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new cu;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),P(this,"getInitialValue",(function(e){var t=no(n.initialValues,e);return e.length?so(t):t})),P(this,"setCallbacks",(function(e){n.callbacks=e})),P(this,"setValidateMessages",(function(e){n.validateMessages=e})),P(this,"setPreserve",(function(e){n.preserve=e})),P(this,"watchList",[]),P(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),P(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),P(this,"timeoutId",null),P(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||$(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),P(this,"updateStore",(function(e){n.store=e})),P(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),P(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new cu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),P(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Kc(e);return t.get(n)||{INVALIDATE_NAME_PATH:Kc(e)}}))})),P(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===M(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&s.push(c)}else s.push(c)})),Zc(n.store,s.map(Kc))})),P(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Kc(e);return no(n.store,t)})),P(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Kc(e[n]),errors:[],warnings:[]}}))})),P(this,"getFieldError",(function(e){n.warningUnhooked();var t=Kc(e);return n.getFieldsError([t])[0].errors})),P(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Kc(e);return n.getFieldsError([t])[0].warnings})),P(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],s=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(Kc),s=!1):(r=null,s=i):(r=i.map(Kc),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new cu;r.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Pe(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return s?f.every(d):f.some(d)})),P(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),P(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Kc);return t.some((function(e){var t=e.getNamePath();return Qc(o,t)&&e.isFieldValidating()}))})),P(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),P(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new cu,o=n.getFieldEntities(!0);o.forEach((function(e){var n=e.props.initialValue,o=e.getNamePath();if(void 0!==n){var r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}}));var r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach((function(e){var n,o=t.get(e);o&&(n=r).push.apply(n,Pe(Pe(o).map((function(e){return e.entity}))))}))):r=o,r.forEach((function(o){if(void 0!==o.props.initialValue){var r=o.getNamePath();if(void 0!==n.getInitialValue(r))$(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=t.get(r);if(i&&i.size>1)$(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);o.isListField()||e.skipExist&&void 0!==a||n.updateStore(ro(n.store,r,Pe(i)[0].value))}}}}))})),P(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(so(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Kc);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(ro(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),P(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=tt(e,uu),a=Kc(r);o.push(a),"value"in i&&n.updateStore(ro(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),P(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=R(R({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),P(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===no(n.store,o)&&n.updateStore(ro(n.store,o,t))}})),P(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),P(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Jc(e.getNamePath(),t)}))){var s=n.store;n.updateStore(ro(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),P(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),P(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=R(R({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),P(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Pe(o))}),o})),P(this,"updateValue",(function(e,t){var o=Kc(e),r=n.store;n.updateStore(ro(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(Zc(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(Pe(i)))})),P(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=so(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),P(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),P(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new cu;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Kc(t);r.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),P(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new cu;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return Qc(e,n)}));a.length&&o(a,r)}})),P(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(Kc):[],s=[],l=String(Date.now()),c=new Set,u=r||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Qc(a,t,d)){var o=e.validateRules(R({validateMessages:R(R({},Fc),n.validateMessages)},r));s.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Pe(n)):o.push.apply(o,Pe(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var h=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=h,h.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var p=h.then((function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==h})}));p.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),p})),P(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function fu(e){var t=o.useRef(),n=Be(o.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new du((function(){n({})}));t.current=r.getForm()}return[t.current]}var hu=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),pu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],gu=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,s=e.preserve,l=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,f=e.validateTrigger,h=void 0===f?"onChange":f,g=e.onValuesChange,m=e.onFieldsChange,v=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,x=tt(e,pu),w=o.useRef(null),C=o.useContext(hu),E=Be(fu(a),1)[0],S=E.getInternalHooks(fc),k=S.useSubscribe,O=S.setInitialValues,_=S.setCallbacks,$=S.setValidateMessages,N=S.setPreserve,P=S.destroyForm;o.useImperativeHandle(t,(function(){return R(R({},E),{},{nativeElement:w.current})})),o.useEffect((function(){return C.registerForm(n,E),function(){C.unregisterForm(n)}}),[C,E,n]),$(R(R({},C.validateMessages),d)),_({onValuesChange:g,onFieldsChange:function(e){if(C.triggerFormChange(n,e),m){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];m.apply(void 0,[e].concat(o))}},onFinish:function(e){C.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:b}),N(s);var I,T=o.useRef(null);O(r,!T.current),T.current||(T.current=!0),o.useEffect((function(){return function(){return P(y)}}),[]);var j="function"==typeof l;j?I=l(E.getFieldsValue(!0),E):I=l;k(!j);var A=o.useRef();o.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==M(e)||"object"!==M(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Pe(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(A.current||[],i||[])||E.setFields(i||[]),A.current=i}),[i,E]);var D=o.useMemo((function(){return R(R({},E),{},{validateTrigger:h})}),[E,h]),L=o.createElement(gc.Provider,{value:null},o.createElement(pc.Provider,{value:D},I));return!1===u?L:o.createElement(u,p({},x,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=x.onReset)||void 0===t||t.call(x,e)}}),L)};function mu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var vu="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");$(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var bu=o.forwardRef(gu);bu.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(hu),s=o.useRef({});return o.createElement(hu.Provider,{value:R(R({},a),{},{validateMessages:R(R({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=R(R({},s.current),{},P({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=R({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},bu.Field=au,bu.List=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,s=e.isListField,l=o.useContext(pc),c=o.useContext(gc),u=o.useRef({keys:[],id:0}).current,d=o.useMemo((function(){var e=Kc(l.prefixName)||[];return[].concat(Pe(e),Pe(Kc(t)))}),[l.prefixName,t]),f=o.useMemo((function(){return R(R({},l),{},{prefixName:d})}),[l,d]),h=o.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof r?($(!1,"Form.List only accepts function as children."),null):o.createElement(gc.Provider,{value:h},o.createElement(pc.Provider,{value:f},o.createElement(au,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=s?s:!!c},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(Pe(u.keys.slice(0,t)),[u.id],Pe(u.keys.slice(t))),i([].concat(Pe(n.slice(0,t)),[e],Pe(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&$(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Pe(u.keys),[u.id]),i([].concat(Pe(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=tu(u.keys,e,t),i(tu(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&$(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},bu.useForm=fu,bu.useWatch=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=n[0],i=n[1],a=void 0===i?{}:i,s=function(e){return e&&!!e._init}(a)?{form:a}:a,l=s.form,c=Be(e.useState(),2),u=c[0],d=c[1],f=e.useMemo((function(){return mu(u)}),[u]),h=e.useRef(f);h.current=f;var p=e.useContext(pc),g=l||p,m=g&&g._init;"production"!==process.env.NODE_ENV&&$(2===n.length&&!l||m,"useWatch requires a form instance since it can not auto detect from context.");var v=Kc(r),b=e.useRef(v);return b.current=v,vu(v),e.useEffect((function(){if(m){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(fc).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof r?r(n):no(n,b.current)},o=t((function(e,t){var o=n(e,t),r=mu(o);h.current!==r&&(h.current=r,d(o))})),i=n(e(),e(!0));return u!==i&&d(i),o}}),[m]),u};const yu=o.createContext({});"production"!==process.env.NODE_ENV&&(yu.displayName="FormItemInputContext");const xu=t=>{let{children:n,status:r,override:i}=t;const a=e.useContext(yu),s=e.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,i,a]);return o.createElement(yu.Provider,{value:s},n)},wu=e.createContext(void 0),Cu=t=>{const{space:n,form:o,children:r}=t;if(null==r)return null;let i=r;return o&&(i=e.createElement(xu,{override:!0,status:!0},i)),n&&(i=e.createElement(Ks,null,i)),i};var Eu=function(e){if(He()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function Su(e,t){return Array.isArray(e)||void 0===t?Eu(e):function(e,t){if(!Eu(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const ku=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ou=e=>({animationDuration:e,animationFillMode:"both"}),_u=e=>({animationDuration:e,animationFillMode:"both"}),$u=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},Ou(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},_u(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Mu=new Jn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Nu=new Jn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Pu=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[$u(o,Mu,Nu,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Iu={"slide-up":{inKeyframes:new Jn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Jn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new Jn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new Jn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new Jn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Jn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new Jn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new Jn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Ru=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Iu[t];return[$u(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Tu=new Jn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ju=new Jn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Au=new Jn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Du=new Jn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Lu=new Jn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zu=new Jn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Bu={zoom:{inKeyframes:Tu,outKeyframes:ju},"zoom-big":{inKeyframes:Au,outKeyframes:Du},"zoom-big-fast":{inKeyframes:Au,outKeyframes:Du},"zoom-left":{inKeyframes:new Jn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Jn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Jn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Jn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Lu,outKeyframes:zu},"zoom-down":{inKeyframes:new Jn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Jn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Fu=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Bu[t];return[$u(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Hu(e){return{position:e,inset:0}}const Vu=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Hu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Hu("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Pu(e)}]},Wu=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Ct(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ei(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ct(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Ct(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Oi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ct(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Xu=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}};$i("Modal",(e=>{const t=(e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return ni(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})})(e);return[Wu(t),Xu(t),Vu(t),Fu(t,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ct(e.paddingMD)} ${Ct(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ct(e.padding)} ${Ct(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ct(e.paddingXS)} ${Ct(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ct(2*e.padding)} ${Ct(2*e.padding)} ${Ct(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM})),{unitless:{titleLineHeight:!0}});var qu=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Uu=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Yu=void 0;function Gu(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,g=e.children,m=e.display,v=e.order,b=e.component,y=void 0===b?"div":b,x=tt(e,Uu),w=s&&!m;function C(e){c(u,e)}o.useEffect((function(){return function(){C(null)}}),[]);var E,S=a&&i!==Yu?a(i):g;r||(E={opacity:w?0:1,height:w?0:Yu,overflowY:w?"hidden":Yu,order:s?v:Yu,pointerEvents:w?"none":Yu,position:w?"absolute":Yu});var k={};w&&(k["aria-hidden"]=!0);var O=o.createElement(y,p({className:h(!r&&n,d),style:R(R({},E),f)},k,x,{ref:t}),S);return s&&(O=o.createElement(Oe,{onResize:function(e){C(e.offsetWidth)},disabled:l},O)),O}var Ku=o.forwardRef(Gu);function Zu(){var e=o.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)De(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){t.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function Qu(e,t){var n=Be(o.useState(t),2),r=n[0],i=n[1];return[r,Gr((function(t){e((function(){i(t)}))}))]}Ku.displayName="Item";var Ju=e.createContext(null),ed=["component"],td=["className"],nd=["className"],od=function(e,t){var n=o.useContext(Ju);if(!n){var r=e.component,i=void 0===r?"div":r,a=tt(e,ed);return o.createElement(i,p({},a,{ref:t}))}var s=n.className,l=tt(n,td),c=e.className,u=tt(e,nd);return o.createElement(Ju.Provider,{value:null},o.createElement(Ku,p({ref:t,className:h(s,c)},l,u)))},rd=o.forwardRef(od);rd.displayName="RawItem";var id=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ad="responsive",sd="invalidate";function ld(e){return"+ ".concat(e.length," ...")}function cd(t,n){var r=t.prefixCls,i=void 0===r?"rc-overflow":r,a=t.data,s=void 0===a?[]:a,l=t.renderItem,c=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,g=t.ssr,m=t.style,v=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,w=t.suffix,C=t.component,E=void 0===C?"div":C,S=t.itemComponent,k=t.onVisibleChange,O=tt(t,id),_="full"===g,$=Zu(),M=Be(Qu($,null),2),N=M[0],P=M[1],I=N||0,T=Be(Qu($,new Map),2),j=T[0],A=T[1],D=Be(Qu($,0),2),L=D[0],z=D[1],B=Be(Qu($,0),2),F=B[0],H=B[1],V=Be(Qu($,0),2),W=V[0],X=V[1],q=Be(e.useState(null),2),U=q[0],Y=q[1],G=Be(e.useState(null),2),K=G[0],Z=G[1],Q=o.useMemo((function(){return null===K&&_?Number.MAX_SAFE_INTEGER:K||0}),[K,N]),J=Be(e.useState(!1),2),ee=J[0],te=J[1],ne="".concat(i,"-item"),oe=Math.max(L,F),re=b===ad,ie=s.length&&re,ae=b===sd,se=ie||"number"==typeof b&&s.length>b,le=e.useMemo((function(){var e=s;return ie?e=null===N&&_?s:s.slice(0,Math.min(s.length,I/f)):"number"==typeof b&&(e=s.slice(0,b)),e}),[s,f,N,b,ie]),ce=e.useMemo((function(){return ie?s.slice(Q+1):s.slice(le.length)}),[s,le,ie,Q]),ue=e.useCallback((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=e.useCallback(l||function(e){return e},[l]);function fe(e,t,n){(K!==e||void 0!==t&&t!==U)&&(Z(e),n||(te(e<s.length-1),null==k||k(e)),void 0!==t&&Y(t))}function he(e,t){A((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function pe(e){return j.get(ue(le[e],e))}$t((function(){if(I&&"number"==typeof oe&&le){var e=W,t=le.length,n=t-1;if(!t)return void fe(0,null);for(var o=0;o<t;o+=1){var r=pe(o);if(_&&(r=r||0),void 0===r){fe(o-1,void 0,!0);break}if(e+=r,0===n&&e<=I||o===n-1&&e+pe(n)<=I){fe(n,null);break}if(e+oe>I){fe(o-1,e-r-W+F);break}}w&&pe(0)+W>I&&Y(null)}}),[I,j,F,W,ue,le]);var ge=ee&&!!ce.length,me={};null!==U&&ie&&(me={position:"absolute",left:U,top:0});var ve,be={prefixCls:ne,responsive:ie,component:S,invalidate:ae},ye=c?function(e,t){var n=ue(e,t);return o.createElement(Ju.Provider,{key:n,value:R(R({},be),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=Q})},c(e,t))}:function(e,t){var n=ue(e,t);return o.createElement(Ku,p({},be,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:he,display:t<=Q}))},xe={order:ge?Q:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){H(t),z(F)},display:ge};if(x)x&&(ve=o.createElement(Ju.Provider,{value:R(R({},be),xe)},x(ce)));else{var we=y||ld;ve=o.createElement(Ku,p({},be,xe),"function"==typeof we?we(ce):we)}var Ce=o.createElement(E,p({className:h(!ae&&i,v),style:m,ref:n},O),le.map(ye),se?ve:null,w&&o.createElement(Ku,p({},be,{responsive:re,responsiveDisabled:!ie,order:Q,className:"".concat(ne,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:me}),w));return re&&(Ce=o.createElement(Oe,{onResize:function(e,t){P(t.clientWidth)},disabled:!ie},Ce)),Ce}var ud=o.forwardRef(cd);function dd(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,f=void 0===d?0:d,p=o.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],b=m[0],y=m[1],x=v[0],w=v[1];b!==x&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=f,y!==w&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=u}return o.createElement("div",{ref:p,className:h("".concat(t,"-arrow"),s),style:g},l)}function fd(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?o.createElement(ma,p({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:h("".concat(t,"-mask"),n)})})):null}ud.displayName="Overflow",ud.Item=rd,ud.RESPONSIVE=ad,ud.INVALIDATE=sd;var hd=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(hd.displayName="PopupContent");var pd=o.forwardRef((function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,g=e.mask,m=e.arrow,v=e.arrowPos,b=e.align,y=e.motion,x=e.maskMotion,w=e.forceRender,C=e.getPopupContainer,E=e.autoDestroy,S=e.portal,k=e.zIndex,O=e.onMouseEnter,_=e.onMouseLeave,$=e.onPointerEnter,M=e.ready,N=e.offsetX,P=e.offsetY,I=e.offsetR,T=e.offsetB,j=e.onAlign,A=e.onPrepare,D=e.stretch,z=e.targetWidth,B=e.targetHeight,F="function"==typeof n?n():n,H=c||u,V=(null==C?void 0:C.length)>0,W=Be(o.useState(!C||!V),2),X=W[0],q=W[1];if($t((function(){!X&&V&&s&&q(!0)}),[X,V,s]),!X)return null;var U="auto",Y={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(M||!c){var G,K=b.points,Z=b.dynamicInset||(null===(G=b._experimental)||void 0===G?void 0:G.dynamicInset),Q=Z&&"r"===K[0][1],J=Z&&"b"===K[0][0];Q?(Y.right=I,Y.left=U):(Y.left=N,Y.right=U),J?(Y.bottom=T,Y.top=U):(Y.top=P,Y.bottom=U)}var ee={};return D&&(D.includes("height")&&B?ee.height=B:D.includes("minHeight")&&B&&(ee.minHeight=B),D.includes("width")&&z?ee.width=z:D.includes("minWidth")&&z&&(ee.minWidth=z)),c||(ee.pointerEvents="none"),o.createElement(S,{open:w||H,getContainer:C&&function(){return C(s)},autoDestroy:E},o.createElement(fd,{prefixCls:i,open:c,zIndex:k,mask:g,motion:x}),o.createElement(Oe,{onResize:j,disabled:!c},(function(e){return o.createElement(ma,p({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:A,onEnterPrepare:A,visible:c,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),l(e)}}),(function(n,s){var l=n.className,u=n.style,p=h(i,l,r);return o.createElement("div",{ref:L(e,t,s),className:p,style:R(R(R(R({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Y),ee),u),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:O,onMouseLeave:_,onPointerEnter:$,onClick:f},m&&o.createElement(dd,{prefixCls:i,arrow:m,arrowPos:v,align:b}),o.createElement(hd,{cache:!c&&!d},F))}))})))}));"production"!==process.env.NODE_ENV&&(pd.displayName="Popup");var gd=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=B(n),a=o.useCallback((function(e){D(t,r?r(e):e)}),[r]),s=z(a,n.ref);return i?o.cloneElement(n,{ref:s}):n}));"production"!==process.env.NODE_ENV&&(gd.displayName="TriggerWrapper");var md=o.createContext(null);function vd(e){return e?Array.isArray(e)?e:[e]:[]}function bd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function yd(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function xd(e){return e.ownerDocument.defaultView}function wd(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=xd(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Cd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Ed(e){return Cd(parseFloat(e),0)}function Sd(e,t){var n=R({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=xd(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,p=Ed(i),g=Ed(a),m=Ed(s),v=Ed(l),b=Cd(Math.round(c.width/f*1e3)/1e3),y=Cd(Math.round(c.height/u*1e3)/1e3),x=(f-h-m-v)*b,w=(u-d-p-g)*y,C=p*y,E=g*y,S=m*b,k=v*b,O=0,_=0;if("clip"===o){var $=Ed(r);O=$*b,_=$*y}var M=c.x+S-O,N=c.y+C-_,P=M+c.width+2*O-S-k-x,I=N+c.height+2*_-C-E-w;n.left=Math.max(n.left,M),n.top=Math.max(n.top,N),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,I)}})),n}function kd(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Od(e,t){var n=Be(t||[],2),o=n[0],r=n[1];return[kd(e.width,o),kd(e.height,r)]}function _d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function $d(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function Md(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var Nd=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var Pd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl,t=o.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,p=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,m=t.mouseEnterDelay,v=t.mouseLeaveDelay,b=void 0===v?.1:v,y=t.focusDelay,x=t.blurDelay,w=t.mask,C=t.maskClosable,E=void 0===C||C,k=t.getPopupContainer,O=t.forceRender,_=t.autoDestroy,$=t.destroyPopupOnHide,M=t.popup,N=t.popupClassName,P=t.popupStyle,I=t.popupPlacement,j=t.builtinPlacements,A=void 0===j?{}:j,D=t.popupAlign,L=t.zIndex,z=t.stretch,B=t.getPopupClassNameFromAlign,F=t.fresh,H=t.alignPoint,V=t.onPopupClick,W=t.onPopupAlign,X=t.arrow,q=t.popupMotion,U=t.maskMotion,Y=t.popupTransitionName,G=t.popupAnimation,K=t.maskTransitionName,Z=t.maskAnimation,Q=t.className,J=t.getTriggerDOMNode,ee=tt(t,Nd),te=_||$||!1,ne=Be(o.useState(!1),2),oe=ne[0],re=ne[1];$t((function(){re(qu())}),[]);var ie=o.useRef({}),ae=o.useContext(md),se=o.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=tc(),ce=Be(o.useState(null),2),ue=ce[0],de=ce[1],fe=o.useRef(null),he=Gr((function(e){fe.current=e,T(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),pe=Be(o.useState(null),2),ge=pe[0],me=pe[1],ve=o.useRef(null),be=Gr((function(e){T(e)&&ge!==e&&(me(e),ve.current=e)})),ye=o.Children.only(a),xe=(null==ye?void 0:ye.props)||{},we={},Ce=function(e,t){var n,o;return e===t||t.contains(e)||(null===(n=Aa(t))||void 0===n?void 0:n.host)===e||t.contains(null===(o=Aa(e))||void 0===o?void 0:o.host)},Ee=Gr((function(e){var t=ge,n=Ce.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=yd(i,q,G,Y),ke=yd(i,U,Z,K),_e=Be(o.useState(f||!1),2),$e=_e[0],Me=_e[1],Ne=null!=d?d:$e,Ie=Gr((function(e){void 0===d&&Me(e)}));$t((function(){Me(d||!1)}),[d]);var Re=o.useRef(Ne);Re.current=Ne;var Te=o.useRef([]);Te.current=[];var je=Gr((function(e){var t;Ie(e),(null!==(t=Te.current[Te.current.length-1])&&void 0!==t?t:Ne)!==e&&(Te.current.push(e),null==p||p(e))})),Ae=o.useRef(),De=function(){clearTimeout(Ae.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;De(),0===t?je(e):Ae.current=setTimeout((function(){je(e)}),1e3*t)};o.useEffect((function(){return De}),[]);var ze=Be(o.useState(!1),2),Fe=ze[0],He=ze[1];$t((function(e){e&&!Ne||He(!0)}),[Ne]);var Ve=Be(o.useState(null),2),We=Ve[0],Xe=Ve[1],qe=Be(o.useState(null),2),Ue=qe[0],Ye=qe[1],Ge=function(e){Ye([e.clientX,e.clientY])},Ke=function(e,t,n,r,i,a,s){var l=Be(o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),c=l[0],u=l[1],d=o.useRef(0),f=o.useMemo((function(){return t?wd(t):[]}),[t]),h=o.useRef({});e||(h.current={});var p=Gr((function(){if(t&&n&&e){var o,l,c,d,p,g=t,m=g.ownerDocument,v=xd(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,w=g.style.left,C=g.style.top,E=g.style.right,S=g.style.bottom,k=g.style.overflow,O=R(R({},i[r]),a),_=m.createElement("div");if(null===(o=g.parentElement)||void 0===o||o.appendChild(_),_.style.left="".concat(g.offsetLeft,"px"),_.style.top="".concat(g.offsetTop,"px"),_.style.position=x,_.style.height="".concat(g.offsetHeight,"px"),_.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var $,M,N=n.getBoundingClientRect();N.x=null!==($=N.x)&&void 0!==$?$:N.left,N.y=null!==(M=N.y)&&void 0!==M?M:N.top,p={x:N.x,y:N.y,width:N.width,height:N.height}}var P=g.getBoundingClientRect();P.x=null!==(l=P.x)&&void 0!==l?l:P.left,P.y=null!==(c=P.y)&&void 0!==c?c:P.top;var I=m.documentElement,j=I.clientWidth,A=I.clientHeight,D=I.scrollWidth,L=I.scrollHeight,z=I.scrollTop,B=I.scrollLeft,F=P.height,H=P.width,V=p.height,W=p.width,X={left:0,top:0,right:j,bottom:A},q={left:-B,top:-z,right:D-B,bottom:L-z},U=O.htmlRegion,Y="visible",G="visibleFirst";"scroll"!==U&&U!==G&&(U=Y);var K=U===G,Z=Sd(q,f),Q=Sd(X,f),J=U===Y?Q:Z,ee=K?Q:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=w,g.style.top=C,g.style.right=E,g.style.bottom=S,g.style.overflow=k,null===(d=g.parentElement)||void 0===d||d.removeChild(_);var ne=Cd(Math.round(H/parseFloat(b)*1e3)/1e3),oe=Cd(Math.round(F/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||T(n)&&!Ds(n))return;var re=O.offset,ie=O.targetOffset,ae=Be(Od(P,re),2),se=ae[0],le=ae[1],ce=Be(Od(p,ie),2),ue=ce[0],de=ce[1];p.x-=ue,p.y-=de;var fe=Be(O.points||[],2),he=fe[0],pe=_d(fe[1]),ge=_d(he),me=$d(p,pe),ve=$d(P,ge),be=R({},O),ye=me.x-ve.x+se,xe=me.y-ve.y+le;function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,o=P.x+e,r=P.y+t,i=o+H,a=r+F,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var we,Ce,Ee,Se,ke=pt(ye,xe),Oe=pt(ye,xe,Q),_e=$d(p,["t","l"]),$e=$d(P,["t","l"]),Me=$d(p,["b","r"]),Ne=$d(P,["b","r"]),Pe=O.overflow||{},Ie=Pe.adjustX,Re=Pe.adjustY,Te=Pe.shiftX,je=Pe.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function gt(){we=P.y+xe,Ce=we+F,Ee=P.x+ye,Se=Ee+H}gt();var De=Ae(Re),Le=ge[0]===pe[0];if(De&&"t"===ge[0]&&(Ce>ee.bottom||h.current.bt)){var ze=xe;Le?ze-=F-V:ze=_e.y-Ne.y-le;var Fe=pt(ye,ze),He=pt(ye,ze,Q);Fe>ke||Fe===ke&&(!K||He>=Oe)?(h.current.bt=!0,xe=ze,le=-le,be.points=[Md(ge,0),Md(pe,0)]):h.current.bt=!1}if(De&&"b"===ge[0]&&(we<ee.top||h.current.tb)){var Ve=xe;Le?Ve+=F-V:Ve=Me.y-$e.y-le;var We=pt(ye,Ve),Xe=pt(ye,Ve,Q);We>ke||We===ke&&(!K||Xe>=Oe)?(h.current.tb=!0,xe=Ve,le=-le,be.points=[Md(ge,0),Md(pe,0)]):h.current.tb=!1}var qe=Ae(Ie),Ue=ge[1]===pe[1];if(qe&&"l"===ge[1]&&(Se>ee.right||h.current.rl)){var Ye=ye;Ue?Ye-=H-W:Ye=_e.x-Ne.x-se;var Ge=pt(Ye,xe),Ke=pt(Ye,xe,Q);Ge>ke||Ge===ke&&(!K||Ke>=Oe)?(h.current.rl=!0,ye=Ye,se=-se,be.points=[Md(ge,1),Md(pe,1)]):h.current.rl=!1}if(qe&&"r"===ge[1]&&(Ee<ee.left||h.current.lr)){var Ze=ye;Ue?Ze+=H-W:Ze=Me.x-$e.x-se;var Qe=pt(Ze,xe),Je=pt(Ze,xe,Q);Qe>ke||Qe===ke&&(!K||Je>=Oe)?(h.current.lr=!0,ye=Ze,se=-se,be.points=[Md(ge,1),Md(pe,1)]):h.current.lr=!1}gt();var et=!0===Te?0:Te;"number"==typeof et&&(Ee<Q.left&&(ye-=Ee-Q.left-se,p.x+W<Q.left+et&&(ye+=p.x-Q.left+W-et)),Se>Q.right&&(ye-=Se-Q.right-se,p.x>Q.right-et&&(ye+=p.x-Q.right+et)));var tt=!0===je?0:je;"number"==typeof tt&&(we<Q.top&&(xe-=we-Q.top-le,p.y+V<Q.top+tt&&(xe+=p.y-Q.top+V-tt)),Ce>Q.bottom&&(xe-=Ce-Q.bottom-le,p.y>Q.bottom-tt&&(xe+=p.y-Q.bottom+tt)));var nt=P.x+ye,ot=nt+H,rt=P.y+xe,it=rt+F,at=p.x,st=at+W,lt=p.y,ct=lt+V,ut=(Math.max(nt,at)+Math.min(ot,st))/2-nt,dt=(Math.max(rt,lt)+Math.min(it,ct))/2-rt;null==s||s(t,be);var ft=te.right-P.x-(ye+P.width),ht=te.bottom-P.y-(xe+P.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===oe&&(xe=Math.round(xe),ht=Math.round(ht)),u({ready:!0,offsetX:ye/ne,offsetY:xe/oe,offsetR:ft/ne,offsetB:ht/oe,arrowX:ut/ne,arrowY:dt/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return R(R({},e),{},{ready:!1})}))};return $t(g,[r]),$t((function(){e||g()}),[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&p()}))}]}(Ne,ue,H&&null!==Ue?Ue:ge,I,A,D,W),Ze=Be(Ke,11),Qe=Ze[0],Je=Ze[1],et=Ze[2],nt=Ze[3],ot=Ze[4],rt=Ze[5],it=Ze[6],at=Ze[7],st=Ze[8],lt=Ze[9],ct=Ze[10],ut=function(e,t,n,r){return o.useMemo((function(){var o=vd(null!=n?n:t),i=vd(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(oe,l,c,u),dt=Be(ut,2),ft=dt[0],ht=dt[1],pt=ft.has("click"),gt=ht.has("click")||ht.has("contextMenu"),mt=Gr((function(){Fe||ct()}));!function(e,t,n,o,r){$t((function(){if(e&&t&&n){var i=n,a=wd(t),s=wd(i),l=xd(i),c=new Set([l].concat(Pe(a),Pe(s)));function u(){o(),r()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),o(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ne,ge,ue,mt,(function(){Re.current&&H&&gt&&Le(!1)})),$t((function(){mt()}),[Ue,I]),$t((function(){!Ne||null!=A&&A[I]||mt()}),[JSON.stringify(D)]);var vt=o.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(bd(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(A,i,lt,H);return h(e,null==B?void 0:B(lt))}),[lt,B,A,i,H]);o.useImperativeHandle(n,(function(){return{nativeElement:ve.current,popupElement:fe.current,forceAlign:mt}}));var bt=Be(o.useState(0),2),yt=bt[0],xt=bt[1],wt=Be(o.useState(0),2),Ct=wt[0],Et=wt[1],St=function(){if(z&&ge){var e=ge.getBoundingClientRect();xt(e.width),Et(e.height)}};function kt(e,t,n,o){we[e]=function(r){var i;null==o||o(r),Le(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=xe[e])||void 0===i||i.call.apply(i,[xe,r].concat(s))}}$t((function(){We&&(ct(),We(),Xe(null))}),[We]),(pt||gt)&&(we.onClick=function(e){var t;Re.current&&gt?Le(!1):!Re.current&&pt&&(Ge(e),Le(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onClick)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),function(e,t,n,r,i,a,s,l){var c=o.useRef(e);c.current=e,o.useEffect((function(){if(t&&r&&(!i||a)){var e=function(e){var t;c.current&&!s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&l(!1)},o=xd(r);o.addEventListener("mousedown",e,!0),o.addEventListener("contextmenu",e,!0);var u,d,f=Aa(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&S((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=r.getRootNode)||void 0===d?void 0:d.call(r)),"trigger element and popup element should in same shadow root."),function(){o.removeEventListener("mousedown",e,!0),o.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,i,a])}(Ne,gt,ge,ue,w,E,Ee,Le);var Ot,_t,Mt=ft.has("hover"),Nt=ht.has("hover");Mt&&(kt("onMouseEnter",!0,m,(function(e){Ge(e)})),kt("onPointerEnter",!0,m,(function(e){Ge(e)})),Ot=function(e){(Ne||Fe)&&null!=ue&&ue.contains(e.target)&&Le(!0,m)},H&&(we.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Nt&&(kt("onMouseLeave",!1,b),kt("onPointerLeave",!1,b),_t=function(){Le(!1,b)}),ft.has("focus")&&kt("onFocus",!0,y),ht.has("focus")&&kt("onBlur",!1,x),ft.has("contextMenu")&&(we.onContextMenu=function(e){var t;Re.current&&ht.has("contextMenu")?Le(!1):(Ge(e),Le(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onContextMenu)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),Q&&(we.className=h(xe.className,Q));var Pt=R(R({},xe),we),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(It[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Pt[e])||void 0===t||t.call.apply(t,[Pt].concat(o)),ee[e].apply(ee,o)})}));var Rt=o.cloneElement(ye,R(R({},Pt),It)),Tt={x:rt,y:it},jt=X?R({},!0!==X?X:{}):null;return o.createElement(o.Fragment,null,o.createElement(Oe,{disabled:!Ne,ref:be,onResize:function(){St(),mt()}},o.createElement(gd,{getTriggerDOMNode:J},Rt)),o.createElement(md.Provider,{value:se},o.createElement(pd,{portal:e,ref:he,prefixCls:i,popup:M,className:h(N,vt),style:P,target:ge,onMouseEnter:Ot,onMouseLeave:_t,onPointerEnter:Ot,zIndex:L,open:Ne,keepDom:Fe,fresh:F,onClick:V,mask:w,motion:Se,maskMotion:ke,onVisibleChanged:function(e){He(!1),ct(),null==g||g(e)},onPrepare:function(){return new Promise((function(e){St(),Xe((function(){return e}))}))},forceRender:O,autoDestroy:te,getPopupContainer:k,align:lt,arrow:jt,arrowPos:Tt,ready:Qe,offsetX:Je,offsetY:et,offsetR:nt,offsetB:ot,onAlign:mt,stretch:z,targetWidth:yt/at,targetHeight:Ct/st})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Zl);function Id(e,t,n){return h({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Rd=(e,t)=>t||e,Td=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[t]:s}=e.useContext(jr),l=e.useContext(wu),c=null==s?void 0:s.variant;let u;u=void 0!==n?n:!1===o?"borderless":null!==(i=null!==(r=null!=l?l:c)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Tr.includes(u)]};var jd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ad=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:jd}))},Dd=o.forwardRef(Ad);"production"!==process.env.NODE_ENV&&(Dd.displayName="CheckOutlined");var Ld={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},zd=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Ld}))},Bd=o.forwardRef(zd);function Fd(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,s=e.style;return o.createElement("div",{className:h("".concat(n,"-content"),a),style:s},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}"production"!==process.env.NODE_ENV&&(Bd.displayName="SearchOutlined");var Hd={shiftX:64,adjustY:1},Vd={adjustX:1,shiftY:!0},Wd=[0,0],Xd={left:{points:["cr","cl"],overflow:Vd,offset:[-4,0],targetOffset:Wd},right:{points:["cl","cr"],overflow:Vd,offset:[4,0],targetOffset:Wd},top:{points:["bc","tc"],overflow:Hd,offset:[0,-4],targetOffset:Wd},bottom:{points:["tc","bc"],overflow:Hd,offset:[0,4],targetOffset:Wd},topLeft:{points:["bl","tl"],overflow:Hd,offset:[0,-4],targetOffset:Wd},leftTop:{points:["tr","tl"],overflow:Vd,offset:[-4,0],targetOffset:Wd},topRight:{points:["br","tr"],overflow:Hd,offset:[0,-4],targetOffset:Wd},rightTop:{points:["tl","tr"],overflow:Vd,offset:[4,0],targetOffset:Wd},bottomRight:{points:["tr","br"],overflow:Hd,offset:[0,4],targetOffset:Wd},rightBottom:{points:["bl","br"],overflow:Vd,offset:[4,0],targetOffset:Wd},bottomLeft:{points:["tl","bl"],overflow:Hd,offset:[0,4],targetOffset:Wd},leftBottom:{points:["br","bl"],overflow:Vd,offset:[-4,0],targetOffset:Wd}},qd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Ud=function(t,n){var r=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,f=t.prefixCls,h=void 0===f?"rc-tooltip":f,g=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,y=t.animation,x=t.motion,w=t.placement,C=void 0===w?"right":w,E=t.align,S=void 0===E?{}:E,k=t.destroyTooltipOnHide,O=void 0!==k&&k,_=t.defaultVisible,$=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,P=t.id,I=t.showArrow,T=void 0===I||I,j=tt(t,qd),A=e.useRef(null);e.useImperativeHandle(n,(function(){return A.current}));var D=R({},j);"visible"in t&&(D.popupVisible=t.visible);return o.createElement(Pd,p({popupClassName:r,prefixCls:h,popup:function(){return o.createElement(Fd,{key:"content",prefixCls:h,id:P,overlayInnerStyle:M},N)},action:a,builtinPlacements:Xd,popupPlacement:C,ref:A,popupAlign:S,getPopupContainer:$,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:_,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:T},D),g)},Yd=e.forwardRef(Ud);const Gd=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ct(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Kd=8;function Zd(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?Kd:o}}function Qd(e,t){return e?t:{}}function Jd(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Gd(e,t,r)),{"&:before":{background:t}})]},Qd(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ct(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Qd(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ct(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Qd(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),Qd(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const ef={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},tf={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},nf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function of(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(ef).forEach((e=>{const c=o&&tf[e]||ef[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,nf.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+r}const d=Zd({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const rf=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ei(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Ct(e.calc(c).div(2).equal())} ${Ct(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Kd)}},[`${t}-content`]:{position:"relative"}}),Pi(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Jd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},af=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Zd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),s=r-o*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,d=c,f=2*r-a,h=s,p=2*r-0,g=i,m=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${h} A ${o} ${o} 0 0 0 ${p} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}(ni(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var sf=function(e){const t=$i("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=ni(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[rf(r),Fu(e,"zoom-big-fast")]}),af,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const lf=ci.map((e=>`${e}-inverse`));function cf(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Pe(lf),Pe(ci)).includes(e):ci.includes(e)}function uf(e,t){const n=cf(t),o=h({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}var df=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ff=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:m=!0,title:v,overlay:b,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:w=!0}=e,C=!!m,[,E]=xi(),{getPopupContainer:S,getPrefixCls:k,direction:O}=o.useContext(jr),_=ho("Tooltip"),$=o.useRef(null),M=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e;return{forceAlign:M,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:null===(e=$.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,o]=t;_.deprecated(!(n in e),n,o)})),"production"!==process.env.NODE_ENV&&_(!g||"boolean"==typeof g,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&_(!m||"boolean"==typeof m||!("arrowPointAtCenter"in m),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[N,P]=Qr(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),I=!v&&!b&&0!==v,R=o.useMemo((()=>{var e,t;let n=x;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:x),y||of({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:C?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[x,m,y,E]),T=o.useMemo((()=>0===v?v:b||v||""),[b,v]),j=o.createElement(Cu,{space:!0},"function"==typeof T?T():T),{getPopupContainer:A,placement:D="top",mouseEnterDelay:L=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:F}=e,H=df(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=k("tooltip",i),W=k(),X=e["data-popover-inject"];let q=N;"open"in e||"visible"in e||!I||(q=!1);const U=o.isValidElement(d)&&!os(d)?d:o.createElement("span",null,d),Y=U.props,G=Y.className&&"string"!=typeof Y.className?Y.className:h(Y.className,a||`${V}-open`),[K,Z,Q]=sf(V,!X),J=uf(V,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=h(l,{[`${V}-rtl`]:"rtl"===O},J.className,F,Z,Q),[oe,re]=gs("Tooltip",H.zIndex),ie=o.createElement(Yd,Object.assign({},H,{zIndex:oe,showArrow:C,placement:D,mouseEnterDelay:L,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),B),getTooltipContainer:A||s||S,ref:$,builtinPlacements:R,overlay:j,visible:q,onVisibleChange:t=>{var n,o;P(!I&&t),I||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:o.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:As(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),q?is(U,{className:G}):U);return K(o.createElement(ds.Provider,{value:re},ie))})),hf=ff;"production"!==process.env.NODE_ENV&&(hf.displayName="Tooltip"),hf._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=o.useContext(jr),c=l("tooltip",t),[u,d,f]=sf(c),p=uf(c,a),g=p.arrowStyle,m=Object.assign(Object.assign({},s),p.overlayStyle),v=h(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return u(o.createElement("div",{className:v,style:g},o.createElement("div",{className:`${c}-arrow`}),o.createElement(Fd,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),i)))};const pf=new Jn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),gf=new Jn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),mf=new Jn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),vf=new Jn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),bf=new Jn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),yf=new Jn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),xf=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return ni(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},wf=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}};var Cf=$i("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,motionDurationSlow:i,textFontSize:a,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:h,calc:p}=e,g=`${o}-scroll-number`,m=Pi(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ei(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:Ct(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${Ct(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:Ct(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Ct(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Ct(r)} ${e.badgeShadowColor}`},[`${t}-dot${g}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:yf,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:pf,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:gf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:mf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:vf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:bf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${t}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[g]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(xf(e))),wf);var Ef=$i(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Pi(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Ei(e)),{position:"absolute",top:o,padding:`0 ${Ct(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ct(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${Ct(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(xf(e))),wf);const Sf=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:s,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=o.useContext(jr),f=u("ribbon",n),p=`${f}-wrapper`,[g,m,v]=Ef(f,p),b=cf(i,!1),y=h(f,`${f}-placement-${l}`,{[`${f}-rtl`]:"rtl"===d,[`${f}-color-${i}`]:b},t),x={},w={};return i&&!b&&(x.background=i,w.color=i),g(o.createElement("div",{className:h(p,c,m,v)},a,o.createElement("div",{className:h(y,m),style:Object.assign(Object.assign({},x),r)},o.createElement("span",{className:`${f}-text`},s),o.createElement("div",{className:`${f}-corner`,style:w}))))};"production"!==process.env.NODE_ENV&&(Sf.displayName="Ribbon");const kf=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),o.createElement("span",{style:a,className:h(`${t}-only-unit`,{current:r})},n)};function Of(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const _f=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[s,l]=o.useState(i),[c,u]=o.useState(a),d=()=>{l(i),u(a)};let f,h;if(o.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))f=[o.createElement(kf,Object.assign({},e,{key:i,current:!0}))],h={transition:"none"};else{f=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const r=n.findIndex((e=>e%10===s));f=n.map(((t,n)=>{const i=t%10;return o.createElement(kf,Object.assign({},e,{key:t,value:i,offset:n-r,current:n===r}))}));h={transform:`translateY(${-Of(s,i,c<a?1:-1)}00%)`}}return o.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:d},f)};var $f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Mf=o.forwardRef(((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=e,f=$f(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=o.useContext(jr),g=p("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":c,style:s,className:h(g,i,a),title:l});let v=r;if(r&&Number(r)%1==0){const e=String(r).split("");v=o.createElement("bdi",null,e.map(((t,n)=>o.createElement(_f,{prefixCls:g,count:Number(r),value:t,key:e.length-n}))))}return(null==s?void 0:s.borderColor)&&(m.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?is(d,(e=>({className:h(`${g}-custom-component`,null==e?void 0:e.className,a)}))):o.createElement(u,Object.assign({},m,{ref:t}),v)}));var Nf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Pf=o.forwardRef(((t,n)=>{var r,i,a,s,l;const{prefixCls:c,scrollNumberPrefixCls:u,children:d,status:f,text:p,color:g,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:x,offset:w,style:C,className:E,rootClassName:S,classNames:k,styles:O,showZero:_=!1}=t,$=Nf(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:N,badge:P}=o.useContext(jr),I=M("badge",c),[R,T,j]=Cf(I),A=m>v?`${v}+`:m,D="0"===A||0===A,L=(null!=f||null!=g)&&(null===m||D&&!_),z=b&&!D,B=z?"":A,F=e.useMemo((()=>(null==B||""===B||D&&!_)&&!z),[B,D,_,z]),H=e.useRef(m);F||(H.current=m);const V=H.current,W=e.useRef(B);F||(W.current=B);const X=W.current,q=e.useRef(z);F||(q.current=z);const U=e.useMemo((()=>{if(!w)return Object.assign(Object.assign({},null==P?void 0:P.style),C);const e={marginTop:w[1]};return"rtl"===N?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==P?void 0:P.style),C)}),[N,w,C,null==P?void 0:P.style]),Y=null!=x?x:"string"==typeof V||"number"==typeof V?V:void 0,G=F||!p?null:o.createElement("span",{className:`${I}-status-text`},p),K=V&&"object"==typeof V?is(V,(e=>({style:Object.assign(Object.assign({},U),e.style)}))):void 0,Z=cf(g,!1),Q=h(null==k?void 0:k.indicator,null===(r=null==P?void 0:P.classNames)||void 0===r?void 0:r.indicator,{[`${I}-status-dot`]:L,[`${I}-status-${f}`]:!!f,[`${I}-color-${g}`]:Z}),J={};g&&!Z&&(J.color=g,J.background=g);const ee=h(I,{[`${I}-status`]:L,[`${I}-not-a-wrapper`]:!d,[`${I}-rtl`]:"rtl"===N},E,S,null==P?void 0:P.className,null===(i=null==P?void 0:P.classNames)||void 0===i?void 0:i.root,null==k?void 0:k.root,T,j);if(!d&&L){const e=U.color;return R(o.createElement("span",Object.assign({},$,{className:ee,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(a=null==P?void 0:P.styles)||void 0===a?void 0:a.root),U)}),o.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(s=null==P?void 0:P.styles)||void 0===s?void 0:s.indicator),J)}),p&&o.createElement("span",{style:{color:e},className:`${I}-status-text`},p)))}return R(o.createElement("span",Object.assign({ref:n},$,{className:ee,style:Object.assign(Object.assign({},null===(l=null==P?void 0:P.styles)||void 0===l?void 0:l.root),null==O?void 0:O.root)}),d,o.createElement(ma,{visible:!F,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,r;const i=M("scroll-number",u),a=q.current,s=h(null==k?void 0:k.indicator,null===(n=null==P?void 0:P.classNames)||void 0===n?void 0:n.indicator,{[`${I}-dot`]:a,[`${I}-count`]:!a,[`${I}-count-sm`]:"small"===y,[`${I}-multiple-words`]:!a&&X&&X.toString().length>1,[`${I}-status-${f}`]:!!f,[`${I}-color-${g}`]:Z});let l=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(r=null==P?void 0:P.styles)||void 0===r?void 0:r.indicator),U);return g&&!Z&&(l=l||{},l.background=g),o.createElement(Mf,{prefixCls:i,show:!F,motionClassName:t,className:s,count:X,title:Y,style:l,key:"scrollNumber"},K)})),G))})),If=Pf;If.Ribbon=Sf,"production"!==process.env.NODE_ENV&&(If.displayName="Badge");var Rf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Tf=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Rf}))},jf=o.forwardRef(Tf);"production"!==process.env.NODE_ENV&&(jf.displayName="RightOutlined");var Af=ss.ESC,Df=ss.TAB;var Lf=e.forwardRef((function(t,n){var o=t.overlay,r=t.arrow,i=t.prefixCls,a=e.useMemo((function(){return"function"==typeof o?o():o}),[o]),s=L(n,null==a?void 0:a.ref);return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:B(a)?s:void 0}))})),zf={adjustX:1,adjustY:1},Bf=[0,0],Ff={topLeft:{points:["bl","tl"],overflow:zf,offset:[0,-4],targetOffset:Bf},top:{points:["bc","tc"],overflow:zf,offset:[0,-4],targetOffset:Bf},topRight:{points:["br","tr"],overflow:zf,offset:[0,-4],targetOffset:Bf},bottomLeft:{points:["tl","bl"],overflow:zf,offset:[0,4],targetOffset:Bf},bottom:{points:["tc","bc"],overflow:zf,offset:[0,4],targetOffset:Bf},bottomRight:{points:["tr","br"],overflow:zf,offset:[0,4],targetOffset:Bf}},Hf=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Vf(t,n){var r,i=t.arrow,a=void 0!==i&&i,s=t.prefixCls,l=void 0===s?"rc-dropdown":s,c=t.transitionName,u=t.animation,d=t.align,f=t.placement,g=void 0===f?"bottomLeft":f,m=t.placements,v=void 0===m?Ff:m,b=t.getPopupContainer,y=t.showAction,x=t.hideAction,w=t.overlayClassName,C=t.overlayStyle,E=t.visible,S=t.trigger,k=void 0===S?["hover"]:S,O=t.autoFocus,_=t.overlay,$=t.children,M=t.onVisibleChange,N=tt(t,Hf),I=Be(e.useState(),2),R=I[0],T=I[1],j="visible"in t?E:R,A=e.useRef(null),D=e.useRef(null),z=e.useRef(null);e.useImperativeHandle(n,(function(){return A.current}));var F=function(e){T(e),null==M||M(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,s=o.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case Af:l();break;case Df:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&De(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[t])}({visible:j,triggerRef:z,onVisibleChange:F,autoFocus:O,overlayRef:D});var H,V,W,X=function(){return e.createElement(Lf,{ref:D,overlay:_,prefixCls:l,arrow:a})},q=e.cloneElement($,{className:h(null===(r=$.props)||void 0===r?void 0:r.className,j&&(H=t.openClassName,void 0!==H?H:"".concat(l,"-open"))),ref:B($)?L(z,$.ref):void 0}),U=x;return U||-1===k.indexOf("contextMenu")||(U=["click"]),e.createElement(Pd,p({builtinPlacements:v},N,{prefixCls:l,ref:A,popupClassName:h(w,P({},"".concat(l,"-show-arrow"),a)),popupStyle:C,action:k,showAction:y,hideAction:U,popupPlacement:g,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:j,stretch:(V=t.minOverlayWidthMatchTrigger,W=t.alignPoint,("minOverlayWidthMatchTrigger"in t?V:!W)?"minWidth":""),popup:"function"==typeof _?X:X(),onPopupVisibleChange:F,onPopupClick:function(e){var n=t.onOverlayClick;T(!1),n&&n(e)},getPopupContainer:b}),q)}var Wf=e.forwardRef(Vf),Xf=o.createContext(null);function qf(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Uf(e){return qf(o.useContext(Xf),e)}var Yf=["children","locked"],Gf=o.createContext(null);function Kf(e){var t=e.children,n=e.locked,r=tt(e,Yf),i=o.useContext(Gf),a=A((function(){return function(e,t){var n=R({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(i,r)}),[i,r],(function(e,t){return!(n||e[0]===t[0]&&nt(e[1],t[1],!0))}));return o.createElement(Gf.Provider,{value:a},t)}var Zf=[],Qf=o.createContext(null);function Jf(){return o.useContext(Qf)}var eh=o.createContext(Zf);function th(e){var t=o.useContext(eh);return o.useMemo((function(){return void 0!==e?[].concat(Pe(t),[e]):t}),[t,e])}var nh=o.createContext(null),oh=o.createContext({});function rh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ds(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var ih=ss.LEFT,ah=ss.RIGHT,sh=ss.UP,lh=ss.DOWN,ch=ss.ENTER,uh=ss.ESC,dh=ss.HOME,fh=ss.END,hh=[sh,lh,ih,ah];function ph(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Pe(e.querySelectorAll("*")).filter((function(e){return rh(e,t)}));return rh(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function gh(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=ph(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var mh=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(qf(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function vh(e,t,n,r,i,a,s,l,c,u){var d=o.useRef(),f=o.useRef();f.current=t;var h=function(){De.cancel(d.current)};return o.useEffect((function(){return function(){h()}}),[]),function(o){var p=o.which;if([].concat(hh,[ch,uh,dh,fh]).includes(p)){var g=a(),m=mh(g,r),v=m,b=v.elements,y=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=x.get(w),E=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===ch)return{inlineTrigger:!0};var f=(P(r={},sh,l),P(r,lh,c),r),h=(P(i={},ih,n?c:l),P(i,ah,n?l:c),P(i,lh,u),P(i,ch,u),i),p=(P(a={},sh,l),P(a,lh,c),P(a,ch,u),P(a,uh,d),P(a,ih,n?u:d),P(a,ah,n?d:u),a);switch(null===(s={inline:f,horizontal:h,vertical:p,inlineSub:f,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[o]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===s(C,!0).length,n,p);if(!E&&p!==dh&&p!==fh)return;(hh.includes(p)||[dh,fh].includes(p))&&o.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=x.get(e);l(o),h(),d.current=De((function(){f.current===o&&t.focus()}))}};if([dh,fh].includes(p)||E.sibling||!w){var k,O,_=ph(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);O=p===dh?_[0]:p===fh?_[_.length-1]:gh(k,b,w,E.offset),S(O)}else if(E.inlineTrigger)c(C);else if(E.offset>0)c(C,!0),h(),d.current=De((function(){m=mh(g,r);var e=w.getAttribute("aria-controls"),t=gh(document.getElementById(e),m.elements);S(t)}),5);else if(E.offset<0){var $=s(C,!0),M=$[$.length-2],N=y.get(M);c(M,!1),S(N)}}null==u||u(o)}}var bh="__RC_UTIL_PATH_SPLIT__",yh=function(e){return e.join(bh)},xh="rc-menu-more";function wh(){var t=Be(o.useState({}),2)[1],n=e.useRef(new Map),r=e.useRef(new Map),i=Be(o.useState([]),2),a=i[0],s=i[1],l=e.useRef(0),c=e.useRef(!1),u=e.useCallback((function(e,o){"production"!==process.env.NODE_ENV&&$(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(o.join(" > "),"]"));var i=yh(o);r.current.set(i,e),n.current.set(e,i),l.current+=1;var a=l.current;!function(e){Promise.resolve().then(e)}((function(){a===l.current&&(c.current||t({}))}))}),[]),d=e.useCallback((function(e,t){var o=yh(t);r.current.delete(o),n.current.delete(e)}),[]),f=e.useCallback((function(e){s(e)}),[]),h=e.useCallback((function(e,t){var o=n.current.get(e)||"",r=o.split(bh);return t&&a.includes(r[0])&&r.unshift(xh),r}),[a]),p=e.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return h(e,!0).includes(t)}))}),[h]),g=e.useCallback((function(e){var t="".concat(n.current.get(e)).concat(bh),o=new Set;return Pe(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return o.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:p,getKeyPath:h,getKeys:function(){var e=Pe(n.current.keys());return a.length&&e.push(xh),e},getSubPathKeys:g}}function Ch(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var Eh=Math.random().toFixed(5).toString().slice(2),Sh=0;function kh(e,t,n,r){var i=o.useContext(Gf),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),s(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}function Oh(e){var t=o.useContext(Gf),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function _h(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=o.createElement(n,R({},r)):"boolean"!=typeof n&&(t=n),t||i||null)}var $h=["item"];function Mh(e){var t=e.item,n=tt(e,$h);return Object.defineProperty(n,"item",{get:function(){return $(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Nh=["title","attribute","elementRef"],Ph=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ih=["active"],Rh=function(){ve(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=_e(tt(e,Nh),["eventKey","popupClassName","popupOffset","onTitleClick"]);return $(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(ud.Item,p({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),t}(),Th=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.eventKey,s=e.warnKey,l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,g=e.onMouseLeave,m=e.onClick,v=e.onKeyDown,b=e.onFocus,y=tt(e,Ph),x=Uf(a),w=o.useContext(Gf),C=w.prefixCls,E=w.onItemClick,S=w.disabled,k=w.overflowDisabled,O=w.itemIcon,_=w.selectedKeys,M=w.onActive,N=o.useContext(oh)._internalRenderMenuItem,I="".concat(C,"-item"),T=o.useRef(),j=o.useRef(),A=S||l,D=z(t,j),L=th(a);"production"!==process.env.NODE_ENV&&s&&$(!1,"MenuItem should not leave undefined `key`.");var B=function(e){return{key:a,keyPath:Pe(L).reverse(),item:T.current,domEvent:e}},F=c||O,H=kh(a,A,f,g),V=H.active,W=tt(H,Ih),X=_.includes(a),q=Oh(L.length),U={};"option"===e.role&&(U["aria-selected"]=X);var Y=o.createElement(Rh,p({ref:T,elementRef:D,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":k&&x?null:x},y,W,U,{component:"li","aria-disabled":l,style:R(R({},q),r),className:h(I,(n={},P(n,"".concat(I,"-active"),V),P(n,"".concat(I,"-selected"),X),P(n,"".concat(I,"-disabled"),A),n),i),onClick:function(e){if(!A){var t=B(e);null==m||m(Mh(t)),E(t)}},onKeyDown:function(e){if(null==v||v(e),e.which===ss.ENTER){var t=B(e);null==m||m(Mh(t)),E(t)}},onFocus:function(e){M(a),null==b||b(e)}}),u,o.createElement(_h,{props:R(R({},e),{},{isSelected:X}),icon:F}));return N&&(Y=N(Y,e,{selected:X})),Y}));function jh(e,t){var n=e.eventKey,r=Jf(),i=th(n);return o.useEffect((function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}}),[i]),r?null:o.createElement(Th,p({},e,{ref:t}))}var Ah=o.forwardRef(jh),Dh=["className","children"],Lh=function(e,t){var n=e.className,r=e.children,i=tt(e,Dh),a=o.useContext(Gf),s=a.prefixCls,l=a.mode,c=a.rtl;return o.createElement("ul",p({className:h(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)},zh=o.forwardRef(Lh);function Bh(e,t){return w(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,s=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,l=null==s;l&&(s="tmp_key-".concat([].concat(Pe(t),[n]).join("-")));var c={key:s,eventKey:s};return"production"!==process.env.NODE_ENV&&l&&(c.warnKey=!0),o.cloneElement(e,c)}return e}))}zh.displayName="SubMenuList";var Fh={adjustX:1,adjustY:1},Hh={topLeft:{points:["bl","tl"],overflow:Fh},topRight:{points:["br","tr"],overflow:Fh},bottomLeft:{points:["tl","bl"],overflow:Fh},bottomRight:{points:["tr","br"],overflow:Fh},leftTop:{points:["tr","tl"],overflow:Fh},leftBottom:{points:["br","bl"],overflow:Fh},rightTop:{points:["tl","tr"],overflow:Fh},rightBottom:{points:["bl","br"],overflow:Fh}},Vh={topLeft:{points:["bl","tl"],overflow:Fh},topRight:{points:["br","tr"],overflow:Fh},bottomLeft:{points:["tl","bl"],overflow:Fh},bottomRight:{points:["tr","br"],overflow:Fh},rightTop:{points:["tr","tl"],overflow:Fh},rightBottom:{points:["br","bl"],overflow:Fh},leftTop:{points:["tl","tr"],overflow:Fh},leftBottom:{points:["bl","br"],overflow:Fh}};function Wh(e,t,n){return t||(n?n[e]||n.other:void 0)}var Xh={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function qh(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,s=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=o.useContext(Gf),p=f.getPopupContainer,g=f.rtl,m=f.subMenuOpenDelay,v=f.subMenuCloseDelay,b=f.builtinPlacements,y=f.triggerSubMenuAction,x=f.forceSubMenuRender,w=f.rootClassName,C=f.motion,E=f.defaultMotions,S=Be(o.useState(!1),2),k=S[0],O=S[1],_=R(R({},g?Vh:Hh),b),$=Xh[u],M=Wh(u,C,E),N=o.useRef(M);"inline"!==u&&(N.current=M);var I=R(R({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=o.useRef();return o.useEffect((function(){return T.current=De((function(){O(n)})),function(){De.cancel(T.current)}}),[n]),o.createElement(Pd,{prefixCls:t,popupClassName:h("".concat(t,"-popup"),P({},"".concat(t,"-rtl"),g),s,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:_,popupPlacement:$,popupVisible:k,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[y],mouseEnterDelay:m,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:x,popupMotion:I,fresh:!0},r)}function Uh(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",s=o.useContext(Gf),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,f=s.mode,h=o.useRef(!1);h.current=f===a;var g=Be(o.useState(!h.current),2),m=g[0],v=g[1],b=!!h.current&&n;o.useEffect((function(){h.current&&v(!1)}),[f]);var y=R({},Wh(a,u,d));r.length>1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(e){return h.current||e||v(!0),null==x?void 0:x(e)},m?null:o.createElement(Kf,{mode:a,locked:!h.current},o.createElement(ma,p({visible:b},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(zh,{id:t,className:n,style:r},i)})))}var Yh=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Gh=["active"],Kh=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.title,s=e.eventKey,l=e.warnKey,c=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,g=e.expandIcon,m=e.popupClassName,v=e.popupOffset,b=e.popupStyle,y=e.onClick,x=e.onMouseEnter,w=e.onMouseLeave,C=e.onTitleClick,E=e.onTitleMouseEnter,S=e.onTitleMouseLeave,k=tt(e,Yh),O=Uf(s),_=o.useContext(Gf),M=_.prefixCls,N=_.mode,I=_.openKeys,T=_.disabled,j=_.overflowDisabled,A=_.activeKey,D=_.selectedKeys,L=_.itemIcon,z=_.expandIcon,B=_.onItemClick,F=_.onOpenChange,H=_.onActive,V=o.useContext(oh)._internalRenderSubMenuItem,W=o.useContext(nh).isSubPathKey,X=th(),q="".concat(M,"-submenu"),U=T||c,Y=o.useRef(),G=o.useRef();"production"!==process.env.NODE_ENV&&l&&$(!1,"SubMenu should not leave undefined `key`.");var K=null!=f?f:L,Z=null!=g?g:z,Q=I.includes(s),J=!j&&Q,ee=W(D,s),te=kh(s,U,E,S),ne=te.active,oe=tt(te,Gh),re=Be(o.useState(!1),2),ie=re[0],ae=re[1],se=function(e){U||ae(e)},le=o.useMemo((function(){return ne||"inline"!==N&&(ie||W([A],s))}),[N,ne,A,ie,s,W]),ce=Oh(X.length),ue=Ch((function(e){null==y||y(Mh(e)),B(e)})),de=O&&"".concat(O,"-popup"),fe=o.createElement("div",p({role:"menuitem",style:ce,className:"".concat(q,"-title"),tabIndex:U?null:-1,ref:Y,title:"string"==typeof a?a:null,"data-menu-id":j&&O?null:O,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":U,onClick:function(e){U||(null==C||C({key:s,domEvent:e}),"inline"===N&&F(s,!Q))},onFocus:function(){H(s)}},oe),a,o.createElement(_h,{icon:"horizontal"!==N?Z:void 0,props:R(R({},e),{},{isOpen:J,isSubMenu:!0})},o.createElement("i",{className:"".concat(q,"-arrow")}))),he=o.useRef(N);if("inline"!==N&&X.length>1?he.current="vertical":he.current=N,!j){var pe=he.current;fe=o.createElement(qh,{mode:pe,prefixCls:q,visible:!u&&J&&"inline"!==N,popupClassName:m,popupOffset:v,popupStyle:b,popup:o.createElement(Kf,{mode:"horizontal"===pe?"vertical":pe},o.createElement(zh,{id:de,ref:G},d)),disabled:U,onVisibleChange:function(e){"inline"!==N&&F(s,e)}},fe)}var ge=o.createElement(ud.Item,p({ref:t,role:"none"},k,{component:"li",style:r,className:h(q,"".concat(q,"-").concat(N),i,(n={},P(n,"".concat(q,"-open"),J),P(n,"".concat(q,"-active"),le),P(n,"".concat(q,"-selected"),ee),P(n,"".concat(q,"-disabled"),U),n)),onMouseEnter:function(e){se(!0),null==x||x({key:s,domEvent:e})},onMouseLeave:function(e){se(!1),null==w||w({key:s,domEvent:e})}}),fe,!j&&o.createElement(Uh,{id:de,open:J,keyPath:X},d));return V&&(ge=V(ge,e,{selected:ee,active:le,open:J,disabled:U})),o.createElement(Kf,{onItemClick:ue,mode:"horizontal"===N?"vertical":N,itemIcon:K,expandIcon:Z},ge)})),Zh=o.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=th(r),s=Bh(i,a),l=Jf();return o.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),n=l?s:o.createElement(Kh,p({ref:t},e),s),o.createElement(eh.Provider,{value:a},n)}));function Qh(e){var t=e.className,n=e.style,r=o.useContext(Gf).prefixCls;return Jf()?null:o.createElement("li",{role:"separator",className:h("".concat(r,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(Zh.displayName="SubMenu");var Jh=["className","title","eventKey","children"],ep=o.forwardRef((function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=tt(e,Jh),s=o.useContext(Gf).prefixCls,l="".concat(s,"-item-group");return o.createElement("li",p({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:h(l,n)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))})),tp=o.forwardRef((function(e,t){var n=e.eventKey,r=Bh(e.children,th(n));return Jf()?r:o.createElement(ep,p({ref:t},_e(e,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(tp.displayName="MenuItemGroup");var np=["label","children","key","type"];function op(e,t){var n=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===M(e)){var l=e,c=l.label,u=l.children,d=l.key,f=l.type,h=tt(l,np),g=null!=d?d:"tmp-".concat(s);return u||"group"===f?"group"===f?o.createElement(r,p({key:g},h,{title:c}),op(u,t)):o.createElement(i,p({key:g},h,{title:c}),op(u,t)):"divider"===f?o.createElement(a,p({key:g},h)):o.createElement(n,p({key:g},h),c)}return null})).filter((function(e){return e}))}function rp(e,t,n,o){var r=e,i=R({divider:Qh,item:Ah,group:tp,submenu:Zh},o);return t&&(r=op(t,i)),Bh(r,n)}var ip=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ap=[],sp=o.forwardRef((function(n,r){var i,a,s=n,l=s.prefixCls,c=void 0===l?"rc-menu":l,u=s.rootClassName,d=s.style,f=s.className,g=s.tabIndex,m=void 0===g?0:g,v=s.items,b=s.children,y=s.direction,x=s.id,w=s.mode,C=void 0===w?"vertical":w,E=s.inlineCollapsed,S=s.disabled,k=s.disabledOverflow,O=s.subMenuOpenDelay,_=void 0===O?.1:O,M=s.subMenuCloseDelay,N=void 0===M?.1:M,I=s.forceSubMenuRender,T=s.defaultOpenKeys,j=s.openKeys,A=s.activeKey,D=s.defaultActiveFirst,L=s.selectable,z=void 0===L||L,B=s.multiple,F=void 0!==B&&B,H=s.defaultSelectedKeys,V=s.selectedKeys,W=s.onSelect,X=s.onDeselect,q=s.inlineIndent,U=void 0===q?24:q,Y=s.motion,G=s.defaultMotions,K=s.triggerSubMenuAction,Z=void 0===K?"hover":K,Q=s.builtinPlacements,J=s.itemIcon,ee=s.expandIcon,te=s.overflowedIndicator,ne=void 0===te?"...":te,oe=s.overflowedIndicatorPopupClassName,re=s.getPopupContainer,ie=s.onClick,ae=s.onOpenChange,se=s.onKeyDown,le=s.openAnimation,ce=s.openTransitionName,ue=s._internalRenderMenuItem,de=s._internalRenderSubMenuItem,fe=s._internalComponents,he=tt(s,ip),pe=Be(o.useMemo((function(){return[rp(b,v,ap,fe),rp(b,v,ap,{})]}),[b,v,fe]),2),ge=pe[0],me=pe[1],ve=Be(o.useState(!1),2),be=ve[0],ye=ve[1],xe=o.useRef(),we=function(e){var t=Be(Qr(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){Sh+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Eh,"-").concat(Sh);r("rc-menu-uuid-".concat(e))}),[]),n}(x),Ce="rtl"===y;"production"!==process.env.NODE_ENV&&$(!le&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ee=Qr(T,{value:j,postState:function(e){return e||ap}}),Se=Be(Ee,2),ke=Se[0],Oe=Se[1],_e=function(e){function n(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.flushSync(n):n()},$e=Be(o.useState(ke),2),Me=$e[0],Ne=$e[1],Ie=o.useRef(!1),Re=Be(o.useMemo((function(){return"inline"!==C&&"vertical"!==C||!E?[C,!1]:["vertical",E]}),[C,E]),2),Te=Re[0],je=Re[1],Ae="inline"===Te,De=Be(o.useState(Te),2),Le=De[0],ze=De[1],Fe=Be(o.useState(je),2),He=Fe[0],Ve=Fe[1];o.useEffect((function(){ze(Te),Ve(je),Ie.current&&(Ae?Oe(Me):_e(ap))}),[Te,je]);var We=Be(o.useState(0),2),Xe=We[0],qe=We[1],Ue=Xe>=ge.length-1||"horizontal"!==Le||k;o.useEffect((function(){Ae&&Ne(ke)}),[ke]),o.useEffect((function(){return Ie.current=!0,function(){Ie.current=!1}}),[]);var Ye=wh(),Ge=Ye.registerPath,Ke=Ye.unregisterPath,Ze=Ye.refreshOverflowKeys,Qe=Ye.isSubPathKey,Je=Ye.getKeyPath,et=Ye.getKeys,ot=Ye.getSubPathKeys,rt=o.useMemo((function(){return{registerPath:Ge,unregisterPath:Ke}}),[Ge,Ke]),it=o.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);o.useEffect((function(){Ze(Ue?ap:ge.slice(Xe+1).map((function(e){return e.key})))}),[Xe,Ue]);var at=Be(Qr(A||D&&(null===(i=ge[0])||void 0===i?void 0:i.key),{value:A}),2),st=at[0],lt=at[1],ct=Ch((function(e){lt(e)})),ut=Ch((function(){lt(void 0)}));e.useImperativeHandle(r,(function(){return{list:xe.current,focus:function(e){var t,n,o=et(),r=mh(o,we),i=r.elements,a=r.key2element,s=r.element2key,l=ph(xe.current,i),c=null!=st?st:l[0]?s.get(l[0]):null===(t=ge.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var dt=Qr(H||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?ap:[e]}}),ft=Be(dt,2),ht=ft[0],pt=ft[1],gt=Ch((function(e){null==ie||ie(Mh(e)),function(e){if(z){var t,n=e.key,o=ht.includes(n);t=F?o?ht.filter((function(e){return e!==n})):[].concat(Pe(ht),[n]):[n],pt(t);var r=R(R({},e),{},{selectedKeys:t});o?null==X||X(r):null==W||W(r)}!F&&ke.length&&"inline"!==Le&&_e(ap)}(e)})),mt=Ch((function(e,t){var n=ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var o=ot(e);n=n.filter((function(e){return!o.has(e)}))}nt(ke,n,!0)||_e(n,!0)})),vt=vh(Le,st,Ce,we,xe,et,Je,lt,(function(e,t){var n=null!=t?t:!ke.includes(e);mt(e,n)}),se);o.useEffect((function(){ye(!0)}),[]);var bt=o.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Le||k?ge:ge.map((function(e,t){return o.createElement(Kf,{key:e.key,overflowDisabled:t>Xe},e)})),xt=o.createElement(ud,p({id:x,ref:xe,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:Ah,className:h(c,"".concat(c,"-root"),"".concat(c,"-").concat(Le),f,(a={},P(a,"".concat(c,"-inline-collapsed"),He),P(a,"".concat(c,"-rtl"),Ce),a),u),dir:y,style:d,role:"menu",tabIndex:m,data:yt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ge.slice(-t):null;return o.createElement(Zh,{eventKey:xh,title:ne,disabled:Ue,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==Le||k?ud.INVALIDATE:ud.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){qe(e)},onKeyDown:vt},he));return o.createElement(oh.Provider,{value:bt},o.createElement(Xf.Provider,{value:we},o.createElement(Kf,{prefixCls:c,rootClassName:u,mode:Le,openKeys:ke,rtl:Ce,disabled:S,motion:be?Y:null,defaultMotions:be?G:null,activeKey:st,onActive:ct,onInactive:ut,selectedKeys:ht,inlineIndent:U,subMenuOpenDelay:_,subMenuCloseDelay:N,forceSubMenuRender:I,builtinPlacements:Q,triggerSubMenuAction:Z,getPopupContainer:re,itemIcon:J,expandIcon:ee,onItemClick:gt,onOpenChange:mt},o.createElement(nh.Provider,{value:it},xt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Qf.Provider,{value:rt},me)))))})),lp=sp;lp.Item=Ah,lp.SubMenu=Zh,lp.ItemGroup=tp,lp.Divider=Qh;var cp={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},up=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:cp}))},dp=o.forwardRef(up);"production"!==process.env.NODE_ENV&&(dp.displayName="BarsOutlined");var fp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},hp=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:fp}))},pp=o.forwardRef(hp);"production"!==process.env.NODE_ENV&&(pp.displayName="LeftOutlined");const gp=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var mp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vp={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},bp=o.createContext({}),yp=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),xp=o.forwardRef(((t,n)=>{const{prefixCls:r,className:i,trigger:a,children:s,defaultCollapsed:l=!1,theme:c="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:g=80,zeroWidthTriggerStyle:m,breakpoint:v,onCollapse:b,onBreakpoint:y}=t,x=mp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=e.useContext(gp),[C,E]=e.useState("collapsed"in t?t.collapsed:l),[S,k]=e.useState(!1);e.useEffect((()=>{"collapsed"in t&&E(t.collapsed)}),[t.collapsed]);const O=(e,n)=>{"collapsed"in t||E(e),null==b||b(e,n)},_=e.useRef();_.current=e=>{k(e.matches),null==y||y(e.matches),C!==e.matches&&O(e.matches,"responsive")},e.useEffect((()=>{function e(e){return _.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&v&&v in vp){t=n(`screen and (max-width: ${vp[v]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[v]),e.useEffect((()=>{const e=yp("ant-sider-");return w.addSider(e),()=>w.removeSider(e)}),[]);const $=()=>{O(!C,"clickTrigger")},{getPrefixCls:M}=e.useContext(jr),N=o.useMemo((()=>({siderCollapsed:C})),[C]);return o.createElement(bp.Provider,{value:N},(()=>{const e=M("layout-sider",r),t=_e(x,["collapsed"]),l=C?g:p,v=(b=l,!isNaN(parseFloat(b))&&isFinite(b)?`${l}px`:String(l));var b;const y=0===parseFloat(String(g||0))?o.createElement("span",{onClick:$,className:h(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${f?"right":"left"}`),style:m},a||o.createElement(dp,null)):null,w={expanded:f?o.createElement(jf,null):o.createElement(pp,null),collapsed:f?o.createElement(pp,null):o.createElement(jf,null)}[C?"collapsed":"expanded"],E=null!==a?y||o.createElement("div",{className:`${e}-trigger`,onClick:$,style:{width:v}},a||w):null,k=Object.assign(Object.assign({},u),{flex:`0 0 ${v}`,maxWidth:v,minWidth:v,width:v}),O=h(e,`${e}-${c}`,{[`${e}-collapsed`]:!!C,[`${e}-has-trigger`]:d&&null!==a&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(v)},i);return o.createElement("aside",Object.assign({className:O},t,{style:k,ref:n}),o.createElement("div",{className:`${e}-children`},s),d||S&&y?E:null)})())}));"production"!==process.env.NODE_ENV&&(xp.displayName="Sider");var wp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Cp=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:wp}))},Ep=o.forwardRef(Cp);"production"!==process.env.NODE_ENV&&(Ep.displayName="EllipsisOutlined");const Sp=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var kp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Op=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=kp(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(jr),s=a("menu",t),l=h({[`${s}-item-divider-dashed`]:!!r},n);return o.createElement(Qh,Object.assign({className:l},i))},_p=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=o.useContext(Sp),{siderCollapsed:p}=o.useContext(bp);let g=a;void 0===a?g=c?r:"":!1===a&&(g="");const m={title:g};p||f||(m.title=null,m.open=!1);const v=w(r).length;let b=o.createElement(Ah,Object.assign({},_e(e,["title","icon","danger"]),{className:h({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?v+1:v)},n),title:"string"==typeof a?a:void 0}),is(i,{className:h(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${l}-title-content`},r);return(!i||o.isValidElement(r)&&"span"===r.type)&&r&&e&&c&&"string"==typeof r?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(f));return d||(b=o.createElement(hf,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),b)),b},$p=o.createContext(null),Mp=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Ct(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Np=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ct(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ct(n)})`}}}}},Pp=e=>Object.assign({},ki(e)),Ip=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:p,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:_,itemActiveBg:$,menuSubMenuBg:M,horizontalItemSelectedColor:N,horizontalItemSelectedBg:P,horizontalItemBorderRadius:I,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Pp(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Pp(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:$}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:$}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:I,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Ct(c)} solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ct(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ct(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},Rp=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ct(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ct(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Tp=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:p,collapsedWidth:g,collapsedIconSize:m}=e,v={height:o,lineHeight:Ct(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Rp(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Rp(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Ct(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ct(e.calc(d).div(2).equal())} - ${Ct(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Ct(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ci),{paddingInline:h})}}]},jp=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ap=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ct(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ct(a)})`}}}}},Dp=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:g,lineType:m,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ei(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ct(s)} ${Ct(l)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),jp(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ct(e.calc(o).mul(2).equal())} ${Ct(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},jp(e)),Ap(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Ap(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ct(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Ct(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ct(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ct(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ct(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Lp=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:p,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:S,colorTextLightSolid:k,colorErrorHover:O}=e,_=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,$=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:h,M=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,N=new Wo(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:$,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:S,groupTitleFontSize:C,darkItemDisabledColor:new Wo(k).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:_?`calc(100% + ${$}px)`:`calc(100% - ${2*M}px)`}};const zp=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,s=o.useContext(Sp),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=th();let f;if(r){const e=o.isValidElement(i)&&"span"===i.type;f=o.createElement(o.Fragment,null,is(r,{className:h(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?i:o.createElement("span",{className:`${l}-title-content`},i))}else f=c&&!d.length&&i&&"string"==typeof i?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${l}-title-content`},i);const p=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[g]=gs("Menu");return o.createElement(Sp.Provider,{value:p},o.createElement(Zh,Object.assign({},_e(e,["icon"]),{title:f,popupClassName:h(l,n,`${l}-${a||u}`),popupStyle:{zIndex:g}})))};var Bp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Fp(e){return null===e||!1===e}const Hp={item:_p,submenu:zp,divider:Op},Vp=e.forwardRef(((e,t)=>{var n;const r=o.useContext($p),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=o.useContext(jr),u=a(),{prefixCls:d,className:f,style:p,theme:g="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:b,siderCollapsed:y,rootClassName:x,mode:w,selectable:C,onClick:E,overflowedIndicatorPopupClassName:S}=e,k=_e(Bp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=ho("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==w),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:w});const O=Gr((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),_=i.mode||w,$=null!=C?C:i.selectable,M=o.useMemo((()=>void 0!==y?y:b),[b,y]),N={horizontal:{motionName:`${u}-slide-up`},inline:js(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||i.prefixCls),I=as(P),[R,T,j]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=$i("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:h,darkItemDisabledColor:p,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),w=ni(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=ni(w,{itemColor:r,itemHoverColor:h,groupTitleColor:f,itemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:p,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Dp(w),Mp(w),Tp(w),Ip(w,"light"),Ip(C,"dark"),Np(w),ku(w),Ru(w,"slide-up"),Ru(w,"slide-down"),Fu(w,"zoom-big")]}),Lp,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(P,I,!r),A=h(`${P}-${g}`,null==c?void 0:c.className,f),D=o.useMemo((()=>{var e,t;if("function"==typeof m||Fp(m))return m||null;if("function"==typeof i.expandIcon||Fp(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||Fp(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const n=null!==(e=null!=m?m:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==c?void 0:c.expandIcon;return is(n,{className:h(`${P}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[m,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,P]),L=o.useMemo((()=>({prefixCls:P,inlineCollapsed:M||!1,direction:l,firstLevel:!0,theme:g,mode:_,disableMenuItemTitleTooltip:v})),[P,M,l,v,g]);return R(o.createElement($p.Provider,{value:null},o.createElement(Sp.Provider,{value:L},o.createElement(lp,Object.assign({getPopupContainer:s,overflowedIndicator:o.createElement(Ep,null),overflowedIndicatorPopupClassName:h(P,`${P}-${g}`,S),mode:_,selectable:$,onClick:O},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:A,prefixCls:P,direction:l,defaultMotions:N,expandIcon:D,ref:t,rootClassName:h(x,T,i.rootClassName,j,I),_internalComponents:Hp})))))})),Wp=e.forwardRef(((t,n)=>{const r=e.useRef(null),i=o.useContext(bp);return e.useImperativeHandle(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),o.createElement(Vp,Object.assign({ref:r},t,i))}));function Xp(e){return ni(e,{inputAffixPadding:e.paddingXXS})}Wp.Item=_p,Wp.SubMenu=zp,Wp.Divider=Op,Wp.ItemGroup=tp,"production"!==process.env.NODE_ENV&&(Wp.displayName="Menu");const qp=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},Up=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Yp=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Up(ni(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Gp=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Kp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Zp=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Yp(e))}),Kp(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Kp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Qp=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Jp=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Qp(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Qp(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Yp(e))}})}),eg=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},tg=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),ng=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),og=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Yp(e))}),ng(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ng(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),rg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ig=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},rg(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),rg(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ag=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Ct(t)} ${Ct(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},sg=e=>({padding:`${Ct(e.paddingBlockSM)} ${Ct(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),lg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ct(e.paddingBlock)} ${Ct(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}))(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ag(e)),"&-sm":Object.assign({},sg(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),cg=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},ag(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},sg(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ct(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ct(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ct(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ct(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ct(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},ug=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ei(e)),lg(e)),Zp(e)),og(e)),eg(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},dg=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ct(e.inputAffixPadding)}`}}}},fg=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},lg(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),dg(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},hg=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ei(e)),cg(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},Jp(e)),ig(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},pg=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},gg=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${o}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},mg=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var vg=$i("Input",(e=>{const t=ni(e,Xp(e));return[ug(t),gg(t),fg(t),hg(t),pg(t),mg(t),Al(t)]}),qp,{resetFont:!1}),bg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},yg=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:bg}))},xg=o.forwardRef(yg);"production"!==process.env.NODE_ENV&&(xg.displayName="PlusOutlined");var wg=e.createContext(null),Cg={width:0,height:0,left:0,top:0};function Eg(e,t){var n=o.useRef(e),r=Be(o.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var Sg=Math.pow(.995,20);function kg(t){var n=Be(e.useState(0),2),o=n[0],r=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Mt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[o]),function(){i.current===o&&(i.current+=1,r(i.current))}}var Og={width:0,height:0,left:0,top:0,right:0};function _g(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function $g(e){return String(e).replace(/"/g,"TABS_DQ")}function Mg(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var Ng=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),Pg=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==M(a)||o.isValidElement(a)?s.right=a:s=a,"right"===r&&(n=s.right),"left"===r&&(n=s.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));"production"!==process.env.NODE_ENV&&(Pg.displayName="ExtraContent");var Ig=o.forwardRef((function(t,n){var r=t.prefixCls,i=t.id,a=t.tabs,s=t.locale,l=t.mobile,c=t.more,u=void 0===c?{}:c,d=t.style,f=t.className,g=t.editable,m=t.tabBarGutter,v=t.rtl,b=t.removeAriaLabel,y=t.onTabClick,x=t.getPopupContainer,w=t.popupClassName,C=Be(e.useState(!1),2),E=C[0],S=C[1],k=Be(e.useState(null),2),O=k[0],_=k[1],$=u.icon,M=void 0===$?"More":$,N="".concat(i,"-more-popup"),I="".concat(r,"-dropdown"),R=null!==O?"".concat(N,"-").concat(O):null,T=null==s?void 0:s.dropdownAriaLabel;var j=o.createElement(lp,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),S(!1)},prefixCls:"".concat(I,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":void 0!==T?T:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,a=e.key,s=e.label,l=Mg(t,r,g,n);return o.createElement(Ah,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},o.createElement("span",null,s),l&&o.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),g.onEdit("remove",{key:t,event:e})}(e,a)}},r||g.removeIcon||"×"))})));function A(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===O}))||0,o=t.length,r=0;r<o;r+=1){var i=t[n=(n+e+o)%o];if(!i.disabled)return void _(i.key)}}e.useEffect((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[O]),e.useEffect((function(){E||_(null)}),[E]);var D=P({},v?"marginRight":"marginLeft",m);a.length||(D.visibility="hidden",D.order=1);var L=h(P({},"".concat(I,"-rtl"),v)),z=l?null:o.createElement(Wf,p({prefixCls:I,overlay:j,visible:!!a.length&&E,onVisibleChange:S,overlayClassName:h(L,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u),o.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:function(e){var t=e.which;if(E)switch(t){case ss.UP:A(-1),e.preventDefault();break;case ss.DOWN:A(1),e.preventDefault();break;case ss.ESC:S(!1);break;case ss.SPACE:case ss.ENTER:null!==O&&y(O,e)}else[ss.DOWN,ss.SPACE,ss.ENTER].includes(t)&&(S(!0),e.preventDefault())}},M));return o.createElement("div",{className:h("".concat(r,"-nav-operations"),f),style:d,ref:n},z,o.createElement(Ng,{prefixCls:r,locale:s,editable:g}))})),Rg=o.memo(Ig,(function(e,t){return t.tabMoving})),Tg=function(e){var t=e.prefixCls,n=e.id,r=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,p=e.removeAriaLabel,g=e.editable,m=e.onClick,v=e.onFocus,b=e.style,y="".concat(t,"-tab"),x=Mg(d,c,g,l);function w(e){l||m(e)}var C=o.useMemo((function(){return u&&"string"==typeof s?o.createElement("span",null,s):s}),[s,u]),E=o.createElement("div",{key:a,"data-node-key":$g(a),className:h(y,P(P(P({},"".concat(y,"-with-remove"),x),"".concat(y,"-active"),r),"".concat(y,"-disabled"),l)),style:b,onClick:w},o.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),w(e)},onKeyDown:function(e){[ss.SPACE,ss.ENTER].includes(e.which)&&(e.preventDefault(),w(e))},onFocus:v},u&&o.createElement("span",{className:"".concat(y,"-icon")},u),s&&C),x&&o.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:a,event:t})}},c||g.removeIcon||"×"));return f?f(E):E},jg=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-o)<1)return[s,l]}return[o,i]},Ag=function(e,t){return e[t?0:1]},Dg=o.forwardRef((function(t,n){var r,i,a,s,l,c=t.className,u=t.style,d=t.id,f=t.animated,g=t.activeKey,m=t.rtl,v=t.extra,b=t.editable,y=t.locale,x=t.tabPosition,w=t.tabBarGutter,C=t.children,E=t.onTabClick,S=t.onTabScroll,k=t.indicator,O=o.useContext(wg),_=O.prefixCls,$=O.tabs,M=e.useRef(null),N=e.useRef(null),I=e.useRef(null),T=e.useRef(null),j=e.useRef(null),A=e.useRef(null),D=e.useRef(null),L="top"===x||"bottom"===x,B=Eg(0,(function(e,t){L&&S&&S({direction:e>t?"left":"right"})})),F=Be(B,2),H=F[0],V=F[1],W=Eg(0,(function(e,t){!L&&S&&S({direction:e>t?"top":"bottom"})})),X=Be(W,2),q=X[0],U=X[1],Y=Be(e.useState([0,0]),2),G=Y[0],K=Y[1],Z=Be(e.useState([0,0]),2),Q=Z[0],J=Z[1],ee=Be(e.useState([0,0]),2),te=ee[0],ne=ee[1],oe=Be(e.useState([0,0]),2),re=oe[0],ie=oe[1],ae=(r=new Map,i=e.useRef([]),a=Be(e.useState({}),2)[1],s=e.useRef("function"==typeof r?r():r),l=kg((function(){var e=s.current;i.current.forEach((function(t){e=t(e)})),i.current=[],s.current=e,a({})})),[s.current,function(e){i.current.push(e),l()}]),se=Be(ae,2),le=se[0],ce=se[1],ue=function(t,n,o){return e.useMemo((function(){for(var e,o=new Map,r=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||Cg,i=r.left+r.width,a=0;a<t.length;a+=1){var s,l=t[a].key,c=n.get(l);c||(c=n.get(null===(s=t[a-1])||void 0===s?void 0:s.key)||Cg);var u=o.get(l)||R({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[t.map((function(e){return e.key})).join("_"),n,o])}($,le,Q[0]),de=Ag(G,L),fe=Ag(Q,L),he=Ag(te,L),pe=Ag(re,L),ge=de<fe+he,me=ge?de-pe:de-he,ve="".concat(_,"-nav-operations-hidden"),be=0,ye=0;function xe(e){return e<be?be:e>ye?ye:e}L&&m?(be=0,ye=Math.max(0,fe-me)):(be=Math.min(0,me-fe),ye=0);var we=e.useRef(null),Ce=Be(e.useState(),2),Ee=Ce[0],Se=Ce[1];function ke(){Se(Date.now())}function _e(){we.current&&clearTimeout(we.current)}!function(t,n){var r=Be(e.useState(),2),i=r[0],a=r[1],s=Be(e.useState(0),2),l=s[0],c=s[1],u=Be(e.useState(0),2),d=u[0],f=u[1],h=Be(e.useState(),2),p=h[0],g=h[1],m=e.useRef(),v=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;a({x:n,y:o}),window.clearInterval(m.current)},onTouchMove:function(e){if(i){e.preventDefault();var t=e.touches[0],o=t.screenX,r=t.screenY;a({x:o,y:r});var s=o-i.x,u=r-i.y;n(s,u);var d=Date.now();c(d),f(d-l),g({x:s,y:u})}},onTouchEnd:function(){if(i&&(a(null),g(null),p)){var e=p.x/d,t=p.y/d,o=Math.abs(e),r=Math.abs(t);if(Math.max(o,r)<.1)return;var s=e,l=t;m.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(m.current):n(20*(s*=Sg),20*(l*=Sg))}),20)}},onWheel:function(e){var t=e.deltaX,o=e.deltaY,r=0,i=Math.abs(t),a=Math.abs(o);i===a?r="x"===v.current?t:o:i>a?(r=t,v.current="x"):(r=o,v.current="y"),n(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){b.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){b.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(T,(function(e,t){function n(e,t){e((function(e){return xe(e+t)}))}return!!ge&&(L?n(V,e):n(U,t),_e(),ke(),!0)})),e.useEffect((function(){return _e(),Ee&&(we.current=setTimeout((function(){Se(0)}),100)),_e}),[Ee]);var $e=function(t,n,o,r,i,a,s){var l,c,u,d=s.tabs,f=s.tabPosition,h=s.rtl;return["top","bottom"].includes(f)?(l="width",c=h?"right":"left",u=Math.abs(o)):(l="height",c="top",u=-o),e.useMemo((function(){if(!d.length)return[0,0];for(var e=d.length,o=e,r=0;r<e;r+=1){var i=t.get(d[r].key)||Og;if(i[c]+i[l]>u+n){o=r-1;break}}for(var a=0,s=e-1;s>=0;s-=1)if((t.get(d[s].key)||Og)[c]<u){a=s+1;break}return a>=o?[0,0]:[a,o]}),[t,n,r,i,a,u,f,d.map((function(e){return e.key})).join("_"),h])}(ue,me,L?H:q,fe,he,pe,R(R({},t),{},{tabs:$})),Me=Be($e,2),Ne=Me[0],Ie=Me[1],Re=Gr((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(L){var n=H;m?t.right<H?n=t.right:t.right+t.width>H+me&&(n=t.right+t.width-me):t.left<-H?n=-t.left:t.left+t.width>-H+me&&(n=-(t.left+t.width-me)),U(0),V(xe(n))}else{var o=q;t.top<-q?o=-t.top:t.top+t.height>-q+me&&(o=-(t.top+t.height-me)),V(0),U(xe(o))}})),Te={};"top"===x||"bottom"===x?Te[m?"marginRight":"marginLeft"]=w:Te.marginTop=w;var je=$.map((function(e,t){var n=e.key;return o.createElement(Tg,{id:d,prefixCls:_,key:n,tab:e,style:0===t?void 0:Te,closable:e.closable,editable:b,active:n===g,renderWrapper:C,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){E(n,e)},onFocus:function(){Re(n),ke(),T.current&&(m||(T.current.scrollLeft=0),T.current.scrollTop=0)}})})),Ae=function(){return ce((function(){var e,t=new Map,n=null===(e=j.current)||void 0===e?void 0:e.getBoundingClientRect();return $.forEach((function(e){var o,r=e.key,i=null===(o=j.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat($g(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.x,u=a.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,o,i,r]}(i,n),s=Be(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(r,{width:l,height:c,left:u,top:d})}})),t}))};e.useEffect((function(){Ae()}),[$.map((function(e){return e.key})).join("_")]);var Le=kg((function(){var e=jg(M),t=jg(N),n=jg(I);K([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=jg(D);ne(o);var r=jg(A);ie(r);var i=jg(j);J([i[0]-o[0],i[1]-o[1]]),Ae()})),ze=$.slice(0,Ne),Fe=$.slice(Ie+1),He=[].concat(Pe(ze),Pe(Fe)),Ve=ue.get(g),We=function(t){var n=t.activeTabOffset,o=t.horizontal,r=t.rtl,i=t.indicator,a=void 0===i?{}:i,s=a.size,l=a.align,c=void 0===l?"center":l,u=Be(e.useState(),2),d=u[0],f=u[1],h=e.useRef(),p=e.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function g(){De.cancel(h.current)}return e.useEffect((function(){var e={};if(n)if(o){e.width=p(n.width);var t=r?"right":"left";"start"===c&&(e[t]=n[t]),"center"===c&&(e[t]=n[t]+n.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=p(n.height),"start"===c&&(e.top=n.top),"center"===c&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return g(),h.current=De((function(){f(e)})),g}),[n,o,r,c,p]),{style:d}}({activeTabOffset:Ve,horizontal:L,indicator:k,rtl:m}),Xe=We.style;e.useEffect((function(){Re()}),[g,be,ye,_g(Ve),_g(ue),L]),e.useEffect((function(){Le()}),[m]);var qe,Ue,Ye,Ge,Ke=!!He.length,Ze="".concat(_,"-nav-wrap");return L?m?(Ue=H>0,qe=H!==ye):(qe=H<0,Ue=H!==be):(Ye=q<0,Ge=q!==be),o.createElement(Oe,{onResize:Le},o.createElement("div",{ref:z(n,M),role:"tablist",className:h("".concat(_,"-nav"),c),style:u,onKeyDown:function(){ke()}},o.createElement(Pg,{ref:N,position:"left",extra:v,prefixCls:_}),o.createElement(Oe,{onResize:Le},o.createElement("div",{className:h(Ze,P(P(P(P({},"".concat(Ze,"-ping-left"),qe),"".concat(Ze,"-ping-right"),Ue),"".concat(Ze,"-ping-top"),Ye),"".concat(Ze,"-ping-bottom"),Ge)),ref:T},o.createElement(Oe,{onResize:Le},o.createElement("div",{ref:j,className:"".concat(_,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(q,"px)"),transition:Ee?"none":void 0}},je,o.createElement(Ng,{ref:D,prefixCls:_,locale:y,editable:b,style:R(R({},0===je.length?void 0:Te),{},{visibility:Ke?"hidden":null})}),o.createElement("div",{className:h("".concat(_,"-ink-bar"),P({},"".concat(_,"-ink-bar-animated"),f.inkBar)),style:Xe}))))),o.createElement(Rg,p({},t,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:A,prefixCls:_,tabs:He,className:!Ke&&ve,tabMoving:!!Ee})),o.createElement(Pg,{ref:I,position:"right",extra:v,prefixCls:_})))})),Lg=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return o.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:i,className:h(n,s&&"".concat(n,"-active"),r),ref:t},c)}));"production"!==process.env.NODE_ENV&&(Lg.displayName="TabPane");var zg=["renderTabBar"],Bg=["label","key"],Fg=function(e){var t=e.renderTabBar,n=tt(e,zg),r=o.useContext(wg).tabs;return t?t(R(R({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=tt(e,Bg);return o.createElement(Lg,p({tab:t,key:n,tabKey:n},r))}))}),Dg):o.createElement(Dg,n)};"production"!==process.env.NODE_ENV&&(Fg.displayName="TabNavListWrapper");var Hg=["key","forceRender","style","className","destroyInactiveTabPane"],Vg=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,s=o.useContext(wg),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return o.createElement("div",{className:h("".concat(l,"-content-holder"))},o.createElement("div",{className:h("".concat(l,"-content"),"".concat(l,"-content-").concat(i),P({},"".concat(l,"-content-animated"),u))},c.map((function(e){var i=e.key,s=e.forceRender,l=e.style,c=e.className,f=e.destroyInactiveTabPane,g=tt(e,Hg),m=i===n;return o.createElement(ma,p({key:i,visible:m,forceRender:s,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return o.createElement(Lg,p({},g,{prefixCls:d,id:t,tabKey:i,animated:u,active:m,style:R(R({},l),r),className:h(c,a),ref:n}))}))}))))};var Wg=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Xg=0,qg=o.forwardRef((function(t,n){var r=t.id,i=t.prefixCls,a=void 0===i?"rc-tabs":i,s=t.className,l=t.items,c=t.direction,u=t.activeKey,d=t.defaultActiveKey,f=t.editable,g=t.animated,m=t.tabPosition,v=void 0===m?"top":m,b=t.tabBarGutter,y=t.tabBarStyle,x=t.tabBarExtraContent,w=t.locale,C=t.more,E=t.destroyInactiveTabPane,S=t.renderTabBar,k=t.onChange,O=t.onTabClick,_=t.onTabScroll,N=t.getPopupContainer,I=t.popupClassName,T=t.indicator,j=tt(t,Wg),A=o.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===M(e)&&"key"in e}))}),[l]),D="rtl"===c,L=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:R({inkBar:!0},"object"===M(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&$(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(g),z=Be(e.useState(!1),2),B=z[0],F=z[1];e.useEffect((function(){F(qu())}),[]);var H=Be(Qr((function(){var e;return null===(e=A[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),V=H[0],W=H[1],X=Be(e.useState((function(){return A.findIndex((function(e){return e.key===V}))})),2),q=X[0],U=X[1];e.useEffect((function(){var e,t=A.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(q,A.length-1)),W(null===(e=A[t])||void 0===e?void 0:e.key));U(t)}),[A.map((function(e){return e.key})).join("_"),V,q]);var Y=Be(Qr(null,{value:r}),2),G=Y[0],K=Y[1];e.useEffect((function(){r||(K("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":Xg)),Xg+=1)}),[]);var Z={id:G,activeKey:V,animated:L,tabPosition:v,rtl:D,mobile:B},Q=R(R({},Z),{},{editable:f,locale:w,more:C,tabBarGutter:b,onTabClick:function(e,t){null==O||O(e,t);var n=e!==V;W(e),n&&(null==k||k(e))},onTabScroll:_,extra:x,style:y,panes:null,getPopupContainer:N,popupClassName:I,indicator:T});return o.createElement(wg.Provider,{value:{tabs:A,prefixCls:a}},o.createElement("div",p({ref:n,id:r,className:h(a,"".concat(a,"-").concat(v),P(P(P({},"".concat(a,"-mobile"),B),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),D),s)},j),o.createElement(Fg,p({},Q,{renderTabBar:S})),o.createElement(Vg,p({destroyInactiveTabPane:E},Z,{animated:L}))))}));"production"!==process.env.NODE_ENV&&(qg.displayName="Tabs");const Ug={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Yg=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Gg=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ru(e,"slide-up"),Ru(e,"slide-down")]]},Kg=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${Ct(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Ct(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ct(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ct(e.borderRadiusLG)} 0 0 ${Ct(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Zg=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ei(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ct(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ci),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ct(e.paddingXXS)} ${Ct(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Qg=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ct(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Ct(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Jg=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Ct(e.borderRadius)} ${Ct(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ct(e.borderRadius)} ${Ct(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ct(e.borderRadius)} ${Ct(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ct(e.borderRadius)} 0 0 ${Ct(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},em=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Oi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},tm=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ct(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ct(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ct(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},nm=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ei(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${Ct(e.paddingXS)}`,background:"transparent",border:`${Ct(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Oi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),em(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var om=$i("Tabs",(e=>{const t=ni(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ct(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ct(e.horizontalItemGutter)}`});return[Jg(t),tm(t),Qg(t),Zg(t),Kg(t),nm(t),Gg(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const rm=()=>null;"production"!==process.env.NODE_ENV&&(rm.displayName="DeprecatedTabPane");var im=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const am=e=>{var t,n,r,i,a,s,l,c,u,d,f;const{type:p,className:g,rootClassName:m,size:v,onEdit:b,hideAdd:y,centered:x,addIcon:C,removeIcon:E,moreIcon:S,more:k,popupClassName:O,children:_,items:$,animated:M,style:N,indicatorSize:P,indicator:I}=e,R=im(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:T}=R,{direction:j,tabs:A,getPrefixCls:D,getPopupContainer:L}=o.useContext(jr),z=D("tabs",T),B=as(z),[F,H,V]=om(z,B);let W;"editable-card"===p&&(W={onEdit:(e,t)=>{let{key:n,event:o}=t;null==b||b("add"===e?o:n,e)},removeIcon:null!==(t=null!=E?E:null==A?void 0:A.removeIcon)&&void 0!==t?t:o.createElement(Ja,null),addIcon:(null!=C?C:null==A?void 0:A.addIcon)||o.createElement(xg,null),showAdd:!0!==y});const X=D();if("production"!==process.env.NODE_ENV){const t=ho("Tabs");"production"!==process.env.NODE_ENV&&t(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&t(!(P||(null==A?void 0:A.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=Us(v),U=function(e,t){"production"!==process.env.NODE_ENV&&ho("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=w(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=Yg(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}($,_),Y=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Ug),{motionName:As(e,"switch")})),t}(z,M),G=Object.assign(Object.assign({},null==A?void 0:A.style),N),K={align:null!==(n=null==I?void 0:I.align)&&void 0!==n?n:null===(r=null==A?void 0:A.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(a=null!==(i=null==I?void 0:I.size)&&void 0!==i?i:P)&&void 0!==a?a:null===(s=null==A?void 0:A.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==A?void 0:A.indicatorSize};return F(o.createElement(qg,Object.assign({direction:j,getPopupContainer:L},R,{items:U,className:h({[`${z}-${q}`]:q,[`${z}-card`]:["card","editable-card"].includes(p),[`${z}-editable-card`]:"editable-card"===p,[`${z}-centered`]:x},null==A?void 0:A.className,g,m,H,V,B),popupClassName:h(O,H,V,B),style:G,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(c=null==A?void 0:A.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null==A?void 0:A.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:o.createElement(Ep,null),transitionName:`${X}-slide-up`},k),prefixCls:z,animated:Y,indicator:K})))};function sm(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function lm(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=sm(t,e,o)):n(r=sm(t,e,""))}}am.TabPane=rm,"production"!==process.env.NODE_ENV&&(am.displayName="Tabs");var cm=e.forwardRef((function(t,n){var o,r,i=t.inputElement,a=t.children,s=t.prefixCls,l=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,g=t.style,m=t.disabled,v=t.readOnly,b=t.focused,y=t.triggerFocus,x=t.allowClear,w=t.value,C=t.handleReset,E=t.hidden,S=t.classes,k=t.classNames,O=t.dataAttrs,_=t.styles,$=t.components,N=t.onClear,I=null!=a?a:i,T=(null==$?void 0:$.affixWrapper)||"span",j=(null==$?void 0:$.groupWrapper)||"span",A=(null==$?void 0:$.wrapper)||"span",D=(null==$?void 0:$.groupAddon)||"span",L=e.useRef(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),B=e.cloneElement(I,{value:w,className:h(I.props.className,!z&&(null==k?void 0:k.variant))||null}),F=e.useRef(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:F.current||L.current}})),z){var H=null;if(x){var V=!m&&!v&&w,W="".concat(s,"-clear-icon"),X="object"===M(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";H=e.createElement("span",{onClick:function(e){null==C||C(e),null==N||N()},onMouseDown:function(e){return e.preventDefault()},className:h(W,P(P({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!c)),role:"button",tabIndex:-1},X)}var q="".concat(s,"-affix-wrapper"),U=h(q,P(P(P(P(P({},"".concat(s,"-disabled"),m),"".concat(q,"-disabled"),m),"".concat(q,"-focused"),b),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),c&&x&&w),null==S?void 0:S.affixWrapper,null==k?void 0:k.affixWrapper,null==k?void 0:k.variant),Y=(c||x)&&e.createElement("span",{className:h("".concat(s,"-suffix"),null==k?void 0:k.suffix),style:null==_?void 0:_.suffix},H,c);B=e.createElement(T,p({className:U,style:null==_?void 0:_.affixWrapper,onClick:function(e){var t;null!==(t=L.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:L}),l&&e.createElement("span",{className:h("".concat(s,"-prefix"),null==k?void 0:k.prefix),style:null==_?void 0:_.prefix},l),B,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var G="".concat(s,"-group"),K="".concat(G,"-addon"),Z="".concat(G,"-wrapper"),Q=h("".concat(s,"-wrapper"),G,null==S?void 0:S.wrapper,null==k?void 0:k.wrapper),J=h(Z,P({},"".concat(Z,"-disabled"),m),null==S?void 0:S.group,null==k?void 0:k.groupWrapper);B=e.createElement(j,{className:J,ref:F},e.createElement(A,{className:Q},u&&e.createElement(D,{className:K},u),B,d&&e.createElement(D,{className:K},d)))}return e.cloneElement(B,{className:h(null===(o=B.props)||void 0===o?void 0:o.className,f)||null,style:R(R({},null===(r=B.props)||void 0===r?void 0:r.style),g),hidden:E})})),um=["show"];function dm(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===M(t)&&t.formatter?t.formatter:!!t);var o=n=R(R({},n),e),r=o.show,i=tt(o,um);return R(R({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var fm=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hm=e.forwardRef((function(t,n){var o=t.autoComplete,r=t.onChange,i=t.onFocus,a=t.onBlur,s=t.onPressEnter,l=t.onKeyDown,c=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,f=t.disabled,g=t.htmlSize,m=t.className,v=t.maxLength,b=t.suffix,y=t.showCount,x=t.count,w=t.type,C=void 0===w?"text":w,E=t.classes,S=t.classNames,k=t.styles,O=t.onCompositionStart,_=t.onCompositionEnd,$=tt(t,fm),M=Be(e.useState(!1),2),N=M[0],I=M[1],T=e.useRef(!1),j=e.useRef(!1),A=e.useRef(null),D=e.useRef(null),L=function(e){A.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}(A.current,e)},z=Be(Qr(t.defaultValue,{value:t.value}),2),B=z[0],F=z[1],H=null==B?"":String(B),V=Be(e.useState(null),2),W=V[0],X=V[1],q=dm(x,y),U=q.max||v,Y=q.strategy(H),G=!!U&&Y>U;e.useImperativeHandle(n,(function(){var e;return{focus:L,blur:function(){var e;null===(e=A.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=A.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=A.current)||void 0===e||e.select()},input:A.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||A.current}})),e.useEffect((function(){I((function(e){return(!e||!f)&&e}))}),[f]);var K=function(e,t,n){var o,i,a=t;if(!T.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max)t!==(a=q.exceedFormatter(t,{max:q.max}))&&X([(null===(o=A.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=A.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;F(a),A.current&&lm(A.current,e,r,a)};e.useEffect((function(){var e;W&&(null===(e=A.current)||void 0===e||e.setSelectionRange.apply(e,Pe(W)))}),[W]);var Z,Q=function(e){K(e,e.target.value,{source:"change"})},J=function(e){T.current=!1,K(e,e.currentTarget.value,{source:"compositionEnd"}),null==_||_(e)},ee=function(e){s&&"Enter"===e.key&&!j.current&&(j.current=!0,s(e)),null==l||l(e)},te=function(e){"Enter"===e.key&&(j.current=!1),null==c||c(e)},ne=function(e){I(!0),null==i||i(e)},oe=function(e){I(!1),null==a||a(e)},re=G&&"".concat(d,"-out-of-range");return e.createElement(cm,p({},$,{prefixCls:d,className:h(m,re),handleReset:function(e){F(""),L(),A.current&&lm(A.current,e,r)},value:H,focused:N,triggerFocus:L,suffix:function(){var t=Number(U)>0;if(b||q.show){var n=q.showFormatter?q.showFormatter({value:H,count:Y,maxLength:U}):"".concat(Y).concat(t?" / ".concat(U):"");return e.createElement(e.Fragment,null,q.show&&e.createElement("span",{className:h("".concat(d,"-show-count-suffix"),P({},"".concat(d,"-show-count-has-suffix"),!!b),null==S?void 0:S.count),style:R({},null==k?void 0:k.count)},n),b)}return null}(),disabled:f,classes:E,classNames:S,styles:k}),(Z=_e(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",p({autoComplete:o},Z,{onChange:Q,onFocus:ne,onBlur:oe,onKeyDown:ee,onKeyUp:te,className:h(d,P({},"".concat(d,"-disabled"),f),null==S?void 0:S.input),style:null==k?void 0:k.input,ref:A,size:g,type:C,onCompositionStart:function(e){T.current=!0,null==O||O(e)},onCompositionEnd:J}))))}));const pm=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Ka,null)}),n};function gm(t,n){const o=e.useRef([]),r=()=>{o.current.push(setTimeout((()=>{var e,n,o,r;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=t.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=t.current)||void 0===r||r.input.removeAttribute("value"))})))};return e.useEffect((()=>(n&&r(),()=>o.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var mm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vm=e.forwardRef(((t,n)=>{var o;const{prefixCls:r,bordered:i=!0,status:a,size:s,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:g,className:m,style:v,styles:b,rootClassName:y,onChange:x,classNames:w,variant:C}=t,E=mm(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=ho("Input");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:S,direction:k,input:O}=e.useContext(jr),_=S("input",r),$=e.useRef(null),M=as(_),[N,P,I]=vg(_,M),{compactSize:R,compactItemClassnames:T}=Gs(_,k),j=Us((e=>{var t;return null!==(t=null!=s?s:R)&&void 0!==t?t:e})),A=e.useContext(Lr),D=null!=l?l:A,{status:z,hasFeedback:B,feedbackIcon:F}=e.useContext(yu),H=Rd(z,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!B,W=e.useRef(V);if("production"!==process.env.NODE_ENV){const t=ho("Input");e.useEffect((()=>{var e;V&&!W.current&&"production"!==process.env.NODE_ENV&&t(document.activeElement===(null===(e=$.current)||void 0===e?void 0:e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),W.current=V}),[V])}const X=gm($,!0),q=(B||d)&&e.createElement(e.Fragment,null,d,B&&F),U=pm(null!=f?f:null==O?void 0:O.allowClear),[Y,G]=Td("input",C,i);return N(e.createElement(hm,Object.assign({ref:L(n,$),prefixCls:_,autoComplete:null==O?void 0:O.autoComplete},E,{disabled:D,onBlur:e=>{X(),null==c||c(e)},onFocus:e=>{X(),null==u||u(e)},style:Object.assign(Object.assign({},null==O?void 0:O.style),v),styles:Object.assign(Object.assign({},null==O?void 0:O.styles),b),suffix:q,allowClear:U,className:h(m,y,I,M,T,null==O?void 0:O.className),onChange:e=>{X(),null==x||x(e)},addonBefore:g&&e.createElement(Cu,{form:!0,space:!0},g),addonAfter:p&&e.createElement(Cu,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),null==O?void 0:O.classNames),{input:h({[`${_}-sm`]:"small"===j,[`${_}-lg`]:"large"===j,[`${_}-rtl`]:"rtl"===k},null==w?void 0:w.input,null===(o=null==O?void 0:O.classNames)||void 0===o?void 0:o.input,P),variant:h({[`${_}-${Y}`]:G},Id(_,H)),affixWrapper:h({[`${_}-affix-wrapper-sm`]:"small"===j,[`${_}-affix-wrapper-lg`]:"large"===j,[`${_}-affix-wrapper-rtl`]:"rtl"===k},P),wrapper:h({[`${_}-group-rtl`]:"rtl"===k},P),groupWrapper:h({[`${_}-group-wrapper-sm`]:"small"===j,[`${_}-group-wrapper-lg`]:"large"===j,[`${_}-group-wrapper-rtl`]:"rtl"===k,[`${_}-group-wrapper-${Y}`]:G},Id(`${_}-group-wrapper`,H,B),P)})})))}));"production"!==process.env.NODE_ENV&&(vm.displayName="Input");const bm=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var ym=$i(["Input","OTP"],(e=>{const t=ni(e,Xp(e));return[bm(t)]}),qp),xm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const wm=o.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:a,mask:s}=e,l=xm(e,["value","onChange","onActiveChange","index","mask"]),c=n&&"string"==typeof s?s:n,u=o.useRef(null);o.useImperativeHandle(t,(()=>u.current));const d=()=>{De((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(vm,Object.assign({},l,{ref:u,value:c,onInput:e=>{r(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===s?"password":"text"}))}));var Cm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Em(e){return(e||"").split("")}const Sm=o.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:g}=e,m=Cm(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=ho("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof g&&g.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:v,direction:b}=o.useContext(jr),y=v("otp",n),x=ns(m,{aria:!0,data:!0,attr:!0}),w=as(y),[C,E,S]=ym(y,w),k=Us((e=>null!=i?i:e)),O=o.useContext(yu),_=Rd(O.status,f),$=o.useMemo((()=>Object.assign(Object.assign({},O),{status:_,hasFeedback:!1,feedbackIcon:null})),[O,_]),M=o.useRef(null),N=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=N.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=N.current[t])||void 0===e||e.blur()},nativeElement:M.current})));const P=e=>c?c(e):e,[I,R]=o.useState(Em(P(a||"")));o.useEffect((()=>{void 0!==s&&R(Em(s))}),[s]);const T=Gr((e=>{R(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&l(e.join(""))})),j=Gr(((e,t)=>{let n=Pe(I);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Em(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=P(n.map((e=>e||" ")).join(""));return n=Em(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),A=(e,t)=>{var n;const o=j(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=N.current[i])||void 0===n||n.focus()),T(o)},D=e=>{var t;null===(t=N.current[e])||void 0===t||t.focus()},L={variant:u,disabled:d,status:_,mask:g};return C(o.createElement("div",Object.assign({},x,{ref:M,className:h(y,{[`${y}-sm`]:"small"===k,[`${y}-lg`]:"large"===k,[`${y}-rtl`]:"rtl"===b},S,E)}),o.createElement(yu.Provider,{value:$},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=I[t]||"";return o.createElement(wm,Object.assign({ref:e=>{N.current[t]=e},key:n,index:t,size:k,htmlSize:1,className:`${y}-input`,onChange:A,value:r,onActiveChange:D,autoFocus:0===t&&p},L))})))))}));var km={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Om=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:km}))},_m=o.forwardRef(Om);"production"!==process.env.NODE_ENV&&(_m.displayName="EyeInvisibleOutlined");var $m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Mm=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:$m}))},Nm=o.forwardRef(Mm);"production"!==process.env.NODE_ENV&&(Nm.displayName="EyeOutlined");var Pm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Im=e=>e?o.createElement(Nm,null):o.createElement(_m,null),Rm={click:"onClick",hover:"onMouseOver"},Tm=o.forwardRef(((t,n)=>{const{disabled:r,action:i="click",visibilityToggle:a=!0,iconRender:s=Im}=t,l="object"==typeof a&&void 0!==a.visible,[c,u]=e.useState((()=>!!l&&a.visible)),d=e.useRef(null);o.useEffect((()=>{l&&u(a.visible)}),[l,a]);const f=gm(d),p=()=>{r||(c&&f(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:g,prefixCls:m,inputPrefixCls:v,size:b}=t,y=Pm(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=o.useContext(jr),w=x("input",v),C=x("input-password",m),E=a&&(e=>{const t=Rm[i]||"",n=s(c),r={[t]:p,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),r)})(C),S=h(C,g,{[`${C}-${b}`]:!!b}),k=Object.assign(Object.assign({},_e(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:S,prefixCls:w,suffix:E});return b&&(k.size=b),o.createElement(vm,Object.assign({ref:L(n,d)},k))}));"production"!==process.env.NODE_ENV&&(Tm.displayName="Input.Password");var jm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Am=o.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:m}=e,v=jm(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=o.useContext(jr),x=o.useRef(!1),w=b("input-search",n),C=b("input",r),{compactSize:E}=Gs(w,y),S=Us((e=>{var t;return null!==(t=null!=a?a:E)&&void 0!==t?t:e})),k=o.useRef(null),O=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},_=e=>{var t,n;f&&f(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},$="boolean"==typeof l?o.createElement(Bd,null):null,M=`${w}-button`;let N;const P=l||{},I=P.type&&!0===P.type.__ANT_BUTTON;N=I||"button"===P.type?is(P,Object.assign({onMouseDown:O,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),_(e)},key:"enterButton"},I?{className:M,size:S}:{})):o.createElement(Vl,{className:M,type:l?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:O,onClick:_,loading:u,icon:$},l),c&&(N=[N,is(c,{key:"addonAfter"})]);const R=h(w,{[`${w}-rtl`]:"rtl"===y,[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!l},i);return o.createElement(vm,Object.assign({ref:L(k,t),onPressEnter:e=>{x.current||u||_(e)}},v,{size:S,onCompositionStart:e=>{x.current=!0,null==g||g(e)},onCompositionEnd:e=>{x.current=!1,null==m||m(e)},prefixCls:C,addonAfter:N,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},className:R,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Am.displayName="Search");var Dm,Lm=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],zm={};function Bm(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Dm||((Dm=document.createElement("textarea")).setAttribute("tab-index","-1"),Dm.setAttribute("aria-hidden","true"),document.body.appendChild(Dm)),e.getAttribute("wrap")?Dm.setAttribute("wrap",e.getAttribute("wrap")):Dm.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&zm[n])return zm[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:Lm.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(zm[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;Dm.setAttribute("style","".concat(l,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),Dm.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=Dm.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==n||null!==o){Dm.value=" ";var h=Dm.scrollHeight-i;null!==n&&(u=h*n,"border-box"===s&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=h*o,"border-box"===s&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var p={height:f,overflowY:c,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var Fm=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Hm=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,s=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange,g=n.onInternalAutoSize,m=tt(n,Fm),v=Be(Qr(i,{value:a,postState:function(e){return null!=e?e:""}}),2),b=v[0],y=v[1],x=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:x.current}}));var w=Be(o.useMemo((function(){return s&&"object"===M(s)?[s.minRows,s.maxRows]:[]}),[s]),2),C=w[0],E=w[1],S=!!s,k=Be(o.useState(2),2),O=k[0],_=k[1],$=Be(o.useState(),2),N=$[0],I=$[1],T=function(){_(0),"test"===process.env.NODE_ENV&&(null==g||g())};$t((function(){S&&T()}),[a,C,E,S]),$t((function(){if(0===O)_(1);else if(1===O){var e=Bm(x.current,!1,C,E);_(2),I(e)}else!function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;x.current.setSelectionRange(t,n),x.current.scrollTop=o}}catch(e){}}()}),[O]);var j=o.useRef(),A=function(){De.cancel(j.current)};o.useEffect((function(){return A}),[]);var D=S?N:null,L=R(R({},u),D);return 0!==O&&1!==O||(L.overflowY="hidden",L.overflowX="hidden"),o.createElement(Oe,{onResize:function(e){2===O&&(null==l||l(e),s&&(A(),j.current=De((function(){T()}))))},disabled:!(s||l)},o.createElement("textarea",p({},m,{ref:x,style:L,className:h(r,c,P({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:function(e){y(e.target.value),null==f||f(e)}})))})),Vm=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Wm=e.forwardRef((function(t,n){var o,r=t.defaultValue,i=t.value,a=t.onFocus,s=t.onBlur,l=t.onChange,c=t.allowClear,u=t.maxLength,d=t.onCompositionStart,f=t.onCompositionEnd,g=t.suffix,m=t.prefixCls,v=void 0===m?"rc-textarea":m,b=t.showCount,y=t.count,x=t.className,w=t.style,C=t.disabled,E=t.hidden,S=t.classNames,k=t.styles,O=t.onResize,_=t.onClear,$=t.onPressEnter,M=t.readOnly,N=t.autoSize,I=t.onKeyDown,T=tt(t,Vm),j=Be(Qr(r,{value:i,defaultValue:r}),2),A=j[0],D=j[1],L=null==A?"":String(A),z=Be(e.useState(!1),2),B=z[0],F=z[1],H=e.useRef(!1),V=Be(e.useState(null),2),W=V[0],X=V[1],q=e.useRef(null),U=e.useRef(null),Y=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},G=function(){Y().focus()};e.useImperativeHandle(n,(function(){var e;return{resizableTextArea:U.current,focus:G,blur:function(){Y().blur()},nativeElement:(null===(e=q.current)||void 0===e?void 0:e.nativeElement)||Y()}})),e.useEffect((function(){F((function(e){return!C&&e}))}),[C]);var K=Be(e.useState(null),2),Z=K[0],Q=K[1];e.useEffect((function(){var e;Z&&(e=Y()).setSelectionRange.apply(e,Pe(Z))}),[Z]);var J,ee=dm(y,b),te=null!==(o=ee.max)&&void 0!==o?o:u,ne=Number(te)>0,oe=ee.strategy(L),re=!!te&&oe>te,ie=function(e,t){var n=t;!H.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Q([Y().selectionStart||0,Y().selectionEnd||0]),D(n),lm(e.currentTarget,e,l,n)},ae=g;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:L,count:oe,maxLength:te}):"".concat(oe).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:h("".concat(v,"-data-count"),null==S?void 0:S.count),style:null==k?void 0:k.count},J)));var se=!N&&!b&&!c;return e.createElement(cm,{ref:q,value:L,allowClear:c,handleReset:function(e){D(""),G(),lm(Y(),e,l)},suffix:ae,prefixCls:v,classNames:R(R({},S),{},{affixWrapper:h(null==S?void 0:S.affixWrapper,P(P({},"".concat(v,"-show-count"),b),"".concat(v,"-textarea-allow-clear"),c))}),disabled:C,focused:B,className:h(x,re&&"".concat(v,"-out-of-range")),style:R(R({},w),W&&!se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:E,readOnly:M,onClear:_},e.createElement(Hm,p({},T,{autoSize:N,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&$&&$(e),null==I||I(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){F(!0),null==a||a(e)},onBlur:function(e){F(!1),null==s||s(e)},onCompositionStart:function(e){H.current=!0,null==d||d(e)},onCompositionEnd:function(e){H.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:h(null==S?void 0:S.textarea),style:R(R({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==O||O(e),null!==(t=Y())&&void 0!==t&&t.style.height&&X(!0)},ref:U,readOnly:M})))})),Xm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qm=e.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:g,styles:m,variant:v}=e,b=Xm(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=ho("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:x,textArea:w}=o.useContext(jr),C=Us(s),E=o.useContext(Lr),S=null!=l?l:E,{status:k,hasFeedback:O,feedbackIcon:_}=o.useContext(yu),$=Rd(k,c),M=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=M.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=M.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.blur()}}}));const N=y("input",i),P=as(N),[I,R,T]=vg(N,P),[j,A]=Td("textArea",v,a),D=pm(null!=u?u:null==w?void 0:w.allowClear);return I(o.createElement(Wm,Object.assign({autoComplete:null==w?void 0:w.autoComplete},b,{style:Object.assign(Object.assign({},null==w?void 0:w.style),g),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),m),disabled:S,allowClear:D,className:h(T,P,p,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:h({[`${N}-sm`]:"small"===C,[`${N}-lg`]:"large"===C},R,null==d?void 0:d.textarea,null===(n=null==w?void 0:w.classNames)||void 0===n?void 0:n.textarea),variant:h({[`${N}-${j}`]:A},Id(N,$)),affixWrapper:h(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:"rtl"===x,[`${N}-affix-wrapper-sm`]:"small"===C,[`${N}-affix-wrapper-lg`]:"large"===C,[`${N}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},R)}),prefixCls:N,suffix:O&&o.createElement("span",{className:`${N}-textarea-suffix`},_),ref:M})))})),Um=vm;function Ym(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function Gm(e,n,o,r){var i=t.unstable_batchedUpdates?function(e){t.unstable_batchedUpdates(o,e)}:o;return null!=e&&e.addEventListener&&e.addEventListener(n,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(n,i,r)}}}Um.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(jr),{prefixCls:i,className:a}=t,s=n("input-group",i),l=n("input"),[c,u]=vg(l),d=h(s,{[`${s}-lg`]:"large"===t.size,[`${s}-sm`]:"small"===t.size,[`${s}-compact`]:t.compact,[`${s}-rtl`]:"rtl"===r},u,a),f=e.useContext(yu),p=e.useMemo((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){ho("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(o.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},o.createElement(yu.Provider,{value:p},t.children)))},Um.Search=Am,Um.TextArea=qm,Um.Password=Tm,Um.OTP=Sm;var Km=o.createContext(null),Zm=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,s=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,p=t.transform,g=t.count,m=t.scale,v=t.minScale,b=t.maxScale,y=t.closeIcon,x=t.onSwitchLeft,w=t.onSwitchRight,C=t.onClose,E=t.onZoomIn,S=t.onZoomOut,k=t.onRotateRight,O=t.onRotateLeft,_=t.onFlipX,$=t.onFlipY,M=t.onReset,N=t.toolbarRender,I=t.zIndex,T=t.image,j=e.useContext(Km),A=l.rotateLeft,D=l.rotateRight,L=l.zoomIn,z=l.zoomOut,B=l.close,F=l.left,H=l.right,V=l.flipX,W=l.flipY,X="".concat(a,"-operations-operation");o.useEffect((function(){var e=function(e){e.keyCode===ss.ESC&&C()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var q=[{icon:W,onClick:$,type:"flipY"},{icon:V,onClick:_,type:"flipX"},{icon:A,onClick:O,type:"rotateLeft"},{icon:D,onClick:k,type:"rotateRight"},{icon:z,onClick:S,type:"zoomOut",disabled:m<=v},{icon:L,onClick:E,type:"zoomIn",disabled:m===b}].map((function(e){var t,n=e.icon,r=e.onClick,i=e.type,s=e.disabled;return o.createElement("div",{className:h(X,(t={},P(t,"".concat(a,"-operations-operation-").concat(i),!0),P(t,"".concat(a,"-operations-operation-disabled"),!!s),t)),onClick:r,key:i},n)})),U=o.createElement("div",{className:"".concat(a,"-operations")},q);return o.createElement(ma,{visible:n,motionName:r},(function(e){var t=e.className,n=e.style;return o.createElement(Zl,{open:!0,getContainer:null!=i?i:document.body},o.createElement("div",{className:h("".concat(a,"-operations-wrapper"),t,s),style:R(R({},n),{},{zIndex:I})},null===y?null:o.createElement("button",{className:"".concat(a,"-close"),onClick:C},y||B),u&&o.createElement(o.Fragment,null,o.createElement("div",{className:h("".concat(a,"-switch-left"),P({},"".concat(a,"-switch-left-disabled"),0===f)),onClick:x},F),o.createElement("div",{className:h("".concat(a,"-switch-right"),P({},"".concat(a,"-switch-right-disabled"),f===g-1)),onClick:w},H)),o.createElement("div",{className:"".concat(a,"-footer")},d&&o.createElement("div",{className:"".concat(a,"-progress")},c?c(f+1,g):"".concat(f+1," / ").concat(g)),N?N(U,R(R({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:$,onFlipX:_,onRotateLeft:O,onRotateRight:k,onZoomOut:S,onZoomIn:E,onReset:M,onClose:C},transform:p},j?{current:f,total:g}:{}),{},{image:T})):U)))}))},Qm={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Jm(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return P({},e,i);if(t<0&&r<o)return P({},e,-i)}else if(t<0||r>o)return P({},e,t<0?i:-i);return{}}function ev(e,t,n,o){var r=Ym(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=R(R({},Jm("x",n,e,i)),Jm("y",o,t,a))),s}function tv(t){var n=t.src,o=t.isCustomPlaceholder,r=t.fallback,i=Be(e.useState(o?"loading":"normal"),2),a=i[0],s=i[1],l=e.useRef(!1),c="error"===a;e.useEffect((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(n).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[n]),e.useEffect((function(){o&&!l.current?s("loading"):c&&s("normal")}),[n]);var u=function(){s("normal")};return[function(e){l.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(l.current=!0,u())},c&&r?{src:r}:{onLoad:u,src:n},a]}function nv(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function ov(t,n,o,r,i,a,s){var l=i.rotate,c=i.scale,u=i.x,d=i.y,f=Be(e.useState(!1),2),h=f[0],p=f[1],g=e.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),m=function(e){g.current=R(R({},g.current),e)};return e.useEffect((function(){var e;return o&&n&&(e=Gm(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[o,n]),{isTouching:h,onTouchStart:function(e){if(n){e.stopPropagation(),p(!0);var t=e.touches,o=void 0===t?[]:t;o.length>1?m({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):m({point1:{x:o[0].clientX-u,y:o[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=g.current,r=o.point1,i=o.point2,l=o.eventType;if(n.length>1&&"touchZoom"===l){var c={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,o){var r=nv(e,n),i=nv(t,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(r,i,c,u),f=Be(d,2),h=f[0],p=f[1],v=nv(c,u)/nv(r,i);s(v,"touchZoom",h,p,!0),m({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(a({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),m({eventType:"move"}))},onTouchEnd:function(){if(o){if(h&&p(!1),m({eventType:"none"}),r>c)return a({x:0,y:0,scale:r},"touchZoom");var e=t.current.offsetWidth*c,n=t.current.offsetHeight*c,i=t.current.getBoundingClientRect(),s=i.left,u=i.top,d=l%180!=0,f=ev(d?n:e,d?e:n,s,u);f&&a(R({},f),"dragRebound")}}}}var rv=["fallback","src","imgRef"],iv=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],av=function(t){var n=t.fallback,o=t.src,r=t.imgRef,i=tt(t,rv),a=Be(tv({src:o,fallback:n}),2),s=a[0],l=a[1];return e.createElement("img",p({ref:function(e){r.current=e,s(e)}},i,l))},sv=function(t){var n=t.prefixCls,o=t.src,r=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=void 0===s||s,c=t.onClose,u=t.visible,d=t.icons,f=void 0===d?{}:d,g=t.rootClassName,m=t.closeIcon,v=t.getContainer,b=t.current,y=void 0===b?0:b,x=t.count,w=void 0===x?1:x,C=t.countRender,E=t.scaleStep,k=void 0===E?.5:E,O=t.minScale,_=void 0===O?1:O,$=t.maxScale,M=void 0===$?50:$,N=t.transitionName,I=void 0===N?"zoom":N,T=t.maskTransitionName,j=void 0===T?"fade":T,A=t.imageRender,D=t.imgCommonProps,L=t.toolbarRender,z=t.onTransform,B=t.onChange,F=tt(t,iv),H=e.useRef(),V=e.useContext(Km),W=V&&w>1,X=V&&w>=1,q=Be(e.useState(!0),2),U=q[0],Y=q[1],G=function(t,n,o,r){var i=e.useRef(null),a=e.useRef([]),s=Be(e.useState(Qm),2),l=s[0],c=s[1],u=function(e,t){null===i.current&&(a.current=[],i.current=De((function(){c((function(e){var n=e;return a.current.forEach((function(e){n=R(R({},n),e)})),i.current=null,null==r||r({transform:n,action:t}),n}))}))),a.current.push(R(R({},l),e))};return{transform:l,resetTransform:function(e){c(Qm),nt(Qm,l)||null==r||r({transform:Qm,action:e})},updateTransform:u,dispatchZoomChange:function(e,r,i,a,s){var c=t.current,d=c.width,f=c.height,h=c.offsetWidth,p=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=e,b=l.scale*e;b>o?(b=o,v=o/l.scale):b<n&&(v=(b=s?b:n)/l.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,w=v-1,C=w*d*.5,E=w*f*.5,S=w*(y-l.x-g),k=w*(x-l.y-m),O=l.x-(S-C),_=l.y-(k-E);if(e<1&&1===b){var $=h*b,M=p*b,N=Ym(),P=N.width,I=N.height;$<=P&&M<=I&&(O=0,_=0)}u({x:O,y:_,scale:b},r)}}}(H,_,M,z),K=G.transform,Z=G.resetTransform,Q=G.updateTransform,J=G.dispatchZoomChange,ee=function(t,n,o,r,i,a,s){var l=i.rotate,c=i.scale,u=i.x,d=i.y,f=Be(e.useState(!1),2),h=f[0],p=f[1],g=e.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),m=function(e){o&&h&&a({x:e.pageX-g.current.diffX,y:e.pageY-g.current.diffY},"move")},v=function(){if(o&&h){p(!1);var e=g.current,n=e.transformX,r=e.transformY;if(u===n||d===r)return;var i=t.current.offsetWidth*c,s=t.current.offsetHeight*c,f=t.current.getBoundingClientRect(),m=f.left,v=f.top,b=l%180!=0,y=ev(b?s:i,b?i:s,m,v);y&&a(R({},y),"dragRebound")}};return e.useEffect((function(){var e,t,o,r;if(n){o=Gm(window,"mouseup",v,!1),r=Gm(window,"mousemove",m,!1);try{window.top!==window.self&&(e=Gm(window.top,"mouseup",v,!1),t=Gm(window.top,"mousemove",m,!1))}catch(e){S(!1,"[rc-image] ".concat(e))}}return function(){var n,i,a,s;null===(n=o)||void 0===n||n.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=t)||void 0===s||s.remove()}}),[o,h,u,d,l,n]),{isMoving:h,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),g.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},p(!0))},onMouseMove:m,onMouseUp:v,onWheel:function(e){if(o&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*r;e.deltaY>0&&(n=1/n),s(n,"wheel",e.clientX,e.clientY)}}}}(H,l,u,k,K,Q,J),te=ee.isMoving,ne=ee.onMouseDown,oe=ee.onWheel,re=ov(H,l,u,_,K,Q,J),ie=re.isTouching,ae=re.onTouchStart,se=re.onTouchMove,le=re.onTouchEnd,ce=K.rotate,ue=K.scale,de=h(P({},"".concat(n,"-moving"),te));e.useEffect((function(){U||Y(!0)}),[U]);var fe=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),y>0&&(Y(!1),Z("prev"),null==B||B(y-1,y))},he=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),y<w-1&&(Y(!1),Z("next"),null==B||B(y+1,y))},pe=function(e){u&&W&&(e.keyCode===ss.LEFT?fe():e.keyCode===ss.RIGHT&&he())};e.useEffect((function(){var e=Gm(window,"keydown",pe,!1);return function(){e.remove()}}),[u,W,y]);var ge=e.createElement(av,p({},D,{width:t.width,height:t.height,imgRef:H,className:"".concat(n,"-img"),alt:r,style:{transform:"translate3d(".concat(K.x,"px, ").concat(K.y,"px, 0) scale3d(").concat(K.flipX?"-":"").concat(ue,", ").concat(K.flipY?"-":"").concat(ue,", 1) rotate(").concat(ce,"deg)"),transitionDuration:(!U||ie)&&"0s"},fallback:a,src:o,onWheel:oe,onMouseDown:ne,onDoubleClick:function(e){u&&(1!==ue?Q({x:0,y:0,scale:1},"doubleClick"):J(1+k,"doubleClick",e.clientX,e.clientY))},onTouchStart:ae,onTouchMove:se,onTouchEnd:le,onTouchCancel:le})),me=R({url:o,alt:r},i);return e.createElement(e.Fragment,null,e.createElement(dc,p({transitionName:I,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:de},rootClassName:g,getContainer:v},F,{afterClose:function(){Z("close")}}),e.createElement("div",{className:"".concat(n,"-img-wrapper")},A?A(ge,R({transform:K,image:me},V?{current:y}:{})):ge)),e.createElement(Zm,{visible:u,transform:K,maskTransitionName:j,closeIcon:m,getContainer:v,prefixCls:n,rootClassName:g,icons:f,countRender:C,showSwitch:W,showProgress:X,current:y,count:w,scale:ue,minScale:_,maxScale:M,toolbarRender:L,onSwitchLeft:fe,onSwitchRight:he,onZoomIn:function(){J(1+k,"zoomIn")},onZoomOut:function(){J(1/(1+k),"zoomOut")},onRotateRight:function(){Q({rotate:ce+90},"rotateRight")},onRotateLeft:function(){Q({rotate:ce-90},"rotateLeft")},onFlipX:function(){Q({flipX:!K.flipX},"flipX")},onFlipY:function(){Q({flipY:!K.flipY},"flipY")},onClose:c,onReset:function(){Z("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:me}))},lv=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var cv=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],uv=["src"],dv=0;var fv=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],hv=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],pv=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,a=t.prefixCls,s=void 0===a?"rc-image":a,l=t.previewPrefixCls,c=void 0===l?"".concat(s,"-preview"):l,u=t.placeholder,d=t.fallback,f=t.width,g=t.height,m=t.style,v=t.preview,b=void 0===v||v,y=t.className,x=t.onClick,w=t.onError,C=t.wrapperClassName,E=t.wrapperStyle,S=t.rootClassName,k=tt(t,fv),O=u&&!0!==u,_="object"===M(b)?b:{},$=_.src,N=_.visible,I=void 0===N?void 0:N,T=_.onVisibleChange,j=void 0===T?i:T,A=_.getContainer,D=void 0===A?void 0:A,L=_.mask,z=_.maskClassName,B=_.movable,F=_.icons,H=_.scaleStep,V=_.minScale,W=_.maxScale,X=_.imageRender,q=_.toolbarRender,U=tt(_,hv),Y=null!=$?$:n,G=Be(Qr(!!I,{value:I,onChange:j}),2),K=G[0],Z=G[1],Q=Be(tv({src:n,isCustomPlaceholder:O,fallback:d}),3),J=Q[0],ee=Q[1],te=Q[2],ne=Be(e.useState(null),2),oe=ne[0],re=ne[1],ie=e.useContext(Km),ae=!!b,se=h(s,C,S,P({},"".concat(s,"-error"),"error"===te)),le=e.useMemo((function(){var e={};return lv.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}),lv.map((function(e){return t[e]}))),ce=function(e,t){var n=Be(o.useState((function(){return String(dv+=1)})),1)[0],r=o.useContext(Km),i={data:t,canPreview:e};return o.useEffect((function(){if(r)return r.register(n,i)}),[]),o.useEffect((function(){r&&r.register(n,i)}),[e,t]),n}(ae,e.useMemo((function(){return R(R({},le),{},{src:Y})}),[Y,le]));return o.createElement(o.Fragment,null,o.createElement("div",p({},k,{className:se,onClick:ae?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,o=t.top;ie?ie.onPreview(ce,Y,n,o):(re({x:n,y:o}),Z(!0)),null==x||x(e)}:x,style:R({width:f,height:g},E)}),o.createElement("img",p({},le,{className:h("".concat(s,"-img"),P({},"".concat(s,"-img-placeholder"),!0===u),y),style:R({height:g},m),ref:J},ee,{width:f,height:g,onError:w})),"loading"===te&&o.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},u),L&&ae&&o.createElement("div",{className:h("".concat(s,"-mask"),z),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},L)),!ie&&ae&&o.createElement(sv,p({"aria-hidden":!K,visible:K,prefixCls:c,onClose:function(){Z(!1),re(null)},mousePosition:oe,src:Y,alt:r,imageInfo:{width:f,height:g},fallback:d,getContainer:D,icons:F,movable:B,scaleStep:H,minScale:V,maxScale:W,rootClassName:S,imageRender:X,imgCommonProps:le,toolbarRender:q},U)))};pv.PreviewGroup=function(t){var n,r=t.previewPrefixCls,i=void 0===r?"rc-image-preview":r,a=t.children,s=t.icons,l=void 0===s?{}:s,c=t.items,u=t.preview,d=t.fallback,f="object"===M(u)?u:{},h=f.visible,g=f.onVisibleChange,m=f.getContainer,v=f.current,b=f.movable,y=f.minScale,x=f.maxScale,w=f.countRender,C=f.closeIcon,E=f.onChange,S=f.onTransform,k=f.toolbarRender,O=f.imageRender,_=tt(f,cv),$=function(e){var t=Be(o.useState({}),2),n=t[0],r=t[1],i=o.useCallback((function(e,t){return r((function(n){return R(R({},n),{},P({},e,t))})),function(){r((function(t){var n=R({},t);return delete n[e],n}))}}),[]);return[o.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Pe(lv)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(n).reduce((function(e,t){var o=n[t],r=o.canPreview,i=o.data;return r&&e.push({data:i,id:t}),e}),[])}),[e,n]),i,!!e]}(c),N=Be($,3),I=N[0],T=N[1],j=N[2],A=Be(Qr(0,{value:v}),2),D=A[0],L=A[1],z=Be(e.useState(!1),2),B=z[0],F=z[1],H=(null===(n=I[D])||void 0===n?void 0:n.data)||{},V=H.src,W=tt(H,uv),X=Be(Qr(!!h,{value:h,onChange:function(e,t){null==g||g(e,t,D)}}),2),q=X[0],U=X[1],Y=Be(e.useState(null),2),G=Y[0],K=Y[1],Z=o.useCallback((function(e,t,n,o){var r=j?I.findIndex((function(e){return e.data.src===t})):I.findIndex((function(t){return t.id===e}));L(r<0?0:r),U(!0),K({x:n,y:o}),F(!0)}),[I,j]);o.useEffect((function(){q?B||L(0):F(!1)}),[q]);var Q=o.useMemo((function(){return{register:T,onPreview:Z}}),[T,Z]);return o.createElement(Km.Provider,{value:Q},a,o.createElement(sv,p({"aria-hidden":!q,movable:b,visible:q,prefixCls:i,closeIcon:C,onClose:function(){U(!1),K(null)},mousePosition:G,imgCommonProps:W,src:V,fallback:d,icons:l,minScale:y,maxScale:x,getContainer:m,current:D,count:I.length,countRender:w,onTransform:S,toolbarRender:k,imageRender:O,onChange:function(e,t){L(e),null==E||E(e,t)}},_)))},"production"!==process.env.NODE_ENV&&(pv.displayName="Image");var gv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},mv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:gv}))},vv=o.forwardRef(mv);"production"!==process.env.NODE_ENV&&(vv.displayName="RotateLeftOutlined");var bv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},yv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:bv}))},xv=o.forwardRef(yv);"production"!==process.env.NODE_ENV&&(xv.displayName="RotateRightOutlined");var wv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Cv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:wv}))},Ev=o.forwardRef(Cv);"production"!==process.env.NODE_ENV&&(Ev.displayName="SwapOutlined");var Sv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},kv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Sv}))},Ov=o.forwardRef(kv);"production"!==process.env.NODE_ENV&&(Ov.displayName="ZoomInOutlined");var _v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},$v=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:_v}))},Mv=o.forwardRef($v);"production"!==process.env.NODE_ENV&&(Mv.displayName="ZoomOutOutlined");const Nv=e=>({position:e||"absolute",inset:0}),Pv=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Wo("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ci),{padding:`0 ${Ct(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Iv=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new Wo(n).setAlpha(.1),h=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ct(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Rv=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new Wo(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},Tv=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Nv()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Nv()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Iv(e),Rv(e)]}]},jv=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Pv(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Nv())}}},Av=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Fu(e,"zoom"),"&":Pu(e,!0)}};var Dv=$i("Image",(e=>{const t=`${e.componentCls}-preview`,n=ni(e,{previewCls:t,modalMaskBg:new Wo("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[jv(n),Tv(n),Vu(ni(n,{componentCls:t})),Av(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Wo(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Wo(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Wo(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),Lv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const zv={rotateLeft:o.createElement(vv,null),rotateRight:o.createElement(xv,null),zoomIn:o.createElement(Ov,null),zoomOut:o.createElement(Mv,null),close:o.createElement(Ja,null),left:o.createElement(pp,null),right:o.createElement(jf,null),flipX:o.createElement(Ev,null),flipY:o.createElement(Ev,{rotate:90})};var Bv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Fv=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:s}=e,l=Bv(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=xo,getPopupContainer:d,image:f}=o.useContext(jr),p=c("image",n),g=c(),m=u.Image||xo.Image,v=as(p),[b,y,x]=Dv(p,v),w=h(a,y,x,v),C=h(i,y,null==f?void 0:f.className),[E]=gs("ImagePreview","object"==typeof r?r.zIndex:void 0),S=o.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},{getContainer:n,closeIcon:i}=t,a=Bv(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${p}-mask-info`},o.createElement(Nm,null),null==m?void 0:m.preview),icons:zv},a),{getContainer:null!=n?n:d,transitionName:As(g,"zoom",t.transitionName),maskTransitionName:As(g,"fade",t.maskTransitionName),zIndex:E,closeIcon:null!=i?i:null===(e=null==f?void 0:f.preview)||void 0===e?void 0:e.closeIcon})}),[r,m,null===(t=null==f?void 0:f.preview)||void 0===t?void 0:t.closeIcon]),k=Object.assign(Object.assign({},null==f?void 0:f.style),s);return b(o.createElement(pv,Object.assign({prefixCls:p,preview:S,rootClassName:w,className:C,style:k},l)))};Fv.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=Lv(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=o.useContext(jr),a=i("image",t),s=`${a}-preview`,l=i(),c=as(a),[u,d,f]=Dv(a,c),[p]=gs("ImagePreview","object"==typeof n?n.zIndex:void 0),g=o.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},o=h(d,f,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:As(l,"zoom",t.transitionName),maskTransitionName:As(l,"fade",t.maskTransitionName),rootClassName:o,zIndex:p})}),[n]);return u(o.createElement(pv.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:zv},r)))},"production"!==process.env.NODE_ENV&&(Fv.displayName="Image");const Hv=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:o,lightTriggerBg:r,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:o,[`${t}-sider-trigger`]:{color:i,background:r},[`${t}-sider-zero-width-trigger`]:{color:i,background:r,border:`1px solid ${n}`,borderInlineStart:0}}}},Vv=e=>{const{antCls:t,componentCls:n,colorText:o,triggerColor:r,footerBg:i,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:h,motionDurationMid:p,motionDurationSlow:g,fontSize:m,borderRadius:v,bodyBg:b,headerBg:y,siderBg:x}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:x,transition:`all ${p}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:r,lineHeight:Ct(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${p}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:f,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:x,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:`background ${g} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${g}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},Hv(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Ct(s),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:o,fontSize:m,background:i},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}};var Wv=$i("Layout",(e=>[Vv(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:r}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Xv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function qv(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>{const i=o.forwardRef(((r,i)=>o.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},r))));return"production"!==process.env.NODE_ENV&&(i.displayName=r),i}}const Uv=o.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,s=Xv(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=o.useContext(jr),c=l("layout",n),[u,d,f]=Wv(c),p=r?`${c}-${r}`:c;return u(o.createElement(a,Object.assign({className:h(n||p,i,d,f),ref:t},s)))})),Yv=o.forwardRef(((e,t)=>{const{direction:n}=o.useContext(jr),[r,i]=o.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,p=_e(Xv(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:g,layout:m}=o.useContext(jr),v=g("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||w(t).some((e=>e.type===xp))}(r,c,u),[y,x,C]=Wv(v),E=h(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:"rtl"===n},null==m?void 0:m.className,s,l,x,C),S=o.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Pe(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return y(o.createElement(gp.Provider,{value:S},o.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},null==m?void 0:m.style),f)},p),c)))})),Gv=qv({tagName:"div",displayName:"Layout"})(Yv),Kv=qv({suffixCls:"header",tagName:"header",displayName:"Header"})(Uv),Zv=qv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Uv),Qv=qv({suffixCls:"content",tagName:"main",displayName:"Content"})(Uv),Jv=Gv;Jv.Header=Kv,Jv.Footer=Zv,Jv.Content=Qv,Jv.Sider=xp,Jv._InternalSiderContext=bp;var eb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},tb=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:eb}))},nb=o.forwardRef(tb);"production"!==process.env.NODE_ENV&&(nb.displayName="CopyOutlined");var ob={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},rb=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:ob}))},ib=o.forwardRef(rb);"production"!==process.env.NODE_ENV&&(ib.displayName="EditOutlined");var ab={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},sb=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:ab}))},lb=o.forwardRef(sb);"production"!==process.env.NODE_ENV&&(lb.displayName="EnterOutlined");var cb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ub={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},db=o.forwardRef(((e,t)=>{const{style:n,noStyle:r,disabled:i,tabIndex:a=0}=e,s=cb(e,["style","noStyle","disabled","tabIndex"]);let l={};return r||(l=Object.assign({},ub)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),o.createElement("div",Object.assign({role:"button",tabIndex:a,ref:t},s,{onKeyDown:e=>{const{keyCode:t}=e;t===ss.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===ss.ENTER&&o&&o()},style:l}))})),fb=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},hb=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},wi(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},pb=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:cr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),gb=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${Ct(o)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},mb=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),vb=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},fb(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),pb(e)),hb(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},wi(e)),{marginInlineStart:e.marginXXS})}),gb(e)),mb(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var bb=$i("Typography",(e=>[vb(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const yb=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:g=o.createElement(lb,null)}=e,m=o.useRef(null),v=o.useRef(!1),b=o.useRef(),[y,x]=o.useState(c);o.useEffect((()=>{x(c)}),[c]),o.useEffect((()=>{var e;if(null===(e=m.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(y.trim())},[C,E,S]=bb(t),k=h(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${p}`]:!!p},r,E,S);return C(o.createElement("div",{className:k,style:i},o.createElement(qm,{ref:m,maxLength:s,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||v.current||n||o||r||i||(t===ss.ENTER?(w(),null==f||f()):t===ss.ESC&&d())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:l}),null!==g?is(g,{className:`${t}-edit-content-confirm`}):null))};var xb=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},wb={"text/plain":"Text","text/html":"Url",default:"Text"};var Cb=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=xb(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=wb[t.format]||wb.default;window.clipboardData.setData(r,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),r()}return l},Eb=i(Cb),Sb=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};function kb(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var Ob=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _b=o.forwardRef(((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=e,d=Ob(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:g}=o.useContext(jr),m=null!=c?c:p,v=s?L(t,s):t,b=f("typography",n);if("production"!==process.env.NODE_ENV){ho("Typography").deprecated(!s,"setContentRef","ref")}const[y,x,w]=bb(b),C=h(b,null==g?void 0:g.className,{[`${b}-rtl`]:"rtl"===m},i,a,x,w),E=Object.assign(Object.assign({},null==g?void 0:g.style),u);return y(o.createElement(r,Object.assign({className:C,style:E,ref:v},d),l))}));function $b(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function Mb(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(_b.displayName="Typography");const Nb=e=>["string","number"].includes(typeof e),Pb=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=e;const d=$b(a),f=$b(s),{copied:p,copy:g}=null!=r?r:{},m=n?p:g,v=Mb(d[n?1:0],m),b="string"==typeof v?v:m;return o.createElement(hf,{title:v},o.createElement(db,{className:h(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":b,tabIndex:l},n?Mb(f[1],o.createElement(Dd,null),!0):Mb(f[0],u?o.createElement(us,null):o.createElement(nb,null),!0)))},Ib=o.forwardRef(((e,t)=>{let{style:n,children:r}=e;const i=o.useRef(null);return o.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),o.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}));function Rb(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(Nb(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const Tb=0,jb=4,Ab={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Db(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=e,u=o.useMemo((()=>w(r)),[r]),d=o.useMemo((()=>(e=>e.reduce(((e,t)=>e+(Nb(t)?String(t).length:1)),0))(u)),[r]),f=o.useMemo((()=>i(u,!1)),[r]),[h,p]=o.useState(null),g=o.useRef(null),m=o.useRef(null),v=o.useRef(null),b=o.useRef(null),y=o.useRef(null),[x,C]=o.useState(!1),[E,S]=o.useState(Tb),[k,O]=o.useState(0),[_,$]=o.useState(null);$t((()=>{S(t&&n&&d?1:Tb)}),[n,r,a,t,u]),$t((()=>{var e,t,n,o;if(1===E){S(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;$(e)}else if(2===E){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(r?3:jb),p(r?[0,d]:null),C(r);const i=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,s=1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,l=(null===(o=y.current)||void 0===o?void 0:o.getHeight())||0,u=Math.max(i,s+l);O(u+1),c(r)}}),[E]);const M=h?Math.ceil((h[0]+h[1])/2):0;$t((()=>{var e;const[t,n]=h||[0,0];if(t!==n){const o=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>k;let r=M;n-t==1&&(r=o?t:n),p(o?[t,r]:[r,n])}}),[h,M]);const N=o.useMemo((()=>{if(!t)return i(u,!1);if(3!==E||!h||h[0]!==h[1]){const e=i(u,!1);return[jb,Tb].includes(E)?e:o.createElement("span",{style:Object.assign(Object.assign({},Ab),{WebkitLineClamp:a})},e)}return i(s?u:Rb(u,h[0]),x)}),[s,E,h,u].concat(Pe(l))),P={width:n,margin:0,padding:0,whiteSpace:"nowrap"===_?"normal":"inherit"};return o.createElement(o.Fragment,null,N,2===E&&o.createElement(o.Fragment,null,o.createElement(Ib,{style:Object.assign(Object.assign(Object.assign({},P),Ab),{WebkitLineClamp:a}),ref:v},f),o.createElement(Ib,{style:Object.assign(Object.assign(Object.assign({},P),Ab),{WebkitLineClamp:a-1}),ref:b},f),o.createElement(Ib,{style:Object.assign(Object.assign(Object.assign({},P),Ab),{WebkitLineClamp:1}),ref:y},i([],!0))),3===E&&h&&h[0]!==h[1]&&o.createElement(Ib,{style:Object.assign(Object.assign({},P),{top:400}),ref:g},i(Rb(u,M),!0)),1===E&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const Lb=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(hf,Object.assign({open:!!n&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(Lb.displayName="EllipsisTooltip");var zb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Bb=o.forwardRef(((t,n)=>{var r;const{prefixCls:i,className:a,style:s,type:l,disabled:c,children:u,ellipsis:d,editable:f,copyable:p,component:g,title:m}=t,v=zb(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=o.useContext(jr),[x]=((e,t)=>{const n=o.useContext(Eo),r=o.useMemo((()=>{var t;const o=xo[e],r=null!==(t=null==n?void 0:n[e])&&void 0!==t?t:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),r||{})}),[e,t,n]);return[r,o.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?xo.locale:e}),[n])]})("Text"),C=o.useRef(null),E=o.useRef(null),S=b("typography",i),k=_e(v,["mark","code","delete","underline","strong","keyboard","italic"]),[O,_]=kb(f),[$,M]=Qr(!1,{value:_.editing}),{triggerType:N=["icon"]}=_,P=e=>{var t;e&&(null===(t=_.onStart)||void 0===t||t.call(_)),M(e)},I=(t=>{const n=e.useRef();return e.useEffect((()=>{n.current=t})),n.current})($);$t((()=>{var e;!$&&I&&(null===(e=E.current)||void 0===e||e.focus())}),[$]);const R=e=>{null==e||e.preventDefault(),P(!0)},T=e=>{var t;null===(t=_.onChange)||void 0===t||t.call(_,e),P(!1)},j=()=>{var e;null===(e=_.onCancel)||void 0===e||e.call(_),P(!1)},[A,D]=kb(p),{copied:z,copyLoading:B,onClick:F}=(e=>{let{copyConfig:t,children:n}=e;const[r,i]=o.useState(!1),[a,s]=o.useState(!1),l=o.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};return t.format&&(u.format=t.format),o.useEffect((()=>c),[]),{copied:r,copyLoading:a,onClick:Gr((e=>Sb(void 0,void 0,void 0,(function*(){var o;null==e||e.preventDefault(),null==e||e.stopPropagation(),s(!0);try{const r="function"==typeof t.text?yield t.text():t.text;Eb(r||String(n)||"",u),s(!1),i(!0),c(),l.current=setTimeout((()=>{i(!1)}),3e3),null===(o=t.onCopy)||void 0===o||o.call(t,e)}catch(e){throw s(!1),e}}))))}})({copyConfig:D,children:u}),[H,V]=o.useState(!1),[W,X]=o.useState(!1),[q,U]=o.useState(!1),[Y,G]=o.useState(!1),[K,Z]=o.useState(!0),[Q,J]=kb(d,{expandable:!1,symbol:e=>e?null==x?void 0:x.collapse:null==x?void 0:x.expand}),[ee,te]=Qr(J.defaultExpanded||!1,{value:J.expanded}),ne=Q&&(!ee||"collapsible"===J.expandable),{rows:oe=1}=J,re=o.useMemo((()=>ne&&(void 0!==J.suffix||J.onEllipsis||J.expandable||O||A)),[ne,J,O,A]);$t((()=>{Q&&!re&&(V(Su("webkitLineClamp")),X(Su("textOverflow")))}),[re,Q]);const[ie,ae]=o.useState(ne),se=o.useMemo((()=>!re&&(1===oe?W:H)),[re,W,H]);$t((()=>{ae(se&&ne)}),[se,ne]);const le=ne&&(ie?Y:q),ce=ne&&1===oe&&ie,ue=ne&&oe>1&&ie,[de,fe]=o.useState(0),he=e=>{var t;U(e),q!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};o.useEffect((()=>{const e=C.current;if(Q&&ie&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t),"production"!==process.env.NODE_ENV&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);Y!==t&&G(t)}}),[Q,ie,u,ue,K,de]),o.useEffect((()=>{const e=C.current;if("undefined"==typeof IntersectionObserver||!e||!ie||!ne)return;const t=new IntersectionObserver((()=>{Z(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ie,ne]);const pe=((t,n,o)=>e.useMemo((()=>!0===t?{title:null!=n?n:o}:e.isValidElement(t)?{title:t}:"object"==typeof t?Object.assign({title:null!=n?n:o},t):{title:t}),[t,n,o]))(J.tooltip,_.text,u),ge=o.useMemo((()=>{if(Q&&!ie)return[_.text,u,m,pe.title].find(Nb)}),[Q,ie,m,pe.title,le]);if($)return o.createElement(yb,{value:null!==(r=_.text)&&void 0!==r?r:"string"==typeof u?u:"",onSave:T,onCancel:j,onEnd:_.onEnd,prefixCls:S,className:a,style:s,direction:y,component:g,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const me=()=>{const{expandable:e,symbol:t}=J;return e?o.createElement(db,{key:"expand",className:`${S}-${ee?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;te(t.expanded),null===(n=J.onExpand)||void 0===n||n.call(J,e,t)})(e,{expanded:!ee}),"aria-label":ee?x.collapse:null==x?void 0:x.expand},"function"==typeof t?t(ee):t):null},ve=()=>{if(!O)return;const{icon:e,tooltip:t,tabIndex:n}=_,r=w(t)[0]||(null==x?void 0:x.edit),i="string"==typeof r?r:"";return N.includes("icon")?o.createElement(hf,{key:"edit",title:!1===t?"":r},o.createElement(db,{ref:E,className:`${S}-edit`,onClick:R,"aria-label":i,tabIndex:n},e||o.createElement(ib,{role:"button"}))):null},be=e=>[e&&me(),ve(),A?o.createElement(Pb,Object.assign({key:"copy"},D,{prefixCls:S,copied:z,locale:x,onCopy:F,loading:B,iconOnly:null==u})):null];return o.createElement(Oe,{onResize:e=>{let{offsetWidth:t}=e;fe(t)},disabled:!ne},(e=>o.createElement(Lb,{tooltipProps:pe,enableEllipsis:ne,isEllipsis:le},o.createElement(_b,Object.assign({className:h({[`${S}-${l}`]:l,[`${S}-disabled`]:c,[`${S}-ellipsis`]:Q,[`${S}-ellipsis-single-line`]:ce,[`${S}-ellipsis-multiple-line`]:ue},a),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ue?oe:void 0}),component:g,ref:L(e,C,n),direction:y,onClick:N.includes("text")?R:void 0,"aria-label":null==ge?void 0:ge.toString(),title:m},k),o.createElement(Db,{enableMeasure:ne&&!ie,text:u,rows:oe,width:de,onEllipsis:he,expanded:ee,miscDeps:[z,ee,B,O,A]},((e,n)=>function(e,t){let{mark:n,code:r,underline:i,delete:a,strong:s,keyboard:l,italic:c}=e,u=t;function d(e,t){t&&(u=o.createElement(e,{},u))}return d("strong",s),d("u",i),d("del",a),d("code",r),d("mark",n),d("kbd",l),d("i",c),u}(t,o.createElement(o.Fragment,null,e.length>0&&n&&!ee&&ge?o.createElement("span",{key:"show-content","aria-hidden":!0},e):e,(e=>[e&&!ee&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,be(e)])(n)))))))))}));var Fb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hb=o.forwardRef(((e,t)=>{var{ellipsis:n,rel:r}=e,i=Fb(e,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=ho("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof n,"usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete a.navigate,o.createElement(Bb,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),Vb=o.forwardRef(((e,t)=>o.createElement(Bb,Object.assign({ref:t},e,{component:"div"}))));var Wb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Xb=(e,t)=>{var{ellipsis:n}=e,r=Wb(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?_e(n,["expandable","rows"]):n),[n]);if("production"!==process.env.NODE_ENV){const e=ho("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof n||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return o.createElement(Bb,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var qb=o.forwardRef(Xb),Ub=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Yb=[1,2,3,4,5],Gb=o.forwardRef(((e,t)=>{const{level:n=1}=e,r=Ub(e,["level"]);if("production"!==process.env.NODE_ENV){const e=ho("Typography.Title");"production"!==process.env.NODE_ENV&&e(Yb.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=Yb.includes(n)?`h${n}`:"h1";return o.createElement(Bb,Object.assign({ref:t},r,{component:i}))})),Kb=_b;function Zb(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}Kb.Text=qb,Kb.Link=Hb,Kb.Title=Gb,Kb.Paragraph=Vb;Zb(".appInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n &:hover {\n .ant-input {\n border-color: #d9d9d9;\n }\n }\n\n &:has(.ant-input-affix-wrapper) {\n .ant-input {\n border: none !important;\n height: unset !important;\n }\n }\n .ant-input-affix-wrapper {\n height: 40px;\n display: flex;\n align-items: center;\n .ant-input-outlined:focus-within {\n box-shadow: unset !important;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #d9d9d9;\n }\n &:focus {\n box-shadow: unset;\n }\n &:focus-within {\n box-shadow: unset;\n border-color: #d9d9d9;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");Zb(".appButton {\n width: max-content;\n\n .ant-btn {\n background-color: red;\n padding: 12px;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");Zb('.sideBar {\n height: 100vh;\n .sider {\n height: 100%;\n .ant-layout-sider-children {\n height: 100%;\n display: flex;\n flex-direction: column;\n row-gap: 2.875rem;\n .ant-menu {\n border: none;\n }\n }\n }\n}\n\n.logo {\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px;\n}\n\n.menu {\n border-right: 0;\n}\n\n.footer {\n position: relative;\n &::before {\n content: "";\n height: 1px;\n width: 80%;\n position: absolute;\n top: 0;\n right: 50%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #acacac;\n }\n}\n\n.tag {\n margin-left: 8px;\n}\n');var Qb=Jv.Sider;Zb(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");Zb(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");var Jb={searchIcon:d.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:d.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M23.0136 7.77219C22.9817 7.69906 22.2017 5.96938 20.4599 4.2275C18.8436 2.61313 16.0667 0.6875 11.9999 0.6875C7.93299 0.6875 5.15611 2.61313 3.53986 4.2275C1.79799 5.96938 1.01799 7.69625 0.986113 7.77219C0.954062 7.84419 0.9375 7.92212 0.9375 8.00094C0.9375 8.07975 0.954062 8.15768 0.986113 8.22969C1.01799 8.30187 1.79799 10.0316 3.53986 11.7734C5.15611 13.3878 7.93299 15.3125 11.9999 15.3125C16.0667 15.3125 18.8436 13.3878 20.4599 11.7734C22.2017 10.0316 22.9817 8.30469 23.0136 8.22969C23.0457 8.15768 23.0622 8.07975 23.0622 8.00094C23.0622 7.92212 23.0457 7.84419 23.0136 7.77219ZM11.9999 14.1875C9.05799 14.1875 6.48924 13.1169 4.36393 11.0066C3.473 10.1211 2.71908 9.10781 2.12705 8C2.71891 6.89237 3.47285 5.87932 4.36393 4.99438C6.48924 2.88313 9.05799 1.8125 11.9999 1.8125C14.9417 1.8125 17.5105 2.88313 19.6358 4.99438C20.5269 5.87932 21.2808 6.89237 21.8727 8C21.2755 9.14469 18.2811 14.1875 11.9999 14.1875ZM11.9999 3.6875C11.1469 3.6875 10.3132 3.94042 9.60397 4.41429C8.89478 4.88815 8.34204 5.56167 8.01563 6.34968C7.68923 7.13768 7.60383 8.00478 7.77023 8.84133C7.93663 9.67787 8.34735 10.4463 8.95047 11.0494C9.55358 11.6525 10.322 12.0632 11.1585 12.2296C11.9951 12.396 12.8622 12.3106 13.6502 11.9842C14.4382 11.6578 15.1117 11.1051 15.5856 10.3959C16.0594 9.68671 16.3124 8.85293 16.3124 8C16.3109 6.85671 15.856 5.76067 15.0476 4.95225C14.2392 4.14382 13.1432 3.68899 11.9999 3.6875ZM11.9999 11.1875C11.3694 11.1875 10.7532 11.0006 10.229 10.6503C9.7048 10.3001 9.29625 9.80224 9.055 9.2198C8.81374 8.63736 8.75062 7.99646 8.87361 7.37815C8.9966 6.75984 9.30018 6.19188 9.74596 5.7461C10.1917 5.30032 10.7597 4.99674 11.378 4.87375C11.9963 4.75076 12.6372 4.81388 13.2197 5.05513C13.8021 5.29639 14.2999 5.70494 14.6502 6.22912C15.0004 6.7533 15.1874 7.36957 15.1874 8C15.1874 8.84538 14.8515 9.65613 14.2538 10.2539C13.656 10.8517 12.8452 11.1875 11.9999 11.1875Z",fill:"black"})}),uploadIcon:d.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33325 3.99998C2.33325 2.80336 3.3033 1.83331 4.49992 1.83331H9.83325C10.1094 1.83331 10.3333 1.60945 10.3333 1.33331C10.3333 1.05717 10.1094 0.833313 9.83325 0.833313H4.49992C2.75102 0.833313 1.33325 2.25108 1.33325 3.99998V12C1.33325 13.7489 2.75102 15.1666 4.49992 15.1666H12.4999C14.2488 15.1666 15.6666 13.7489 15.6666 12V6.66665C15.6666 6.3905 15.4427 6.16665 15.1666 6.16665C14.8904 6.16665 14.6666 6.3905 14.6666 6.66665V9.00604C14.6365 8.98198 14.6052 8.95911 14.5728 8.93751L12.9856 7.87931C11.9279 7.17418 10.5196 7.31364 9.62072 8.21251L7.37912 10.4541C6.48025 11.353 5.07193 11.4924 4.01427 10.7873L2.33325 9.66664V3.99998ZM13.1666 5.83331C13.4427 5.83331 13.6666 5.60945 13.6666 5.33331V2.54042L14.1464 3.0202C14.3416 3.21546 14.6582 3.21546 14.8534 3.0202C15.0487 2.82494 15.0487 2.50835 14.8534 2.31309L13.9915 1.45117C13.5359 0.995553 12.7972 0.995553 12.3416 1.45117L11.4797 2.31309C11.2844 2.50835 11.2844 2.82494 11.4797 3.0202C11.675 3.21546 11.9915 3.21546 12.1868 3.0202L12.6666 2.54042V5.33331C12.6666 5.60945 12.8904 5.83331 13.1666 5.83331ZM6.16658 7.33331C7.08706 7.33331 7.83325 6.58712 7.83325 5.66665C7.83325 4.74617 7.08706 3.99998 6.16658 3.99998C5.24611 3.99998 4.49992 4.74617 4.49992 5.66665C4.49992 6.58712 5.24611 7.33331 6.16658 7.33331Z",fill:"#FAFAFA"})}),backArrow:d.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:d.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.40147 12.3416L5.51352 12.5685C5.61142 12.7668 5.84666 12.9243 6.06777 12.9389L6.60913 12.9746C6.68987 12.9799 6.8315 13.0385 6.89252 13.092L7.30057 13.4495C7.4669 13.5953 7.74449 13.6507 7.95435 13.5796L8.30207 13.4617L7.07889 16.209L6.04906 14.7045L4.24194 14.9459L5.40147 12.3416ZM8.94099 13.4617L9.28871 13.5796C9.49816 13.6506 9.77583 13.5955 9.94249 13.4495L10.3505 13.092C10.4114 13.0386 10.553 12.9799 10.6339 12.9746L11.1753 12.9389C11.396 12.9243 11.6314 12.7672 11.7295 12.5685L11.8416 12.3416L13.0011 14.9459L11.194 14.7045L10.1642 16.209L8.94099 13.4617Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36671 13.3491L8.85289 13.1749C8.72505 13.1315 8.51688 13.1318 8.38992 13.1749L7.87611 13.3491C7.74827 13.3924 7.56161 13.3548 7.46079 13.2664L7.05275 12.9089C6.95122 12.8199 6.75878 12.7405 6.62502 12.7317L6.08366 12.696C5.94897 12.6871 5.79091 12.581 5.73158 12.4608L5.49142 11.9743C5.43166 11.8532 5.28425 11.7062 5.16405 11.6469L4.67757 11.4067C4.55652 11.347 4.45113 11.1884 4.44231 11.0547L4.4066 10.5133C4.39772 10.3786 4.31777 10.1864 4.22943 10.0856L3.87188 9.67753C3.78292 9.576 3.74624 9.38916 3.78927 9.26221L3.96345 8.7484C4.00679 8.62055 4.00648 8.41238 3.96345 8.28543L3.78927 7.77162C3.74593 7.64377 3.78354 7.45712 3.87188 7.3563L4.22943 6.94825C4.31839 6.84673 4.39778 6.65429 4.4066 6.52053L4.44231 5.97917C4.45119 5.84447 4.55737 5.68642 4.67757 5.62708L5.16405 5.38693C5.2851 5.32717 5.43208 5.17976 5.49142 5.05956L5.73158 4.57307C5.79133 4.45203 5.94991 4.34664 6.08366 4.33782L6.62502 4.30211C6.75972 4.29322 6.95193 4.21328 7.05275 4.12494L7.46079 3.76739C7.56232 3.67843 7.74916 3.64174 7.87611 3.68478L8.38992 3.85896C8.51777 3.9023 8.72594 3.90199 8.85289 3.85896L9.36671 3.68478C9.49455 3.64144 9.6812 3.67905 9.78202 3.76739L10.1901 4.12494C10.2916 4.2139 10.484 4.29329 10.6178 4.30211L11.1592 4.33782C11.2938 4.3467 11.4519 4.45288 11.5112 4.57307L11.7514 5.05956C11.8112 5.1806 11.9586 5.32759 12.0788 5.38693L12.5652 5.62708C12.6863 5.68684 12.7917 5.84542 12.8005 5.97917L12.8362 6.52053C12.8451 6.65523 12.925 6.84744 13.0134 6.94825L13.3709 7.3563C13.4599 7.45783 13.4966 7.64467 13.4535 7.77162L13.2794 8.28543C13.236 8.41328 13.2363 8.62145 13.2794 8.7484L13.4535 9.26221C13.4969 9.39006 13.4593 9.57671 13.3709 9.67753L13.0134 10.0856C12.9244 10.1871 12.845 10.3795 12.8362 10.5133L12.8005 11.0547C12.7916 11.1894 12.6854 11.3474 12.5652 11.4067L12.0788 11.6469C11.9577 11.7067 11.8107 11.8541 11.7514 11.9743L11.5112 12.4608C11.4515 12.5818 11.2929 12.6872 11.1592 12.696L10.6178 12.7317C10.4831 12.7406 10.2909 12.8206 10.1901 12.9089L9.78202 13.2664C9.68049 13.3554 9.49366 13.3921 9.36671 13.3491ZM8.62141 12.1666C10.6371 12.1666 12.2711 10.5326 12.2711 8.51692C12.2711 6.50127 10.6371 4.86726 8.62141 4.86726C6.60576 4.86726 4.97175 6.50127 4.97175 8.51692C4.97175 10.5326 6.60576 12.1666 8.62141 12.1666Z",fill:"white"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.62144 9.96838L7.25525 10.6877C7.14583 10.7454 7.07412 10.6934 7.09512 10.5714L7.35711 9.04978L6.25077 7.97275C6.16216 7.88649 6.18942 7.80223 6.31193 7.78451L7.84004 7.56346L8.52248 6.17845C8.57714 6.06753 8.66569 6.06741 8.72041 6.17845L9.40285 7.56346L10.931 7.78451C11.0533 7.80221 11.0808 7.8864 10.9921 7.97275L9.88578 9.04978L10.1478 10.5714C10.1687 10.6933 10.0972 10.7454 9.98764 10.6877L8.62144 9.96838Z",fill:"white"})]}),message_icon:d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M11.2 -0.00219727H4.8C2.15333 -0.00219727 0 2.15114 0 4.7978V8.53114C0 11.0885 2.01013 13.185 4.53333 13.3239V15.549C4.53333 15.7989 4.73707 16.0021 4.98747 16.0021C5.1072 16.0021 5.22053 15.9546 5.30613 15.869L5.8064 15.3687C7.12 14.0549 8.86693 13.3311 10.7251 13.3311H11.2C13.8467 13.3311 16 11.1778 16 8.53114V4.7978C16 2.15114 13.8467 -0.00219727 11.2 -0.00219727ZM4.53333 7.73114C3.94507 7.73114 3.46667 7.25274 3.46667 6.66447C3.46667 6.0762 3.94507 5.5978 4.53333 5.5978C5.1216 5.5978 5.6 6.0762 5.6 6.66447C5.6 7.25274 5.12133 7.73114 4.53333 7.73114ZM8 7.73114C7.41173 7.73114 6.93333 7.25274 6.93333 6.66447C6.93333 6.0762 7.41173 5.5978 8 5.5978C8.58827 5.5978 9.06667 6.0762 9.06667 6.66447C9.06667 7.25274 8.588 7.73114 8 7.73114ZM11.4667 7.73114C10.8784 7.73114 10.4 7.25274 10.4 6.66447C10.4 6.0762 10.8784 5.5978 11.4667 5.5978C12.0549 5.5978 12.5333 6.0762 12.5333 6.66447C12.5333 7.25274 12.0547 7.73114 11.4667 7.73114Z",fill:"white"})})};Zb(".backArrow {\n display: flex;\n align-items: center;\n cursor: pointer;\n font-size: 1rem;\n & > span {\n display: flex;\n }\n\n .icon {\n margin-right: 0.5rem;\n }\n\n .text {\n font-weight: 500;\n }\n}\n");var ey=function(){return ey=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ey.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;Zb(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");Zb(".overViewCard {\n border-radius: 12px;\n padding: 0.5rem 1rem;\n background-color: #f9f9f9;\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.5rem;\n .text {\n font-size: 14px;\n font-weight: 700;\n line-height: 18.2px;\n text-align: left;\n }\n}\n");var ty=Kb.Text;
26
+ /*!
27
+ * @kurkle/color v0.3.2
28
+ * https://github.com/kurkle/color#readme
29
+ * (c) 2023 Jukka Kurkela
30
+ * Released under the MIT License
31
+ */
32
+ function ny(e){return e+.5|0}const oy=(e,t,n)=>Math.max(Math.min(e,n),t);function ry(e){return oy(ny(2.55*e),0,255)}function iy(e){return oy(ny(255*e),0,255)}function ay(e){return oy(ny(e/2.55)/100,0,1)}function sy(e){return oy(ny(100*e),0,100)}const ly={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},cy=[..."0123456789ABCDEF"],uy=e=>cy[15&e],dy=e=>cy[(240&e)>>4]+cy[15&e],fy=e=>(240&e)>>4==(15&e);function hy(e){var t=(e=>fy(e.r)&&fy(e.g)&&fy(e.b)&&fy(e.a))(e)?uy:dy;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const py=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function gy(e,t,n){const o=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function my(e,t,n){const o=(o,r=(o+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[o(5),o(3),o(1)]}function vy(e,t,n){const o=gy(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function by(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;let s,l,c;return r!==i&&(c=r-i,l=a>.5?c/(2-r-i):c/(r+i),s=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,r),s=60*s+.5),[0|s,l||0,a]}function yy(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(iy)}function xy(e,t,n){return yy(gy,e,t,n)}function wy(e){return(e%360+360)%360}function Cy(e){const t=py.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?ry(+t[5]):iy(+t[5]));const r=wy(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return yy(vy,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return yy(my,e,t,n)}(r,i,a):xy(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const Ey={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Sy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let ky;function Oy(e){ky||(ky=function(){const e={},t=Object.keys(Sy),n=Object.keys(Ey);let o,r,i,a,s;for(o=0;o<t.length;o++){for(a=s=t[o],r=0;r<n.length;r++)i=n[r],s=s.replace(i,Ey[i]);i=parseInt(Sy[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),ky.transparent=[0,0,0,0]);const t=ky[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const _y=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const $y=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,My=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ny(e,t,n){if(e){let o=by(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=xy(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function Py(e,t){return e?Object.assign(t||{},e):e}function Iy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=iy(e[3]))):(t=Py(e,{r:0,g:0,b:0,a:1})).a=iy(t.a),t}function Ry(e){return"r"===e.charAt(0)?function(e){const t=_y.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?ry(e):oy(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?ry(n):oy(n,0,255)),o=255&(t[4]?ry(o):oy(o,0,255)),r=255&(t[6]?ry(r):oy(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):Cy(e)}class Ty{constructor(e){if(e instanceof Ty)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=Iy(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*ly[o[1]],g:255&17*ly[o[2]],b:255&17*ly[o[3]],a:5===i?17*ly[o[4]]:255}:7!==i&&9!==i||(r={r:ly[o[1]]<<4|ly[o[2]],g:ly[o[3]]<<4|ly[o[4]],b:ly[o[5]]<<4|ly[o[6]],a:9===i?ly[o[7]]<<4|ly[o[8]]:255})),n=r||Oy(e)||Ry(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Py(this._rgb);return e&&(e.a=ay(e.a)),e}set rgb(e){this._rgb=Iy(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ay(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?hy(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=by(e),n=t[0],o=sy(t[1]),r=sy(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${ay(e.a)})`:`hsl(${n}, ${o}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const i=t===r?.5:t,a=2*i-1,s=n.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*o.r+.5,n.g=255&l*n.g+r*o.g+.5,n.b=255&l*n.b+r*o.b+.5,n.a=i*n.a+(1-i)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=My(ay(e.r)),r=My(ay(e.g)),i=My(ay(e.b));return{r:iy($y(o+n*(My(ay(t.r))-o))),g:iy($y(r+n*(My(ay(t.g))-r))),b:iy($y(i+n*(My(ay(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Ty(this.rgb)}alpha(e){return this._rgb.a=iy(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ny(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ny(this._rgb,2,e),this}darken(e){return Ny(this._rgb,2,-e),this}saturate(e){return Ny(this._rgb,1,e),this}desaturate(e){return Ny(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=by(e);n[0]=wy(n[0]+t),n=xy(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
33
+ /*!
34
+ * Chart.js v4.4.4
35
+ * https://www.chartjs.org
36
+ * (c) 2024 Chart.js Contributors
37
+ * Released under the MIT License
38
+ */function jy(){}const Ay=(()=>{let e=0;return()=>e++})();function Dy(e){return null==e}function Ly(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function zy(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function By(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Fy(e,t){return By(e)?e:t}function Hy(e,t){return void 0===e?t:e}const Vy=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Wy(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Xy(e,t,n,o){let r,i,a;if(Ly(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(zy(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function qy(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function Uy(e){if(Ly(e))return e.map(Uy);if(zy(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=Uy(e[n[r]]);return t}return e}function Yy(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Gy(e,t,n,o){if(!Yy(e))return;const r=t[e],i=n[e];zy(r)&&zy(i)?Ky(r,i,o):t[e]=Uy(i)}function Ky(e,t,n){const o=Ly(t)?t:[t],r=o.length;if(!zy(e))return e;const i=(n=n||{}).merger||Gy;let a;for(let t=0;t<r;++t){if(a=o[t],!zy(a))continue;const r=Object.keys(a);for(let t=0,o=r.length;t<o;++t)i(r[t],e,a,n)}return e}function Zy(e,t){return Ky(e,t,{merger:Qy})}function Qy(e,t,n){if(!Yy(e))return;const o=t[e],r=n[e];zy(o)&&zy(r)?Zy(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Uy(r))}const Jy={"":e=>e,x:e=>e.x,y:e=>e.y};function ex(e,t){const n=Jy[t]||(Jy[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const e of t)o+=e,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function tx(e){return e.charAt(0).toUpperCase()+e.slice(1)}const nx=e=>void 0!==e,ox=e=>"function"==typeof e,rx=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const ix=Math.PI,ax=2*ix,sx=ax+ix,lx=Number.POSITIVE_INFINITY,cx=ix/180,ux=ix/2,dx=ix/4,fx=2*ix/3,hx=Math.log10,px=Math.sign;function gx(e,t,n){return Math.abs(e-t)<n}function mx(e){const t=Math.round(e);e=gx(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(hx(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function vx(e){return!isNaN(parseFloat(e))&&isFinite(e)}function bx(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function yx(e){return e*(ix/180)}function xx(e){return e*(180/ix)}function wx(e){if(!By(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Cx(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*ix&&(i+=ax),{angle:i,distance:r}}function Ex(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Sx(e,t){return(e-t+sx)%ax-ix}function kx(e){return(e%ax+ax)%ax}function Ox(e,t,n,o){const r=kx(e),i=kx(t),a=kx(n),s=kx(i-r),l=kx(a-r),c=kx(r-i),u=kx(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function _x(e,t,n){return Math.max(t,Math.min(n,e))}function $x(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function Mx(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,i=0;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Nx=(e,t,n,o)=>Mx(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),Px=(e,t,n)=>Mx(e,n,(o=>e[o][t]>=n));const Ix=["push","pop","shift","splice","unshift"];function Rx(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(Ix.forEach((t=>{delete e[t]})),delete e._chartjs)}function Tx(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const jx="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function Ax(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,jx.call(window,(()=>{o=!1,e.apply(t,n)})))}}const Dx=e=>"start"===e?"left":"end"===e?"right":"center",Lx=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const zx=e=>0===e||1===e,Bx=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*ax/n),Fx=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ax/n)+1,Hx={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*ux),easeOutSine:e=>Math.sin(e*ux),easeInOutSine:e=>-.5*(Math.cos(ix*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>zx(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>zx(e)?e:Bx(e,.075,.3),easeOutElastic:e=>zx(e)?e:Fx(e,.075,.3),easeInOutElastic(e){const t=.1125;return zx(e)?e:e<.5?.5*Bx(2*e,t,.45):.5+.5*Fx(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Hx.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Hx.easeInBounce(2*e):.5*Hx.easeOutBounce(2*e-1)+.5};function Vx(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Wx(e){return Vx(e)?e:new Ty(e)}function Xx(e){return Vx(e)?e:new Ty(e).saturate(.5).darken(.1).hexString()}const qx=["x","y","borderWidth","radius","tension"],Ux=["color","borderColor","backgroundColor"];const Yx=new Map;function Gx(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=Yx.get(n);return o||(o=new Intl.NumberFormat(e,t),Yx.set(n,o)),o}(t,n).format(e)}const Kx={values:e=>Ly(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=hx(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Gx(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(hx(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?Kx.numeric.call(this,e,t,n):""}};var Zx={formatters:Kx};const Qx=Object.create(null),Jx=Object.create(null);function ew(e,t){if(!t)return e;const n=t.split(".");for(let t=0,o=n.length;t<o;++t){const o=n[t];e=e[o]||(e[o]=Object.create(null))}return e}function tw(e,t,n){return"string"==typeof t?Ky(ew(e,t),n):Ky(ew(e,""),t)}class nw{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Xx(t.backgroundColor),this.hoverBorderColor=(e,t)=>Xx(t.borderColor),this.hoverColor=(e,t)=>Xx(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return tw(this,e,t)}get(e){return ew(this,e)}describe(e,t){return tw(Jx,e,t)}override(e,t){return tw(Qx,e,t)}route(e,t,n,o){const r=ew(this,e),i=ew(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[o];return zy(e)?Object.assign({},t,e):Hy(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var ow=new nw({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:Ux},numbers:{type:"number",properties:qx}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zx.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function rw(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function iw(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function aw(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function sw(e,t,n,o){lw(e,t,n,o,null)}function lw(e,t,n,o,r){let i,a,s,l,c,u,d,f;const h=t.pointStyle,p=t.rotation,g=t.radius;let m=(p||0)*cx;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:r?e.ellipse(n,o,r/2,g,0,0,ax):e.arc(n,o,g,0,ax),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=fx,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=fx,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=.516*g,l=g-c,a=Math.cos(m+dx)*l,d=Math.cos(m+dx)*(r?r/2-c:l),s=Math.sin(m+dx)*l,f=Math.sin(m+dx)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-ix,m-ux),e.arc(n+f,o-a,c,m-ux,m),e.arc(n+d,o+s,c,m,m+ux),e.arc(n-f,o+a,c,m+ux,m+ix),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}m+=dx;case"rectRot":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+f,o-a),e.lineTo(n+d,o+s),e.lineTo(n-f,o+a),e.closePath();break;case"crossRot":m+=dx;case"cross":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"star":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a),m+=dx,d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"line":a=r?r/2:Math.cos(m)*g,s=Math.sin(m)*g,e.moveTo(n-a,o-s),e.lineTo(n+a,o+s);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(m)*(r?r/2:g),o+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function cw(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function uw(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function dw(e){e.restore()}function fw(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function hw(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function pw(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function gw(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function mw(e,t,n,o,r,i={}){const a=Ly(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Dy(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&gw(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),Dy(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),pw(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function vw(e,t){const{x:n,y:o,w:r,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*ix,ix,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,ix,ux,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,ux,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-ux,!0),e.lineTo(n+a.topLeft,o)}const bw=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yw=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function xw(e,t){const n=(""+e).match(bw);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const ww=e=>+e||0;function Cw(e,t){const n={},o=zy(t),r=o?Object.keys(t):t,i=zy(e)?o?n=>Hy(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=ww(i(e));return n}function Ew(e){return Cw(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Sw(e){return Cw(e,["topLeft","topRight","bottomLeft","bottomRight"])}function kw(e){const t=Ew(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ow(e,t){e=e||{},t=t||ow.font;let n=Hy(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=Hy(e.style,t.style);o&&!(""+o).match(yw)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:Hy(e.family,t.family),lineHeight:xw(Hy(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:Hy(e.weight,t.weight),string:""};return r.string=function(e){return!e||Dy(e.size)||Dy(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function _w(e,t,n,o){let r,i,a;for(r=0,i=e.length;r<i;++r)if(a=e[r],void 0!==a&&void 0!==a)return a}function $w(e,t){return Object.assign(Object.create(e),t)}function Mw(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=Bw("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>Mw([n,...e],t,i,o)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>Tw(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=Bw(Iw(i,e),n),void 0!==r)return Rw(e,r)?Lw(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Fw(e).includes(t),ownKeys:e=>Fw(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function Nw(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Pw(e,o),setContext:t=>Nw(e,t,n,o),override:r=>Nw(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Tw(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];ox(s)&&a.isScriptable(t)&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(i,a||o);s.delete(e),Rw(e,l)&&(l=Lw(r._scopes,r,e,l));return l}(t,s,e,n));Ly(s)&&s.length&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&o(e))return t[i.index%t.length];if(zy(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Lw(o,r,e,l);t.push(Nw(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));Rw(t,s)&&(s=Nw(s,r,i&&i[t],a));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function Pw(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:ox(n)?n:()=>n,isIndexable:ox(o)?o:()=>o}}const Iw=(e,t)=>e?e+tx(t):t,Rw=(e,t)=>zy(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Tw(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function jw(e,t,n){return ox(e)?e(t,n):e}const Aw=(e,t)=>!0===e?t:"string"==typeof e?ex(t,e):void 0;function Dw(e,t,n,o,r){for(const i of t){const t=Aw(n,i);if(t){e.add(t);const i=jw(t._fallback,n,r);if(void 0!==i&&i!==n&&i!==o)return i}else if(!1===t&&void 0!==o&&n!==o)return null}return!1}function Lw(e,t,n,o){const r=t._rootScopes,i=jw(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=zw(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=zw(s,a,i,l,o),null!==l))&&Mw(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(Ly(r)&&zy(n))return n;return r||{}}(t,n,o))))}function zw(e,t,n,o,r){for(;n;)n=Dw(e,t,n,o,r);return n}function Bw(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function Fw(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const Hw=Number.EPSILON||1e-14,Vw=(e,t)=>t<e.length&&!e[t].skip&&e[t],Ww=e=>"x"===e?"y":"x";function Xw(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=Ex(i,r),l=Ex(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,f=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+f*(a.x-r.x),y:i.y+f*(a.y-r.y)}}}function qw(e,t="x"){const n=Ww(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=Vw(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=Vw(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?px(r[a-1])!==px(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,i,a,s,l,c=Vw(e,0);for(let u=0;u<o-1;++u)l=c,c=Vw(e,u+1),l&&c&&(gx(t[u],0,Hw)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}(e,r,i),function(e,t,n="x"){const o=Ww(n),r=e.length;let i,a,s,l=Vw(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=Vw(e,c+1),!s)continue;const r=s[n],u=s[o];a&&(i=(r-a[n])/3,s[`cp1${n}`]=r-i,s[`cp1${o}`]=u-i*t[c]),l&&(i=(l[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${o}`]=u+i*t[c])}}(e,i,t)}function Uw(e,t,n){return Math.max(Math.min(e,n),t)}function Yw(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)qw(e,r);else{let n=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=Xw(n,s,e[Math.min(i+1,a-(o?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,o,r,i,a,s=cw(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&cw(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=Uw(r.cp1x,t.left,t.right),r.cp1y=Uw(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=Uw(r.cp2x,t.left,t.right),r.cp2y=Uw(r.cp2y,t.top,t.bottom)))}(e,n)}function Gw(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Kw(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Zw(e,t,n){let o;return"string"==typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const Qw=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const Jw=["top","right","bottom","left"];function eC(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=Jw[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const tC=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function nC(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=Qw(n),i="border-box"===r.boxSizing,a=eC(r,"padding"),s=eC(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let a,s,l=!1;if(tC(r,i,e.target))a=r,s=i;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,s=o.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:h,height:p}=t;return i&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/h*n.width/o),y:Math.round((c-f)/p*n.height/o)}}const oC=e=>Math.round(10*e)/10;function rC(e,t,n,o){const r=Qw(e),i=eC(r,"margin"),a=Zw(r.maxWidth,e,"clientWidth")||lx,s=Zw(r.maxHeight,e,"clientHeight")||lx,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&Kw(e);if(i){const e=i.getBoundingClientRect(),a=Qw(i),s=eC(a,"border","width"),l=eC(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=Zw(a.maxWidth,i,"clientWidth"),r=Zw(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||lx,maxHeight:r||lx}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=eC(r,"border","width"),t=eC(r,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-i.width),u=Math.max(0,o?c/o:u-i.height),c=oC(Math.min(c,a,l.maxWidth)),u=oC(Math.min(u,s,l.maxHeight)),c&&!u&&(u=oC(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=oC(Math.floor(u*o))),{width:c,height:u}}function iC(e,t,n){const o=t||1,r=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==i)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0)}const aC=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Gw()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function sC(e,t){const n=function(e,t){return Qw(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function lC(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function cC(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function uC(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=lC(e,r,n),s=lC(r,i,n),l=lC(i,t,n),c=lC(a,s,n),u=lC(s,l,n);return lC(c,u,n)}function dC(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function fC(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function hC(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function pC(e){return"angle"===e?{between:Ox,compare:Sx,normalize:kx}:{between:$x,compare:(e,t)=>e-t,normalize:e=>e}}function gC({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n==0,style:r}}function mC(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=pC(o),{start:u,end:d,loop:f,style:h}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=pC(o),l=t.length;let c,u,{start:d,end:f,loop:h}=e;if(h){for(d+=l,f+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,f--;d%=l,f%=l}return f<d&&(f+=l),{start:d,end:f,loop:h,style:e.style}}(e,t,n),p=[];let g,m,v,b=!1,y=null;const x=()=>b||l(r,v,g)&&0!==s(r,v),w=()=>!b||0===s(i,g)||l(i,v,g);for(let e=u,n=u;e<=d;++e)m=t[e%a],m.skip||(g=c(m[o]),g!==v&&(b=l(g,r,i),null===y&&x()&&(y=0===s(g,r)?e:n),null!==y&&w()&&(p.push(gC({start:y,end:e,loop:f,count:a,style:h})),y=null),n=e,v=g));return null!==y&&p.push(gC({start:y,end:d,loop:f,count:a,style:h})),p}function vC(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=bC(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,f=d;function h(e,t,o,r){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:o,style:r}),u=r,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(f=d+1;f<=e.end;f++){const s=n[f%l];t=bC(o.setContext($w(r,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),yC(t,u)&&h(d,f-1,e.loop,u),i=s,u=t}d<f-1&&h(d,f-1,e.loop,u)}return c}(e,t,n,o):t}function bC(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function yC(e,t){if(!t)return!1;const n=[],o=function(e,t){return Vx(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}
39
+ /*!
40
+ * Chart.js v4.4.4
41
+ * https://www.chartjs.org
42
+ * (c) 2024 Chart.js Contributors
43
+ * Released under the MIT License
44
+ */class xC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],i=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=jx.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,a=r.length-1,s=!1;for(;a>=0;--a)i=r[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(r[a]=r[r.length-1],r.pop());s&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var wC=new xC;const CC="transparent",EC={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=Wx(e||CC),r=o.valid&&Wx(t||CC);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class SC{constructor(e,t,n,o){const r=t[n];o=_w([e.to,o,r,e.from]);const i=_w([e.from,r,o]);this._active=!0,this._fn=e.fn||EC[e.type||typeof i],this._easing=Hx[e.easing]||Hx.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=_w([e.to,t,o,e.from]),this._from=_w([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,i=this._loop,a=this._to;let s;if(this._active=r!==a&&(i||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(r,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class kC{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!zy(e))return;const t=Object.keys(ow.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!zy(r))return;const i={};for(const e of t)i[e]=r[e];(Ly(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let t=0;t<o.length;t++){const r=e[o[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new SC(d,e,l,c),o.push(u)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(wC.add(this._chart,n),!0):void 0}}function OC(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:o?i:r,end:o?r:i}}function _C(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function $C(e,t,n,o={}){const r=e.keys,i="single"===o.mode;let a,s,l,c;if(null!==t){for(a=0,s=r.length;a<s;++a){if(l=+r[a],l===n){if(o.all)continue;break}c=e.values[l],By(c)&&(i||0===t||px(t)===px(c))&&(t+=c)}return t}}function MC(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function NC(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function PC(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function IC(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=o,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,o),d=t.length;let f;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;f=(n._stacks||(n._stacks={}))[c]=NC(r,u,i),f[s]=d,f._top=PC(f,a,!0,o.type),f._bottom=PC(f,a,!1,o.type);(f._visualValues||(f._visualValues={}))[s]=d}}function RC(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function TC(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const jC=e=>"reset"===e||"none"===e,AC=(e,t)=>t?e:Object.assign({},e);class DC{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=MC(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&TC(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=Hy(n.xAxisID,RC(e,"x")),i=t.yAxisID=Hy(n.yAxisID,RC(e,"y")),a=t.rAxisID=Hy(n.rAxisID,RC(e,"r")),s=t.indexAxis,l=t.iAxisID=o(s,r,i,a),c=t.vAxisID=o(s,i,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Rx(this._data,this),e._stacked&&TC(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(zy(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:o}=t,r="x"===n.axis?"x":"y",i="x"===o.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[r]:u,[i]:e[u]};return s}(t,e)}else if(n!==t){if(n){Rx(n,this);const e=this._cachedMeta;TC(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Ix.forEach((t=>{const n="_onData"+tx(t),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const r=o.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n](...t)})),r}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=MC(t.vScale,t),t.stack!==n.stack&&(o=!0,TC(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&IC(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:i}=n,a=r.axis;let s,l,c,u=0===e&&t===o.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=Ly(o[e])?this.parseArrayData(n,o,e,t):zy(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}i&&IC(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:i}=e,a=r.axis,s=i.axis,l=r.getLabels(),c=r===i,u=new Array(o);let d,f,h;for(d=0,f=o;d<f;++d)h=d+n,u[d]={[a]:c||r.parse(l[h],h),[s]:i.parse(t[h],h)};return u}parseArrayData(e,t,n,o){const{xScale:r,yScale:i}=e,a=new Array(o);let s,l,c,u;for(s=0,l=o;s<l;++s)c=s+n,u=t[c],a[s]={x:r.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(o);let c,u,d,f;for(c=0,u=o;c<u;++c)d=c+n,f=t[d],l[c]={x:r.parse(ex(f,a),d),y:i.parse(ex(f,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,i=t[e.axis];return $C({keys:_C(o,!0),values:t._stacks[e.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let i=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,i=$C(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,i=o.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:_C(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,f;function h(){f=o[d];const t=f[a.axis];return!By(f[e.axis])||c>t||u<t}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,e,f,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,f,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o][e.axis],By(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return zy(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}(Hy(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=OC(e,n),r=OC(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||o.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,s),c=a;c<a+s;++c){const t=o[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,r))}for(c=0;c<i.length;++c)i[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return $w(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return $w(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const o="active"===t,r=this._cachedDataOpts,i=e+"-"+t,a=r[i],s=this.enableOptionSharing&&nx(n);if(a)return AC(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),f=Object.keys(ow.elements[e]),h=l.resolveNamedOptions(d,f,(()=>this.getContext(n,o,t)),u);return h.$shared&&(h.$shared=s,r[i]=Object.freeze(AC(h,s))),h}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,i=`animation-${t}`,a=r[i];if(a)return a;let s;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),i=o.getOptionScopes(this.getDataset(),r);s=o.createResolver(i,this.getContext(e,n,t))}const l=new kC(o,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||jC(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:i}}updateElement(e,t,n,o){jC(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!jC(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const o=n.length,r=t.length,i=Math.min(r,o);i&&this.parse(0,i),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t,n=!0){const o=this._cachedMeta,r=o.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(r),a=e;a<i;++a)r[a]=new this.dataElementType;this._parsing&&s(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&TC(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function LC(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=Tx(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(nx(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(o=0,r=n.length;o<r;++o)i=t.getPixelForValue(n[o]),l();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)i=t.getPixelForTick(o),l();return s}function zC(e,t,n,o){return Ly(e)?function(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(r,i),s=Math.max(r,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:i,min:a,max:s}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function BC(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,f;for(c=n,u=n+o;c<u;++c)f=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(zC(f,d,i,c));return l}function FC(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function HC(e,t,n,o){let r=t.borderSkipped;const i={};if(!r)return void(e.borderSkipped=i);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=c:(n._bottom||0)===o?r=u:(i[VC(u,a,s,l)]=!0,r=c)),i[VC(r,a,s,l)]=!0,e.borderSkipped=i}function VC(e,t,n,o){var r,i,a;return o?(a=n,e=WC(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=WC(e,t,n),e}function WC(e,t,n){return"start"===e?t:"end"===e?n:e}function XC(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class qC extends DC{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,o){return BC(e,t,n,o)}parseArrayData(e,t,n,o){return BC(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?a:s,c="x"===i.axis?a:s,u=[];let d,f,h,p;for(d=n,f=n+o;d<f;++d)p=t[d],h={},h[r.axis]=r.parse(ex(p,l),d),u.push(zC(ex(p,c),h,i,d));return u}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),i=r._custom,a=FC(i)?"["+i.start+", "+i.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,o);for(let f=t;f<t+n;f++){const t=this.getParsed(f),n=r||Dy(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),h=this._calculateBarIndexPixels(f,c),p=(t._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!p||FC(t._custom)||i===p._top||i===p._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(g.options=u||this.resolveDataElementOptions(f,e[f].active?"active":o));const m=g.options||e[f].options;HC(g,m,p,i),XC(g,m,c.ratio),this.updateElement(e[f],f,g,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(t),s=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===s)),o=t&&t[e.vScale.axis];if(Dy(o)||isNaN(o))return!0};for(const n of o)if((void 0===t||!l(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,i;for(r=0,i=t.data.length;r<i;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||LC(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:i}}=this,a=r||0,s=this.getParsed(e),l=s._custom,c=FC(l);let u,d,f=s[t.axis],h=0,p=n?this.applyStack(t,s,n):f;p!==f&&(h=p-f,p=f),c&&(f=l.barStart,p=l.barEnd-l.barStart,0!==f&&px(f)!==px(l.barEnd)&&(h=0),h+=f);const g=Dy(r)||c?h:r;let m=t.getPixelForValue(g);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(h+p):m,d=u-m,Math.abs(d)<i){d=function(e,t,n){return 0!==e?px(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,f===a&&(m-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),h=Math.max(e,r);m=Math.max(Math.min(m,h),l),u=m+d,n&&!c&&(s._stacks[t.axis]._visualValues[o]=t.getValueForPixel(u)-t.getValueForPixel(m))}if(m===t.getPixelForValue(a)){const e=px(d)*t.getLineWidthForValue(a)/2;m+=e,d-=e}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,i=Hy(o.maxBarThickness,1/0);let a,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,i=r[e];let a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let i,a;return Dy(r)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null===this.getParsed(r)[t.axis]||n[r].hidden||n[r].draw(this._ctx)}}class UC extends DC{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:o,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let r,i,a=e=>+n[e];if(zy(n[e])){const{key:e="value"}=this._parsing;a=t=>+ex(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return yx(this.options.rotation-90)}_getCircumference(){return yx(this.options.circumference)}_getRotationExtents(){let e=ax,t=-ax;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,r=o._getRotation(),i=o._getCircumference();e=Math.min(e,r),t=Math.max(t,r+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,o=this._cachedMeta,r=o.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:g,offsetY:m}=function(e,t,n){let o=1,r=1,i=0,a=0;if(t<ax){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),f=Math.sin(l),h=(e,t,o)=>Ox(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),p=(e,t,o)=>Ox(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=h(0,c,d),m=h(ux,u,f),v=p(ix,c,d),b=p(ix+ux,u,f);o=(g-v)/2,r=(m-b)/2,i=-(g+v)/2,a=-(m+b)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:a}}(f,d,s),v=(n.width-i)/h,b=(n.height-i)/p,y=Math.max(Math.min(v,b)/2,0),x=Vy(this.options.radius,y),w=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,o.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*r/ax)}updateElements(e,t,n,o){const r="reset"===o,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:h,includeOptions:p}=this._getSharedOptions(t,o);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,r);for(g=t;g<t+n;++g){const t=this._circumference(g,r),n=e[g],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:f,innerRadius:d};p&&(i.options=h||this.resolveDataElementOptions(g,n.active?"active":o)),m+=t,this.updateElement(n,g,i,o)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,o=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(o+=Math.abs(r))}return o}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?ax*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Gx(t._parsed[e],n.options.locale);return{label:o[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let o,r,i,a,s;if(!e)for(o=0,r=n.data.datasets.length;o<r;++o)if(n.isDatasetVisible(o)){i=n.getDatasetMeta(o),e=i.data,a=i.controller;break}if(!e)return 0;for(o=0,r=e.length;o<r;++o)s=a.resolveDataElementOptions(o),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,o=e.length;n<o;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(Hy(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class YC extends DC{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(r=_x(Math.min(Nx(s,l,c).lo,n?o:Nx(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=f?_x(Math.max(Nx(s,a.axis,u,!0).hi+1,n?0:Nx(t,l,a.getPixelForValue(u),!0).hi+1),r,o)-r:o-r}return{start:r,count:i}}(t,o,i);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}(t)&&(a=0,s=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(o,a,s,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,o),d=i.axis,f=a.axis,{spanGaps:h,segment:p}=this.options,g=vx(h)?h:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===o,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let n=0;n<b;++n){const h=e[n],b=m?h:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),w=Dy(x[f]),C=b[d]=i.getPixelForValue(x[d],n),E=b[f]=r||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[f],n);b.skip=isNaN(C)||isNaN(E)||w,b.stop=n>0&&Math.abs(x[d]-y[d])>g,p&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,h.active?"active":o)),m||this.updateElement(h,n,b,o),y=x}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),i=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class GC extends UC{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function KC(e,t,n,o){const{controller:r,data:i,_sorted:a}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?Px:Nx;if(!o)return e(i,t,n);if(r._sharedOptions){const o=i[0],r="function"==typeof o.getRange&&o.getRange(t);if(r){const o=e(i,t,n-r),a=e(i,t,n+r);return{lo:o.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function ZC(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=KC(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function QC(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return ZC(e,n,t,(function(n,a,s){(r||cw(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function JC(e,t,n,o,r,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,i=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return ZC(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const f=n.getCenterPoint(r);if(!(!!i||e.isPointInArea(f))&&!d)return;const h=s(t,f);h<l?(a=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function eE(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?JC(e,t,n,o,r,i):function(e,t,n,o){let r=[];return ZC(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=Cx(e,{x:t.x,y:t.y});Ox(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function tE(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return ZC(e,n,t,((e,o,l)=>{e[a]&&e[a](t[n],r)&&(i.push({element:e,datasetIndex:o,index:l}),s=s||e.inRange(t.x,t.y,r))})),o&&!s?[]:i}var nE={evaluateInteractionItems:ZC,modes:{index(e,t,n,o){const r=nC(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?QC(e,r,i,o,a):eE(e,r,i,!1,o,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const r=nC(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?QC(e,r,i,o,a):eE(e,r,i,!1,o,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,o)=>QC(e,nC(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=nC(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return eE(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>tE(e,nC(t,e),"x",n.intersect,o),y:(e,t,n,o)=>tE(e,nC(t,e),"y",n.intersect,o)}};const oE=["left","top","right","bottom"];function rE(e,t){return e.filter((e=>e.pos===t))}function iE(e,t){return e.filter((e=>-1===oE.indexOf(e.pos)&&e.box.axis===t))}function aE(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function sE(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!oE.includes(o))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*o:a&&t.availableWidth,s.height=r):(s.width=o,s.height=c?c*r:a&&t.availableHeight)}return n}function lE(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function cE(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function uE(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!zy(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[r]+=n.size}i.getPadding&&cE(a,i.getPadding());const s=Math.max(0,t.outerWidth-lE(a,e,"left","right")),l=Math.max(0,t.outerHeight-lE(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function dE(e,t){const n=t.maxPadding;function o(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}return o(e?["left","right"]:["top","bottom"])}function fE(e,t,n,o){const r=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,dE(s.horizontal,t));const{same:a,other:d}=uE(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&fE(r,t,n,o)||u}function hE(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function pE(e,t,n,o){const r=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=o[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const o=t.w*c,i=l.size||e.height;nx(l.start)&&(a=l.start),e.fullSize?hE(e,r.left,a,n.outerWidth-r.right-r.left,i):hE(e,t.left+l.placed,a,o,i),l.start=a,l.placed+=o,a=e.bottom}else{const o=t.h*c,a=l.size||e.width;nx(l.start)&&(i=l.start),e.fullSize?hE(e,i,r.top,a,n.outerHeight-r.bottom-r.top):hE(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var gE={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=kw(e.options.layout.padding),i=Math.max(t-r.width,0),a=Math.max(n-r.height,0),s=function(e){const t=function(e){const t=[];let n,o,r,i,a,s;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=r),t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=aE(t.filter((e=>e.box.fullSize)),!0),o=aE(rE(t,"left"),!0),r=aE(rE(t,"right")),i=aE(rE(t,"top"),!0),a=aE(rE(t,"bottom")),s=iE(t,"x"),l=iE(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:rE(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;Xy(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},r);cE(f,kw(o));const h=Object.assign({maxPadding:f,w:i,h:a,x:r.left,y:r.top},r),p=sE(l.concat(c),d);fE(s.fullSize,h,d,p),fE(l,h,d,p),fE(c,h,d,p)&&fE(l,h,d,p),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),pE(s.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,pE(s.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Xy(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class mE{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class vE extends mE{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const bE="$chartjs",yE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xE=e=>null===e||""===e;const wE=!!aC&&{passive:!0};function CE(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,wE)}function EE(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function SE(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||EE(n.addedNodes,o),t=t&&!EE(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function kE(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||EE(n.removedNodes,o),t=t&&!EE(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const OE=new Map;let _E=0;function $E(){const e=window.devicePixelRatio;e!==_E&&(_E=e,OE.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function ME(e,t,n){const o=e.canvas,r=o&&Kw(o);if(!r)return;const i=Ax(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||i(n,o)}));return a.observe(r),function(e,t){OE.size||window.addEventListener("resize",$E),OE.set(e,t)}(e,i),a}function NE(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){OE.delete(e),OE.size||window.removeEventListener("resize",$E)}(e)}function PE(e,t,n){const o=e.canvas,r=Ax((t=>{null!==e.ctx&&n(function(e,t){const n=yE[e.type]||e.type,{x:o,y:r}=nC(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,wE)}(o,t,r),r}class IE extends mE{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[bE]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",xE(r)){const t=sC(e,"width");void 0!==t&&(e.width=t)}if(xE(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=sC(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[bE])return!1;const n=t[bE].initial;["height","width"].forEach((e=>{const o=n[e];Dy(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[bE],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:SE,detach:kE,resize:ME}[t]||PE;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:NE,detach:NE,resize:NE}[t]||CE)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return rC(e,t,n,o)}isAttached(e){const t=e&&Kw(e);return!(!t||!t.isConnected)}}let RE=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return vx(this.x)&&vx(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}};function TE(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>r)return function(e,t,n,o){let r,i=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),i++,a=n[i*o])}(t,c,i,a/r),c;const u=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const i=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o==0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>r)return t}return Math.max(r,1)}(i,t,r);if(a>0){let e,n;const o=a>1?Math.round((l-s)/(a-1)):null;for(jE(t,c,u,Dy(o)?0:s-o,s),e=0,n=a-1;e<n;e++)jE(t,c,u,i[e],i[e+1]);return jE(t,c,u,l,Dy(o)?t.length:l+o),c}return jE(t,c,u),c}function jE(e,t,n,o,r){const i=Hy(o,0),a=Math.min(Hy(r,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-o,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const AE=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,DE=(e,t)=>Math.min(t||e,e);function LE(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function zE(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===o?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<i-s||c>a+s)))return c}function BE(e){return e.drawTicks?e.tickLength:0}function FE(e,t){if(!e.display)return 0;const n=Ow(e.font,t),o=kw(e.padding);return(Ly(e.text)?e.text.length:1)*n.lineHeight+o.height}function HE(e,t,n){let o=Dx(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class VE extends RE{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=Fy(e,Number.POSITIVE_INFINITY),t=Fy(t,Number.NEGATIVE_INFINITY),n=Fy(n,Number.POSITIVE_INFINITY),o=Fy(o,Number.NEGATIVE_INFINITY),{min:Fy(e,n),max:Fy(t,o),minDefined:By(e),maxDefined:By(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),i||(o=Math.max(o,t.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:Fy(n,Fy(o,n)),max:Fy(o,Fy(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Wy(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,i=Vy(t,(r-o)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(o,-Math.abs(i)),max:a(r,i)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?LE(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=TE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Wy(this.options.afterUpdate,[this])}beforeSetDimensions(){Wy(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Wy(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Wy(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Wy(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=Wy(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){Wy(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Wy(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=DE(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let i,a,s,l=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,f=_x(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:f/(n-1),u+6>i&&(i=f/(n-(e.offset?.5:1)),a=this.maxHeight-BE(e.grid)-t.padding-FE(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=xx(Math.min(Math.asin(_x((c.highest.height+6)/i,-1,1)),Math.asin(_x(a/s,-1,1))-Math.asin(_x(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Wy(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Wy(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=FE(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=BE(r)+i):(e.height=this.maxHeight,e.width=BE(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=yx(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,o,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=o*e.width,d=n*t.height):(u=n*e.height,d=o*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+i,this.paddingBottom=o+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Wy(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)Dy(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=LE(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,i=[],a=[],s=Math.floor(t/DE(t,n));let l,c,u,d,f,h,p,g,m,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,f=this._resolveTickFontOptions(l),o.font=h=f.string,p=r[h]=r[h]||{data:{},gc:[]},g=f.lineHeight,m=v=0,Dy(d)||Ly(d)){if(Ly(d))for(c=0,u=d.length;c<u;++c)b=d[c],Dy(b)||Ly(b)||(m=rw(o,p.data,p.gc,m,b),v+=g)}else m=rw(o,p.data,p.gc,m,d),v=g;i.push(m),a.push(v),y=Math.max(m,y),x=Math.max(v,x)}!function(e,t){Xy(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const w=i.indexOf(y),C=a.indexOf(x),E=e=>({width:i[e]||0,height:a[e]||0});return{first:E(0),last:E(t-1),widest:E(w),highest:E(C),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return _x(this._alignToPixels?iw(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return $w(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=$w(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=yx(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),i=e.autoSkipPadding||0,a=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>a*o?a/n:s/o:s*o<a*n?s/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:i,border:a}=o,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=BE(r),d=[],f=a.setContext(this.getContext()),h=f.display?f.width:0,p=h/2,g=function(e){return iw(n,e,h)};let m,v,b,y,x,w,C,E,S,k,O,_;if("top"===i)m=g(this.bottom),w=this.bottom-u,E=m-p,k=g(e.top)+p,_=e.bottom;else if("bottom"===i)m=g(this.top),k=e.top,_=g(e.bottom)-p,w=m+p,E=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,C=m-p,S=g(e.left)+p,O=e.right;else if("right"===i)m=g(this.left),S=e.left,O=g(e.right)-p,x=m+p,C=this.left+u;else if("x"===t){if("center"===i)m=g((e.top+e.bottom)/2+.5);else if(zy(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}k=e.top,_=e.bottom,w=m+p,E=w+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(zy(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-p,C=x-u,S=e.left,O=e.right}const $=Hy(o.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/$));for(v=0;v<c;v+=M){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,c=t.color,u=o.dash||[],f=o.dashOffset,h=t.tickWidth,p=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=zE(this,v,s),void 0!==b&&(y=iw(n,b,i),l?x=C=S=O=y:w=E=k=_=y,d.push({tx1:x,ty1:w,tx2:C,ty2:E,x1:S,y1:k,x2:O,y2:_,width:i,color:c,borderDash:u,borderDashOffset:f,tickWidth:h,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=BE(n.grid),f=d+c,h=u?-c:f,p=-yx(this.labelRotation),g=[];let m,v,b,y,x,w,C,E,S,k,O,_,$="middle";if("top"===o)w=this.bottom-h,C=this._getXAxisLabelAlignment();else if("bottom"===o)w=this.top+h,C=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("x"===t){if("center"===o)w=(e.top+e.bottom)/2+f;else if(zy(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)+f}C=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-f;else if(zy(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}C=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?$="top":"end"===s&&($="bottom"));const M=this._getLabelSizes();for(m=0,v=a.length;m<v;++m){b=a[m],y=b.label;const e=r.setContext(this.getContext(m));E=this.getPixelForTick(m)+r.labelOffset,S=this._resolveTickFontOptions(m),k=S.lineHeight,O=Ly(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,f=C;if(i?(x=E,"inner"===C&&(f=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),_="top"===o?"near"===l||0!==p?-O*k+k/2:"center"===l?-M.highest.height/2-t*k+k:-M.highest.height+k/2:"near"===l||0!==p?k/2:"center"===l?M.highest.height/2-t*k:M.highest.height-O*k,u&&(_*=-1),0===p||e.showLabelBackdrop||(x+=k/2*Math.sin(p))):(w=E,_=(1-O)*k/2),e.showLabelBackdrop){const t=kw(e.backdropPadding),n=M.heights[m],o=M.widths[m];let r=_-t.top,i=0-t.left;switch($){case"middle":r-=n/2;break;case"bottom":r-=n}switch(C){case"center":i-=o/2;break;case"right":i-=o;break;case"inner":m===v-1?i-=o:m>0&&(i-=o/2)}d={left:i,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}g.push({label:y,font:S,textOffset:_,options:{rotation:p,color:n,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:$,translation:[x,w],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-yx(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,i=e+r,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?o?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?o?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,i;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,i=o.length;r<i;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const a=o.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=iw(e,this.left,i)-i/2,c=iw(e,this.right,a)+a/2,u=d=s):(u=iw(e,this.top,i)-i/2,d=iw(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&uw(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;mw(t,e.label,0,e.textOffset,o,n)}n&&dw(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=Ow(n.font),i=kw(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||zy(t)?(s+=i.bottom,Ly(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,o){const{top:r,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,f,h,p=0;const g=a-r,m=s-i;if(e.isHorizontal()){if(f=Lx(o,i,s),zy(n)){const e=Object.keys(n)[0],o=n[e];h=u[e].getPixelForValue(o)+g-t}else h="center"===n?(c.bottom+c.top)/2+g-t:AE(e,n,t);d=s-i}else{if(zy(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)-m+t}else f="center"===n?(c.left+c.right)/2-m+t:AE(e,n,t);h=Lx(o,a,r),p="left"===n?-ux:ux}return{titleX:f,titleY:h,maxWidth:d,rotation:p}}(this,s,t,a);mw(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:HE(a,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=Hy(e.grid&&e.grid.z,-1),o=Hy(e.border&&e.border.z,0);return this._isVisible()&&this.draw===VE.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];i[n]!==this.id||e&&i.type!==e||o.push(i)}return o}_resolveTickFontOptions(e){return Ow(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class WE{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=Ky(Object.create(null),[n?ow.get(n):{},ow.get(t),e.defaults]);ow.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");ow.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&ow.describe(t,e.descriptors)}(e,i,n),this.override&&ow.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in ow[o]&&(delete ow[o][n],this.override&&delete Qx[n])}}class XE{constructor(){this.controllers=new WE(DC,"datasets",!0),this.elements=new WE(RE,"elements"),this.plugins=new WE(Object,"plugins"),this.scales=new WE(VE,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):Xy(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=tx(e);Wy(n["before"+o],[],n),t[e](n),Wy(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var qE=new XE;class UE{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),i=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===Wy(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){Dy(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=Hy(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(qE.plugins.items);for(let e=0;e<o.length;e++)n.push(qE.getPlugin(o[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const o=r[e];-1===n.indexOf(o)&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,{plugins:t,localIds:n},o,r){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=YE(o[t],r);null!==l&&i.push({plugin:s,options:GE(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function YE(e,t){return t||!1!==e?!0===e?{}:e:null}function GE(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(o,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function KE(e,t){const n=ow.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function ZE(e){if("x"===e||"y"===e||"r"===e)return e}function QE(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function JE(e,...t){if(ZE(e))return e;for(const n of t){const t=n.axis||QE(n.position)||e.length>1&&ZE(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function eS(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function tS(e,t){const n=Qx[e.type]||{scales:{}},o=t.scales||{},r=KE(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!zy(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=JE(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return eS(e,"x",n[0])||eS(e,"y",n[0])}return{}}(t,e),ow.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=Zy(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||KE(r,t),s=(Qx[r]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;i[r]=i[r]||Object.create(null),Zy(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];Zy(t,[ow.scales[t.type],ow.scale])})),i}function nS(e){const t=e.options||(e.options={});t.plugins=Hy(t.plugins,{}),t.scales=tS(e,t)}function oS(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const rS=new Map,iS=new Set;function aS(e,t){let n=rS.get(e);return n||(n=t(),rS.set(e,n),iS.add(n)),n}const sS=(e,t,n)=>{const o=ex(t,n);void 0!==o&&e.add(o)};class lS{constructor(e){this._config=function(e){return(e=e||{}).data=oS(e.data),nS(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=oS(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),nS(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return aS(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return aS(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return aS(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return aS(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>sS(s,e,t)))),t.forEach((e=>sS(s,o,e))),t.forEach((e=>sS(s,Qx[r]||{},e))),t.forEach((e=>sS(s,ow,e))),t.forEach((e=>sS(s,Jx,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),iS.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Qx[t]||{},ow.datasets[t]||{},{type:t},ow,Jx]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=cS(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=Pw(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(ox(a)||uS(a))||i&&Ly(a))return!0}return!1}(i,t)){r.$shared=!1;s=Nw(i,n=ox(n)?n():n,this.createResolver(e,n,a))}for(const e of t)r[e]=s[e];return r}createResolver(e,t,n=[""],o){const{resolver:r}=cS(this._resolverCache,e,n);return zy(t)?Nw(r,t,void 0,o):r}}function cS(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);if(!i){i={resolver:Mw(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const uS=e=>zy(e)&&Object.getOwnPropertyNames(e).some((t=>ox(e[t])));const dS=["top","bottom","left","right","chartArea"];function fS(e,t){return"top"===e||"bottom"===e||-1===dS.indexOf(e)&&"x"===t}function hS(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function pS(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Wy(n&&n.onComplete,[e],t)}function gS(e){const t=e.chart,n=t.options.animation;Wy(n&&n.onProgress,[e],t)}function mS(e){return Gw()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const vS={},bS=e=>{const t=mS(e);return Object.values(vS).filter((e=>e.canvas===t)).pop()};function yS(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const i=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=i)}}}function xS(e,t,n){return e.options.clip?e[n]:t[n]}let wS=class{static defaults=ow;static instances=vS;static overrides=Qx;static registry=qE;static version="4.4.4";static getChart=bS;static register(...e){qE.add(...e),CS()}static unregister(...e){qE.remove(...e),CS()}constructor(e,t){const n=this.config=new lS(t),o=mS(e),r=bS(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!Gw()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?vE:IE}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Ay(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new UE,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],vS[this.id]=this,a&&s?(wC.listen(this,"complete",pS),wC.listen(this,"progress",gS),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return Dy(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return qE}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():iC(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return aw(this.canvas,this.ctx),this}stop(){return wC.stop(this),this}resize(e,t){wC.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,iC(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),Wy(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Xy(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=JE(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),Xy(r,(t=>{const r=t.options,i=r.id,a=JE(i,r),s=Hy(r.type,t.dtype);void 0!==r.position&&fS(r.position,a)===fS(t.dposition)||(r.position=t.dposition),o[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(qE.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),Xy(o,((e,t)=>{e||delete n[t]})),Xy(n,(e=>{gE.configure(this,e,e.options),gE.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(hS("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const i=o.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=o.indexAxis||KE(i,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=qE.getController(i),{datasetElementType:o,dataElementType:a}=ow.datasets[i];Object.assign(t,{dataElementType:qE.getElement(a),datasetElementType:o&&qE.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){Xy(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!o&&-1===r.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),o||Xy(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(hS("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Xy(this.scales,(e=>{gE.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);rx(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t){yS(e,o,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let e=1;e<t;e++)if(!rx(o,n(e)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;gE.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Xy(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,ox(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(wC.has(this)?this.attached&&!wC.running(this)&&wC.start(this):(this.draw(),pS({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,r=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:xS(n,t,"left"),right:xS(n,t,"right"),top:xS(o,t,"top"),bottom:xS(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&uw(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),o&&dw(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return cw(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=nE.modes[t];return"function"==typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=$w(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),i=r.controller._resolveAnimations(void 0,o);nx(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),wC.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),aw(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete vS[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Xy(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){Xy(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Xy(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,i,a,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[o+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!qy(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=r(t,e),a=n?e:r(e,t);i.length&&this.updateHoverStyle(i,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,i=t,a=this._getActiveElements(e,o,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,Wy(r.onHover,[e,a,this],this),s&&Wy(r.onClick,[e,a,this],this));const c=!qy(a,o);return(c||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}};function CS(){return Xy(wS.instances,(e=>e._plugins.invalidate()))}function ES(e,t,n,o){const r=Cw(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,o*t/2),s=e=>{const t=(n-Math.min(i,e))*o/2;return _x(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:_x(r.innerStart,0,a),innerEnd:_x(r.innerEnd,0,a)}}function SS(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function kS(e,t,n,o,r,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+o+n-c,0),f=u>0?u+o+n+c:0;let h=0;const p=r-l;if(o){const e=((u>0?u-o:0)+(d>0?d-o:0))/2;h=(p-(0!==e?p*e/(e+o):p))/2}const g=(p-Math.max(.001,p*d-n/ix)/d)/2,m=l+g+h,v=r-g-h,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:w}=ES(t,f,d,v-m),C=d-b,E=d-y,S=m+b/C,k=v-y/E,O=f+x,_=f+w,$=m+x/O,M=v-w/_;if(e.beginPath(),i){const t=(S+k)/2;if(e.arc(a,s,d,S,t),e.arc(a,s,d,t,k),y>0){const t=SS(E,k,a,s);e.arc(t.x,t.y,y,k,v+ux)}const n=SS(_,v,a,s);if(e.lineTo(n.x,n.y),w>0){const t=SS(_,M,a,s);e.arc(t.x,t.y,w,v+ux,M+Math.PI)}const o=(v-w/f+(m+x/f))/2;if(e.arc(a,s,f,v-w/f,o,!0),e.arc(a,s,f,o,m+x/f,!0),x>0){const t=SS(O,$,a,s);e.arc(t.x,t.y,x,$+Math.PI,m-ux)}const r=SS(C,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=SS(C,S,a,s);e.arc(t.x,t.y,b,m-ux,S)}}else{e.moveTo(a,s);const t=Math.cos(S)*d+a,n=Math.sin(S)*d+s;e.lineTo(t,n);const o=Math.cos(k)*d+a,r=Math.sin(k)*d+s;e.lineTo(o,r)}e.closePath()}function OS(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,h="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(i){kS(e,t,n,o,p,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(p=a+(s%ax||ax))}h&&function(e,t,n){const{startAngle:o,pixelMargin:r,x:i,y:a,outerRadius:s,innerRadius:l}=t;let c=r/s;e.beginPath(),e.arc(i,a,s,o-c,n+c),l>r?(c=r/l,e.arc(i,a,l,n+c,o-c,!0)):e.arc(i,a,r,n+ux,o-ux),e.closePath(),e.clip()}(e,t,p),i||(kS(e,t,n,o,p,r),e.stroke())}function _S(e,t,n=t){e.lineCap=Hy(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Hy(n.borderDash,t.borderDash)),e.lineDashOffset=Hy(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Hy(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Hy(n.borderWidth,t.borderWidth),e.strokeStyle=Hy(n.borderColor,t.borderColor)}function $S(e,t,n){e.lineTo(n.x,n.y)}function MS(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:a,end:s}=t,l=Math.max(r,a),c=Math.min(i,s),u=r<a&&i<a||r>s&&i>s;return{count:o,start:l,loop:t.loop,ilen:c<l&&!u?o+c-l:c-l}}function NS(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=MS(r,n,o),u=function(e){return e.stepped?fw:e.tension||"monotone"===e.cubicInterpolationMode?hw:$S}(i);let d,f,h,{move:p=!0,reverse:g}=o||{};for(d=0;d<=c;++d)f=r[(s+(g?c-d:d))%a],f.skip||(p?(e.moveTo(f.x,f.y),p=!1):u(e,h,f,g,i.stepped),h=f);return l&&(f=r[(s+(g?c:0))%a],u(e,h,f,g,i.stepped)),!!l}function PS(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=MS(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,f,h,p,g,m=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{h!==p&&(e.lineTo(m,p),e.lineTo(m,h),e.lineTo(m,g))};for(l&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,o=0|t;o===f?(n<h?h=n:n>p&&(p=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),f=o,v=0,h=p=n),g=n}y()}function IS(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?PS:NS}const RS="function"==typeof Path2D;function TS(e,t,n,o){RS&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),_S(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=IS(t);for(const s of r)_S(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}function jS(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function AS(e,t){const{x:n,y:o,base:r,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,r),l=Math.max(n,r),c=o-d,u=o+d):(d=i/2,s=n-d,l=n+d,c=Math.min(o,r),u=Math.max(o,r)),{left:s,top:c,right:l,bottom:u}}function DS(e,t,n,o){return e?0:_x(t,n,o)}function LS(e){const t=AS(e),n=t.right-t.left,o=t.bottom-t.top,r=function(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,i=Ew(o);return{t:DS(r.top,i.top,0,n),r:DS(r.right,i.right,0,t),b:DS(r.bottom,i.bottom,0,n),l:DS(r.left,i.left,0,t)}}(e,n/2,o/2),i=function(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=Sw(r),a=Math.min(t,n),s=e.borderSkipped,l=o||zy(r);return{topLeft:DS(!l||s.top||s.left,i.topLeft,0,a),topRight:DS(!l||s.top||s.right,i.topRight,0,a),bottomLeft:DS(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:DS(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function zS(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&AS(e,o);return a&&(r||$x(t,a.left,a.right))&&(i||$x(n,a.top,a.bottom))}function BS(e,t){e.rect(t.x,t.y,t.w,t.h)}function FS(e,t,n={}){const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,a=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+i,h:e.h+a,radius:e.radius}}const HS=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}};class VS extends RE{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Wy(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,o=Ow(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=HS(n,r);let l,c;t.font=o.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,r,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,o,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,o){const{ctx:r,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+a;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,f=-c;return this.legendItems.forEach(((e,h)=>{const p=n+t/2+r.measureText(e.text).width;(0===h||l[l.length-1]+p+2*a>i)&&(u+=c,l[l.length-(h>0?0:1)]=0,f+=c,d++),s[h]={left:0,top:f,row:d,width:p,height:o},l[l.length-1]+=p+a})),u}_fitCols(e,t,n,o){const{ctx:r,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,f=0,h=0,p=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:g,itemHeight:m}=function(e,t,n,o,r){const i=function(e,t,n,o){let r=e.text;r&&"string"!=typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+o.measureText(r).width}(o,e,t,n),a=function(e,t,n){let o=e;"string"!=typeof t.text&&(o=WS(t,n));return o}(r,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,r,e,o);i>0&&f+m+2*a>c&&(u+=d+a,l.push({width:d,height:f}),h+=d+a,p++,d=f=0),s[i]={left:h,top:f,col:p,width:g,height:m},d=Math.max(d,g),f+=m+a})),u+=d,l.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,i=dC(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=Lx(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=Lx(n,this.left+o,this.right-this.lineWidths[r])),s.top+=this.top+e+o,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+o}else{let r=0,a=Lx(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=Lx(n,this.top+e+o,this.bottom-this.columnSizes[r].height)),s.top=a,s.left+=this.left+o,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;uw(e,this),this._draw(),dw(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=ow.color,s=dC(e.rtl,this.left,this.width),l=Ow(i.font),{padding:c}=i,u=l.size,d=u/2;let f;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:h,boxHeight:p,itemHeight:g}=HS(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();f=m?{x:Lx(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:Lx(r,this.top+v+c,this.bottom-t[0].height),line:0},fC(this.ctx,e.textDirection);const b=g+c;this.legendItems.forEach(((y,x)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const w=o.measureText(y.text).width,C=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),E=h+d+w;let S=f.x,k=f.y;s.setWidth(this.width),m?x>0&&S+E+c>this.right&&(k=f.y+=b,f.line++,S=f.x=Lx(r,this.left+c,this.right-n[f.line])):x>0&&k+b>this.bottom&&(S=f.x=S+t[f.line].width+c,f.line++,k=f.y=Lx(r,this.top+v+c,this.bottom-t[f.line].height));if(function(e,t,n){if(isNaN(h)||h<=0||isNaN(p)||p<0)return;o.save();const r=Hy(n.lineWidth,1);if(o.fillStyle=Hy(n.fillStyle,a),o.lineCap=Hy(n.lineCap,"butt"),o.lineDashOffset=Hy(n.lineDashOffset,0),o.lineJoin=Hy(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=Hy(n.strokeStyle,a),o.setLineDash(Hy(n.lineDash,[])),i.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,h/2);lw(o,a,l,t+d,i.pointStyleWidth&&h)}else{const i=t+Math.max((u-p)/2,0),a=s.leftForLtr(e,h),l=Sw(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?vw(o,{x:a,y:i,w:h,h:p,radius:l}):o.rect(a,i,h,p),o.fill(),0!==r&&o.stroke()}o.restore()}(s.x(S),k,y),S=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(C,S+h+d,m?S+E:this.right,e.rtl),function(e,t,n){mw(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),k,y),m)f.x+=E+c;else if("string"!=typeof y.text){const e=l.lineHeight;f.y+=WS(y,e)+c}else f.y+=b})),hC(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Ow(t.font),o=kw(t.padding);if(!t.display)return;const r=dC(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=o.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=Lx(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+Lx(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const f=Lx(a,u,u+d);i.textAlign=r.textAlign(Dx(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,mw(i,t.text,f,c,n)}_computeTitleHeight(){const e=this.options.title,t=Ow(e.font),n=kw(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if($x(e,this.left,this.right)&&$x(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],$x(e,o.left,o.left+o.width)&&$x(t,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,a=(r=n,null!==(o=i)&&null!==r&&o.datasetIndex===r.datasetIndex&&o.index===r.index);i&&!a&&Wy(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&Wy(t.onHover,[e,n,this],this)}else n&&Wy(t.onClick,[e,n,this],this);var o,r}}function WS(e,t){return t*(e.text?e.text.length:0)}var XS={id:"legend",_element:VS,start(e,t,n){const o=e.legend=new VS({ctx:e.ctx,options:n,chart:e});gE.configure(e,o,n),gE.addBox(e,o)},stop(e){gE.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;gE.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=kw(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:o||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class qS extends RE{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=Ly(n.text)?n.text.length:1;this._padding=kw(n.padding);const r=o*Ow(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=Lx(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=Lx(a,o,t),u=-.5*ix):(l=r-e,c=Lx(a,t,o),u=.5*ix),s=o-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Ow(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);mw(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:Dx(t.align),textBaseline:"middle",translation:[r,i]})}}var US={id:"title",_element:qS,start(e,t,n){!function(e,t){const n=new qS({ctx:e.ctx,options:t,chart:e});gE.configure(e,n,t),gE.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;gE.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;gE.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const YS={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o.add(e.x),r+=e.y,++i}}if(0===i||0===o.size)return!1;return{x:[...o].reduce(((e,t)=>e+t))/o.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let n,o,r,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=Ex(t,o.getCenterPoint());e<s&&(s=e,r=o)}}if(r){const e=r.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function GS(e,t){return t&&(Ly(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function KS(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function ZS(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:a,value:s}=i.getLabelAndValue(r);return{chart:e,label:a,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function QS(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=Ow(t.bodyFont),c=Ow(t.titleFont),u=Ow(t.footerFont),d=i.length,f=r.length,h=o.length,p=kw(t.padding);let g=p.height,m=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){g+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let b=0;const y=function(e){m=Math.max(m,n.measureText(e).width+b)};return n.save(),n.font=c.string,Xy(e.title,y),n.font=l.string,Xy(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,Xy(o,(e=>{Xy(e.before,y),Xy(e.lines,y),Xy(e.after,y)})),b=0,n.font=u.string,Xy(e.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function JS(e,t,n,o){const{x:r,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===o?c=r<=(s+l)/2?"left":"right":r<=i/2?c="left":r>=a-i/2&&(c="right"),function(e,t,n,o){const{x:r,width:i}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+i+a>t.width||"right"===e&&r-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function ek(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||JS(e,t,n,o),yAlign:o}}function tk(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=r+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Sw(a);let p=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,s);const g=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,f)+r:"right"===s&&(p+=Math.max(d,h)+r),{x:_x(p,0,o.width-t.width),y:_x(g,0,o.height-t.height)}}function nk(e,t,n){const o=kw(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function ok(e){return GS([],KS(e))}function rk(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const ik={beforeTitle:jy,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:jy,beforeBody:jy,beforeLabel:jy,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Dy(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:jy,afterBody:jy,beforeFooter:jy,footer:jy,afterFooter:jy};function ak(e,t,n,o){const r=e[t].call(n,o);return void 0===r?ik[t].call(n,o):r}class sk extends RE{static positioners=YS;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new kC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,$w(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=ak(n,"beforeTitle",this,e),r=ak(n,"title",this,e),i=ak(n,"afterTitle",this,e);let a=[];return a=GS(a,KS(o)),a=GS(a,KS(r)),a=GS(a,KS(i)),a}getBeforeBody(e,t){return ok(ak(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return Xy(e,(e=>{const t={before:[],lines:[],after:[]},r=rk(n,e);GS(t.before,KS(ak(r,"beforeLabel",this,e))),GS(t.lines,ak(r,"label",this,e)),GS(t.after,KS(ak(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return ok(ak(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=ak(n,"beforeFooter",this,e),r=ak(n,"footer",this,e),i=ak(n,"afterFooter",this,e);let a=[];return a=GS(a,KS(o)),a=GS(a,KS(r)),a=GS(a,KS(i)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(ZS(this.chart,t[a]));return e.filter&&(l=l.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),Xy(l,(t=>{const n=rk(e.callbacks,t);o.push(ak(n,"labelColor",this,t)),r.push(ak(n,"labelPointStyle",this,t)),i.push(ak(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,i=[];if(o.length){const e=YS[n.position].call(this,o,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=QS(this,n),a=Object.assign({},e,t),s=ek(this.chart,n,a),l=tk(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Sw(a),{x:d,y:f}=e,{width:h,height:p}=t;let g,m,v,b,y,x;return"center"===r?(y=f+p/2,"left"===o?(g=d,m=g-i,b=y+i,x=y-i):(g=d+h,m=g+i,b=y-i,x=y+i),v=g):(m="left"===o?d+Math.max(s,c)+i:"right"===o?d+h-Math.max(l,u)-i:this.caretX,"top"===r?(b=f,y=b-i,g=m-i,v=m+i):(b=f+p,y=b+i,g=m+i,v=m-i),x=b),{x1:g,x2:m,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const o=this.title,r=o.length;let i,a,s;if(r){const l=dC(n.rtl,this.x,this.width);for(e.x=nk(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Ow(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<r;++s)t.fillText(o[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=Ow(r.bodyFont),u=nk(this,"left",r),d=o.x(u),f=s<c.lineHeight?(c.lineHeight-s)/2:0,h=t.y+f;if(r.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,l)+l/2,c=h+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,sw(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,sw(e,t,n,c)}else{e.lineWidth=zy(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=o.leftForLtr(d,l),n=o.leftForLtr(o.xPlus(d,1),l-2),a=Sw(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,vw(e,{x:t,y:h,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),vw(e,{x:n,y:h+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,h,l,s),e.strokeRect(t,h,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,h+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Ow(n.bodyFont);let d=u.lineHeight,f=0;const h=dC(n.rtl,this.x,this.width),p=function(n){t.fillText(n,h.x(e.x+f),e.y+d/2),e.y+=d+r},g=h.textAlign(i);let m,v,b,y,x,w,C;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=nk(this,g,n),t.fillStyle=n.bodyColor,Xy(this.beforeBody,p),f=a&&"right"!==g?"center"===i?l/2+c:l+2+c:0,y=0,w=o.length;y<w;++y){for(m=o[y],v=this.labelTextColors[y],t.fillStyle=v,Xy(m.before,p),b=m.lines,a&&b.length&&(this._drawColorBox(t,e,y,h,n),d=Math.max(u.lineHeight,s)),x=0,C=b.length;x<C;++x)p(b[x]),d=u.lineHeight;Xy(m.after,p)}f=0,d=u.lineHeight,Xy(this.afterBody,p),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=dC(n.rtl,this.x,this.width);for(e.x=nk(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=Ow(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<r;++a)t.fillText(o[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Sw(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+l,s+c-h),t.quadraticCurveTo(a+l,s+c,a+l-h,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+f,s+c),t.quadraticCurveTo(a,s+c,a,s+c-f),"center"===i&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=YS[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=QS(this,e),a=Object.assign({},n,this._size),s=ek(t,e,a),l=tk(e,a,s,t);o._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=kw(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),fC(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),hC(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!qy(n,o),i=this._positionChanged(o,t);(r||i)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],i=this._getActiveElements(e,r,t,n),a=this._positionChanged(i,e),s=t||!qy(i,r)||a;return s&&(this._active=i,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,i=YS[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var lk={id:"tooltip",_element:sk,positioners:YS,afterInit(e,t,n){n&&(e.tooltip=new sk({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ik},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function ck(e,t,n,o){const r=e.indexOf(t);if(-1===r)return((e,t,n,o)=>("string"==typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o);return r!==e.lastIndexOf(t)?n:r}function uk(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function dk(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,f=r||1,h=c-1,{min:p,max:g}=t,m=!Dy(i),v=!Dy(a),b=!Dy(l),y=(g-p)/(u+1);let x,w,C,E,S=mx((g-p)/h/f)*f;if(S<1e-14&&!m&&!v)return[{value:p},{value:g}];E=Math.ceil(g/S)-Math.floor(p/S),E>h&&(S=mx(E*S/h/f)*f),Dy(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===o?(w=Math.floor(p/S)*S,C=Math.ceil(g/S)*S):(w=p,C=g),m&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,S/1e3)?(E=Math.round(Math.min((a-i)/S,c)),S=(a-i)/E,w=i,C=a):b?(w=m?i:w,C=v?a:C,E=l-1,S=(C-w)/E):(E=(C-w)/S,E=gx(E,Math.round(E),S/1e3)?Math.round(E):Math.ceil(E));const k=Math.max(wx(S),wx(w));x=Math.pow(10,Dy(s)?k:s),w=Math.round(w*x)/x,C=Math.round(C*x)/x;let O=0;for(m&&(d&&w!==i?(n.push({value:i}),w<i&&O++,gx(Math.round((w+O*S)*x)/x,i,fk(i,y,e))&&O++):w<i&&O++);O<E;++O){const e=Math.round((w+O*S)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&C!==a?n.length&&gx(n[n.length-1].value,a,fk(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&C!==a||n.push({value:C}),n}function fk(e,t,{horizontal:n,minRotation:o}){const r=yx(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class hk extends VE{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Dy(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const i=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=px(o),t=px(r);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||i(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=dk({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&bx(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Gx(e,this.chart.options.locale,this.options.ticks.format)}}class pk extends hk{static id="linear";static defaults={ticks:{callback:Zx.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=By(e)?e:0,this.max=By(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=yx(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Zx.formatters.logarithmic;Zx.formatters.numeric;const gk="label";function mk(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function vk(e,t){e.labels=t}function bk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gk;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):{...t}}))}function yk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gk;const n={labels:[],datasets:[]};return vk(n,e.labels),bk(n,e.datasets,t),n}function xk(t,n){const{height:o=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:s,data:l,options:c,plugins:u=[],fallbackContent:d,updateMode:f,...h}=t,p=e.useRef(null),g=e.useRef(),m=()=>{p.current&&(g.current=new wS(p.current,{type:s,data:yk(l,a),options:c&&{...c},plugins:u}),mk(n,g.current))},v=()=>{mk(n,null),g.current&&(g.current.destroy(),g.current=null)};return e.useEffect((()=>{!i&&g.current&&c&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(g.current,c)}),[i,c]),e.useEffect((()=>{!i&&g.current&&vk(g.current.config.data,l.labels)}),[i,l.labels]),e.useEffect((()=>{!i&&g.current&&l.datasets&&bk(g.current.config.data,l.datasets,a)}),[i,l.datasets]),e.useEffect((()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(f))}),[i,c,l.labels,l.datasets,f]),e.useEffect((()=>{g.current&&(v(),setTimeout(m))}),[s]),e.useEffect((()=>(m(),()=>v())),[]),e.createElement("canvas",Object.assign({ref:p,role:"img",height:o,width:r},h),d)}const wk=e.forwardRef(xk);function Ck(t,n){return wS.register(n),e.forwardRef(((n,o)=>e.createElement(wk,Object.assign({},n,{ref:o,type:t}))))}const Ek=Ck("line",YC),Sk=Ck("bar",qC),kk=Ck("doughnut",UC),Ok=Ck("pie",GC);Zb(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),wS.register(class extends VE{static id="category";static defaults={ticks:{callback:uk}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Dy(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:_x(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:ck(n,e,Hy(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)o.push({value:n});return o}getLabelForValue(e){return uk.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},pk,class extends RE{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:o}}=this,{inner:r,outer:i}=LS(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?vw:BS;var s;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,FS(i,t,r)),e.clip(),a(e,FS(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,FS(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return zS(this,e,t,n)}inXRange(e,t){return zS(this,e,null,t)}inYRange(e,t){return zS(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:o,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+o)/2:t,y:r?n:(n+o)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},class extends RE{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;Yw(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}(n,r,i,o);return vC(e,!0===o?[{start:a,end:s,loop:i}]:function(e,t,n,o){const r=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(o=!1,i.push({start:t%r,end:(a-1)%r,loop:o}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%r,end:s%r,loop:o}),i}(n,a,s<a?s+r:s,!!e._fullLoop&&0===a&&s===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,i=function(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=mC(o[r],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:o,end:o});if(!i.length)return;const a=[],s=function(e){return e.stepped?cC:e.tension||"monotone"===e.cubicInterpolationMode?uC:lC}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],f=r[u];if(d===f){a.push(d);continue}const h=s(d,f,Math.abs((o-d[t])/(f[t]-d[t])),n.stepped);h[t]=e[t],a.push(h)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return IS(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=IS(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)i&=r(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),TS(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends RE{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-i,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return jS(this,e,"x",t)}inYRange(e,t){return jS(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!cw(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,sw(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},class extends RE{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.getProps(["x","y"],n),{angle:r,distance:i}=Cx(o,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,f=Hy(u,s-a),h=Ox(r,a,s)&&a!==s,p=f>=ax||h,g=$x(i,l+d,c+d);return p&&g}getCenterPoint(e){const{x:t,y:n,startAngle:o,endAngle:r,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(o+r)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,o=(t.offset||0)/4,r=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>ax?Math.floor(n/ax):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*o,Math.sin(a)*o);const s=o*(1-Math.sin(Math.min(ix,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){kS(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%ax||ax))}kS(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),OS(e,this,s,r,i),e.restore()}},US,lk,XS);Zb(".appImageBox {\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n\n .ant-image {\n border-radius: 50%;\n overflow: hidden;\n\n .ant-image-img {\n border-radius: 50%;\n }\n }\n .text {\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n text-align: left;\n color: #000000;\n }\n}\n");exports.AppBackArrow=function(e){var t=e.text,n=void 0===t?"Back":t,o=e.href,r=e.className,i=e.backIcon;return d.jsxs("div",{className:"backArrow ".concat(r),onClick:function(){window.location.href=o},children:[d.jsx("span",{className:"icon",children:i||Jb.backArrow}),n&&d.jsx("span",{className:"text",children:n})]})},exports.AppBadge=function(e){var t=e.content,n=e.children,o=e.className,r=e.ribbon,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["content","children","className","ribbon"]);return d.jsx("div",{className:"appBadge ".concat(o),children:d.jsx(If,ey({count:t},i,{children:r?d.jsx("div",{className:"ribbonWrapper",children:d.jsx(If.Ribbon,{text:r.text,color:r.color,placement:r.placement,children:n})}):n}))})},exports.AppButton=function(e){var t=e.type,n=e.size,o=e.className,r=e.handleClick,i=e.icon,a=e.text,s=e.disabled,l=e.iconPosition,c=e.isLoading;return d.jsx("div",{className:"appButton ".concat(o),children:d.jsx(Vl,{disabled:s,type:t,className:["customBtn",i?"btn-icon":"","right"===l?"iconRight":""].join(" "),size:n,onClick:r,icon:i,loading:c,children:a})})},exports.AppChart=function(e){var t=e.type,n=e.data,o=e.options,r=e.className,i=e.height,a=void 0===i?400:i,s=e.width,l=void 0===s?600:s;return d.jsx("div",{style:{height:a,width:l},className:"appChart ".concat(r),children:function(){switch(t){case"bar":return d.jsx(Sk,{data:n,options:o,className:r});case"line":return d.jsx(Ek,{data:n,options:o,className:r});case"pie":return d.jsx(Ok,{data:n,options:o,className:r});case"doughnut":return d.jsx(kk,{data:n,options:o,className:r});default:return null}}()})},exports.AppImageBox=function(e){var t=e.width,n=void 0===t?100:t,o=e.height,r=void 0===o?100:o,i=e.text,a=void 0===i?"":i,s=e.image,l=e.className;return d.jsxs("div",{className:"appImageBox ".concat(l),children:[d.jsx(Fv,{preview:!1,width:n,height:r,src:s.src,alt:a}),a&&d.jsx("span",{className:"text",children:a})]})},exports.AppInput=function(t){var n=t.className,o=t.label,r=t.name,i=t.value,a=t.dataTestId,s=t.type,l=t.id,c=t.disabled,u=t.handleChange,f=t.onClick,h=t.defaultValue,p=t.onPressEnter,g=t.isAutoFocus,m=t.triggerFocus,v=t.isOptional,b=t.errorMessage,y=t.suffixIcon,x=t.prefixIcon,w=e.useRef(null);e.useEffect((function(){g&&w.current&&w.current.focus()}),[m,g]);var C=v?"".concat(o," (optional)"):o;return d.jsxs("div",{className:"appInput ".concat(n),children:[d.jsx(Um,{type:s,"data-test-id":a,id:l,disabled:c,name:r,className:"input",value:i,onChange:u,onClick:f,defaultValue:h,onPressEnter:p,placeholder:C,ref:w,prefix:x&&x,suffix:y&&y}),b&&d.jsx("div",{className:"error",children:b})]})},exports.AppSidebar=function(e){var t=e.links,n=e.logo,o=e.footerLinks,r=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:d.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&d.jsx("span",{className:"tag",children:e.tag})]})}})),s=null==o?void 0:o.map((function(e){return{key:e.path,label:d.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return d.jsx("div",{className:"sideBar ".concat(r),children:d.jsxs(Qb,{className:"sider",children:[d.jsx("div",{className:"logo",children:n}),d.jsx(Wp,{mode:"inline",className:"menu",items:a}),o&&d.jsx("div",{className:"footer",children:d.jsx(Wp,{mode:"inline",items:s})})]})})},exports.AppTab=function(e){var t=e.className,n=e.items,o=e.handleChange,r=e.defaultActiveKey;return d.jsx("div",{className:"appTab ".concat(t),children:d.jsx(am,{defaultActiveKey:r,items:n,onChange:o,className:"tab"})})},exports.AppTextarea=function(e){var t=e.id,n=e.placeholder,o=e.name,r=e.value,i=e.dataTestId,a=e.defaultValue,s=e.onPressEnter,l=e.handleChange,c=e.rows,u=e.cols,f=e.className,h=e.error;return d.jsxs("div",{className:"appTextArea ".concat(f),children:[d.jsx(Um.TextArea,{"data-test-id":i,id:t,name:o,placeholder:n,value:r,className:"textArea",onChange:l,defaultValue:a,onPressEnter:s,rows:c,cols:u}),h&&d.jsx("div",{className:"error",children:h})]})},exports.OverViewCard=function(e){var t=e.className,n=e.text,o=e.number;return d.jsxs("div",{className:"overViewCard ".concat(t),children:[d.jsx(ty,{children:n}),d.jsx("span",{children:o})]})};
26
45
  //# sourceMappingURL=index.js.map