react-frontend-common-components 0.0.89 → 0.0.90

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.mjs DELETED
@@ -1,78 +0,0 @@
1
- import*as e from"react";import t,{version as n,isValidElement as o,useContext as r,createContext as i,useRef as a,useLayoutEffect as s,useEffect as l,forwardRef as c,useMemo as u,useState as d,Children as p,createRef as f,useCallback as h,useImperativeHandle as g,cloneElement as m,memo as v,PureComponent as b}from"react";import*as y from"react-dom";import x,{createPortal as C,unstable_batchedUpdates as w,flushSync as S}from"react-dom";var k=function(){return k=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},k.apply(this,arguments)};function E(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 O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var $,N={exports:{}},M={};var I,P={};
2
- /**
3
- * @license React
4
- * react-jsx-runtime.development.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */"production"===process.env.NODE_ENV?N.exports=function(){if($)return M;$=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,o){var s,l={},c=null,u=null;for(s in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return M.Fragment=o,M.jsx=s,M.jsxs=s,M}():N.exports=(I||(I=1,"production"!==process.env.NODE_ENV&&function(){var e=t,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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(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=m.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 b=Symbol.for("react.module.reference");function y(e){return e.displayName||"Context"}function x(e){if(null==e)return null;if("number"==typeof e.tag&&v("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 u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return y(e)+".Consumer";case s:return y(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 p:var t=e.displayName||null;return null!==t?t:x(e.type)||"Memo";case f:var n=e,h=n._payload,g=n._init;try{return x(g(h))}catch(e){return null}}return null}var C,w,S,k,E,O,$,N=Object.assign,M=0;function I(){}I.__reactDisabledLog=!0;var L,j=m.ReactCurrentDispatcher;function A(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 D,T=!1,R="function"==typeof WeakMap?WeakMap:Map;function _(e,t){if(!e||T)return"";var n,o=D.get(e);if(void 0!==o)return o;T=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=j.current,j.current=null,function(){if(0===M){C=console.log,w=console.info,S=console.warn,k=console.error,E=console.group,O=console.groupCollapsed,$=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}();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&&D.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{T=!1,j.current=r,function(){if(0==--M){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:C}),info:N({},e,{value:w}),warn:N({},e,{value:S}),error:N({},e,{value:k}),group:N({},e,{value:E}),groupCollapsed:N({},e,{value:O}),groupEnd:N({},e,{value:$})})}M<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?A(p):"";return"function"==typeof e&&D.set(e,f),f}function z(e,t,n){if(null==e)return"";if("function"==typeof e)return _(e,!(!(o=e.prototype)||!o.isReactComponent));var o;if("string"==typeof e)return A(e);switch(e){case u:return A("Suspense");case d:return A("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return _(e.render,!1);case p:return z(e.type,t,n);case f:var r=e,i=r._payload,a=r._init;try{return z(a(i),t,n)}catch(e){}}return""}D=new R;var B=Object.prototype.hasOwnProperty,H={},F=m.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);F.setExtraStackFrame(n)}else F.setExtraStackFrame(null)}var V=Array.isArray;function K(e){return V(e)}function q(e){return""+e}function X(e){if(function(e){try{return q(e),!1}catch(e){return!0}}(e))return v("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 U,G,Y,Q=m.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};function J(e,t,o,r,i){var a,s={},l=null,c=null;for(a in void 0!==o&&(X(o),l=""+o),function(e){if(B.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(X(t.key),l=""+t.key),function(e){if(B.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&&Q.current&&t&&Q.current.stateNode!==t){var n=x(Q.current.type);Y[n]||(v('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',x(Q.current.type),e.ref),Y[n]=!0)}}(t,i)),t)B.call(t,a)&&!Z.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){U||(U=!0,v("%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})}(s,d),c&&function(e,t){var n=function(){G||(G=!0,v("%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})}(s,d)}return 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}(e,l,c,i,r,Q.current,s)}Y={};var ee,te=m.ReactCurrentOwner,ne=m.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function ie(){if(te.current){var e=x(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();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(!ae[n]){ae[n]=!0;var o="";e&&e._owner&&e._owner!==te.current&&(o=" It was passed a child from "+x(e._owner.type)+"."),oe(e),v('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),oe(null)}}}function le(e,t){if("object"==typeof e)if(K(e))for(var n=0;n<e.length;n++){var o=e[n];re(o)&&se(o,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];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;)re(i.value)&&se(i.value,t)}}function ce(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!==p)return;t=n.propTypes}if(t){var o=x(n);!function(e,t,n,o,r){var i=Function.call.bind(B);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||(W(r),v("%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),W(null)),s instanceof Error&&!(s.message in H)&&(H[s.message]=!0,W(r),v("Failed %s type: %s",n,s.message),W(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||ee||(ee=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ue(e,t,o,g,m,y){var C=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===i||e===u||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===b||void 0!==e.getModuleId)}(e);if(!C){var w,S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),S+=ie(),null===e?w="null":K(e)?w="array":void 0!==e&&e.$$typeof===n?(w="<"+(x(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,S)}var k=J(e,t,o,m,y);if(null==k)return k;if(C){var E=t.children;if(void 0!==E)if(g)if(K(E)){for(var O=0;O<E.length;O++)le(E[O],e);Object.freeze&&Object.freeze(E)}else v("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 le(E,e)}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){oe(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),oe(null);break}}null!==e.ref&&(oe(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}(k):ce(k),k}var de=function(e,t,n){return ue(e,t,n,!1)},pe=function(e,t,n){return ue(e,t,n,!0)};P.Fragment=r,P.jsx=de,P.jsxs=pe}()),P);var L=N.exports,j={exports:{}};
11
- /*!
12
- Copyright (c) 2018 Jed Watson.
13
- Licensed under the MIT License (MIT), see
14
- http://jedwatson.github.io/classnames
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=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}()}(j);var A=O(j.exports);function D(){return D=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},D.apply(null,arguments)}function T(e){return T="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},T(e)}var R=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),z=Symbol.for("react.fragment");function B(e){return e&&"object"===T(e)&&(e.$$typeof===R||e.$$typeof===_)&&e.type===z}function H(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?o=o.concat(H(e)):B(e)&&e.props?o=o.concat(H(e.props.children,n)):o.push(e))})),o}var F={},W=[];function V(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=W.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=W.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function q(){F={}}function X(e,t,n){t||F[n]||(e(!1,n),F[n]=!0)}function U(e,t){X(V,e,t)}function G(e,t){X(K,e,t)}function Y(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:t+""}function Q(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(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 J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e){return e instanceof HTMLElement||e instanceof SVGElement}function te(e){var n,o=function(e){return e&&"object"===T(e)&&ee(e.nativeElement)?e.nativeElement:ee(e)?e:null}(e);return o||(e instanceof t.Component?null===(n=x.findDOMNode)||void 0===n?void 0:n.call(x,e):null)}U.preMessage=function(e){W.push(e)},U.resetWarned=q,U.noteOnce=G;var ne,oe={exports:{}},re={};var ie,ae={};
17
- /**
18
- * @license React
19
- * react-is.development.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */"production"===process.env.NODE_ENV?oe.exports=function(){if(ne)return re;ne=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"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){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 f:case p:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),re.ContextConsumer=s,re.ContextProvider=a,re.Element=t,re.ForwardRef=c,re.Fragment=o,re.Lazy=f,re.Memo=p,re.Portal=n,re.Profiler=i,re.StrictMode=r,re.Suspense=u,re.SuspenseList=d,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(e){return g(e)===s},re.isContextProvider=function(e){return g(e)===a},re.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},re.isForwardRef=function(e){return g(e)===c},re.isFragment=function(e){return g(e)===o},re.isLazy=function(e){return g(e)===f},re.isMemo=function(e){return g(e)===p},re.isPortal=function(e){return g(e)===n},re.isProfiler=function(e){return g(e)===i},re.isStrictMode=function(e){return g(e)===r},re.isSuspense=function(e){return g(e)===u},re.isSuspenseList=function(e){return g(e)===d},re.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},re.typeOf=g,re}():oe.exports=(ie||(ie=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"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){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 f:case p:case a:return m;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var m=s,v=a,b=t,y=c,x=o,C=f,w=p,S=n,k=i,E=r,O=u,$=d,N=!1,M=!1;ae.ContextConsumer=m,ae.ContextProvider=v,ae.Element=b,ae.ForwardRef=y,ae.Fragment=x,ae.Lazy=C,ae.Memo=w,ae.Portal=S,ae.Profiler=k,ae.StrictMode=E,ae.Suspense=O,ae.SuspenseList=$,ae.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ae.isConcurrentMode=function(e){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ae.isContextConsumer=function(e){return g(e)===s},ae.isContextProvider=function(e){return g(e)===a},ae.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ae.isForwardRef=function(e){return g(e)===c},ae.isFragment=function(e){return g(e)===o},ae.isLazy=function(e){return g(e)===f},ae.isMemo=function(e){return g(e)===p},ae.isPortal=function(e){return g(e)===n},ae.isProfiler=function(e){return g(e)===i},ae.isStrictMode=function(e){return g(e)===r},ae.isSuspense=function(e){return g(e)===u},ae.isSuspenseList=function(e){return g(e)===d},ae.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},ae.typeOf=g}()),ae);var se=oe.exports;function le(t,n,o){var r=e.useRef({});return"value"in r.current&&!o(r.current.condition,n)||(r.current.value=t(),r.current.condition=n),r.current.value}var ce=Number(n.split(".")[0]),ue=function(e,t){"function"==typeof e?e(t):"object"===T(e)&&e&&"current"in e&&(e.current=t)},de=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){ue(t,e)}))}},pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return le((function(){return de.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},fe=function(e){var t,n;if(!e)return!1;if(he(e)&&ce>=19)return!0;var o=se.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===se.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===se.ForwardRef)};function he(e){return o(e)&&!B(e)}var ge=function(e){if(e&&he(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},me=e.createContext(null);var ve=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}()}(),be="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ye="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),xe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ye):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ce=["top","right","bottom","left","width","height","size","weight"],we="undefined"!=typeof MutationObserver,Se=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(){xe(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(){be&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),we?(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(){be&&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;Ce.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}(),ke=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},Ee=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ye},Oe=Le(0,0,0,0);function $e(e){return parseFloat(e)||0}function Ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+$e(e["border-"+n+"-width"])}),0)}function Me(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Oe;var o=Ee(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]=$e(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=$e(o.width),l=$e(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=Ne(o,"left","right")+i),Math.round(l+a)!==n&&(l-=Ne(o,"top","bottom")+a)),!function(e){return e===Ee(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 Le(r.left,r.top,s,l)}var Ie="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Ee(e).SVGGraphicsElement}:function(e){return e instanceof Ee(e).SVGElement&&"function"==typeof e.getBBox};function Pe(e){return be?Ie(e)?function(e){var t=e.getBBox();return Le(0,0,t.width,t.height)}(e):Me(e):Oe}function Le(e,t,n,o){return{x:e,y:t,width:n,height:o}}var je=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Le(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Pe(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}(),Ae=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),ke(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);ke(this,{target:e,contentRect:c})},De=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ve,"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 Ee(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new je(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 Ee(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 Ae(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}(),Te="undefined"!=typeof WeakMap?new WeakMap:new ve,Re=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=Se.getInstance(),o=new De(t,n,this);Te.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){Re.prototype[e]=function(){var t;return(t=Te.get(this))[e].apply(t,arguments)}}));var _e=void 0!==ye.ResizeObserver?ye.ResizeObserver:Re,ze=new Map;function Be(e){e.forEach((function(e){var t,n=e.target;null===(t=ze.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var He=new _e(Be);function Fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(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,Y(o.key),o)}}function Ve(e,t,n){return t&&We(e.prototype,t),n&&We(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function qe(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&&Ke(e,t)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ue=function(){return!!e})()}function Ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e,t){if(t&&("object"==T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Qe(e){var t=Ue();return function(){var n,o=Xe(e);if(t){var r=Xe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ye(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ze=function(){qe(n,e.Component);var t=Qe(n);function n(){return Fe(this,n),t.apply(this,arguments)}return Ve(n,[{key:"render",value:function(){return this.props.children}}]),n}();function Je(t,n){var o=t.children,r=t.disabled,i=e.useRef(null),a=e.useRef(null),s=e.useContext(me),l="function"==typeof o,c=l?o(i):o,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&e.isValidElement(c)&&fe(c),p=d?ge(c):null,f=pe(p,i),h=function(){var e;return te(i.current)||(i.current&&"object"===T(i.current)?te(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||te(a.current)};e.useImperativeHandle(n,(function(){return h()}));var g=e.useRef(t);g.current=t;var m=e.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),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:d,height:p,offsetWidth:l,offsetHeight:c};u.current=f;var h=l===Math.round(i)?i:l,m=c===Math.round(a)?a:c,v=J(J({},f),{},{offsetWidth:h,offsetHeight:m});null==s||s(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return e.useEffect((function(){var e=h();return e&&!r&&function(e,t){ze.has(e)||(ze.set(e,new Set),He.observe(e)),ze.get(e).add(t)}(e,m),function(){return function(e,t){ze.has(e)&&(ze.get(e).delete(t),ze.get(e).size||(He.unobserve(e),ze.delete(e)))}(e,m)}}),[i.current,r]),e.createElement(Ze,{ref:a},d?e.cloneElement(c,{ref:f}):c)}var et=e.forwardRef(Je);"production"!==process.env.NODE_ENV&&(et.displayName="SingleObserver");function tt(t,n){var o=t.children,r="function"==typeof o?[o]:H(o);return"production"!==process.env.NODE_ENV&&(r.length>1?V(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&V(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(o,r){var i=(null==o?void 0:o.key)||"".concat("rc-observer-key","-").concat(r);return e.createElement(et,D({},t,{key:i,ref:0===r?n:void 0}),o)}))}var nt=e.forwardRef(tt);function ot(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function rt(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 it(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function at(e,t){if(e){if("string"==typeof e)return rt(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)?rt(e,t):void 0}}function st(e){return function(e){if(Array.isArray(e))return rt(e)}(e)||it(e)||at(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&&(nt.displayName="ResizeObserver"),nt.Collection=function(t){var n=t.children,o=t.onBatchResize,r=e.useRef(0),i=e.useRef([]),a=e.useContext(me),s=e.useCallback((function(e,t,n){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===r.current&&(null==o||o(i.current),i.current=[])})),null==a||a(e,t,n)}),[o,a]);return e.createElement(me.Provider,{value:s},n)};var lt=function(e){return+setTimeout(e,16)},ct=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(lt=function(e){return window.requestAnimationFrame(e)},ct=function(e){return window.cancelAnimationFrame(e)});var ut=0,dt=new Map;function pt(e){dt.delete(e)}var ft=function(e){var t=ut+=1;return function n(o){if(0===o)pt(t),e();else{var r=lt((function(){n(o-1)}));dt.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function ht(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=ft((n=>()=>{t=null,e.apply(void 0,st(n))})(o))}};return n.cancel=()=>{ft.cancel(t),t=null},n}function gt(e){if(Array.isArray(e))return e}function mt(){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 vt(e,t){return gt(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)||at(e,t)||mt()}function bt(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 yt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function xt(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}ft.cancel=function(e){var t=dt.get(e);return pt(e),ct(t)},"production"!==process.env.NODE_ENV&&(ft.ids=function(){return dt});var Ct="data-rc-order",wt="data-rc-priority",St=new Map;function kt(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Et(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ot(e){return Array.from((St.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!yt())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(Ct,a),s&&i&&l.setAttribute(wt,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Et(t),u=c.firstChild;if(o){if(s){var d=(t.styles||Ot(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ct)))return!1;var t=Number(e.getAttribute(wt)||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 Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Et(t);return(t.styles||Ot(n)).find((function(n){return n.getAttribute(kt(t))===e}))}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Nt(e,t);n&&Et(t).removeChild(n)}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Et(n),r=Ot(o),i=J(J({},n),{},{styles:r});!function(e,t){var n=St.get(e);if(!n||!xt(document,n)){var o=$t("",t),r=o.parentNode;St.set(e,r),e.removeChild(o)}}(o,i);var a=Nt(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=$t(e,i);return u.setAttribute(kt(i),t),u}function Pt(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(-1!==t.indexOf(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],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lt(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(U(!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"===T(t)&&"object"===T(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)}function jt(e){return e.join("%")}var At=function(){function e(t){Fe(this,e),Q(this,"instanceId",void 0),Q(this,"cache",new Map),this.instanceId=t}return Ve(e,[{key:"get",value:function(e){return this.opGet(jt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(jt(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}(),Dt="data-token-hash",Tt="data-css-hash",Rt="__cssinjs_instance__";var _t=e.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(Tt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Rt]=t[Rt]||e,t[Rt]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(Tt,"]"))).forEach((function(t){var n,r=t.getAttribute(Tt);o[r]?t[Rt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new At(e)}(),defaultCache:!0});var zt=function(){function e(){Fe(this,e),Q(this,"cache",void 0),Q(this,"keys",void 0),Q(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,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=vt(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=vt(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}();Q(zt,"MAX_CACHE_SIZE",20),Q(zt,"MAX_CACHE_OFFSET",5);var Bt=0,Ht=function(){function e(t){Fe(this,e),Q(this,"derivatives",void 0),Q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Bt,0===t.length&&V(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Bt+=1}return Ve(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Ft=new zt;function Wt(e){var t=Array.isArray(e)?e:[e];return Ft.has(t)||Ft.set(t,new Ht(t)),Ft.get(t)}var Vt=new WeakMap,Kt={};var qt=new WeakMap;function Xt(e){var t=qt.get(e)||"";return t||(Object.keys(e).forEach((function(n){var o=e[n];t+=n,o instanceof Ht?t+=o.id:o&&"object"===T(o)?t+=Xt(o):t+=o})),t=bt(t),qt.set(e,t)),t}function Ut(e,t){return bt("".concat(t,"_").concat(Xt(e)))}var Gt=yt();function Yt(e){return"number"==typeof e?"".concat(e,"px"):e}function Qt(e,t,n){var o;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]:{}),{},(Q(o={},Dt,t),Q(o,Tt,n),o)),i=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(i,">").concat(e,"</style>")}var Zt=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()},Jt=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=vt(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},en=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=vt(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=Zt(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,Jt(o,t,{scope:null==n?void 0:n.scope})]},tn="test"!==process.env.NODE_ENV&&yt()?e.useLayoutEffect:e.useEffect,nn=function(t,n){var o=e.useRef(!0);tn((function(){return t(o.current)}),n),tn((function(){return o.current=!1,function(){o.current=!0}}),[])},on=function(e,t){nn((function(t){if(!t)return e()}),t)},rn=J({},e).useInsertionEffect,an=rn?function(e,t,n){return rn((function(){return e(),t()}),n)}:function(t,n,o){e.useMemo(t,o),nn((function(){return n(!0)}),o)},sn=void 0!==J({},e).useInsertionEffect?function(t){var n=[],o=!1;return e.useEffect((function(){return o=!1,function(){o=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){o?"production"!==process.env.NODE_ENV&&V(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):n.push(e)}}:function(){return function(e){e()}};var ln=!1;var cn="production"===process.env.NODE_ENV?function(){return!1}:function(){return ln};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var un="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(un&&"function"==typeof un.webpackHotUpdate){var dn=un.webpackHotUpdate;un.webpackHotUpdate=function(){return ln=!0,setTimeout((function(){ln=!1}),0),dn.apply(void 0,arguments)}}}function pn(t,n,o,r,i){var a=e.useContext(_t).cache,s=jt([t].concat(st(n))),l=sn([s]),c=cn(),u=function(e){a.opUpdate(s,(function(t){var n=vt(t||[void 0,void 0],2),i=n[0],a=void 0===i?0:i,s=n[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==r||r(l,c),l=null);var u=[a,l||o()];return e?e(u):u}))};e.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var p=d[1];return an((function(){null==i||i(p)}),(function(e){return u((function(t){var n=vt(t,2),o=n[0],r=n[1];return e&&0===o&&(null==i||i(p)),[o+1,r]})),function(){a.opUpdate(s,(function(t){var n=vt(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]),p}var fn={},hn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",gn=new Map;function mn(e,t){gn.set(e,(gn.get(e)||0)-1);var n=Array.from(gn.keys()),o=n.filter((function(e){return(gn.get(e)||0)<=0}));n.length-o.length>0&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Dt,'="').concat(e,'"]')).forEach((function(e){var n;e[Rt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),gn.delete(e)}))}var vn="token";function bn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r(_t),i=o.cache.instanceId,a=o.container,s=n.salt,l=void 0===s?"":s,c=n.override,u=void 0===c?fn:c,d=n.formatToken,p=n.getComputedToken,f=n.cssVar,h=function(e,t){for(var n=Vt,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(Kt)||n.set(Kt,e()),n.get(Kt)}((function(){return Object.assign.apply(Object,[{}].concat(st(t)))}),t),g=Xt(h),m=Xt(u),v=f?Xt(f):"",b=pn(vn,[l,e.id,g,m,v],(function(){var t,n=p?p(h,u,e):function(e,t,n,o){var r=J(J({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r}(h,u,e,d),o=J({},n),r="";if(f){var i=vt(en(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],r=i[1]}var a=Ut(n,l);n._tokenKey=a,o._tokenKey=Ut(o,l);var s=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=s,function(e){gn.set(e,(gn.get(e)||0)+1)}(s);var c="".concat(hn,"-").concat(bt(a));return n._hashId=c,[n,c,o,r,(null==f?void 0:f.key)||""]}),(function(e){mn(e[0]._themeKey,i)}),(function(e){var t=vt(e,4),n=t[0],o=t[3];if(f&&o){var r=It(o,bt("css-variables-".concat(n._themeKey)),{mark:Tt,prepend:"queue",attachTo:a,priority:-999});r[Rt]=i,r.setAttribute(Dt,n._themeKey)}}));return b}var yn={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},xn="comm",Cn="rule",wn="decl",Sn=Math.abs,kn=String.fromCharCode;function En(e){return e.trim()}function On(e,t,n){return e.replace(t,n)}function $n(e,t,n){return e.indexOf(t,n)}function Nn(e,t){return 0|e.charCodeAt(t)}function Mn(e,t,n){return e.slice(t,n)}function In(e){return e.length}function Pn(e,t){return t.push(e),e}var Ln=1,jn=1,An=0,Dn=0,Tn=0,Rn="";function _n(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Ln,column:jn,length:a,return:"",siblings:s}}function zn(){return Tn=Dn>0?Nn(Rn,--Dn):0,jn--,10===Tn&&(jn=1,Ln--),Tn}function Bn(){return Tn=Dn<An?Nn(Rn,Dn++):0,jn++,10===Tn&&(jn=1,Ln++),Tn}function Hn(){return Nn(Rn,Dn)}function Fn(){return Dn}function Wn(e,t){return Mn(Rn,e,t)}function Vn(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 Kn(e){return En(Wn(Dn-1,Un(91===e?e+2:40===e?e+1:e)))}function qn(e){for(;(Tn=Hn())&&Tn<33;)Bn();return Vn(e)>2||Vn(Tn)>3?"":" "}function Xn(e,t){for(;--t&&Bn()&&!(Tn<48||Tn>102||Tn>57&&Tn<65||Tn>70&&Tn<97););return Wn(e,Fn()+(t<6&&32==Hn()&&32==Bn()))}function Un(e){for(;Bn();)switch(Tn){case e:return Dn;case 34:case 39:34!==e&&39!==e&&Un(Tn);break;case 40:41===e&&Un(e);break;case 92:Bn()}return Dn}function Gn(e,t){for(;Bn()&&e+Tn!==57&&(e+Tn!==84||47!==Hn()););return"/*"+Wn(t,Dn-1)+"*"+kn(47===e?e:Bn())}function Yn(e){for(;!Vn(Hn());)Bn();return Wn(e,Dn)}function Qn(e){return function(e){return Rn="",e}(Zn("",null,null,null,[""],e=function(e){return Ln=jn=1,An=In(Rn=e),Dn=0,[]}(e),0,[0],e))}function Zn(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,v=1,b=0,y="",x=r,C=i,w=o,S=y;m;)switch(h=b,b=Bn()){case 40:if(108!=h&&58==Nn(S,d-1)){-1!=$n(S+=On(Kn(b),"&","&\f"),"&\f",Sn(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Kn(b);break;case 9:case 10:case 13:case 32:S+=qn(h);break;case 92:S+=Xn(Fn()-1,7);continue;case 47:switch(Hn()){case 42:case 47:Pn(eo(Gn(Bn(),Fn()),t,n,l),l),5!=Vn(h||1)&&5!=Vn(Hn()||1)||!In(S)||" "===Mn(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=In(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=On(S,/\f/g,"")),f>0&&(In(S)-d||0===g&&47===h)&&Pn(f>32?to(S+";",o,n,d-1,l):to(On(S," ","")+";",o,n,d-2,l),l);break;case 59:S+=";";default:if(Pn(w=Jn(S,t,n,c,u,r,s,y,x=[],C=[],d,i),i),123===b)if(0===u)Zn(S,t,w,w,x,i,d,s,C);else{switch(p){case 99:if(110===Nn(S,3))break;case 108:if(97===Nn(S,2))break;default:u=0;case 100:case 109:case 115:}u?Zn(e,w,w,o&&Pn(Jn(e,w,w,0,0,r,s,y,r,x=[],d,C),C),r,C,d,s,o?x:C):Zn(S,w,w,w,[""],C,0,s,C)}}c=u=f=0,g=v=1,y=S="",d=a;break;case 58:d=1+In(S),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==zn())continue;switch(S+=kn(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(In(S)-1)*v,v=1;break;case 64:45===Hn()&&(S+=Kn(Bn())),p=Hn(),u=d=In(y=S+=Yn(Fn())),b++;break;case 45:45===h&&2==In(S)&&(g=0)}}return i}function Jn(e,t,n,o,r,i,a,s,l,c,u,d){for(var p=r-1,f=0===r?i:[""],h=function(e){return e.length}(f),g=0,m=0,v=0;g<o;++g)for(var b=0,y=Mn(e,p+1,p=Sn(m=a[g])),x=e;b<h;++b)(x=En(m>0?f[b]+" "+y:On(y,/&\f/g,f[b])))&&(l[v++]=x);return _n(e,t,n,0===r?Cn:s,l,c,u,d)}function eo(e,t,n,o){return _n(e,t,n,xn,kn(Tn),Mn(e,2,-2),0,o)}function to(e,t,n,o,r){return _n(e,t,n,wn,Mn(e,0,o),Mn(e,o+1,-1),o,r)}function no(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function oo(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case wn:return e.return=e.return||e.value;case xn:return"";case"@keyframes":return e.return=e.value+"{"+no(e.children,o)+"}";case Cn:if(!In(e.value=e.props.join(",")))return""}return In(n=no(e.children,o))?e.return=e.value+"{"+n+"}":""}function ro(e,t){var n=t.path,o=t.parentSelectors;U(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var io,ao=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)))&&ro("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},so=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&ro("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},lo="data-ant-cssinjs-cache-path",co="_FILE_STYLE__",uo=!0;function po(e){return function(){if(!io&&(io={},yt())){var e=document.createElement("div");e.className=lo,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=vt(e.split(":"),2),n=t[0],o=t[1];io[n]=o}));var n,o=document.querySelector("style[".concat(lo,"]"));o&&(uo=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!io[e]}var fo="_skip_check_",ho="_multi_value_";function go(e){return no(Qn(e),oo).replace(/\{%%%\:[^;];}/g,";")}function mo(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(st(n.slice(1))).join(" ")})).join(",")}var vo=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,p=void 0===d?[]:d,f=n.linters,h=void 0===f?[]:f,g="",m={};function v(t){var o=t.getName(s);if(!m[o]){var r=vt(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=p.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"!==T(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===T(e)&&e&&(fo in e||ho in e)}(o)){var d;function S(e,t){"production"===process.env.NODE_ENV||"object"===T(o)&&null!=o&&o[fo]||[ao,so].concat(st(h)).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;yn[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 p=null!==(d=null==o?void 0:o.value)&&void 0!==d?d:o;"object"===T(o)&&null!=o&&o[ho]&&Array.isArray(p)?p.forEach((function(e){S(t,e)})):S(t,p)}else{var f=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?f=!0:b=mo("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=vt(e(o,n,{root:y,injectHash:f,parentSelectors:[].concat(st(a),[b])}),2),C=x[0],w=x[1];m=J(J({},m),w),g+="".concat(b).concat(C)}}))}})),r?l&&(g&&(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 bo(e,t){return bt("".concat(e.join("%")).concat(t))}function yo(){return null}var xo="style";function Co(t,n){var o=t.token,r=t.path,i=t.hashId,a=t.layer,s=t.nonce,l=t.clientOnly,c=t.order,u=void 0===c?0:c,d=e.useContext(_t),p=d.autoClear,f=d.mock,h=d.defaultCache,g=d.hashPriority,m=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,C=d.layer,w=o._tokenKey,S=[w];C&&S.push("layer"),S.push.apply(S,st(r));var k=Gt;"production"!==process.env.NODE_ENV&&void 0!==f&&(k="client"===f);var E=pn(xo,S,(function(){var e=S.join("|");if(po(e)){var t=function(e){var t=io[e],n=null;if(t&&yt())if(uo)n=co;else{var o=document.querySelector("style[".concat(Tt,'="').concat(io[e],'"]'));o?n=o.innerHTML:delete io[e]}return[n,t]}(e),o=vt(t,2),s=o[0],c=o[1];if(s)return[s,w,c,{},l,u]}var d=n(),p=vt(vo(d,{hashId:i,hashPriority:g,layer:C?a:void 0,path:r.join("-"),transformers:b,linters:y}),2),f=p[0],h=p[1],m=go(f),v=bo(S,m);return[m,w,v,h,l,u]}),(function(e,t){var n=vt(e,3)[2];(t||p)&&Gt&&Mt(n,{mark:Tt})}),(function(e){var t=vt(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(k&&n!==co){var i={mark:Tt,prepend:!C&&"queue",attachTo:m,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){It(go(r[e]),"_layer-".concat(e),J(J({},i),{},{prepend:!0}))}));var d=It(n,o,i);d[Rt]=x.instanceId,d.setAttribute(Dt,w),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",S.join("|")),c.forEach((function(e){It(go(r[e]),"_effect-".concat(e),i)}))}})),O=vt(E,3),$=O[0],N=O[1],M=O[2];return function(t){var n,o;v&&!k&&h?n=e.createElement("style",D({},(Q(o={},Dt,N),Q(o,Tt,M),o),{dangerouslySetInnerHTML:{__html:$}})):n=e.createElement(yo,null);return e.createElement(e.Fragment,null,n,t)}}var wo,So="cssVar";Q(wo={},xo,(function(e,t,n){var o=vt(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,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Qt(r,i,a,p,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Qt(go(s[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Q(wo,vn,(function(e,t,n){var o=vt(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,Qt(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Q(wo,So,(function(e,t,n){var o=vt(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,Qt(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var ko=function(){function e(t,n){Fe(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(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 Eo(e){return e.notSplit=!0,e}Eo(["borderTop","borderBottom"]),Eo(["borderTop"]),Eo(["borderBottom"]),Eo(["borderLeft","borderRight"]),Eo(["borderLeft"]),Eo(["borderRight"]);var Oo=i({});function $o(e){return gt(e)||it(e)||at(e)||mt()}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 Mo(e,t,n,o){if(!t.length)return n;var r,i=$o(t),a=i[0],s=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?st(e):J({},e):[],o&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=Mo(r[a],s,n,o),r}function Io(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:Mo(e,t,n,o)}function Po(e){return Array.isArray(e)?[]:{}}var Lo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function jo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Po(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"===T(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=No(o,n);l?o=Io(o,n,[]):c&&"object"===T(c)||(o=Io(o,n,Po(s))),Lo(s).forEach((function(e){t([].concat(st(n),[e]),a)}))}}else o=Io(o,n,s)}([])})),o}function Ao(){}let Do=null;let To=Ao;"production"!==process.env.NODE_ENV&&(To=(e,t,n)=>{U(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(Do=null,q())});const Ro=e.createContext({}),_o="production"!==process.env.NODE_ENV?t=>{const{strict:n}=e.useContext(Ro),o=(e,o,r)=>{if(!e)if(!1===n&&"deprecated"===o){const e=Do;Do||(Do={}),Do[t]=Do[t]||[],Do[t].includes(r||"")||Do[t].push(r||""),e||console.warn("[antd] There exists deprecated usage in your code:",Do)}else"production"!==process.env.NODE_ENV&&To(e,t,r)};return o.deprecated=(e,t,n,r)=>{o(e,"deprecated",`\`${t}\` is deprecated. Please use \`${n}\` instead.${r?` ${r}`:""}`)},o}:()=>{const e=()=>{};return e.deprecated=Ao,e};var zo=To,Bo=i(void 0),Ho={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"},Fo=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 Wo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Vo={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"]},Fo),timePickerLocale:Object.assign({},Wo)},Ko="${label} is not a valid ${type}",qo={locale:"en",Pagination:Ho,DatePicker:Vo,TimePicker:Wo,Calendar:Vo,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:Ko,method:Ko,array:Ko,object:Ko,number:Ko,date:Ko,boolean:Ko,integer:Ko,float:Ko,regexp:Ko,email:Ko,url:Ko,hex:Ko},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"}};let Xo=Object.assign({},qo.Modal),Uo=[];const Go=()=>Uo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),qo.Modal);function Yo(){return Xo}const Qo=i(void 0),Zo=(t,n)=>{const o=e.useContext(Qo),r=e.useMemo((()=>{var e;const r=n||qo[t],i=null!==(e=null==o?void 0:o[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[t,n,o]);return[r,e.useMemo((()=>{const e=null==o?void 0:o.locale;return(null==o?void 0:o.exist)&&!e?qo.locale:e}),[o])]},Jo="internalMark",er=t=>{const{locale:n={},children:o,_ANT_MARK__:r}=t;if("production"!==process.env.NODE_ENV){const e=_o("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Jo,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Uo.push(t),Xo=Go(),()=>{Uo=Uo.filter((e=>e!==t)),Xo=Go()}}Xo=Object.assign({},qo.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Qo.Provider,{value:i},o)};"production"!==process.env.NODE_ENV&&(er.displayName="LocaleProvider");const tr=Math.round;function nr(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const or=(e,t,n)=>0===n?e:e/100;function rr(e,t){const n=t||255;return e>n?n:e<0?0:e}class ir{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Q(this,"isValid",!0),Q(this,"r",0),Q(this,"g",0),Q(this,"b",0),Q(this,"a",1),Q(this,"_h",void 0),Q(this,"_s",void 0),Q(this,"_l",void 0),Q(this,"_v",void 0),Q(this,"_max",void 0),Q(this,"_min",void 0),Q(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof ir)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=rr(e.r),this.g=rr(e.g),this.b=rr(e.b),this.a="number"==typeof e.a?rr(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:tr(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],i={r:tr(r("r")),g:tr(r("g")),b:tr(r("b")),a:tr(100*r("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>tr((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=tr(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=tr(100*this.getSaturation()),n=tr(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=rr(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=tr(255*n);this.r=e,this.g=e,this.b=e}let r=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(r=l,i=c):s>=1&&s<2?(r=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(r=c,a=l):s>=5&&s<6&&(r=l,a=c);const u=n-l/2;this.r=tr(255*(r+u)),this.g=tr(255*(i+u)),this.b=tr(255*(a+u))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=tr(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=tr(n*(1-t)*255),c=tr(n*(1-t*s)*255),u=tr(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=nr(e,or);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=nr(e,or);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=nr(e,((e,t)=>t.includes("%")?tr(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var ar=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function sr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function lr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100);var o}function cr(e,t,n){var o;return o=n?e.v+.05*t:e.v-.15*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function ur(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=new ir(e),r=o.toHsv(),i=5;i>0;i-=1){var a=new ir({h:sr(r,i,!0),s:lr(r,i,!0),v:cr(r,i,!0)});n.push(a)}n.push(o);for(var s=1;s<=4;s+=1){var l=new ir({h:sr(r,s),s:lr(r,s),v:cr(r,s)});n.push(l)}return"dark"===t.theme?ar.map((function(e){var o=e.index,r=e.amount;return new ir(t.backgroundColor||"#141414").mix(n[o],r).toHexString()})):n.map((function(e){return e.toHexString()}))}var dr={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"},pr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pr.primary=pr[5];var fr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];fr.primary=fr[5];var hr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];hr.primary=hr[5];var gr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gr.primary=gr[5];var mr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];mr.primary=mr[5];var vr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];vr.primary=vr[5];var br=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];br.primary=br[5];var yr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];yr.primary=yr[5];var xr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];xr.primary=xr[5];var Cr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Cr.primary=Cr[5];var wr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];wr.primary=wr[5];var Sr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Sr.primary=Sr[5];var kr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kr.primary=kr[5];var Er={red:pr,volcano:fr,orange:hr,gold:gr,yellow:mr,lime:vr,green:br,cyan:yr,blue:xr,geekblue:Cr,purple:wr,magenta:Sr,grey:kr};const Or={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"},$r=Object.assign(Object.assign({},Or),{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});function Nr(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 Mr(e){return Math.min(1,Math.max(0,e))}function Ir(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Pr(e){return e<=1?"".concat(100*Number(e),"%"):e}function Lr(e){return 1===e.length?"0"+e:String(e)}function jr(e,t,n){e=Nr(e,255),t=Nr(t,255),n=Nr(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 Ar(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 Dr(e,t,n){e=Nr(e,255),t=Nr(t,255),n=Nr(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 Tr(e,t,n,o){var r=[Lr(Math.round(e).toString(16)),Lr(Math.round(t).toString(16)),Lr(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 Rr(e){return _r(e)/255}function _r(e){return parseInt(e,16)}var zr={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 Br(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(zr[e])e=zr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Vr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Vr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Vr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Vr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Vr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Vr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Vr.hex8.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),a:Rr(n[4]),format:t?"name":"hex8"};if(n=Vr.hex6.exec(e),n)return{r:_r(n[1]),g:_r(n[2]),b:_r(n[3]),format:t?"name":"hex"};if(n=Vr.hex4.exec(e),n)return{r:_r(n[1]+n[1]),g:_r(n[2]+n[2]),b:_r(n[3]+n[3]),a:Rr(n[4]+n[4]),format:t?"name":"hex8"};if(n=Vr.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&&(Kr(e.r)&&Kr(e.g)&&Kr(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Nr(t,255),g:255*Nr(n,255),b:255*Nr(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Kr(e.h)&&Kr(e.s)&&Kr(e.v)?(a=Pr(e.s),s=Pr(e.v),r=function(e,t,n){e=6*Nr(e,360),t=Nr(t,100),n=Nr(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"):Kr(e.h)&&Kr(e.s)&&Kr(e.l)&&(a=Pr(e.s),l=Pr(e.l),r=function(e,t,n){var o,r,i;if(e=Nr(e,360),t=Nr(t,100),n=Nr(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=Ar(s,a,e+1/3),r=Ar(s,a,e),i=Ar(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=Ir(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 Hr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Fr="[\\s|\\(]+(".concat(Hr,")[,|\\s]+(").concat(Hr,")[,|\\s]+(").concat(Hr,")\\s*\\)?"),Wr="[\\s|\\(]+(".concat(Hr,")[,|\\s]+(").concat(Hr,")[,|\\s]+(").concat(Hr,")[,|\\s]+(").concat(Hr,")\\s*\\)?"),Vr={CSS_UNIT:new RegExp(Hr),rgb:new RegExp("rgb"+Fr),rgba:new RegExp("rgba"+Wr),hsl:new RegExp("hsl"+Fr),hsla:new RegExp("hsla"+Wr),hsv:new RegExp("hsv"+Fr),hsva:new RegExp("hsva"+Wr),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 Kr(e){return Boolean(Vr.CSS_UNIT.exec(String(e)))}var qr=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=Br(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=Ir(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=Dr(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=Dr(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=jr(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=jr(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),Tr(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=[Lr(Math.round(e).toString(16)),Lr(Math.round(t).toString(16)),Lr(Math.round(n).toString(16)),Lr((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*Nr(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*Nr(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="#"+Tr(this.r,this.g,this.b,!1),t=0,n=Object.entries(zr);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=Mr(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=Mr(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=Mr(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=Mr(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}();function Xr(e){return(e+8)/e}const Ur=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:Xr(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 Gr=(e,t)=>new qr(e).setAlpha(t).toRgbString(),Yr=(e,t)=>new qr(e).darken(t).toHexString(),Qr=e=>{const t=ur(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]}},Zr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Gr(o,.88),colorTextSecondary:Gr(o,.65),colorTextTertiary:Gr(o,.45),colorTextQuaternary:Gr(o,.25),colorFill:Gr(o,.15),colorFillSecondary:Gr(o,.06),colorFillTertiary:Gr(o,.04),colorFillQuaternary:Gr(o,.02),colorBgLayout:Yr(n,4),colorBgContainer:Yr(n,0),colorBgElevated:Yr(n,0),colorBgSpotlight:Gr(o,.85),colorBgBlur:"transparent",colorBorder:Yr(n,15),colorBorderSecondary:Yr(n,6)}};const Jr=Wt((function(e){dr.pink=dr.magenta,Er.pink=Er.magenta;const t=Object.keys(Or).map((t=>{const n=e[t]===dr[t]?Er[t]:ur(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),p=n(r),f=n(i),h=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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[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 qr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Qr,generateNeutralColorPalettes:Zr})),Ur(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},(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}})(o))}(e))})),ei={token:$r,override:{override:$r},hashed:!0},ti=t.createContext(ei),ni="ant",oi="anticon",ri=["outlined","borderless","filled"],ii=e.createContext({getPrefixCls:(e,t)=>t||(e?`${ni}-${e}`:ni),iconPrefixCls:oi}),ai=`-ant-${Date.now()}-${Math.random()}`;function si(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 qr(e),i=ur(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 qr(t.primaryColor),i=ur(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 qr(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);yt()?It(n,`${ai}-dynamic-theme`):"production"!==process.env.NODE_ENV&&zo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const li=e.createContext(!1),ci=t=>{let{children:n,disabled:o}=t;const r=e.useContext(li);return e.createElement(li.Provider,{value:null!=o?o:r},n)},ui=e.createContext(void 0),di=t=>{let{children:n,size:o}=t;const r=e.useContext(ui);return e.createElement(ui.Provider,{value:o||r},n)};var pi=Ve((function e(){Fe(this,e)})),fi="CALC_UNIT",hi=new RegExp(fi,"g");function gi(e){return"number"==typeof e?"".concat(e).concat(fi):e}var mi=function(){qe(t,pi);var e=Qe(t);function t(n,o){var r;Fe(this,t),Q(Ge(r=e.call(this)),"result",""),Q(Ge(r),"unitlessCssVar",void 0),Q(Ge(r),"lowPriority",void 0);var i=T(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=gi(n):"string"===i&&(r.result=n),r}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(gi(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(gi(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(hi,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),vi=function(){qe(t,pi);var e=Qe(t);function t(n){var o;return Fe(this,t),Q(Ge(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}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}(),bi=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 yi(t){var n=e.useRef();n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return o}function xi(t){var n=e.useRef(!1),o=vt(e.useState(t),2),r=o[0],i=o[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[r,function(e,t){t&&n.current||i(e)}]}function Ci(e){return void 0!==e}function wi(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=vt(xi((function(){return Ci(r)?r:Ci(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,p=yi(i),f=vt(xi([u]),2),h=f[0],g=f[1];return on((function(){var e=h[0];l!==e&&p(l,e)}),[h]),on((function(){Ci(r)||c(r)}),[r]),[d,yi((function(e,t){c(e,t),g([u],t)}))]}function Si(e,t,n,o){var r=J({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=vt(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&U(!(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=J(J({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var ki="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Ei=!0;function Oi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ki)return Object.assign.apply(Object,[{}].concat(t));Ei=!1;var o={};return t.forEach((function(e){"object"===T(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Ei=!0,o}var $i={};function Ni(){}function Mi(e,t,n){var o;return"function"==typeof n?n(Oi(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var Ii=function(){function e(){Fe(this,e),Q(this,"map",new Map),Q(this,"objectIDMap",new WeakMap),Q(this,"nextID",0),Q(this,"lastAccessBeat",new Map),Q(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"===T(e)?"obj_".concat(t.getObjectID(e)):"".concat(T(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}(),Pi=new Ii;var Li=function(){return{}};const ji=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ai(e){return e>=0&&e<=255}function Di(e,t){const{r:n,g:o,b:r,a:i}=new qr(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new qr(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(Ai(t)&&Ai(i)&&Ai(c))return new qr({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new qr({r:n,g:o,b:r,a:1}).toRgbString()}var Ti=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 Ri(e){const{override:t}=e,n=Ti(e,["override"]),o=Object.assign({},t);Object.keys($r).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:Di(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:Di(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Di(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:Di(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 qr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new qr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new qr("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 _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};const zi={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},Bi={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},Fi=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=_i(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Ri(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=_i(n,["theme"]);let i=r;o&&(i=Fi(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Wi(){const{token:e,hashed:n,theme:o,override:r,cssVar:i}=t.useContext(ti),a=`5.20.5-${n||""}`,s=o||Jr,[l,c,u]=bn(s,[$r,e],{salt:a,override:r,getComputedToken:Fi,formatToken:Ri,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:zi,ignore:Bi,preserve:Hi}});return[s,u,n?c:"",l,i]}const Vi=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Ki={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},qi=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}},Xi=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"}}}),Ui=e=>({outline:`${Yt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Gi=e=>({"&:focus-visible":Object.assign({},Ui(e))}),Yi=(e,t)=>{const[n,o]=Wi();return Co({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:Qi,genComponentStyleHook:Zi,genSubStyleComponent:Ji}=function(e){var n=e.useCSP,o=void 0===n?Li:n,i=e.useToken,a=e.usePrefix,s=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function u(n,r,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(n)?n:[n,n],p=vt(d,1)[0],f=d.join("-"),h=e.layer||{name:"antd"};return function(e){var n,d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,m=i(),v=m.theme,b=m.realToken,y=m.hashId,x=m.token,C=m.cssVar,w=a(),S=w.rootPrefixCls,k=w.iconPrefixCls,E=o(),O=C?"css":"js",$=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Zt(t,C.prefix)),e.add(Zt(t,bi(p,C.prefix)))})),function(e,t){var n="css"===e?mi:vi;return function(e){return new n(e,t)}}(O,e)},d=[O,p,null==C?void 0:C.prefix],t.useMemo((function(){var e=Pi.get(d);if(e)return e;var t=n();return Pi.set(d,t),t}),d)),N=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 Yt(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 Yt(e)})).join(","),")")}}}(O),M=N.max,I=N.min,P={theme:v,token:x,hashId:y,nonce:function(){return E.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};"function"==typeof s&&Co(J(J({},P),{},{clientOnly:!1,path:["Shared",S]}),(function(){return s(x,{prefix:{rootPrefixCls:S,iconPrefixCls:k},csp:E})}));var L=Co(J(J({},P),{},{path:[f,e,k]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,o=Ni;return ki&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return Ei&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;$i[e]={global:Array.from(t),component:J(J({},null===(o=$i[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(x),n=t.token,o=t.flush,i=Mi(p,b,c),a=".".concat(e),s=Si(p,b,i,{deprecatedTokens:u.deprecatedTokens});C&&i&&"object"===T(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(Zt(e,bi(p,C.prefix)),")")}));var d=Oi(n,{componentCls:a,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(S),calc:$,max:M,min:I},C?i:s),f=r(d,{hashId:y,prefixCls:e,rootPrefixCls:S,iconPrefixCls:k});o(p,s);var h="function"==typeof l?l(d,e,g,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}));return[L,y]}}return{genStyleHooks:function(e,n,o,a){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},p=J(J({},"function"==typeof c?c(e):{}),{},Q({},l("zIndexPopup"),!0));Object.keys(d).forEach((function(e){p[l(e)]=d[e]}));var f=J(J({},a),{},{unitless:p,prefixToken:l}),h=u(e,n,o,f),g=function(e,n,o){var a=o.unitless,s=o.injectStyle,l=void 0===s||s,c=o.prefixToken,u=o.ignore,d=function(t){var s=t.rootCls,l=t.cssVar,d=void 0===l?{}:l,p=i().realToken;return function(e,t){var n=e.key,o=e.prefix,i=e.unitless,a=e.ignore,s=e.token,l=e.scope,c=void 0===l?"":l,u=r(_t),d=u.cache.instanceId,p=u.container,f=s._tokenKey,h=[].concat(st(e.path),[n,c,f]),g=pn(So,h,(function(){var e=t(),r=vt(en(e,n,{prefix:o,unitless:i,ignore:a,scope:c}),2),s=r[0],l=r[1];return[s,l,bo(h,l),n]}),(function(e){var t=vt(e,3)[2];Gt&&Mt(t,{mark:Tt})}),(function(e){var t=vt(e,3),o=t[1],r=t[2];if(o){var i=It(o,r,{mark:Tt,prepend:"queue",attachTo:p,priority:-999});i[Rt]=d,i.setAttribute(Dt,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:p,scope:s},(function(){var t=Mi(e,p,n),r=Si(e,p,t,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(t).forEach((function(e){r[c(e)]=r[e],delete r[e]})),r})),null},p=function(n){var o=i().cssVar;return[function(r){return l&&o?t.createElement(t.Fragment,null,t.createElement(d,{rootCls:n,cssVar:o,component:e}),r):r},null==o?void 0:o.key]};return p}(s,o,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=vt(h(e,t),2)[1],o=vt(g(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=u(e,t,n,J({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:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=r(ii);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=Wi();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=r(ii);return Yi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":Xi(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:()=>zi});function ea(e,t){return ji.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 ta=Object.assign({},e),{useId:na}=ta,oa=void 0===na?()=>"":na;var ra=["children"],ia=e.createContext({});function aa(t){var n=t.children,o=Pt(t,ra);return e.createElement(ia.Provider,{value:o},n)}var sa=function(){qe(n,e.Component);var t=Qe(n);function n(){return Fe(this,n),t.apply(this,arguments)}return Ve(n,[{key:"render",value:function(){return this.props.children}}]),n}();var la="none",ca="appear",ua="enter",da="leave",pa="none",fa="prepare",ha="start",ga="active",ma="end",va="prepared";function ba(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 ya=function(e,t){var n={animationend:ba("Animation","AnimationEnd"),transitionend:ba("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(yt(),"undefined"!=typeof window?window:{}),xa={};if(yt()){var Ca=document.createElement("div");xa=Ca.style}var wa={};function Sa(e){if(wa[e])return wa[e];var t=ya[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 xa)return wa[e]=t[i],wa[e]}return""}var ka=Sa("animationend"),Ea=Sa("transitionend"),Oa=!(!ka||!Ea),$a=ka||"animationend",Na=Ea||"transitionend";function Ma(e,t){if(!e)return null;if("object"===T(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Ia=yt()?s:l,Pa=[fa,ha,ga,ma],La=[fa,va],ja=!1;function Aa(e){return e===ga||e===ma}var Da=function(t,n,o){var r=vt(xi(pa),2),i=r[0],a=r[1],s=function(){var t=e.useRef(null);function n(){ft.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=ft((function(){r<=1?o({isCanceled:function(){return i!==t.current}}):e(o,r-1)}));t.current=i},n]}(),l=vt(s,2),c=l[0],u=l[1];var d=n?La:Pa;return Ia((function(){if(i!==pa&&i!==ma){var e=d.indexOf(i),t=d[e+1],n=o(i);n===ja?a(t,!0):t&&c((function(e){function o(){e.isCanceled()||a(t,!0)}!0===n?o():Promise.resolve(n).then(o)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(fa,!0)},i]};function Ta(t,n,o,r){var i,s,c,u=r.motionEnter,d=void 0===u||u,p=r.motionAppear,f=void 0===p||p,h=r.motionLeave,g=void 0===h||h,m=r.motionDeadline,v=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,x=r.onLeavePrepare,C=r.onAppearStart,w=r.onEnterStart,S=r.onLeaveStart,k=r.onAppearActive,E=r.onEnterActive,O=r.onLeaveActive,$=r.onAppearEnd,N=r.onEnterEnd,M=r.onLeaveEnd,I=r.onVisibleChanged,P=vt(xi(),2),L=P[0],j=P[1],A=(i=la,s=vt(e.useReducer((function(e){return e+1}),0),2)[1],c=e.useRef(i),[yi((function(){return c.current})),yi((function(e){c.current="function"==typeof e?e(c.current):e,s()}))]),D=vt(A,2),T=D[0],R=D[1],_=vt(xi(null),2),z=_[0],B=_[1],H=T(),F=a(!1),W=a(null);function V(){return o()}var K=a(!1);function q(){R(la),B(null,!0)}var X=yi((function(e){var t=T();if(t!==la){var n=V();if(!e||e.deadline||e.target===n){var o,r=K.current;t===ca&&r?o=null==$?void 0:$(n,e):t===ua&&r?o=null==N?void 0:N(n,e):t===da&&r&&(o=null==M?void 0:M(n,e)),r&&!1!==o&&q()}}})),U=function(t){var n=a();function o(e){e&&(e.removeEventListener(Na,t),e.removeEventListener($a,t))}return e.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(Na,t),e.addEventListener($a,t),n.current=e)},o]}(X),G=vt(U,1)[0],Y=function(e){switch(e){case ca:return Q(Q(Q({},fa,b),ha,C),ga,k);case ua:return Q(Q(Q({},fa,y),ha,w),ga,E);case da:return Q(Q(Q({},fa,x),ha,S),ga,O);default:return{}}},Z=e.useMemo((function(){return Y(H)}),[H]),ee=vt(Da(H,!t,(function(e){if(e===fa){var t=Z[fa];return t?t(V()):ja}var n;ne in Z&&B((null===(n=Z[ne])||void 0===n?void 0:n.call(Z,V(),null))||null);return ne===ga&&H!==la&&(G(V()),m>0&&(clearTimeout(W.current),W.current=setTimeout((function(){X({deadline:!0})}),m))),ne===va&&q(),true})),2),te=ee[0],ne=ee[1],oe=Aa(ne);K.current=oe;var re=a(null);Ia((function(){if(!F.current||re.current!==n){j(n);var e,o=F.current;F.current=!0,!o&&n&&f&&(e=ca),o&&n&&d&&(e=ua),(o&&!n&&g||!o&&v&&!n&&g)&&(e=da);var r=Y(e);e&&(t||r[fa])?(R(e),te()):R(la),re.current=n}}),[n]),l((function(){(H===ca&&!f||H===ua&&!d||H===da&&!g)&&R(la)}),[f,d,g]),l((function(){return function(){F.current=!1,clearTimeout(W.current)}}),[]);var ie=e.useRef(!1);l((function(){L&&(ie.current=!0),void 0!==L&&H===la&&((ie.current||L)&&(null==I||I(L)),ie.current=!0)}),[L,H]);var ae=z;return Z[fa]&&ne===ha&&(ae=J({transition:"none"},ae)),[H,ne,ae,null!=L?L:n]}var Ra=function(t){var n=t;"object"===T(t)&&(n=t.transitionSupport);var o=e.forwardRef((function(t,o){var r=t.visible,i=void 0===r||r,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,u=t.children,d=t.motionName,p=t.leavedClassName,f=t.eventProps,h=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(ia).motion),g=a(),m=a();var v=vt(Ta(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:te(m.current)}catch(e){return null}}),t),4),b=v[0],y=v[1],x=v[2],C=v[3],w=e.useRef(C);C&&(w.current=!0);var S,k=e.useCallback((function(e){g.current=e,ue(o,e)}),[o]),E=J(J({},f),{},{visible:i});if(u)if(b===la)S=C?u(J({},E),k):!l&&w.current&&p?u(J(J({},E),{},{className:p}),k):c||!l&&!p?u(J(J({},E),{},{style:{display:"none"}}),k):null;else{var O;y===fa?O="prepare":Aa(y)?O="active":y===ha&&(O="start");var $=Ma(d,"".concat(b,"-").concat(O));S=u(J(J({},E),{},{className:A(Ma(d,b),Q(Q({},$,$&&O),d,"string"==typeof d)),style:x}),k)}else S=null;e.isValidElement(S)&&fe(S)&&(ge(S)||(S=e.cloneElement(S,{ref:k})));return e.createElement(sa,{ref:m},S)}));return o.displayName="CSSMotion",o}(Oa),_a="add",za="keep",Ba="remove",Ha="removed";function Fa(e){var t;return J(J({},t=e&&"object"===T(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Wa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Fa)}var Va=["component","children","onVisibleChanged","onAllRemoved"],Ka=["status"],qa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Xa(t){const{children:n}=t,[,o]=Wi(),{motion:r}=o,i=e.useRef(!1);return i.current=i.current||!1===r,i.current?e.createElement(aa,{motion:r},n):n}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ra,o=function(){qe(o,e.Component);var t=Qe(o);function o(){var e;Fe(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Q(Ge(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),Q(Ge(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:J(J({},e),{},{status:Ha})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Ha})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Ve(o,[{key:"render",value:function(){var t=this,o=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged;r.onAllRemoved;var l=Pt(r,Va),c=i||e.Fragment,u={};return qa.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,e.createElement(c,l,o.map((function(o,r){var i=o.status,l=Pt(o,Ka),c=i===_a||i===za;return e.createElement(n,D({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==s||s(e,{key:l.key}),e||t.removeKey(l.key)}}),(function(e,t){return a(J(J({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=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=[],o=0,r=t.length,i=Wa(e),a=Wa(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 J(J({},e),{},{status:_a})}))),o=i),n.push(J(J({},s),{},{status:za})),o+=1,t=!0;break}}t||n.push(J(J({},e),{},{status:Ba}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return J(J({},e),{},{status:_a})}))));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!==Ba}))).forEach((function(t){t.key===e&&(t.status=za)}))})),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!==Ha||e.status!==Ba}))}}}]),o}();Q(o,"defaultProps",{component:"div"})}(Oa);const Ua=e.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return _o("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Ua.displayName="PropWarning");var Ga="production"!==process.env.NODE_ENV?Ua:()=>null,Ya=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 Qa=!1;const Za="production"!==process.env.NODE_ENV?e=>{"production"!==process.env.NODE_ENV&&zo(!Qa,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,Ja=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let es,ts,ns,os;function rs(){return es||ni}function is(){return ts||oi}const as=t=>{const{children:n,csp:o,autoInsertSpaceInButton:r,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,virtual:p,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:C,statistic:w,spin:S,calendar:k,carousel:E,cascader:O,collapse:$,typography:N,checkbox:M,descriptions:I,divider:P,drawer:L,skeleton:j,steps:A,image:D,layout:T,list:R,mentions:_,modal:z,progress:B,result:H,slider:F,breadcrumb:W,menu:V,pagination:K,input:q,textArea:X,empty:U,badge:G,radio:Y,rate:Q,switch:Z,transfer:J,avatar:ee,message:te,tag:ne,table:oe,card:re,tabs:ie,timeline:ae,timePicker:se,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:he,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:Ce,inputNumber:we,treeSelect:Se}=t,ke=e.useCallback(((e,n)=>{const{prefixCls:o}=t;if(n)return n;const r=o||v.getPrefixCls("");return e?`${r}-${e}`:r}),[v.getPrefixCls,t.prefixCls]),Ee=b||v.iconPrefixCls||oi,Oe=o||v.csp;Yi(Ee,Oe);const $e=function(e,t,n){var o,r;const i=_o("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},ei),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:ei.hashed,cssVar:null==t?void 0:t.cssVar}),l=oa();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 le((()=>{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)=>!Lt(e,t[n],!0)))))}(y,v.theme,{prefixCls:ke("")});"production"!==process.env.NODE_ENV&&(Qa=Qa||!!$e);const Ne={csp:Oe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:l||m,direction:u,space:d,virtual:p,popupMatchSelectWidth:null!=h?h:f,popupOverflow:g,getPrefixCls:ke,iconPrefixCls:Ee,theme:$e,segmented:C,statistic:w,spin:S,calendar:k,carousel:E,cascader:O,collapse:$,typography:N,checkbox:M,descriptions:I,divider:P,drawer:L,skeleton:j,steps:A,image:D,input:q,textArea:X,layout:T,list:R,mentions:_,modal:z,progress:B,result:H,slider:F,breadcrumb:W,menu:V,pagination:K,empty:U,badge:G,radio:Y,rate:Q,switch:Z,transfer:J,avatar:ee,message:te,tag:ne,table:oe,card:re,tabs:ie,timeline:ae,timePicker:se,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:he,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:Ce,inputNumber:we,treeSelect:Se};if("production"!==process.env.NODE_ENV){_o("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Me=Object.assign({},v);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(Me[e]=Ne[e])})),Ja.forEach((e=>{const n=t[e];n&&(Me[e]=n)})),void 0!==r&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const Ie=le((()=>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=e.useMemo((()=>({prefixCls:Ee,csp:Oe})),[Ee,Oe]);let Le=e.createElement(e.Fragment,null,e.createElement(Ga,{dropdownMatchSelectWidth:f}),n);const je=e.useMemo((()=>{var e,t,n,o;return jo((null===(e=qo.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===(o=Ie.form)||void 0===o?void 0:o.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Ie,null==s?void 0:s.validateMessages]);Object.keys(je).length>0&&(Le=e.createElement(Bo.Provider,{value:je},Le)),l&&(Le=e.createElement(er,{locale:l,_ANT_MARK__:Jo},Le)),(Ee||Oe)&&(Le=e.createElement(Oo.Provider,{value:Pe},Le)),c&&(Le=e.createElement(di,{size:c},Le)),Le=e.createElement(Xa,null,Le);const Ae=e.useMemo((()=>{const e=$e||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=Ya(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Wt(t):Jr,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=Wt(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},$r),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[$e]);return y&&(Le=e.createElement(ti.Provider,{value:Ae},Le)),Ie.warning&&(Le=e.createElement(Ro.Provider,{value:Ie.warning},Le)),void 0!==x&&(Le=e.createElement(ci,{disabled:x},Le)),e.createElement(ii.Provider,{value:Ie},Le)},ss=t=>{const n=e.useContext(ii),o=e.useContext(Qo);return e.createElement(as,Object.assign({parentContext:n,legacyLocale:o},t))};ss.ConfigContext=ii,ss.SizeContext=ui,ss.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(es=t),void 0!==n&&(ts=n),"holderRender"in e&&(os=r),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?ns=o:("production"!==process.env.NODE_ENV&&zo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),si(rs(),o)))},ss.useConfig=function(){return{componentDisabled:r(li),componentSize:r(ui)}},Object.defineProperty(ss,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&zo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ui)}),"production"!==process.env.NODE_ENV&&(ss.displayName="ConfigProvider");var ls={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function cs(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function us(e){return function(e){return cs(e)instanceof ShadowRoot}(e)?cs(e):null}function ds(e){return"object"===T(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===T(e.icon)||"function"==typeof e.icon)}function ps(){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 fs(e,n,o){return o?t.createElement(e.tag,J(J({key:n},ps(e.attrs)),o),(e.children||[]).map((function(t,o){return fs(t,"".concat(n,"-").concat(e.tag,"-").concat(o))}))):t.createElement(e.tag,J({key:n},ps(e.attrs)),(e.children||[]).map((function(t,o){return fs(t,"".concat(n,"-").concat(e.tag,"-").concat(o))})))}function hs(e){return ur(e)[0]}function gs(e){return e?Array.isArray(e)?e:[e]:[]}var ms=["icon","className","onClick","style","primaryColor","secondaryColor"],vs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var bs=function(t){var n,o,i,a,s,c,u,d,p=t.icon,f=t.className,h=t.onClick,g=t.style,m=t.primaryColor,v=t.secondaryColor,b=Pt(t,ms),y=e.useRef(),x=vs;if(m&&(x={primaryColor:m,secondaryColor:v||hs(m)}),n=y,o=r(Oo),i=o.csp,a=o.prefixCls,s=o.layer,c="\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&&(c=c.replace(/anticon/g,a)),s&&(c="@layer ".concat(s," {\n").concat(c,"\n}")),l((function(){var e=us(n.current);It(c,"@ant-design-icons",{prepend:!s,csp:i,attachTo:e})}),[]),u=ds(p),d="icon should be icon definiton, but got ".concat(p),U(u,"[@ant-design/icons] ".concat(d)),!ds(p))return null;var C=p;return C&&"function"==typeof C.icon&&(C=J(J({},C),{},{icon:C.icon(x.primaryColor,x.secondaryColor)})),fs(C.icon,"svg-".concat(C.name),J(J({className:f,onClick:h,style:g,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},b),{},{ref:y}))};function ys(e){var t=vt(gs(e),2),n=t[0],o=t[1];return bs.setTwoToneColors({primaryColor:n,secondaryColor:o})}bs.displayName="IconReact",bs.getTwoToneColors=function(){return J({},vs)},bs.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;vs.primaryColor=t,vs.secondaryColor=n||hs(t),vs.calculated=!!n};var xs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ys(xr.primary);var Cs=e.forwardRef((function(t,n){var o=t.className,r=t.icon,i=t.spin,a=t.rotate,s=t.tabIndex,l=t.onClick,c=t.twoToneColor,u=Pt(t,xs),d=e.useContext(Oo),p=d.prefixCls,f=void 0===p?"anticon":p,h=d.rootClassName,g=A(h,f,Q(Q({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||"loading"===r.name),o),m=s;void 0===m&&l&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=vt(gs(c),2),y=b[0],x=b[1];return e.createElement("span",D({role:"img","aria-label":r.name},u,{ref:n,tabIndex:m,onClick:l,className:g}),e.createElement(bs,{icon:r,primaryColor:y,secondaryColor:x,style:v}))}));Cs.displayName="AntdIcon",Cs.getTwoToneColor=function(){var e=bs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Cs.setTwoToneColor=ys;var ws=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:ls}))},Ss=e.forwardRef(ws);
26
- /**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xOTMuNSAzMDEuN2wtMjEwLjYgMjkyYTMxLjggMzEuOCAwIDAxLTUxLjcgMEwzMTguNSA0ODQuOWMtMy44LTUuMyAwLTEyLjcgNi41LTEyLjdoNDYuOWMxMC4yIDAgMTkuOSA0LjkgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjMgMTUuNi0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi41IDEyLjd6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(Ss.displayName="CheckCircleFilled");var ks={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"},Es=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:ks}))},Os=e.forwardRef(Es);"production"!==process.env.NODE_ENV&&(Os.displayName="CloseCircleFilled");var $s={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"},Ns=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:$s}))},Ms=e.forwardRef(Ns);"production"!==process.env.NODE_ENV&&(Ms.displayName="CloseOutlined");var Is={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Ps=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:Is}))},Ls=e.forwardRef(Ps);"production"!==process.env.NODE_ENV&&(Ls.displayName="ExclamationCircleFilled");var js={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},As=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:js}))},Ds=e.forwardRef(As);"production"!==process.env.NODE_ENV&&(Ds.displayName="InfoCircleFilled");var Ts="".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 Rs(e,t){return 0===e.indexOf(t)}function _s(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 o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Rs(n,"aria-"))||t.data&&Rs(n,"data-")||t.attr&&Ts.includes(n))&&(o[n]=e[n])})),o}function zs(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const Bs=(e,n,o)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof o?o(e.props||{}):o):n;function Hs(e,t){return Bs(e,e,t)}function Fs(e){return null!=e&&e===e.window}const Ws=e=>{var t,n;if("undefined"==typeof window)return 0;let o=0;return Fs(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!Fs(e)&&"number"!=typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o};function Vs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),a=Ws(i),s=Date.now(),l=()=>{const t=Date.now()-s,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);Fs(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?ft(l):"function"==typeof o&&o()};ft(l)}const Ks=e=>{const[,,,,t]=Wi();return t?`${e}-css-var`:""};var qs={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>=qs.F1&&t<=qs.F12)return!1;switch(t){case qs.ALT:case qs.CAPS_LOCK:case qs.CONTEXT_MENU:case qs.CTRL:case qs.DOWN:case qs.END:case qs.ESC:case qs.HOME:case qs.INSERT:case qs.LEFT:case qs.MAC_FF_META:case qs.META:case qs.NUMLOCK:case qs.NUM_CENTER:case qs.PAGE_DOWN:case qs.PAGE_UP:case qs.PAUSE:case qs.PRINT_SCREEN:case qs.RIGHT:case qs.SHIFT:case qs.UP:case qs.WIN_KEY:case qs.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=qs.ZERO&&e<=qs.NINE)return!0;if(e>=qs.NUM_ZERO&&e<=qs.NUM_MULTIPLY)return!0;if(e>=qs.A&&e<=qs.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case qs.SPACE:case qs.QUESTION_MARK:case qs.NUM_PLUS:case qs.NUM_MINUS:case qs.NUM_PERIOD:case qs.NUM_DIVISION:case qs.SEMICOLON:case qs.DASH:case qs.EQUALS:case qs.COMMA:case qs.PERIOD:case qs.SLASH:case qs.APOSTROPHE:case qs.SINGLE_QUOTE:case qs.OPEN_SQUARE_BRACKET:case qs.BACKSLASH:case qs.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Xs={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"},Us=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:Xs}))},Gs=e.forwardRef(Us);"production"!==process.env.NODE_ENV&&(Gs.displayName="LoadingOutlined");const Ys=t.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ys.displayName="zIndexContext");const Qs=100,Zs={Modal:Qs,Drawer:Qs,Popover:Qs,Popconfirm:Qs,Tooltip:Qs,Tour:Qs},Js={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function el(e,n){const[,o]=Wi(),r=t.useContext(Ys),i=function(e){return e in Zs}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=r?r:0;t+=i?(r?0:o.zIndexPopupBase)+Zs[e]:Js[e],a=[void 0===r?n:t,t]}if("production"!==process.env.NODE_ENV){const t=_o(e),r=o.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function tl(){tl=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 I(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 p="suspendedStart",f="suspendedYield",h="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var C=Object.getPrototypeOf,w=C&&C(C(P([])));w&&w!==n&&o.call(w,a)&&(x=w);var S=y.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(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"==T(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=p;return function(i,a){if(r===h)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===p)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?g:f,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 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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(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(T(t)+" is not iterable")}return b.prototype=y,r(S,"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(S),e},t.awrap=function(e){return{__await:e}},k(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new E(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"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=P,I.prototype={constructor:I,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(M),!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),M(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;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function nl(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 ol(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){nl(i,o,r,a,s,"next",e)}function s(e){nl(i,o,r,a,s,"throw",e)}a(void 0)}))}}var rl,il=J({},y),al=il.version,sl=il.render,ll=il.unmountComponentAtNode;try{Number((al||"").split(".")[0])>=18&&(rl=il.createRoot)}catch(e){}function cl(e){var t=il.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===T(t)&&(t.usingClientEntryPoint=e)}var ul="__rc_react_root__";function dl(e,t){rl?function(e,t){cl(!0);var n=t[ul]||rl(t);cl(!1),n.render(e),t[ul]=n}(e,t):function(e,t){null==sl||sl(e,t)}(e,t)}function pl(e){return fl.apply(this,arguments)}function fl(){return(fl=ol(tl().mark((function e(t){return tl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ul])||void 0===e||e.unmount(),delete t[ul]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hl(e){ll(e)}function gl(e){return ml.apply(this,arguments)}function ml(){return(ml=ol(tl().mark((function e(t){return tl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===rl){e.next=2;break}return e.abrupt("return",pl(t));case 2:hl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const vl=()=>({height:0,opacity:0}),bl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},yl=e=>({height:e?e.offsetHeight:0}),xl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Cl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:ni}-motion-collapse`,onAppearStart:vl,onEnterStart:vl,onAppearActive:bl,onEnterActive:bl,onLeaveStart:yl,onLeaveActive:vl,onAppearEnd:xl,onEnterEnd:xl,onLeaveEnd:xl,motionDeadline:500}},wl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Sl=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 kl=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 El=Zi("Wave",(e=>[kl(e)]));const Ol=`${ni}-wave-target`;function $l(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 Nl(e){return Number.isNaN(e)?0:e}const Ml=t=>{const{className:n,target:o,component:r}=t,i=e.useRef(null),[a,s]=e.useState(null),[l,c]=e.useState([]),[u,d]=e.useState(0),[p,f]=e.useState(0),[h,g]=e.useState(0),[m,v]=e.useState(0),[b,y]=e.useState(!1),x={left:u,top:p,width:h,height:m,borderRadius:l.map((e=>`${e}px`)).join(" ")};function C(){const e=getComputedStyle(o);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return $l(t)?t:$l(n)?n:$l(o)?o:null}(o));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:r}=e;d(t?o.offsetLeft:Nl(-parseFloat(n))),f(t?o.offsetTop:Nl(-parseFloat(r))),g(o.offsetWidth),v(o.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>Nl(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),e.useEffect((()=>{if(o){const e=ft((()=>{C(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(o)),()=>{ft.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const w=("Checkbox"===r||"Radio"===r)&&(null==o?void 0:o.classList.contains(Ol));return e.createElement(Ra,{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;gl(e).then((()=>{null==e||e.remove()}))}return!1}},((t,o)=>{let{className:r}=t;return e.createElement("div",{ref:de(i,o),className:A(n,r,{"wave-quick":w}),style:x})}))},Il=(t,n)=>{var o;const{component:r}=n;if("Checkbox"===r&&!(null===(o=t.querySelector("input"))||void 0===o?void 0:o.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild),dl(e.createElement(Ml,Object.assign({},n,{target:t})),i)},Pl=(t,n,o)=>{const{wave:r}=e.useContext(ii),[,i,a]=Wi(),s=yi((e=>{const s=t.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${Ol}`)||s,{showEffect:c}=r||{};(c||Il)(l,{className:n,token:i,component:o,event:e,hashId:a})})),l=e.useRef();return e=>{ft.cancel(l.current),l.current=ft((()=>{s(e)}))}},Ll=e=>{const{children:n,disabled:o,component:i}=e,{getPrefixCls:s}=r(ii),l=a(null),c=s("wave"),[,u]=El(c),d=Pl(l,A(c,u),i);if(t.useEffect((()=>{const e=l.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!Sl(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!t.isValidElement(n))return null!=n?n:null;return Hs(n,{ref:fe(n)?de(n.ref,l):l})};"production"!==process.env.NODE_ENV&&(Ll.displayName="Wave");const jl=e=>{const n=t.useContext(ui);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},Al=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Dl=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Tl=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var Rl=Qi("Space",(e=>{const t=Oi(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Dl(t),Tl(t),Al(t)]}),(()=>({})),{resetStyle:!1}),_l=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 zl=e.createContext(null),Bl=(t,n)=>{const o=e.useContext(zl),r=e.useMemo((()=>{if(!o)return"";const{compactDirection:e,isFirstItem:r,isLastItem:i}=o,a="vertical"===e?"-vertical-":"-";return A(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:r,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:r}},Hl=t=>{let{children:n}=t;return e.createElement(zl.Provider,{value:null},n)},Fl=t=>{var{children:n}=t,o=_l(t,["children"]);return e.createElement(zl.Provider,{value:o},n)};var Wl=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 Vl=e.createContext(void 0),Kl=/^[\u4e00-\u9fa5]{2}$/,ql=Kl.test.bind(Kl);function Xl(e){return"danger"===e?{danger:!0}:{type:e}}function Ul(e){return"string"==typeof e}function Gl(e){return"text"===e||"link"===e}function Yl(e,n){let o=!1;const r=[];return t.Children.forEach(e,(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})),t.Children.map(r,(e=>function(e,n){if(null==e)return;const o=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Ul(e.type)&&ql(e.props.children)?Hs(e,{children:e.props.children.split("").join(o)}):Ul(e)?ql(e)?t.createElement("span",null,e.split("").join(o)):t.createElement("span",null,e):zs(e)?t.createElement("span",null,e):e}(e,n)))}const Ql=c(((e,n)=>{const{className:o,style:r,children:i,prefixCls:a}=e,s=A(`${a}-icon`,o);return t.createElement("span",{ref:n,className:s,style:r},i)})),Zl=c(((e,n)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=e,s=A(`${o}-loading-icon`,r);return t.createElement(Ql,{prefixCls:o,className:s,style:i,ref:n},t.createElement(Gs,{className:a}))})),Jl=()=>({width:0,opacity:0,transform:"scale(0)"}),ec=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),tc=e=>{const{prefixCls:n,loading:o,existIcon:r,className:i,style:a}=e,s=!!o;return r?t.createElement(Zl,{prefixCls:n,className:i,style:a}):t.createElement(Ra,{visible:s,motionName:`${n}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Jl,onAppearActive:ec,onEnterStart:Jl,onEnterActive:ec,onLeaveStart:ec,onLeaveActive:Jl},((e,o)=>{let{className:r,style:s}=e;return t.createElement(Zl,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),s),ref:o,iconClassName:r})}))},nc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),oc=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}},nc(`${t}-primary`,r),nc(`${t}-danger`,i)]}},rc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return Oi(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},ic=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:Xr(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Xr(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Xr(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:p,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*p)/2-e.lineWidth,0)}},ac=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:`${Yt(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({},Gi(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"}}}},sc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),lc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),uc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),dc=(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"},sc(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),pc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},uc(e))}),fc=e=>Object.assign({},pc(e)),hc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),gc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),sc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),dc(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},sc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),dc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),pc(e))}),mc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),sc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),dc(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},sc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),dc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pc(e))}),vc=e=>Object.assign(Object.assign({},gc(e)),{borderStyle:"dashed"}),bc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},sc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),hc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},sc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),hc(e))}),yc=e=>Object.assign(Object.assign(Object.assign({},sc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),hc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},hc(e)),sc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),xc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:gc(e),[`${t}-primary`]:mc(e),[`${t}-dashed`]:vc(e),[`${t}-link`]:bc(e),[`${t}-text`]:yc(e),[`${t}-ghost`]:dc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Cc=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:`${Yt(c)} ${Yt(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}`]:lc(e)},{[`${n}${n}-round${t}`]:cc(e)}]},wc=e=>{const t=Oi(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Cc(t,e.componentCls)},Sc=e=>{const t=Oi(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 Cc(t,`${e.componentCls}-sm`)},kc=e=>{const t=Oi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Cc(t,`${e.componentCls}-lg`)},Ec=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Oc=Qi("Button",(e=>{const t=rc(e);return[ac(t),wc(t),Sc(t),kc(t),Ec(t),xc(t),oc(t)]}),ic,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function $c(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 Nc(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 Mc(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({},$c(e,o,t)),Nc(n,o,t))}}function Ic(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 Pc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ic(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 Lc=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% + ${Yt(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% + ${Yt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var jc=Ji(["Button","compact"],(e=>{const t=rc(e);return[Mc(t),Pc(t),Lc(t)]}),ic),Ac=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 Dc=t.forwardRef(((e,n)=>{var o,i,a;const{loading:s=!1,prefixCls:c,type:h,danger:g=!1,shape:m="default",size:v,styles:b,disabled:y,className:x,rootClassName:C,children:w,icon:S,iconPosition:k="start",ghost:E=!1,block:O=!1,htmlType:$="button",classNames:N,style:M={},autoInsertSpace:I}=e,P=Ac(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),L=h||"default",{getPrefixCls:j,direction:D,button:T}=r(ii),R=null===(o=null!=I?I:null==T?void 0:T.autoInsertSpace)||void 0===o||o,_=j("btn",c),[z,B,H]=Oc(_),F=r(li),W=null!=y?y:F,V=r(Vl),K=u((()=>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}}(s)),[s]),[q,X]=d(K.loading),[U,G]=d(!1),Y=de(n,f()),Q=1===p.count(w)&&!S&&!Gl(L);l((()=>{let e=null;return K.delay>0?e=setTimeout((()=>{e=null,X(!0)}),K.delay):X(K.loading),function(){e&&(clearTimeout(e),e=null)}}),[K]),l((()=>{if(!Y||!Y.current||!R)return;const e=Y.current.textContent;Q&&ql(e)?U||G(!0):U&&G(!1)}),[Y]);const Z=t=>{const{onClick:n}=e;q||W?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=_o("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof S&&S.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${S}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(E&&Gl(L)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:ee}=Bl(_,D),te={large:"lg",small:"sm",middle:void 0},ne=jl((e=>{var t,n;return null!==(n=null!==(t=null!=v?v:J)&&void 0!==t?t:V)&&void 0!==n?n:e})),oe=ne&&te[ne]||"",re=q?"loading":S,ie=ot(P,["navigate"]),ae=A(_,B,H,{[`${_}-${m}`]:"default"!==m&&m,[`${_}-${L}`]:L,[`${_}-${oe}`]:oe,[`${_}-icon-only`]:!w&&0!==w&&!!re,[`${_}-background-ghost`]:E&&!Gl(L),[`${_}-loading`]:q,[`${_}-two-chinese-chars`]:U&&R&&!q,[`${_}-block`]:O,[`${_}-dangerous`]:g,[`${_}-rtl`]:"rtl"===D,[`${_}-icon-end`]:"end"===k},ee,x,C,null==T?void 0:T.className),se=Object.assign(Object.assign({},null==T?void 0:T.style),M),le=A(null==N?void 0:N.icon,null===(i=null==T?void 0:T.classNames)||void 0===i?void 0:i.icon),ce=Object.assign(Object.assign({},(null==b?void 0:b.icon)||{}),(null===(a=null==T?void 0:T.styles)||void 0===a?void 0:a.icon)||{}),ue=S&&!q?t.createElement(Ql,{prefixCls:_,className:le,style:ce},S):t.createElement(tc,{existIcon:!!S,prefixCls:_,loading:q}),pe=w||0===w?Yl(w,Q&&R):null;if(void 0!==ie.href)return z(t.createElement("a",Object.assign({},ie,{className:A(ae,{[`${_}-disabled`]:W}),href:W?void 0:ie.href,style:se,onClick:Z,ref:Y,tabIndex:W?-1:0}),ue,pe));let fe=t.createElement("button",Object.assign({},P,{type:$,className:ae,style:se,onClick:Z,disabled:W,ref:Y}),ue,pe,!!ee&&t.createElement(jc,{key:"compact",prefixCls:_}));return Gl(L)||(fe=t.createElement(Ll,{component:"Button",disabled:q},fe)),z(fe)})),Tc=Dc;function Rc(e){return!!(null==e?void 0:e.then)}Tc.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(ii),{prefixCls:r,size:i,className:a}=t,s=Wl(t,["prefixCls","size","className"]),l=n("btn-group",r),[,,c]=Wi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=_o("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=A(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===o},a,c);return e.createElement(Vl.Provider,{value:i},e.createElement("div",Object.assign({},s,{className:d})))},Tc.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Tc.displayName="Button");const _c=t=>{const{type:n,children:o,prefixCls:r,buttonProps:i,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,p=e.useRef(!1),f=e.useRef(null),[h,g]=xi(!1),m=function(){null==a||a.apply(void 0,arguments)};e.useEffect((()=>{let e=null;return s&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return e.createElement(Tc,Object.assign({},Xl(n),{onClick:e=>{if(p.current)return;if(p.current=!0,!d)return void m();let t;if(l){if(t=d(e),u&&!Rc(t))return p.current=!1,void m(e)}else if(d.length)t=d(a),p.current=!1;else if(t=d(),!Rc(t))return void m();(e=>{Rc(e)&&(g(!0),e.then((function(){g(!1,!0),m.apply(void 0,arguments),p.current=!1}),(e=>{if(g(!1,!0),p.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:r},i,{ref:f}),o)},zc=t.createContext({}),{Provider:Bc}=zc,Hc=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:o,isSilent:i,mergedOkCancel:a,rootPrefixCls:s,close:l,onCancel:c,onConfirm:u}=r(zc);return a?t.createElement(_c,{isSilent:i,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==u||u(!1)},autoFocus:"cancel"===e,buttonProps:n,prefixCls:`${s}-btn`},o):null},Fc=()=>{const{autoFocusButton:e,close:n,isSilent:o,okButtonProps:i,rootPrefixCls:a,okTextLocale:s,okType:l,onConfirm:c,onOk:u}=r(zc);return t.createElement(_c,{isSilent:o,type:l||"primary",actionFn:u,close:function(){null==n||n.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:i,prefixCls:`${a}-btn`},s)};var Wc,Vc=e.createContext(null),Kc=[];function qc(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,";"):"";It("\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 p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,f=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Mt(t),{width:p,height:f}}function Xc(e){return"undefined"==typeof document?0:(void 0===Wc&&(Wc=qc()),Wc.width)}function Uc(e){return"undefined"!=typeof document&&e&&e instanceof Element?qc(e):{width:0,height:0}}var Gc="rc-util-locker-".concat(Date.now()),Yc=0;function Qc(t){var n=!!t,o=vt(e.useState((function(){return Yc+=1,"".concat(Gc,"_").concat(Yc)})),1)[0];nn((function(){if(n){var e=Uc(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;It("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else Mt(o);return function(){Mt(o)}}),[n,o])}var Zc=function(e){return!1!==e&&(yt()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Jc=e.forwardRef((function(t,n){var o=t.open,r=t.autoLock,i=t.getContainer,a=t.debug,s=t.autoDestroy,l=void 0===s||s,c=t.children,u=vt(e.useState(o),2),d=u[0],p=u[1],f=d||o;"production"!==process.env.NODE_ENV&&U(yt()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect((function(){(l||o)&&p(o)}),[o,l]);var h=vt(e.useState((function(){return Zc(i)})),2),g=h[0],m=h[1];e.useEffect((function(){var e=Zc(i);m(null!=e?e:null)}));var v=function(t,n){var o=vt(e.useState((function(){if(!yt())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&n&&e.setAttribute("data-debug",n),e})),1)[0],r=e.useRef(!1),i=e.useContext(Vc),a=vt(e.useState(Kc),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(st(t))}))});function u(){o.parentElement||document.body.appendChild(o),r.current=!0}function d(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),r.current=!1}return nn((function(){return t?i?i(u):u():d(),d}),[t]),nn((function(){s.length&&(s.forEach((function(e){return e()})),l(Kc))}),[s]),[o,c]}(f&&!g,a),b=vt(v,2),y=b[0],x=b[1],w=null!=g?g:y;Qc(r&&o&&yt()&&(w===y||w===document.body));var S=null;c&&fe(c)&&n&&(S=c.ref);var k=pe(S,n);if(!f||!yt()||void 0===g)return null;var E=!1===w||!1,O=c;return n&&(O=e.cloneElement(c,{ref:k})),e.createElement(Vc.Provider,{value:x},E?O:C(O,w))}));"production"!==process.env.NODE_ENV&&(Jc.displayName="Portal");var eu=e.createContext({});var tu=0,nu=J({},e).useId,ou=nu?function(e){var t=nu();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var n=vt(e.useState("ssr-id"),2),o=n[0],r=n[1];return e.useEffect((function(){var e=tu;tu+=1,r("rc_unique_".concat(e))}),[]),t||("test"===process.env.NODE_ENV?"test-id":o)};function ru(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function iu(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 au=e.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),su={width:0,height:0,overflow:"hidden",outline:"none"},lu={outline:"none"},cu=t.forwardRef((function(e,n){var o=e.prefixCls,r=e.className,i=e.style,s=e.title,l=e.ariaId,c=e.footer,d=e.closable,p=e.closeIcon,f=e.onClose,h=e.children,g=e.bodyStyle,m=e.bodyProps,v=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,x=e.holderRef,C=e.visible,w=e.forceRender,S=e.width,k=e.height,E=e.classNames,O=e.styles,$=t.useContext(eu).panel,N=pe(x,$),M=a(),I=a(),P=a();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===I.current?M.current.focus({preventScroll:!0}):e||t!==M.current||I.current.focus({preventScroll:!0})}}}));var L={};void 0!==S&&(L.width=S),void 0!==k&&(L.height=k);var j=c?t.createElement("div",{className:A("".concat(o,"-footer"),null==E?void 0:E.footer),style:J({},null==O?void 0:O.footer)},c):null,R=s?t.createElement("div",{className:A("".concat(o,"-header"),null==E?void 0:E.header),style:J({},null==O?void 0:O.header)},t.createElement("div",{className:"".concat(o,"-title"),id:l},s)):null,_=u((function(){return"object"===T(d)&&null!==d?d:d?{closeIcon:null!=p?p:t.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[d,p,o]),z=_s(_,!0),B="object"===T(d)&&d.disabled,H=d?t.createElement("button",D({type:"button",onClick:f,"aria-label":"Close"},z,{className:"".concat(o,"-close"),disabled:B}),_.closeIcon):null,F=t.createElement("div",{className:A("".concat(o,"-content"),null==E?void 0:E.content),style:null==O?void 0:O.content},H,R,t.createElement("div",D({className:A("".concat(o,"-body"),null==E?void 0:E.body),style:J(J({},g),null==O?void 0:O.body)},m),h),j);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?l:null,"aria-modal":"true",ref:N,style:J(J({},i),L),className:A(o,r),onMouseDown:b,onMouseUp:y},t.createElement("div",{tabIndex:0,ref:M,style:su,"aria-hidden":"true"}),t.createElement("div",{ref:P,tabIndex:-1,style:lu},t.createElement(au,{shouldUpdate:C||w},v?v(F):F)),t.createElement("div",{tabIndex:0,ref:I,style:su,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(cu.displayName="Panel");var uu=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.title,i=t.style,s=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,p=t.ariaId,f=t.onVisibleChanged,h=t.mousePosition,g=a(),m=vt(e.useState(),2),v=m[0],b=m[1],y={};function x(){var e,t,n,o,r,i=(e=g.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=iu(r),n.top+=iu(r,!0),n);b(h&&(h.x||h.y)?"".concat(h.x-i.left,"px ").concat(h.y-i.top,"px"):"")}return v&&(y.transformOrigin=v),e.createElement(Ra,{visible:l,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:c,motionName:d,removeOnLeave:u,ref:g},(function(a,l){var c=a.className,u=a.style;return e.createElement(cu,D({},t,{ref:n,title:r,ariaId:p,prefixCls:o,holderRef:l,style:J(J(J({},u),i),y),className:A(s,c)}))}))}));uu.displayName="Content";var du=function(t){var n=t.prefixCls,o=t.style,r=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return e.createElement(Ra,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},(function(t,r){var a=t.className,l=t.style;return e.createElement("div",D({ref:r,style:J(J({},l),o),className:A("".concat(n,"-mask"),a,s)},i))}))},pu=function(t){var n=t.prefixCls,o=void 0===n?"rc-dialog":n,r=t.zIndex,i=t.visible,s=void 0!==i&&i,c=t.keyboard,u=void 0===c||c,d=t.focusTriggerAfterClose,p=void 0===d||d,f=t.wrapStyle,h=t.wrapClassName,g=t.wrapProps,m=t.onClose,v=t.afterOpenChange,b=t.afterClose,y=t.transitionName,x=t.animation,C=t.closable,w=void 0===C||C,S=t.mask,k=void 0===S||S,E=t.maskTransitionName,O=t.maskAnimation,$=t.maskClosable,N=void 0===$||$,M=t.maskStyle,I=t.maskProps,P=t.rootClassName,L=t.classNames,j=t.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(e){V(!(e in t),"".concat(e," is deprecated, please use styles instead."))})),"wrapClassName"in t&&V(!1,"wrapClassName is deprecated, please use classNames instead."));var T=a(),R=a(),_=a(),z=vt(e.useState(s),2),B=z[0],H=z[1],F=ou();function W(e){null==m||m(e)}var K=a(!1),q=a(),X=null;N&&(X=function(e){K.current?K.current=!1:R.current===e.target&&W(e)}),l((function(){s&&(H(!0),xt(R.current,document.activeElement)||(T.current=document.activeElement))}),[s]),l((function(){return function(){clearTimeout(q.current)}}),[]);var U=J(J(J({zIndex:r},f),null==j?void 0:j.wrapper),{},{display:B?null:"none"});return e.createElement("div",D({className:A("".concat(o,"-root"),P)},_s(t,{data:!0})),e.createElement(du,{prefixCls:o,visible:k&&s,motionName:ru(o,E,O),style:J(J({zIndex:r},M),null==j?void 0:j.mask),maskProps:I,className:null==L?void 0:L.mask}),e.createElement("div",D({tabIndex:-1,onKeyDown:function(e){if(u&&e.keyCode===qs.ESC)return e.stopPropagation(),void W(e);s&&e.keyCode===qs.TAB&&_.current.changeActive(!e.shiftKey)},className:A("".concat(o,"-wrap"),h,null==L?void 0:L.wrapper),ref:R,onClick:X,style:U},g),e.createElement(uu,D({},t,{onMouseDown:function(){clearTimeout(q.current),K.current=!0},onMouseUp:function(){q.current=setTimeout((function(){K.current=!1}))},ref:_,closable:w,ariaId:F,prefixCls:o,visible:s&&B,onClose:W,onVisibleChanged:function(e){if(e)xt(R.current,document.activeElement)||null===(t=_.current)||void 0===t||t.focus();else{if(H(!1),k&&T.current&&p){try{T.current.focus({preventScroll:!0})}catch(e){}T.current=null}B&&(null==b||b())}var t;null==v||v(e)},motionName:ru(o,y,x)}))))},fu=function(t){var n=t.visible,o=t.getContainer,r=t.forceRender,i=t.destroyOnClose,a=void 0!==i&&i,s=t.afterClose,l=t.panelRef,c=vt(e.useState(n),2),u=c[0],d=c[1],p=e.useMemo((function(){return{panel:l}}),[l]);return e.useEffect((function(){n&&d(!0)}),[n]),r||!a||u?e.createElement(eu.Provider,{value:p},e.createElement(Jc,{open:n||r||u,autoDestroy:!1,getContainer:o,autoLock:n||u},e.createElement(pu,D({},t,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};fu.displayName="Dialog";var hu="RC_FORM_INTERNAL_HOOKS",gu=function(){U(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},mu=e.createContext({getFieldValue:gu,getFieldsValue:gu,getFieldError:gu,getFieldWarning:gu,getFieldsError:gu,isFieldsTouched:gu,isFieldTouched:gu,isFieldValidating:gu,isFieldsValidating:gu,resetFields:gu,setFields:gu,setFieldValue:gu,setFieldsValue:gu,validateFields:gu,submit:gu,getInternalHooks:function(){return gu(),{dispatch:gu,initEntityValue:gu,registerField:gu,useSubscribe:gu,setInitialValues:gu,destroyForm:gu,setCallbacks:gu,registerWatch:gu,getFields:gu,setValidateMessages:gu,setPreserve:gu,getInitialValue:gu}}}),vu=e.createContext(null);function bu(e){return null==e?[]:Array.isArray(e)?e:[e]}function yu(){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 xu=yu();function Cu(e){var t="function"==typeof Map?new Map:void 0;return Cu=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(Ue())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Ke(r,n.prototype),r}(e,arguments,Xe(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ke(n,e)},Cu(e)}var wu=/%[sdj%]/g,Su=function(){};function ku(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 Eu(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(wu,(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 Ou(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 $u(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&&(Su=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 Nu=function(){qe(t,Cu(Error));var e=Qe(t);function t(n,o){var r;return Fe(this,t),Q(Ge(r=e.call(this,"Async Validation Error")),"errors",void 0),Q(Ge(r),"fields",void 0),r.errors=n,r.fields=o,r}return Ve(t)}();function Mu(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,st(e[n]||[]))})),t}(e);$u(a,n,(function(e){return o(e),e.length?i(new Nu(e,ku(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 Nu(u,ku(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?$u(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,st(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function Iu(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 Pu(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===T(o)&&"object"===T(e[n])?e[n]=J(J({},e[n]),o):e[n]=o}return e}var Lu,ju="enum",Au=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Ou(t,i||e.type)||o.push(Eu(r.messages.required,e.fullField))},Du=/^(([^<>()\[\]\\.,;:\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,}))$/,Tu=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Ru={integer:function(e){return Ru.number(e)&&parseInt(e,10)===e},float:function(e){return Ru.number(e)&&!Ru.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"===T(e)&&!Ru.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Du)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Lu)return Lu;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,p="(?:".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 Lu=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Tu)}},_u={required:Au,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Eu(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Au(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Ru[i](t)||o.push(Eu(r.messages.types[i],e.fullField,e.type)):i&&T(t)!==e.type&&o.push(Eu(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,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(Eu(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(Eu(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(Eu(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(Eu(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[ju]=Array.isArray(e[ju])?e[ju]:[],-1===e[ju].indexOf(t)&&o.push(Eu(r.messages[ju],e.fullField,e[ju].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(Eu(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Eu(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},zu=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Ou(t,i)&&!e.required)return n();_u.required(e,t,o,a,r,i),Ou(t,i)||_u.type(e,t,o,a,r)}n(a)},Bu={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Ou(t,"string")&&!e.required)return n();_u.required(e,t,o,i,r,"string"),Ou(t,"string")||(_u.type(e,t,o,i,r),_u.range(e,t,o,i,r),_u.pattern(e,t,o,i,r),!0===e.whitespace&&_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),void 0!==t&&_u.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),Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),void 0!==t&&(_u.type(e,t,o,i,r),_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),void 0!==t&&_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),Ou(t)||_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),void 0!==t&&(_u.type(e,t,o,i,r),_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),void 0!==t&&(_u.type(e,t,o,i,r),_u.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();_u.required(e,t,o,i,r,"array"),null!=t&&(_u.type(e,t,o,i,r),_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),void 0!==t&&_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r),void 0!==t&&_u.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(Ou(t,"string")&&!e.required)return n();_u.required(e,t,o,i,r),Ou(t,"string")||_u.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(Ou(t,"date")&&!e.required)return n();var a;if(_u.required(e,t,o,i,r),!Ou(t,"date"))a=t instanceof Date?t:new Date(t),_u.type(e,a,o,i,r),a&&_u.range(e,a.getTime(),o,i,r)}n(i)},url:zu,hex:zu,email:zu,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":T(t);_u.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(Ou(t)&&!e.required)return n();_u.required(e,t,o,i,r)}n(i)}},Hu=function(){function e(t){Fe(this,e),Q(this,"rules",null),Q(this,"_messages",xu),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"!==T(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=Pu(yu(),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===xu&&(a=yu()),Pu(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=J({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":T(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),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:o,field:e}))}))}));var l={};return Mu(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==T(a.fields)&&"object"!==T(a.defaultField));function c(e,t){return J(J({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(st(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(Iu(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(Iu(a,o)):r.error&&(d=[r.error(a,Eu(r.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=J(J({},p),t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(c.bind(null,e))}));var h=new e(f);h.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),h.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,st(d)),e&&e.length&&t.push.apply(t,st(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,p;null===(d=(p=console).error)||void 0===d||d.call(p,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,st(t)):r.push(t);r.length?(a=ku(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&&!Bu.hasOwnProperty(e.type))throw new Error(Eu("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]?Bu.required:Bu[this.getType(e)]||void 0}}]),e}();Q(Hu,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Bu[e]=t})),Q(Hu,"warning",Su),Q(Hu,"messages",xu),Q(Hu,"validators",Bu);var Fu="'${name}' is not a valid ${type}",Wu={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:Fu,method:Fu,array:Fu,object:Fu,number:Fu,date:Fu,boolean:Fu,integer:Fu,float:Fu,regexp:Fu,email:Fu,url:Fu,hex:Fu},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}"}},Vu=Hu;function Ku(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 qu="CODE_LOGIC_ERROR";function Xu(e,t,n,o,r){return Uu.apply(this,arguments)}function Uu(){return Uu=ol(tl().mark((function t(n,o,r,i,a){var s,l,c,u,d,p,f,h,g;return tl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(s=J({},r)).ruleIndex,Vu.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(qu)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new Vu(Q({},n,[s])),d=jo(Wu,i.validateMessages),u.messages(d),p=[],t.prev=10,t.next=13,Promise.resolve(u.validate(Q({},n,o),J({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(p=t.t0.errors.map((function(t,n){var o=t.message,r=o===qu?d.default:o;return e.isValidElement(r)?e.cloneElement(r,{key:"error_".concat(n)}):r})));case 18:if(p.length||!c){t.next=23;break}return t.next=21,Promise.all(o.map((function(e,t){return Xu("".concat(n,".").concat(t),e,c,i,a)})));case 21:return f=t.sent,t.abrupt("return",f.reduce((function(e,t){return[].concat(st(e),st(t))}),[]));case 23:return h=J(J({},r),{},{name:n,enum:(r.enum||[]).join(", ")},a),g=p.map((function(e){return"string"==typeof e?Ku(e,h):e})),t.abrupt("return",g);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),Uu.apply(this,arguments)}function Gu(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=J(J({},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(){U(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));U(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=ol(tl().mark((function e(n,r){var a,c,u;return tl().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,Xu(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 Xu(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Qu.apply(this,arguments)}(c):function(e){return Yu.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Yu(){return(Yu=ol(tl().mark((function e(t){return tl().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,st(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qu(){return Qu=ol(tl().mark((function e(t){var n;return tl().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)}))),Qu.apply(this,arguments)}function Zu(e){return bu(e)}function Ju(e,t){var n={};return t.forEach((function(t){var o=No(e,t);n=Io(n,t,o)})),n}function ed(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return td(t,e,n)}))}function td(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 nd(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===T(t.target)&&e in t.target?t.target[e]:t}function od(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(st(e.slice(0,n)),[r],st(e.slice(n,t)),st(e.slice(t+1,o))):i<0?[].concat(st(e.slice(0,t)),st(e.slice(t+1,n+1)),[r],st(e.slice(n+1,o))):e}var rd=["name"],id=[];function ad(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var sd=function(){qe(n,e.Component);var t=Qe(n);function n(o){var r;(Fe(this,n),Q(Ge(r=t.call(this,o)),"state",{resetCount:0}),Q(Ge(r),"cancelRegisterFunc",null),Q(Ge(r),"mounted",!1),Q(Ge(r),"touched",!1),Q(Ge(r),"dirty",!1),Q(Ge(r),"validatePromise",void 0),Q(Ge(r),"prevValidating",void 0),Q(Ge(r),"errors",id),Q(Ge(r),"warnings",id),Q(Ge(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Zu(o)),r.cancelRegisterFunc=null})),Q(Ge(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(st(void 0===n?[]:n),st(t)):[]})),Q(Ge(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}))})),Q(Ge(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Q(Ge(r),"metaCache",null),Q(Ge(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=J(J({},r.getMeta()),{},{destroy:e});Lt(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Q(Ge(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),p=r.getValue(c),f=t&&ed(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Lt(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=id,r.warnings=id,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=id,r.warnings=id,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&ad(i,e,c,d,p,n))return void r.reRender();break;case"setField":var h=n.data;if(f)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||id),"warnings"in h&&(r.warnings=h.warnings||id),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&ed(t,u,!0))return void r.reRender();if(i&&!u.length&&ad(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Zu).some((function(e){return ed(n.relatedFields,e)})))return void r.reRender();break;default:if(f||(!s.length||u.length||i)&&ad(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()})),Q(Ge(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(ol(tl().mark((function o(){var a,s,c,u,d,p,f;return tl().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,p=r.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||bu(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(f=Gu(t,n,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:id;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?id:r;t?o.push.apply(o,st(i)):n.push.apply(n,st(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=id,r.warnings=id,r.triggerMetaEvent(),r.reRender()),l})),Q(Ge(r),"isFieldValidating",(function(){return!!r.validatePromise})),Q(Ge(r),"isFieldTouched",(function(){return r.touched})),Q(Ge(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(hu).getInitialValue)(r.getNamePath())})),Q(Ge(r),"getErrors",(function(){return r.errors})),Q(Ge(r),"getWarnings",(function(){return r.warnings})),Q(Ge(r),"isListField",(function(){return r.props.isListField})),Q(Ge(r),"isList",(function(){return r.props.isList})),Q(Ge(r),"isPreserve",(function(){return r.props.preserve})),Q(Ge(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}})),Q(Ge(r),"getOnlyChild",(function(t){if("function"==typeof t){var n=r.getMeta();return J(J({},r.getOnlyChild(t(r.getControlled(),n,r.props.fieldContext))),{},{isFunction:!0})}var o=H(t);return 1===o.length&&e.isValidElement(o[0])?{child:o[0],isFunction:!1}:{child:o,isFunction:!1}})),Q(Ge(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return No(e||t(!0),n)})),Q(Ge(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,p=r.getNamePath(),f=u.getInternalHooks,h=u.getFieldsValue,g=f(hu).dispatch,m=r.getValue(),v=c||function(e){return Q({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){U("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=J(J({},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):nd.apply(void 0,[l].concat(n)),s&&(e=s(e,m,h(!0))),g({type:"updateValue",namePath:p,value:e}),b&&b.apply(void 0,n)},bu(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:p,triggerName:e})}})),x})),o.fieldContext)&&(0,(0,o.fieldContext.getInternalHooks)(hu).initEntityValue)(Ge(r));return r}return Ve(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(hu).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 t,n=this.state.resetCount,o=this.props.children,r=this.getOnlyChild(o),i=r.child;return r.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(U(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),n}();function ld(t){var n=t.name,o=Pt(t,rd),r=e.useContext(mu),i=e.useContext(vu),a=void 0!==n?Zu(n):void 0,s="keep";return o.isListField||(s="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===o.preserve&&o.isListField&&a.length<=1&&U(!1,"`preserve` should not apply on Form.List fields."),e.createElement(sd,D({key:s,name:a,isListField:!!i},o,{fieldContext:r}))}Q(sd,"contextType",mu),Q(sd,"defaultProps",{trigger:"onChange",valuePropName:"value"});var cd="__@field_split__";function ud(e){return e.map((function(e){return"".concat(T(e),":").concat(e)})).join(cd)}var dd=function(){function e(){Fe(this,e),Q(this,"kvs",new Map)}return Ve(e,[{key:"set",value:function(e,t){this.kvs.set(ud(e),t)}},{key:"get",value:function(e){return this.kvs.get(ud(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(ud(e))}},{key:"map",value:function(e){return st(this.kvs.entries()).map((function(t){var n=vt(t,2),o=n[0],r=n[1],i=o.split(cd);return e({key:i.map((function(e){var t=vt(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}(),pd=["name"],fd=Ve((function e(t){var n=this;Fe(this,e),Q(this,"formHooked",!1),Q(this,"forceRootUpdate",void 0),Q(this,"subscribable",!0),Q(this,"store",{}),Q(this,"fieldEntities",[]),Q(this,"initialValues",{}),Q(this,"callbacks",{}),Q(this,"validateMessages",null),Q(this,"preserve",null),Q(this,"lastValidatePromise",null),Q(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}})),Q(this,"getInternalHooks",(function(e){return e===hu?(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}):(U(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Q(this,"useSubscribe",(function(e){n.subscribable=e})),Q(this,"prevWithoutPreserves",null),Q(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=jo(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=Io(r,n,No(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),Q(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new dd;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),Q(this,"getInitialValue",(function(e){var t=No(n.initialValues,e);return e.length?jo(t):t})),Q(this,"setCallbacks",(function(e){n.callbacks=e})),Q(this,"setValidateMessages",(function(e){n.validateMessages=e})),Q(this,"setPreserve",(function(e){n.preserve=e})),Q(this,"watchList",[]),Q(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Q(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)}))}})),Q(this,"timeoutId",null),Q(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||U(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),Q(this,"updateStore",(function(e){n.store=e})),Q(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Q(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new dd;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Q(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Zu(e);return t.get(n)||{INVALIDATE_NAME_PATH:Zu(e)}}))})),Q(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===T(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)})),Ju(n.store,s.map(Zu))})),Q(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Zu(e);return No(n.store,t)})),Q(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:Zu(e[n]),errors:[],warnings:[]}}))})),Q(this,"getFieldError",(function(e){n.warningUnhooked();var t=Zu(e);return n.getFieldsError([t])[0].errors})),Q(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Zu(e);return n.getFieldsError([t])[0].warnings})),Q(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(Zu),s=!1):(r=null,s=i):(r=i.map(Zu),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 dd;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(st(t),[e])}))}))}));var d=function(e){return e.some(c)},p=u.map((function(e){return e.value}));return s?p.every(d):p.some(d)})),Q(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Q(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Zu);return t.some((function(e){var t=e.getNamePath();return ed(o,t)&&e.isFieldValidating()}))})),Q(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Q(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new dd,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,st(st(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))U(!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)U(!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(Io(n.store,r,st(i)[0].value))}}}}))})),Q(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(jo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Zu);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Io(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),Q(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=Pt(e,pd),a=Zu(r);o.push(a),"value"in i&&n.updateStore(Io(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),Q(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=J(J({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Q(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(Io(n.store,o,t))}})),Q(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Q(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!td(e.getNamePath(),t)}))){var s=n.store;n.updateStore(Io(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Q(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})}})),Q(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=J(J({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),Q(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(st(o))}),o})),Q(this,"updateValue",(function(e,t){var o=Zu(e),r=n.store;n.updateStore(Io(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(Ju(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(st(i)))})),Q(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=jo(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Q(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Q(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new dd;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Zu(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})),Q(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new dd;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 ed(e,n)}));a.length&&o(a,r)}})),Q(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(Zu):[],s=[],l=String(Date.now()),c=new Set,u=r||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||ed(a,t,d)){var o=e.validateRules(J({validateMessages:J(J({},Wu),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,st(n)):o.push.apply(o,st(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var f=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=f,f.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 h=f.then((function(){return n.lastValidatePromise===f?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!==f})}));h.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),h})),Q(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 hd(t){var n=e.useRef(),o=vt(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var r=new fd((function(){o({})}));n.current=r.getForm()}return[n.current]}var gd=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),md=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],vd=function(t,n){var o=t.name,r=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,p=t.validateTrigger,f=void 0===p?"onChange":p,h=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,v=t.onFinishFailed,b=t.clearOnDestroy,y=Pt(t,md),x=e.useRef(null),C=e.useContext(gd),w=vt(hd(a),1)[0],S=w.getInternalHooks(hu),k=S.useSubscribe,E=S.setInitialValues,O=S.setCallbacks,$=S.setValidateMessages,N=S.setPreserve,M=S.destroyForm;e.useImperativeHandle(n,(function(){return J(J({},w),{},{nativeElement:x.current})})),e.useEffect((function(){return C.registerForm(o,w),function(){C.unregisterForm(o)}}),[C,w,o]),$(J(J({},C.validateMessages),d)),O({onValuesChange:h,onFieldsChange:function(e){if(C.triggerFormChange(o,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];g.apply(void 0,[e].concat(n))}},onFinish:function(e){C.triggerFormFinish(o,e),m&&m(e)},onFinishFailed:v}),N(s);var I,P=e.useRef(null);E(r,!P.current),P.current||(P.current=!0),e.useEffect((function(){return function(){return M(b)}}),[]);var L="function"==typeof l;L?I=l(w.getFieldsValue(!0),w):I=l;k(!L);var j=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==T(e)||"object"!==T(t))return!1;var n=Object.keys(e),o=Object.keys(t);return st(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(j.current||[],i||[])||w.setFields(i||[]),j.current=i}),[i,w]);var A=e.useMemo((function(){return J(J({},w),{},{validateTrigger:f})}),[w,f]),R=e.createElement(vu.Provider,{value:null},e.createElement(mu.Provider,{value:A},I));return!1===u?R:e.createElement(u,D({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),R)};function bd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var yd="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");U(a(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var xd=e.forwardRef(vd);xd.FormProvider=function(t){var n=t.validateMessages,o=t.onFormChange,r=t.onFormFinish,i=t.children,a=e.useContext(gd),s=e.useRef({});return e.createElement(gd.Provider,{value:J(J({},a),{},{validateMessages:J(J({},a.validateMessages),n),triggerFormChange:function(e,t){o&&o(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=J(J({},s.current),{},Q({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=J({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},xd.Field=ld,xd.List=function(t){var n=t.name,o=t.initialValue,r=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,l=e.useContext(mu),c=e.useContext(vu),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=Zu(l.prefixName)||[];return[].concat(st(e),st(Zu(n)))}),[l.prefixName,n]),p=e.useMemo((function(){return J(J({},l),{},{prefixName:d})}),[l,d]),f=e.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?(U(!1,"Form.List only accepts function as children."),null):e.createElement(vu.Provider,{value:f},e.createElement(mu.Provider,{value:p},e.createElement(ld,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:o,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(st(u.keys.slice(0,t)),[u.id],st(u.keys.slice(t))),i([].concat(st(n.slice(0,t)),[e],st(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&U(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(st(u.keys),[u.id]),i([].concat(st(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=od(u.keys,e,t),i(od(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[],"production"!==process.env.NODE_ENV&&U(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(p.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)}))))},xd.useForm=hd,xd.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t[1],s=void 0===i?{}:i,c=function(e){return e&&!!e._init}(s)?{form:s}:s,p=c.form,f=vt(d(),2),h=f[0],g=f[1],m=u((function(){return bd(h)}),[h]),v=a(m);v.current=m;var b=r(mu),y=p||b,x=y&&y._init;"production"!==process.env.NODE_ENV&&U(2===t.length&&!p||x,"useWatch requires a form instance since it can not auto detect from context.");var C=Zu(o),w=a(C);return w.current=C,yd(C),l((function(){if(x){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(hu).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"==typeof o?o(n):No(n,w.current)},r=t((function(e,t){var o=n(e,t),r=bd(o);v.current!==r&&(v.current=r,g(o))})),i=n(e(),e(!0));return h!==i&&g(i),r}}),[x]),h};const Cd=e.createContext({});"production"!==process.env.NODE_ENV&&(Cd.displayName="FormItemInputContext");const wd=t=>{let{children:n,status:o,override:i}=t;const a=r(Cd),s=u((()=>{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 e.createElement(Cd.Provider,{value:s},n)},Sd=i(void 0),kd=e=>{const{space:n,form:o,children:r}=e;if(null==r)return null;let i=r;return o&&(i=t.createElement(wd,{override:!0,status:!0},i)),n&&(i=t.createElement(Hl,null,i)),i};function Ed(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Od(e){const{closable:n,closeIcon:o}=e||{};return t.useMemo((()=>{if(!n&&(!1===n||!1===o||null===o))return!1;if(void 0===n&&void 0===o)return null;let e={closeIcon:"boolean"!=typeof o&&null!==o?o:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,o])}function $d(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const Nd={};function Md(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nd;const r=Od(e),i=Od(n),a=t.useMemo((()=>Object.assign({closeIcon:t.createElement(Ms,null)},o)),[o]),s=t.useMemo((()=>!1!==r&&(r?$d(a,i,r):!1!==i&&(i?$d(a,i):!!a.closable&&a))),[r,i,a]);return t.useMemo((()=>{if(!1===s)return[!1,null];const{closeIconRender:e}=a,{closeIcon:n}=s;let o=n;if(null!=o){e&&(o=e(n));const r=_s(s,!0);Object.keys(r).length&&(o=t.isValidElement(o)?t.cloneElement(o,r):t.createElement("span",Object.assign({},r),o))}return[!0,o]}),[s,a])}var Id=function(e){if(yt()&&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 Pd(e,t){return Array.isArray(e)||void 0===t?Id(e):function(e,t){if(!Id(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const Ld=t=>{const{prefixCls:n,className:o,style:r,size:i,shape:a}=t,s=A({[`${n}-lg`]:"large"===i,[`${n}-sm`]:"small"===i}),l=A({[`${n}-circle`]:"circle"===a,[`${n}-square`]:"square"===a,[`${n}-round`]:"round"===a}),c=e.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return e.createElement("span",{className:A(n,s,l,o),style:Object.assign(Object.assign({},c),r)})},jd=new ko("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ad=e=>({height:e,lineHeight:Yt(e)}),Dd=e=>Object.assign({width:e},Ad(e)),Td=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:jd,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Rd=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ad(e)),_d=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Dd(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Dd(r)),[`${t}${t}-sm`]:Object.assign({},Dd(i))}},zd=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Rd(t,s)),[`${o}-lg`]:Object.assign({},Rd(r,s)),[`${o}-sm`]:Object.assign({},Rd(i,s))}},Bd=e=>Object.assign({width:e},Ad(e)),Hd=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},Bd(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Bd(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Fd=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},Wd=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ad(e)),Vd=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(o).mul(2).equal(),minWidth:s(o).mul(2).equal()},Wd(o,s))},Fd(e,o,n)),{[`${n}-lg`]:Object.assign({},Wd(r,s))}),Fd(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Wd(i,s))}),Fd(e,i,`${n}-sm`))},Kd=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Dd(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Dd(c)),[`${n}-sm`]:Object.assign({},Dd(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[o]:{marginBlockStart:f,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Vd(e)),_d(e)),zd(e)),Hd(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},Td(e))}}};var qd=Qi("Skeleton",(e=>{const{componentCls:t,calc:n}=e,o=Oi(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Kd(o)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Xd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Ud=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:Xd}))},Gd=e.forwardRef(Ud);"production"!==process.env.NODE_ENV&&(Gd.displayName="DotChartOutlined");const Yd=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},Qd=t=>{const{prefixCls:n,className:o,style:r,rows:i}=t,a=st(Array(i)).map(((n,o)=>e.createElement("li",{key:o,style:{width:Yd(o,t)}})));return e.createElement("ul",{className:A(n,o),style:r},a)},Zd=t=>{let{prefixCls:n,className:o,width:r,style:i}=t;return e.createElement("h3",{className:A(n,o),style:Object.assign({width:r},i)})};function Jd(e){return e&&"object"==typeof e?e:{}}const ep=t=>{const{prefixCls:n,loading:o,className:r,rootClassName:i,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=t,{getPrefixCls:f,direction:h,skeleton:g}=e.useContext(ii),m=f("skeleton",n),[v,b,y]=qd(m);if(o||!("loading"in t)){const t=!!l,n=!!c,o=!!u;let s,f;if(t){const t=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,o)),Jd(l));s=e.createElement("div",{className:`${m}-header`},e.createElement(Ld,Object.assign({},t)))}if(n||o){let r,i;if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(t,o)),Jd(c));r=e.createElement(Zd,Object.assign({},n))}if(o){const o=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(t,n)),Jd(u));i=e.createElement(Qd,Object.assign({},o))}f=e.createElement("div",{className:`${m}-content`},r,i)}const x=A(m,{[`${m}-with-avatar`]:t,[`${m}-active`]:d,[`${m}-rtl`]:"rtl"===h,[`${m}-round`]:p},null==g?void 0:g.className,r,i,b,y);return v(e.createElement("div",{className:x,style:Object.assign(Object.assign({},null==g?void 0:g.style),a)},s,f))}return null!=s?s:null};function tp(){}ep.Button=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,block:a=!1,size:s="default"}=t,{getPrefixCls:l}=e.useContext(ii),c=l("skeleton",n),[u,d,p]=qd(c),f=ot(t,["prefixCls"]),h=A(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},o,r,d,p);return u(e.createElement("div",{className:h},e.createElement(Ld,Object.assign({prefixCls:`${c}-button`,size:s},f))))},ep.Avatar=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,shape:a="circle",size:s="default"}=t,{getPrefixCls:l}=e.useContext(ii),c=l("skeleton",n),[u,d,p]=qd(c),f=ot(t,["prefixCls","className"]),h=A(c,`${c}-element`,{[`${c}-active`]:i},o,r,d,p);return u(e.createElement("div",{className:h},e.createElement(Ld,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},f))))},ep.Input=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,block:a,size:s="default"}=t,{getPrefixCls:l}=e.useContext(ii),c=l("skeleton",n),[u,d,p]=qd(c),f=ot(t,["prefixCls"]),h=A(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},o,r,d,p);return u(e.createElement("div",{className:h},e.createElement(Ld,Object.assign({prefixCls:`${c}-input`,size:s},f))))},ep.Image=t=>{const{prefixCls:n,className:o,rootClassName:r,style:i,active:a}=t,{getPrefixCls:s}=e.useContext(ii),l=s("skeleton",n),[c,u,d]=qd(l),p=A(l,`${l}-element`,{[`${l}-active`]:a},o,r,u,d);return c(e.createElement("div",{className:p},e.createElement("div",{className:A(`${l}-image`,o),style:i},e.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},e.createElement("title",null,"Image placeholder"),e.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},ep.Node=t=>{const{prefixCls:n,className:o,rootClassName:r,style:i,active:a,children:s}=t,{getPrefixCls:l}=e.useContext(ii),c=l("skeleton",n),[u,d,p]=qd(c),f=A(c,`${c}-element`,{[`${c}-active`]:a},d,o,r,p),h=null!=s?s:e.createElement(Gd,null);return u(e.createElement("div",{className:f},e.createElement("div",{className:A(`${c}-image`,o),style:i},h)))},"production"!==process.env.NODE_ENV&&(ep.displayName="Skeleton");const np=e.createContext({add:tp,remove:tp});const op=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:o}=r(zc);return t.createElement(Tc,Object.assign({onClick:o},e),n)},rp=()=>{const{confirmLoading:e,okButtonProps:n,okType:o,okTextLocale:i,onOk:a}=r(zc);return t.createElement(Tc,Object.assign({},Xl(o),{loading:e,onClick:a},n),i)};function ip(e,n){return t.createElement("span",{className:`${e}-close-x`},n||t.createElement(Ms,{className:`${e}-close-icon`}))}const ap=e=>{const{okText:n,okType:o="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Zo("Modal",Yo()),p={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:n||(null==d?void 0:d.okText),cancelTextLocale:r||(null==d?void 0:d.cancelText),okType:o,onOk:a,onCancel:s},f=t.useMemo((()=>p),st(Object.values(p)));let h;return"function"==typeof u||void 0===u?(h=t.createElement(t.Fragment,null,t.createElement(op,null),t.createElement(rp,null)),"function"==typeof u&&(h=u(h,{OkBtn:rp,CancelBtn:op})),h=t.createElement(Bc,{value:f},h)):h=u,t.createElement(ci,{disabled:!1},h)},sp=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`}}}),lp=e=>({animationDuration:e,animationFillMode:"both"}),cp=e=>({animationDuration:e,animationFillMode:"both"}),up=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({},lp(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},cp(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"}}},dp=new ko("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),pp=new ko("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),fp=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[up(o,dp,pp,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},hp=new ko("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gp=new ko("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),mp=new ko("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vp=new ko("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bp=new ko("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yp=new ko("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),xp={"move-up":{inKeyframes:new ko("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new ko("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:hp,outKeyframes:gp},"move-left":{inKeyframes:mp,outKeyframes:vp},"move-right":{inKeyframes:bp,outKeyframes:yp}},Cp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=xp[t];return[up(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wp=new ko("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Sp=new ko("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),kp=new ko("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ep=new ko("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Op=new ko("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$p=new ko("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Np=new ko("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Mp=new ko("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ip={"slide-up":{inKeyframes:wp,outKeyframes:Sp},"slide-down":{inKeyframes:kp,outKeyframes:Ep},"slide-left":{inKeyframes:Op,outKeyframes:$p},"slide-right":{inKeyframes:Np,outKeyframes:Mp}},Pp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Ip[t];return[up(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}}]},Lp=new ko("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jp=new ko("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ap=new ko("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Dp=new ko("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Tp=new ko("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Rp=new ko("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_p={zoom:{inKeyframes:Lp,outKeyframes:jp},"zoom-big":{inKeyframes:Ap,outKeyframes:Dp},"zoom-big-fast":{inKeyframes:Ap,outKeyframes:Dp},"zoom-left":{inKeyframes:new ko("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new ko("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new ko("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new ko("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Tp,outKeyframes:Rp},"zoom-down":{inKeyframes:new ko("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new ko("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},zp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=_p[t];return[up(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 Bp(e){return{position:e,inset:0}}const Hp=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({},Bp("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Bp("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:fp(e)}]},Fp=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:`${Yt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},qi(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Yt(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:Yt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Gi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Yt(e.borderRadiusLG)} ${Yt(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:`${Yt(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"}}}]},Wp=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Vp=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return Oi(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()})},Kp=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Yt(e.paddingMD)} ${Yt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Yt(e.padding)} ${Yt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Yt(e.paddingXS)} ${Yt(e.padding)}`:0,footerBorderTop:e.wireframe?`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Yt(2*e.padding)} ${Yt(2*e.padding)} ${Yt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var qp=Qi("Modal",(e=>{const t=Vp(e);return[Fp(t),Wp(t),Hp(t),zp(t,"zoom")]}),Kp,{unitless:{titleLineHeight:!0}}),Xp=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 Up;const Gp=e=>{Up={x:e.pageX,y:e.pageY},setTimeout((()=>{Up=null}),100)};yt()&&window.document.documentElement&&document.documentElement.addEventListener("click",Gp,!0);const Yp=t=>{var n;const{getPopupContainer:o,getPrefixCls:r,direction:i,modal:a}=e.useContext(ii),s=e=>{const{onCancel:n}=t;null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=_o("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:p,centered:f,getContainer:h,focusTriggerAfterClose:g=!0,style:m,visible:v,width:b=520,footer:y,classNames:x,styles:C,children:w,loading:S}=t,k=Xp(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),E=r("modal",l),O=r(),$=Ks(E),[N,M,I]=qp(E,$),P=A(p,{[`${E}-centered`]:!!f,[`${E}-wrap-rtl`]:"rtl"===i}),L=null===y||S?null:e.createElement(ap,Object.assign({},t,{onOk:e=>{const{onOk:n}=t;null==n||n(e)},onCancel:s})),[j,D]=Md(Ed(t),Ed(a),{closable:!0,closeIcon:e.createElement(Ms,{className:`${E}-close-icon`}),closeIconRender:e=>ip(E,e)}),T=function(t){const n=e.useContext(np),o=e.useRef();return yi((e=>{if(e){const r=t?e.querySelector(t):e;n.add(r),o.current=r}else n.remove(o.current)}))}(`.${E}-content`),[R,_]=el("Modal",k.zIndex);return N(e.createElement(kd,{form:!0,space:!0},e.createElement(Ys.Provider,{value:_},e.createElement(fu,Object.assign({width:b},k,{zIndex:R,getContainer:void 0===h?o:h,prefixCls:E,rootClassName:A(M,u,I,$),footer:L,visible:null!=d?d:v,mousePosition:null!==(n=k.mousePosition)&&void 0!==n?n:Up,onClose:s,closable:j,closeIcon:D,focusTriggerAfterClose:g,transitionName:wl(O,"zoom",t.transitionName),maskTransitionName:wl(O,"fade",t.maskTransitionName),className:A(M,c,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),x),{wrapper:A(P,null==x?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),C),panelRef:T}),S?e.createElement(ep,{active:!0,title:!1,paragraph:{rows:4},className:`${E}-body-skeleton`}):w))))},Qp=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Yt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var Zp=Ji(["Modal","confirm"],(e=>{const t=Vp(e);return[Qp(t)]}),Kp,{order:-1e3}),Jp=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 ef(t){const{prefixCls:n,icon:o,okText:r,cancelText:i,confirmPrefixCls:a,type:s,okCancel:l,footer:c,locale:u}=t,d=Jp(t,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if("production"!==process.env.NODE_ENV){const e=_o("Modal");"production"!==process.env.NODE_ENV&&e(!("string"==typeof o&&o.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`)}let p=o;if(!o&&null!==o)switch(s){case"info":p=e.createElement(Ds,null);break;case"success":p=e.createElement(Ss,null);break;case"error":p=e.createElement(Os,null);break;default:p=e.createElement(Ls,null)}const f=null!=l?l:"confirm"===s,h=null!==t.autoFocusButton&&(t.autoFocusButton||"ok"),[g]=Zo("Modal"),m=u||g,v=r||(f?null==m?void 0:m.okText:null==m?void 0:m.justOkText),b=i||(null==m?void 0:m.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:f},d),x=e.useMemo((()=>y),st(Object.values(y))),C=e.createElement(e.Fragment,null,e.createElement(Hc,null),e.createElement(Fc,null)),w=void 0!==t.title&&null!==t.title,S=`${a}-body`;return e.createElement("div",{className:`${a}-body-wrapper`},e.createElement("div",{className:A(S,{[`${S}-has-title`]:w})},p,e.createElement("div",{className:`${a}-paragraph`},w&&e.createElement("span",{className:`${a}-title`},t.title),e.createElement("div",{className:`${a}-content`},t.content))),void 0===c||"function"==typeof c?e.createElement(Bc,{value:x},e.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(C,{OkBtn:Fc,CancelBtn:Hc}):C)):c,e.createElement(Zp,{prefixCls:n}))}const tf=t=>{const{close:n,zIndex:o,afterClose:r,open:i,keyboard:a,centered:s,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:f,bodyStyle:h,closable:g=!1,closeIcon:m,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:x}=t;if("production"!==process.env.NODE_ENV){const e=_o("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const C=`${d}-confirm`,w=t.width||416,S=t.style||{},k=void 0===t.mask||t.mask,E=void 0!==t.maskClosable&&t.maskClosable,O=A(C,`${C}-${t.type}`,{[`${C}-rtl`]:"rtl"===u},t.className),[,$]=Wi(),N=e.useMemo((()=>void 0!==o?o:$.zIndexPopupBase+1e3),[o,$]);return e.createElement(Yp,{prefixCls:d,className:O,wrapClassName:A({[`${C}-centered`]:!!t.centered},p),onCancel:()=>{null==n||n({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:wl(f||"","zoom",t.transitionName),maskTransitionName:wl(f||"","fade",t.maskTransitionName),mask:k,maskClosable:E,style:S,styles:Object.assign({body:h,mask:c},x),width:w,zIndex:N,afterClose:r,keyboard:a,centered:s,getContainer:l,closable:g,closeIcon:m,modalRender:v,focusTriggerAfterClose:b},e.createElement(ef,Object.assign({},t,{confirmPrefixCls:C})))},nf=t=>{const{rootPrefixCls:n,iconPrefixCls:o,direction:r,theme:i}=t;return e.createElement(ss,{prefixCls:n,iconPrefixCls:o,direction:r,theme:i},e.createElement(tf,Object.assign({},t)))};"production"!==process.env.NODE_ENV&&(tf.displayName="ConfirmDialog",nf.displayName="ConfirmDialogWrapper");const of=[];let rf="";function af(){return rf}const sf=e=>{var n,o;const{prefixCls:i,getContainer:a,direction:s}=e,l=Yo(),c=r(ii),u=af()||c.getPrefixCls(),d=i||`${u}-modal`;let p=a;return!1===p&&(p=void 0,"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&zo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),t.createElement(nf,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=s?s:c.direction,locale:null!==(o=null===(n=c.locale)||void 0===n?void 0:n.Modal)&&void 0!==o?o:l,getContainer:p}))};function lf(e){const n={getPrefixCls:(e,t)=>t||(e?`${rs()}-${e}`:rs()),getIconPrefixCls:is,getRootPrefixCls:()=>es||rs(),getTheme:()=>ns,holderRender:os};"production"===process.env.NODE_ENV||n.holderRender||Za("Modal");const o=document.createDocumentFragment();let r,i=Object.assign(Object.assign({},e),{close:l,open:!0});function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a;r.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(st(r.slice(1)))));for(let e=0;e<of.length;e++){if(of[e]===l){of.splice(e,1);break}}gl(o)}function s(e){clearTimeout(r),r=setTimeout((()=>{const r=n.getPrefixCls(void 0,af()),i=n.getIconPrefixCls(),a=n.getTheme(),s=t.createElement(sf,Object.assign({},e));dl(t.createElement(ss,{prefixCls:r,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(s):s),o)}))}function l(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,s(i)}return s(i),of.push(l),{destroy:l,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),s(i)}}}function cf(e){return Object.assign(Object.assign({},e),{type:"warning"})}function uf(e){return Object.assign(Object.assign({},e),{type:"info"})}function df(e){return Object.assign(Object.assign({},e),{type:"success"})}function pf(e){return Object.assign(Object.assign({},e),{type:"error"})}function ff(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var hf=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 gf=(t,n)=>{var o,{afterClose:r,config:i}=t,a=hf(t,["afterClose","config"]);const[s,l]=e.useState(!0),[c,u]=e.useState(i),{direction:d,getPrefixCls:p}=e.useContext(ii),f=p("modal"),h=p(),g=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=c.onCancel)||void 0===e||(r=e).call.apply(r,[c,()=>{}].concat(st(n.slice(1)))))};e.useImperativeHandle(n,(()=>({destroy:g,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(o=c.okCancel)&&void 0!==o?o:"confirm"===c.type,[v]=Zo("Modal",qo.Modal);return e.createElement(nf,Object.assign({prefixCls:f,rootPrefixCls:h},c,{close:g,open:s,afterClose:()=>{var e;r(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(m?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:c.direction||d,cancelText:c.cancelText||(null==v?void 0:v.cancelText)},a))};var mf=e.forwardRef(gf);let vf=0;const bf=e.memo(e.forwardRef(((t,n)=>{const[o,r]=function(){const[t,n]=e.useState([]);return[t,e.useCallback((e=>(n((t=>[].concat(st(t),[e]))),()=>{n((t=>t.filter((t=>t!==e))))})),[])]}();return e.useImperativeHandle(n,(()=>({patchElement:r})),[]),e.createElement(e.Fragment,null,o)})));function yf(t){return n=>e.createElement(ss,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}const xf=(t,n,o,r)=>yf((i=>{const{prefixCls:a,style:s}=i,l=e.useRef(null),[c,u]=e.useState(0),[d,p]=e.useState(0),[f,h]=wi(!1,{value:i.open}),{getPrefixCls:g}=e.useContext(ii),m=g(n||"select",a);e.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((()=>{var n;const r=o?`.${o(m)}`:`.${m}-dropdown`,i=null===(n=l.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:f,visible:f,getPopupContainer:()=>l.current});r&&(v=r(v));const b={paddingBottom:c,position:"relative",minWidth:d};return e.createElement("div",{ref:l,style:b},e.createElement(t,Object.assign({},v)))}));var Cf=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))},wf=function(t){var n=t.className,o=t.customizeIcon,r=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l="function"==typeof o?o(r):o;return e.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==l?l:e.createElement("span",{className:A(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},Sf=e.createContext(null);function kf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=e.useRef(null),o=e.useRef(null);return e.useEffect((function(){return function(){window.clearTimeout(o.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(o.current),o.current=window.setTimeout((function(){n.current=null}),t)}]}var Ef=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Of=void 0;function $f(t,n){var o=t.prefixCls,r=t.invalidate,i=t.item,a=t.renderItem,s=t.responsive,l=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,p=t.style,f=t.children,h=t.display,g=t.order,m=t.component,v=void 0===m?"div":m,b=Pt(t,Ef),y=s&&!h;function x(e){c(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var C,w=a&&i!==Of?a(i,{index:g}):f;r||(C={opacity:y?0:1,height:y?0:Of,overflowY:y?"hidden":Of,order:s?g:Of,pointerEvents:y?"none":Of,position:y?"absolute":Of});var S={};y&&(S["aria-hidden"]=!0);var k=e.createElement(v,D({className:A(!r&&o,d),style:J(J({},C),p)},S,b,{ref:n}),w);return s&&(k=e.createElement(nt,{onResize:function(e){x(e.offsetWidth)},disabled:l},k)),k}var Nf=e.forwardRef($f);function Mf(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"==typeof MessageChannel)ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){w((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}}function If(t,n){var o=vt(e.useState(n),2),r=o[0],i=o[1];return[r,yi((function(e){t((function(){i(e)}))}))]}Nf.displayName="Item";var Pf=t.createContext(null),Lf=["component"],jf=["className"],Af=["className"],Df=function(t,n){var o=e.useContext(Pf);if(!o){var r=t.component,i=void 0===r?"div":r,a=Pt(t,Lf);return e.createElement(i,D({},a,{ref:n}))}var s=o.className,l=Pt(o,jf),c=t.className,u=Pt(t,Af);return e.createElement(Pf.Provider,{value:null},e.createElement(Nf,D({ref:n,className:A(s,c)},l,u)))},Tf=e.forwardRef(Df);Tf.displayName="RawItem";var Rf=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_f="responsive",zf="invalidate";function Bf(e){return"+ ".concat(e.length," ...")}function Hf(t,n){var o=t.prefixCls,r=void 0===o?"rc-overflow":o,i=t.data,a=void 0===i?[]:i,s=t.renderItem,l=t.renderRawItem,c=t.itemKey,p=t.itemWidth,f=void 0===p?10:p,g=t.ssr,m=t.style,v=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,C=t.suffix,w=t.component,S=void 0===w?"div":w,k=t.itemComponent,E=t.onVisibleChange,O=Pt(t,Rf),$="full"===g,N=Mf(),M=vt(If(N,null),2),I=M[0],P=M[1],L=I||0,j=vt(If(N,new Map),2),T=j[0],R=j[1],_=vt(If(N,0),2),z=_[0],B=_[1],H=vt(If(N,0),2),F=H[0],W=H[1],V=vt(If(N,0),2),K=V[0],q=V[1],X=vt(d(null),2),U=X[0],G=X[1],Y=vt(d(null),2),Q=Y[0],Z=Y[1],ee=e.useMemo((function(){return null===Q&&$?Number.MAX_SAFE_INTEGER:Q||0}),[Q,I]),te=vt(d(!1),2),ne=te[0],oe=te[1],re="".concat(r,"-item"),ie=Math.max(z,F),ae=b===_f,se=a.length&&ae,le=b===zf,ce=se||"number"==typeof b&&a.length>b,ue=u((function(){var e=a;return se?e=null===I&&$?a:a.slice(0,Math.min(a.length,L/f)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,f,I,b,se]),de=u((function(){return se?a.slice(ee+1):a.slice(ue.length)}),[a,ue,se,ee]),pe=h((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),fe=h(s||function(e){return e},[s]);function he(e,t,n){(Q!==e||void 0!==t&&t!==U)&&(Z(e),n||(oe(e<a.length-1),null==E||E(e)),void 0!==t&&G(t))}function ge(e,t){R((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function me(e){return T.get(pe(ue[e],e))}nn((function(){if(L&&"number"==typeof ie&&ue){var e=K,t=ue.length,n=t-1;if(!t)return void he(0,null);for(var o=0;o<t;o+=1){var r=me(o);if($&&(r=r||0),void 0===r){he(o-1,void 0,!0);break}if(e+=r,0===n&&e<=L||o===n-1&&e+me(n)<=L){he(n,null);break}if(e+ie>L){he(o-1,e-r-K+F);break}}C&&me(0)+K>L&&G(null)}}),[L,T,F,K,pe,ue]);var ve=ne&&!!de.length,be={};null!==U&&se&&(be={position:"absolute",left:U,top:0});var ye={prefixCls:re,responsive:se,component:k,invalidate:le},xe=l?function(t,n){var o=pe(t,n);return e.createElement(Pf.Provider,{key:o,value:J(J({},ye),{},{order:n,item:t,itemKey:o,registerSize:ge,display:n<=ee})},l(t,n))}:function(t,n){var o=pe(t,n);return e.createElement(Nf,D({},ye,{order:n,key:o,item:t,renderItem:fe,itemKey:o,registerSize:ge,display:n<=ee}))},Ce={order:ve?ee:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){W(t),B(F)},display:ve},we=y||Bf,Se=x?e.createElement(Pf.Provider,{value:J(J({},ye),Ce)},x(de)):e.createElement(Nf,D({},ye,Ce),"function"==typeof we?we(de):we),ke=e.createElement(S,D({className:A(!le&&r,v),style:m,ref:n},O),ue.map(xe),ce?Se:null,C&&e.createElement(Nf,D({},ye,{responsive:ae,responsiveDisabled:!se,order:ee,className:"".concat(re,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:be}),C));return ae?e.createElement(nt,{onResize:function(e,t){P(t.clientWidth)},disabled:!se},ke):ke}var Ff=e.forwardRef(Hf);Ff.displayName="Overflow",Ff.Item=Tf,Ff.RESPONSIVE=_f,Ff.INVALIDATE=zf;var Wf=function(t,n){var o,r=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,p=t.activeDescendantId,f=t.value,h=t.maxLength,g=t.onKeyDown,m=t.onMouseDown,v=t.onChange,b=t.onPaste,y=t.onCompositionStart,x=t.onCompositionEnd,C=t.open,w=t.attrs,S=a||e.createElement("input",null),k=S,E=k.ref,O=k.props,$=O.onKeyDown,N=O.onChange,M=O.onMouseDown,I=O.onCompositionStart,P=O.onCompositionEnd,L=O.style;return V(!("maxLength"in S.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),S=e.cloneElement(S,J(J(J({type:"search"},O),{},{id:i,ref:de(n,E),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:A("".concat(r,"-selection-search-input"),null===(o=S)||void 0===o||null===(o=o.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?p:void 0},w),{},{value:d?f:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:J(J({},L),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),$&&$(e)},onMouseDown:function(e){m(e),M&&M(e)},onChange:function(e){v(e),N&&N(e)},onCompositionStart:function(e){y(e),I&&I(e)},onCompositionEnd:function(e){x(e),P&&P(e)},onPaste:b}))},Vf=e.forwardRef(Wf);function Kf(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"production"!==process.env.NODE_ENV&&(Vf.displayName="Input");var qf="undefined"!=typeof window&&window.document&&window.document.documentElement,Xf="test"!==process.env.NODE_ENV&&qf;function Uf(e){return["string","number"].includes(T(e))}function Gf(e){var t=void 0;return e&&(Uf(e.title)?t=e.title.toString():Uf(e.label)&&(t=e.label.toString())),t}function Yf(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Qf=function(e){e.preventDefault(),e.stopPropagation()},Zf=function(t){var n,o,r=t.id,i=t.prefixCls,a=t.values,s=t.open,l=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,p=t.placeholder,f=t.disabled,h=t.mode,g=t.showSearch,m=t.autoFocus,v=t.autoComplete,b=t.activeDescendantId,y=t.tabIndex,x=t.removeIcon,C=t.maxTagCount,w=t.maxTagTextLength,S=t.maxTagPlaceholder,k=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,E=t.tagRender,O=t.onToggleOpen,$=t.onRemove,N=t.onInputChange,M=t.onInputPaste,I=t.onInputKeyDown,P=t.onInputMouseDown,L=t.onInputCompositionStart,j=t.onInputCompositionEnd,D=e.useRef(null),T=vt(d(0),2),R=T[0],_=T[1],z=vt(d(!1),2),B=z[0],H=z[1],F="".concat(i,"-selection"),W=s||"multiple"===h&&!1===c||"tags"===h?l:"",V="tags"===h||"multiple"===h&&!1===c||g&&(s||B);n=function(){_(D.current.scrollWidth)},o=[W],Xf?e.useLayoutEffect(n,o):e.useEffect(n,o);var K=function(t,n,o,r,i){return e.createElement("span",{title:Gf(t),className:A("".concat(F,"-item"),Q({},"".concat(F,"-item-disabled"),o))},e.createElement("span",{className:"".concat(F,"-item-content")},n),r&&e.createElement(wf,{className:"".concat(F,"-item-remove"),onMouseDown:Qf,onClick:i,customizeIcon:x},"×"))},q=function(t,n,o,r,i,a){return e.createElement("span",{onMouseDown:function(e){Qf(e),O(!s)}},E({label:n,value:t,disabled:o,closable:r,onClose:i,isMaxTag:!!a}))},X=e.createElement("div",{className:"".concat(F,"-search"),style:{width:R},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},e.createElement(Vf,{ref:u,open:s,prefixCls:i,id:r,inputElement:null,disabled:f,autoFocus:m,autoComplete:v,editable:V,activeDescendantId:b,value:W,onKeyDown:I,onMouseDown:P,onChange:N,onPaste:M,onCompositionStart:L,onCompositionEnd:j,tabIndex:y,attrs:_s(t,!0)}),e.createElement("span",{ref:D,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},W," ")),U=e.createElement(Ff,{prefixCls:"".concat(F,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!f&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var s=function(t){t&&t.stopPropagation(),$(e)};return"function"==typeof E?q(o,i,t,r,s):K(e,i,t,r,s)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof E?q(void 0,t,!1,!1,void 0,!0):K({title:t},t,!1)},suffix:X,itemKey:Yf,maxCount:C});return e.createElement(e.Fragment,null,U,!a.length&&!W&&e.createElement("span",{className:"".concat(F,"-placeholder")},p))},Jf=function(t){var n=t.inputElement,o=t.prefixCls,r=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,p=t.values,f=t.placeholder,h=t.tabIndex,g=t.showSearch,m=t.searchValue,v=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,C=t.onInputChange,w=t.onInputPaste,S=t.onInputCompositionStart,k=t.onInputCompositionEnd,E=t.title,O=vt(e.useState(!1),2),$=O[0],N=O[1],M="combobox"===u,I=M||g,P=p[0],L=m||"";M&&v&&!$&&(L=v),e.useEffect((function(){M&&N(!1)}),[M,v]);var j=!("combobox"!==u&&!d&&!g)&&!!L,A=void 0===E?Gf(P):E,D=e.useMemo((function(){return P?null:e.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},f)}),[P,j,f,o]);return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(o,"-selection-search")},e.createElement(Vf,{ref:i,prefixCls:o,id:r,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:I,activeDescendantId:c,value:L,onKeyDown:y,onMouseDown:x,onChange:function(e){N(!0),C(e)},onPaste:w,onCompositionStart:S,onCompositionEnd:k,tabIndex:h,attrs:_s(t,!0),maxLength:M?b:void 0})),!M&&P?e.createElement("span",{className:"".concat(o,"-selection-item"),title:A,style:j?{visibility:"hidden"}:void 0},P.label):null,D)},eh=function(t,n){var o=a(null),r=a(!1),i=t.prefixCls,s=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,p=t.autoClearSearchValue,f=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,m=t.onInputKeyDown,v=t.domRef;e.useImperativeHandle(n,(function(){return{focus:function(e){o.current.focus(e)},blur:function(){o.current.blur()}}}));var b=vt(kf(0),2),y=b[0],x=b[1],C=a(null),w=function(e){!1!==f(e,!0,r.current)&&g(!0)},S={inputRef:o,onInputKeyDown:function(e){var t,n=e.which;n!==qs.UP&&n!==qs.DOWN||e.preventDefault(),m&&m(e),n!==qs.ENTER||"tags"!==l||r.current||s||null==h||h(e.target.value),t=n,[qs.ESC,qs.SHIFT,qs.BACKSPACE,qs.TAB,qs.WIN_KEY,qs.ALT,qs.META,qs.WIN_KEY_RIGHT,qs.CTRL,qs.SEMICOLON,qs.EQUALS,qs.CAPS_LOCK,qs.CONTEXT_MENU,qs.F1,qs.F2,qs.F3,qs.F4,qs.F5,qs.F6,qs.F7,qs.F8,qs.F9,qs.F10,qs.F11,qs.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");C.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&w(e.target.value)}},k="multiple"===l||"tags"===l?e.createElement(Zf,D({},t,S)):e.createElement(Jf,D({},t,S));return e.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){o.current.focus()})):o.current.focus())},onMouseDown:function(e){var t=y();e.target===o.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==p&&f("",!0,!1),g())}},k)},th=e.forwardRef(eh);function nh(t){var n=t.prefixCls,o=t.align,r=t.arrow,i=t.arrowPos,a=r||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,p=void 0===d?0:d,f=e.useRef();if(!o||!o.points)return null;var h={position:"absolute"};if(!1!==o.autoArrow){var g=o.points[0],m=o.points[1],v=g[0],b=g[1],y=m[0],x=m[1];v!==y&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=p,b!==x&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return e.createElement("div",{ref:f,className:A("".concat(n,"-arrow"),s),style:h},l)}function oh(t){var n=t.prefixCls,o=t.open,r=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Ra,D({},a,{motionAppear:!0,visible:o,removeOnLeave:!0}),(function(t){var o=t.className;return e.createElement("div",{style:{zIndex:r},className:A("".concat(n,"-mask"),o)})})):null}"production"!==process.env.NODE_ENV&&(th.displayName="Selector");var rh=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(rh.displayName="PopupContent");var ih=e.forwardRef((function(t,n){var o=t.popup,r=t.className,i=t.prefixCls,a=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,p=t.onClick,f=t.mask,h=t.arrow,g=t.arrowPos,m=t.align,v=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,C=t.autoDestroy,w=t.portal,S=t.zIndex,k=t.onMouseEnter,E=t.onMouseLeave,O=t.onPointerEnter,$=t.onPointerDownCapture,N=t.ready,M=t.offsetX,I=t.offsetY,P=t.offsetR,L=t.offsetB,j=t.onAlign,T=t.onPrepare,R=t.stretch,_=t.targetWidth,z=t.targetHeight,B="function"==typeof o?o():o,H=c||u,F=(null==x?void 0:x.length)>0,W=vt(e.useState(!x||!F),2),V=W[0],K=W[1];if(nn((function(){!V&&F&&s&&K(!0)}),[V,F,s]),!V)return null;var q="auto",X={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(N||!c){var U,G=m.points,Y=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),Q=Y&&"r"===G[0][1],Z=Y&&"b"===G[0][0];Q?(X.right=P,X.left=q):(X.left=M,X.right=q),Z?(X.bottom=L,X.top=q):(X.top=I,X.bottom=q)}var ee={};return R&&(R.includes("height")&&z?ee.height=z:R.includes("minHeight")&&z&&(ee.minHeight=z),R.includes("width")&&_?ee.width=_:R.includes("minWidth")&&_&&(ee.minWidth=_)),c||(ee.pointerEvents="none"),e.createElement(w,{open:y||H,getContainer:x&&function(){return x(s)},autoDestroy:C},e.createElement(oh,{prefixCls:i,open:c,zIndex:S,mask:f,motion:b}),e.createElement(nt,{onResize:j,disabled:!c},(function(t){return e.createElement(Ra,D({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:T,onEnterPrepare:T,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(o,s){var l=o.className,u=o.style,f=A(i,l,r);return e.createElement("div",{ref:de(t,n,s),className:f,style:J(J(J(J({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),ee),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:E,onPointerEnter:O,onClick:p,onPointerDownCapture:$},h&&e.createElement(nh,{prefixCls:i,arrow:h,arrowPos:g,align:m}),e.createElement(rh,{cache:!c&&!d},B))}))})))}));"production"!==process.env.NODE_ENV&&(ih.displayName="Popup");var ah=e.forwardRef((function(t,n){var o=t.children,r=t.getTriggerDOMNode,i=fe(o),a=e.useCallback((function(e){ue(n,r?r(e):e)}),[r]),s=pe(a,ge(o));return i?e.cloneElement(o,{ref:s}):o}));"production"!==process.env.NODE_ENV&&(ah.displayName="TriggerWrapper");var sh=e.createContext(null);function lh(e){return e?Array.isArray(e)?e:[e]:[]}function ch(){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 uh(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function dh(e){return e.ownerDocument.defaultView}function ph(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=dh(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 fh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function hh(e){return fh(parseFloat(e),0)}function gh(e,t){var n=J({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=dh(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,p=e.offsetWidth,f=e.clientWidth,h=hh(i),g=hh(a),m=hh(s),v=hh(l),b=fh(Math.round(c.width/p*1e3)/1e3),y=fh(Math.round(c.height/u*1e3)/1e3),x=(p-f-m-v)*b,C=(u-d-h-g)*y,w=h*y,S=g*y,k=m*b,E=v*b,O=0,$=0;if("clip"===o){var N=hh(r);O=N*b,$=N*y}var M=c.x+k-O,I=c.y+w-$,P=M+c.width+2*O-k-E-x,L=I+c.height+2*$-w-S-C;n.left=Math.max(n.left,M),n.top=Math.max(n.top,I),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,L)}})),n}function mh(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 vh(e,t){var n=vt(t||[],2),o=n[0],r=n[1];return[mh(e.width,o),mh(e.height,r)]}function bh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function yh(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 xh(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 Ch=["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 wh=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc,n=e.forwardRef((function(n,o){var r=n.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=n.children,s=n.action,l=void 0===s?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,p=n.defaultPopupVisible,f=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,v=void 0===m?.1:m,b=n.focusDelay,y=n.blurDelay,x=n.mask,C=n.maskClosable,w=void 0===C||C,S=n.getPopupContainer,k=n.forceRender,E=n.autoDestroy,O=n.destroyPopupOnHide,$=n.popup,N=n.popupClassName,M=n.popupStyle,I=n.popupPlacement,P=n.builtinPlacements,L=void 0===P?{}:P,j=n.popupAlign,D=n.zIndex,T=n.stretch,R=n.getPopupClassNameFromAlign,_=n.fresh,z=n.alignPoint,B=n.onPopupClick,H=n.onPopupAlign,F=n.arrow,W=n.popupMotion,K=n.maskMotion,q=n.popupTransitionName,X=n.popupAnimation,U=n.maskTransitionName,G=n.maskAnimation,Y=n.className,Q=n.getTriggerDOMNode,Z=Pt(n,Ch),te=E||O||!1,ne=vt(e.useState(!1),2),oe=ne[0],re=ne[1];nn((function(){re(Cf())}),[]);var ie=e.useRef({}),ae=e.useContext(sh),se=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=ou(),ce=vt(e.useState(null),2),ue=ce[0],de=ce[1],pe=e.useRef(null),fe=yi((function(e){pe.current=e,ee(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),he=vt(e.useState(null),2),ge=he[0],me=he[1],ve=e.useRef(null),be=yi((function(e){ee(e)&&ge!==e&&(me(e),ve.current=e)})),ye=e.Children.only(a),xe=(null==ye?void 0:ye.props)||{},Ce={},we=yi((function(e){var t,n,o=ge;return(null==o?void 0:o.contains(e))||(null===(t=us(o))||void 0===t?void 0:t.host)===e||e===o||(null==ue?void 0:ue.contains(e))||(null===(n=us(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=uh(i,W,X,q),ke=uh(i,K,G,U),Ee=vt(e.useState(p||!1),2),Oe=Ee[0],$e=Ee[1],Ne=null!=d?d:Oe,Me=yi((function(e){void 0===d&&$e(e)}));nn((function(){$e(d||!1)}),[d]);var Ie=e.useRef(Ne);Ie.current=Ne;var Pe=e.useRef([]);Pe.current=[];var Le=yi((function(e){var t;Me(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Ne)!==e&&(Pe.current.push(e),null==f||f(e))})),je=e.useRef(),Ae=function(){clearTimeout(je.current)},De=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ae(),0===t?Le(e):je.current=setTimeout((function(){Le(e)}),1e3*t)};e.useEffect((function(){return Ae}),[]);var Te=vt(e.useState(!1),2),Re=Te[0],_e=Te[1];nn((function(e){e&&!Ne||_e(!0)}),[Ne]);var ze=vt(e.useState(null),2),Be=ze[0],He=ze[1],Fe=vt(e.useState(null),2),We=Fe[0],Ve=Fe[1],Ke=function(e){Ve([e.clientX,e.clientY])},qe=function(t,n,o,r,i,a,s){var l=vt(e.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=e.useRef(0),p=e.useMemo((function(){return n?ph(n):[]}),[n]),f=e.useRef({});t||(f.current={});var h=yi((function(){if(n&&o&&t){var e,l,c,d,h,g=n,m=g.ownerDocument,v=dh(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,C=g.style.left,w=g.style.top,S=g.style.right,k=g.style.bottom,E=g.style.overflow,O=J(J({},i[r]),a),$=m.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.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(o))h={x:o[0],y:o[1],width:0,height:0};else{var N,M,I=o.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(M=I.y)&&void 0!==M?M:I.top,h={x:I.x,y:I.y,width:I.width,height:I.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 L=m.documentElement,j=L.clientWidth,A=L.clientHeight,D=L.scrollWidth,T=L.scrollHeight,R=L.scrollTop,_=L.scrollLeft,z=P.height,B=P.width,H=h.height,F=h.width,W={left:0,top:0,right:j,bottom:A},V={left:-_,top:-R,right:D-_,bottom:T-R},K=O.htmlRegion,q="visible",X="visibleFirst";"scroll"!==K&&K!==X&&(K=q);var U=K===X,G=gh(V,p),Y=gh(W,p),Q=K===q?Y:G,Z=U?Y:Q;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=C,g.style.top=w,g.style.right=S,g.style.bottom=k,g.style.overflow=E,null===(d=g.parentElement)||void 0===d||d.removeChild($);var ne=fh(Math.round(B/parseFloat(b)*1e3)/1e3),oe=fh(Math.round(z/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||ee(o)&&!Sl(o))return;var re=O.offset,ie=O.targetOffset,ae=vt(vh(P,re),2),se=ae[0],le=ae[1],ce=vt(vh(h,ie),2),ue=ce[0],de=ce[1];h.x-=ue,h.y-=de;var pe=vt(O.points||[],2),fe=pe[0],he=bh(pe[1]),ge=bh(fe),me=yh(h,he),ve=yh(P,ge),be=J({},O),ye=me.x-ve.x+se,xe=me.y-ve.y+le;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,o=P.x+e,r=P.y+t,i=o+B,a=r+z,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 Ce,we,Se,ke,Ee=ft(ye,xe),Oe=ft(ye,xe,Y),$e=yh(h,["t","l"]),Ne=yh(P,["t","l"]),Me=yh(h,["b","r"]),Ie=yh(P,["b","r"]),Pe=O.overflow||{},Le=Pe.adjustX,je=Pe.adjustY,Ae=Pe.shiftX,De=Pe.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function ht(){Ce=P.y+xe,we=Ce+z,Se=P.x+ye,ke=Se+B}ht();var Re=Te(je),_e=ge[0]===he[0];if(Re&&"t"===ge[0]&&(we>Z.bottom||f.current.bt)){var ze=xe;_e?ze-=z-H:ze=$e.y-Ie.y-le;var Be=ft(ye,ze),He=ft(ye,ze,Y);Be>Ee||Be===Ee&&(!U||He>=Oe)?(f.current.bt=!0,xe=ze,le=-le,be.points=[xh(ge,0),xh(he,0)]):f.current.bt=!1}if(Re&&"b"===ge[0]&&(Ce<Z.top||f.current.tb)){var Fe=xe;_e?Fe+=z-H:Fe=Me.y-Ne.y-le;var We=ft(ye,Fe),Ve=ft(ye,Fe,Y);We>Ee||We===Ee&&(!U||Ve>=Oe)?(f.current.tb=!0,xe=Fe,le=-le,be.points=[xh(ge,0),xh(he,0)]):f.current.tb=!1}var Ke=Te(Le),qe=ge[1]===he[1];if(Ke&&"l"===ge[1]&&(ke>Z.right||f.current.rl)){var Xe=ye;qe?Xe-=B-F:Xe=$e.x-Ie.x-se;var Ue=ft(Xe,xe),Ge=ft(Xe,xe,Y);Ue>Ee||Ue===Ee&&(!U||Ge>=Oe)?(f.current.rl=!0,ye=Xe,se=-se,be.points=[xh(ge,1),xh(he,1)]):f.current.rl=!1}if(Ke&&"r"===ge[1]&&(Se<Z.left||f.current.lr)){var Ye=ye;qe?Ye+=B-F:Ye=Me.x-Ne.x-se;var Qe=ft(Ye,xe),Ze=ft(Ye,xe,Y);Qe>Ee||Qe===Ee&&(!U||Ze>=Oe)?(f.current.lr=!0,ye=Ye,se=-se,be.points=[xh(ge,1),xh(he,1)]):f.current.lr=!1}ht();var Je=!0===Ae?0:Ae;"number"==typeof Je&&(Se<Y.left&&(ye-=Se-Y.left-se,h.x+F<Y.left+Je&&(ye+=h.x-Y.left+F-Je)),ke>Y.right&&(ye-=ke-Y.right-se,h.x>Y.right-Je&&(ye+=h.x-Y.right+Je)));var et=!0===De?0:De;"number"==typeof et&&(Ce<Y.top&&(xe-=Ce-Y.top-le,h.y+H<Y.top+et&&(xe+=h.y-Y.top+H-et)),we>Y.bottom&&(xe-=we-Y.bottom-le,h.y>Y.bottom-et&&(xe+=h.y-Y.bottom+et)));var tt=P.x+ye,nt=tt+B,ot=P.y+xe,rt=ot+z,it=h.x,at=it+F,st=h.y,lt=st+H,ct=(Math.max(tt,it)+Math.min(nt,at))/2-tt,ut=(Math.max(ot,st)+Math.min(rt,lt))/2-ot;null==s||s(n,be);var dt=te.right-P.x-(ye+P.width),pt=te.bottom-P.y-(xe+P.height);1===ne&&(ye=Math.round(ye),dt=Math.round(dt)),1===oe&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:xe/oe,offsetR:dt/ne,offsetB:pt/oe,arrowX:ct/ne,arrowY:ut/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return J(J({},e),{},{ready:!1})}))};return nn(g,[r]),nn((function(){t||g()}),[t]),[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&&h()}))}]}(Ne,ue,z&&null!==We?We:ge,I,L,j,H),Xe=vt(qe,11),Ue=Xe[0],Ge=Xe[1],Ye=Xe[2],Qe=Xe[3],Ze=Xe[4],Je=Xe[5],et=Xe[6],tt=Xe[7],ot=Xe[8],rt=Xe[9],it=Xe[10],at=function(t,n,o,r){return e.useMemo((function(){var e=lh(null!=o?o:n),i=lh(null!=r?r:n),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,n,o,r])}(oe,l,c,u),lt=vt(at,2),ct=lt[0],ut=lt[1],dt=ct.has("click"),pt=ut.has("click")||ut.has("contextMenu"),ft=yi((function(){Re||it()}));!function(e,t,n,o,r){nn((function(){if(e&&t&&n){var i=n,a=ph(t),s=ph(i),l=dh(i),c=new Set([l].concat(st(a),st(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,ft,(function(){Ie.current&&z&&pt&&De(!1)})),nn((function(){ft()}),[We,I]),nn((function(){!Ne||null!=L&&L[I]||ft()}),[JSON.stringify(j)]);var ht=e.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(ch(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(L,i,rt,z);return A(e,null==R?void 0:R(rt))}),[rt,R,L,i,z]);e.useImperativeHandle(o,(function(){return{nativeElement:ve.current,popupElement:pe.current,forceAlign:ft}}));var gt=vt(e.useState(0),2),mt=gt[0],bt=gt[1],yt=vt(e.useState(0),2),xt=yt[0],Ct=yt[1],wt=function(){if(T&&ge){var e=ge.getBoundingClientRect();bt(e.width),Ct(e.height)}};function St(e,t,n,o){Ce[e]=function(r){var i;null==o||o(r),De(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))}}nn((function(){Be&&(it(),Be(),He(null))}),[Be]),(dt||pt)&&(Ce.onClick=function(e){var t;Ie.current&&pt?De(!1):!Ie.current&&dt&&(Ke(e),De(!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))});var kt,Et,Ot=function(t,n,o,r,i,a,s,l){var c=e.useRef(t);c.current=t;var u=e.useRef(!1);return e.useEffect((function(){if(n&&r&&(!i||a)){var e=function(){u.current=!1},t=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)||u.current||l(!1)},d=dh(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",t,!0),d.addEventListener("contextmenu",t,!0);var p,f,h=us(o);return h&&(h.addEventListener("mousedown",t,!0),h.addEventListener("contextmenu",t,!0)),"production"!==process.env.NODE_ENV&&V((null==o||null===(p=o.getRootNode)||void 0===p?void 0:p.call(o))===(null===(f=r.getRootNode)||void 0===f?void 0:f.call(r)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",t,!0),d.removeEventListener("contextmenu",t,!0),h&&(h.removeEventListener("mousedown",t,!0),h.removeEventListener("contextmenu",t,!0))}}}),[n,o,r,i,a]),function(){u.current=!0}}(Ne,pt,ge,ue,x,w,we,De),$t=ct.has("hover"),Nt=ut.has("hover");$t&&(St("onMouseEnter",!0,g,(function(e){Ke(e)})),St("onPointerEnter",!0,g,(function(e){Ke(e)})),kt=function(e){(Ne||Re)&&null!=ue&&ue.contains(e.target)&&De(!0,g)},z&&(Ce.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Nt&&(St("onMouseLeave",!1,v),St("onPointerLeave",!1,v),Et=function(){De(!1,v)}),ct.has("focus")&&St("onFocus",!0,b),ut.has("focus")&&St("onBlur",!1,y),ct.has("contextMenu")&&(Ce.onContextMenu=function(e){var t;Ie.current&&ut.has("contextMenu")?De(!1):(Ke(e),De(!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))}),Y&&(Ce.className=A(xe.className,Y));var Mt=J(J({},xe),Ce),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Z[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=Mt[e])||void 0===t||t.call.apply(t,[Mt].concat(o)),Z[e].apply(Z,o)})}));var Lt=e.cloneElement(ye,J(J({},Mt),It)),jt={x:Je,y:et},At=F?J({},!0!==F?F:{}):null;return e.createElement(e.Fragment,null,e.createElement(nt,{disabled:!Ne,ref:be,onResize:function(){wt(),ft()}},e.createElement(ah,{getTriggerDOMNode:Q},Lt)),e.createElement(sh.Provider,{value:se},e.createElement(ih,{portal:t,ref:fe,prefixCls:i,popup:$,className:A(N,ht),style:M,target:ge,onMouseEnter:kt,onMouseLeave:Et,onPointerEnter:kt,zIndex:D,open:Ne,keepDom:Re,fresh:_,onClick:B,onPointerDownCapture:Ot,mask:x,motion:Se,maskMotion:ke,onVisibleChanged:function(e){_e(!1),it(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){wt(),He((function(){return e}))}))},forceRender:k,autoDestroy:te,getPopupContainer:S,align:rt,arrow:At,arrowPos:jt,ready:Ue,offsetX:Ge,offsetY:Ye,offsetR:Qe,offsetB:Ze,onAlign:ft,stretch:T,targetWidth:mt/tt,targetHeight:xt/ot})))}));return"production"!==process.env.NODE_ENV&&(n.displayName="Trigger"),n}(Jc),Sh=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],kh=function(t,n){var o=t.prefixCls;t.disabled;var r=t.visible,i=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,p=void 0===d?"ltr":d,f=t.placement,h=t.builtinPlacements,g=t.dropdownMatchSelectWidth,m=t.dropdownRender,v=t.dropdownAlign,b=t.getPopupContainer,y=t.empty,x=t.getTriggerDOMNode,C=t.onPopupVisibleChange,w=t.onPopupMouseEnter,S=Pt(t,Sh),k="".concat(o,"-dropdown"),E=a;m&&(E=m(a));var O=e.useMemo((function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)}),[h,g]),$=s?"".concat(k,"-").concat(s):l,N="number"==typeof g,M=e.useMemo((function(){return N?null:!1===g?"minWidth":"width"}),[g,N]),I=c;N&&(I=J(J({},I),{},{width:g}));var P=e.useRef(null);return e.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=P.current)||void 0===e?void 0:e.popupElement}}})),e.createElement(wh,D({},S,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:f||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:k,popupTransitionName:$,popup:e.createElement("div",{onMouseEnter:w},E),ref:P,stretch:M,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:A(u,Q({},"".concat(k,"-empty"),y)),popupStyle:I,getTriggerDOMNode:x,onPopupVisibleChange:C}),i)},Eh=e.forwardRef(kh);function Oh(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function $h(e){return void 0!==e&&!Number.isNaN(e)}function Nh(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function Mh(e){var t=J({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return U(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}"production"!==process.env.NODE_ENV&&(Eh.displayName="SelectTrigger");var Ih=e.createContext(null);function Ph(t){var n=t.visible,o=t.values;if(!n)return null;return e.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(o.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(T(t))?t:n})).join(", ")),o.length>50?", ...":null)}var Lh=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],jh=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ah=function(e){return"tags"===e||"multiple"===e},Dh=e.forwardRef((function(n,o){var r,i=n.id,a=n.prefixCls,s=n.className,l=n.showSearch,c=n.tagRender,u=n.direction,d=n.omitDomProps,p=n.displayValues,f=n.onDisplayValuesChange,h=n.emptyOptions,g=n.notFoundContent,m=void 0===g?"Not Found":g,v=n.onClear,b=n.mode,y=n.disabled,x=n.loading,C=n.getInputElement,w=n.getRawInputElement,S=n.open,k=n.defaultOpen,E=n.onDropdownVisibleChange,O=n.activeValue,$=n.onActiveValueChange,N=n.activeDescendantId,M=n.searchValue,I=n.autoClearSearchValue,P=n.onSearch,L=n.onSearchSplit,j=n.tokenSeparators,R=n.allowClear,_=n.suffixIcon,z=n.clearIcon,B=n.OptionList,H=n.animation,F=n.transitionName,W=n.dropdownStyle,V=n.dropdownClassName,K=n.dropdownMatchSelectWidth,q=n.dropdownRender,X=n.dropdownAlign,U=n.placement,G=n.builtinPlacements,Y=n.getPopupContainer,Z=n.showAction,ee=void 0===Z?[]:Z,te=n.onFocus,ne=n.onBlur,oe=n.onKeyUp,re=n.onKeyDown,ie=n.onMouseDown,ae=Pt(n,Lh),se=Ah(b),le=(void 0!==l?l:se)||"combobox"===b,ce=J({},ae);jh.forEach((function(e){delete ce[e]})),null==d||d.forEach((function(e){delete ce[e]}));var ue=vt(e.useState(!1),2),de=ue[0],fe=ue[1];e.useEffect((function(){fe(Cf())}),[]);var he=e.useRef(null),ge=e.useRef(null),me=e.useRef(null),ve=e.useRef(null),be=e.useRef(null),ye=e.useRef(!1),xe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=vt(e.useState(!1),2),o=n[0],r=n[1],i=e.useRef(null),a=function(){window.clearTimeout(i.current)};return e.useEffect((function(){return a}),[]),[o,function(e,n){a(),i.current=window.setTimeout((function(){r(e),n&&n()}),t)},a]}(),Ce=vt(xe,3),we=Ce[0],Se=Ce[1],ke=Ce[2];e.useImperativeHandle(o,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=be.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:he.current||ge.current}}));var Ee=e.useMemo((function(){var e;if("combobox"!==b)return M;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[M,b,p]),Oe="combobox"===b&&"function"==typeof C&&C()||null,$e="function"==typeof w&&w(),Ne=pe(ge,null==$e||null===(r=$e.props)||void 0===r?void 0:r.ref),Me=vt(e.useState(!1),2),Ie=Me[0],Pe=Me[1];nn((function(){Pe(!0)}),[]);var Le=vt(wi(!1,{defaultValue:k,value:S}),2),je=Le[0],Ae=Le[1],De=!!Ie&&je,Te=!m&&h;(y||Te&&De&&"combobox"===b)&&(De=!1);var Re=!Te&&De,_e=e.useCallback((function(e){var t=void 0!==e?e:!De;y||(Ae(t),De!==t&&(null==E||E(t)))}),[y,De,Ae,E]),ze=e.useMemo((function(){return(j||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[j]),Be=e.useContext(Ih)||{},He=Be.maxCount,Fe=Be.rawValues,We=function(e,t,n){if(!(se&&$h(He)&&(null==Fe?void 0:Fe.size)>=He)){var o=!0,r=e;null==$||$(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=$o(n),i=r[0],a=r.slice(1);if(!i)return[t];var s=t.split(i);return o=o||s.length>1,s.reduce((function(t,n){return[].concat(st(t),st(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,j,$h(He)?He-Fe.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(r="",null==L||L(a),_e(!1),o=!1),P&&Ee!==r&&P(r,{source:t?"typing":"effect"}),o}};e.useEffect((function(){De||se||"combobox"===b||We("",!1,!1)}),[De]),e.useEffect((function(){je&&y&&Ae(!1),y&&!ye.current&&Se(!1)}),[y]);var Ve=vt(kf(),2),Ke=Ve[0],qe=Ve[1],Xe=e.useRef(!1),Ue=e.useRef(!1),Ge=[];e.useEffect((function(){return function(){Ge.forEach((function(e){return clearTimeout(e)})),Ge.splice(0,Ge.length)}}),[]);var Ye,Qe=vt(e.useState({}),2)[1];$e&&(Ye=function(e){_e(e)}),function(t,n,o,r){var i=e.useRef(null);i.current={open:n,triggerOpen:o,customizedTrigger:r},e.useEffect((function(){function e(e){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),i.current.open&&t().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var e;return[he.current,null===(e=me.current)||void 0===e?void 0:e.getPopupElement()]}),Re,_e,!!$e);var Ze,Je=e.useMemo((function(){return J(J({},n),{},{notFoundContent:m,open:De,triggerOpen:Re,id:i,showSearch:le,multiple:se,toggleOpen:_e})}),[n,m,Re,De,i,le,se,_e]),et=!!_||x;et&&(Ze=e.createElement(wf,{className:A("".concat(a,"-arrow"),Q({},"".concat(a,"-arrow-loading"),x)),customizeIcon:_,customizeIconProps:{loading:x,searchValue:Ee,open:De,focused:we,showSearch:le}}));var tt,nt=function(e,n,o,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=t.useMemo((function(){return"object"===T(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:t.useMemo((function(){return!(a||!r||!o.length&&!s||"combobox"===l&&""===s)}),[r,a,o.length,s,l]),clearIcon:t.createElement(wf,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(a,(function(){var e;null==v||v(),null===(e=ve.current)||void 0===e||e.focus(),f([],{type:"clear",values:p}),We("",!1,!1)}),p,R,z,y,Ee,b),ot=nt.allowClear,rt=nt.clearIcon,it=e.createElement(B,{ref:be}),at=A(a,s,Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},"".concat(a,"-focused"),we),"".concat(a,"-multiple"),se),"".concat(a,"-single"),!se),"".concat(a,"-allow-clear"),R),"".concat(a,"-show-arrow"),et),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),x),"".concat(a,"-open"),De),"".concat(a,"-customize-input"),Oe),"".concat(a,"-show-search"),le)),lt=e.createElement(Eh,{ref:me,disabled:y,prefixCls:a,visible:Re,popupElement:it,animation:H,transitionName:F,dropdownStyle:W,dropdownClassName:V,direction:u,dropdownMatchSelectWidth:K,dropdownRender:q,dropdownAlign:X,placement:U,builtinPlacements:G,getPopupContainer:Y,empty:h,getTriggerDOMNode:function(e){return ge.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Qe({})}},$e?e.cloneElement($e,{ref:Ne}):e.createElement(th,D({},n,{domRef:ge,prefixCls:a,inputElement:Oe,ref:ve,id:i,showSearch:le,autoClearSearchValue:I,mode:b,activeDescendantId:N,tagRender:c,values:p,open:De,onToggleOpen:_e,activeValue:O,searchValue:Ee,onSearch:We,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:ze})));return tt=$e?lt:e.createElement("div",D({className:at},ce,{ref:he,onMouseDown:function(e){var t,n=e.target,o=null===(t=me.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=Ge.indexOf(r);-1!==t&&Ge.splice(t,1),ke(),de||o.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ge.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==ie||ie.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ke(),o=e.key,r="Enter"===o;if(r&&("combobox"!==b&&e.preventDefault(),De||_e(!0)),qe(!!Ee),"Backspace"===o&&!n&&se&&!Ee&&p.length){for(var i=st(p),a=null,s=i.length-1;s>=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),a=l;break}}a&&f(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];!De||r&&Xe.current||null===(t=be.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),r&&(Xe.current=!0),null==re||re.apply(void 0,[e].concat(u))},onKeyUp:function(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;De&&(null===(r=be.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(Xe.current=!1),null==oe||oe.apply(void 0,[e].concat(n))},onFocus:function(){Se(!0),y||(te&&!Ue.current&&te.apply(void 0,arguments),ee.includes("focus")&&_e(!0)),Ue.current=!0},onBlur:function(){ye.current=!0,Se(!1,(function(){Ue.current=!1,ye.current=!1,_e(!1)})),y||(Ee&&("tags"===b?P(Ee,{source:"submit"}):"multiple"===b&&P("",{source:"blur"})),ne&&ne.apply(void 0,arguments))}}),e.createElement(Ph,{visible:we&&!De,values:p}),lt,Ze,ot&&rt),e.createElement(Sf.Provider,{value:Je},tt)}));"production"!==process.env.NODE_ENV&&(Dh.displayName="BaseSelect");var Th=function(){return null};Th.isSelectOptGroup=!0;var Rh=function(){return null};Rh.isSelectOption=!0;var _h=e.forwardRef((function(t,n){var o=t.height,r=t.offsetY,i=t.offsetX,a=t.children,s=t.prefixCls,l=t.onInnerResize,c=t.innerProps,u=t.rtl,d=t.extra,p={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(p={height:o,position:"relative",overflow:"hidden"},f=J(J({},f),{},Q(Q(Q(Q(Q({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),e.createElement("div",{style:p},e.createElement(nt,{onResize:function(e){e.offsetHeight&&l&&l()}},e.createElement("div",D({style:f,className:A(Q({},"".concat(s,"-holder-inner"),s)),ref:n},c),a,d)))}));function zh(t){var n=t.children,o=t.setRef,r=e.useCallback((function(e){o(e)}),[]);return e.cloneElement(n,{ref:r})}function Bh(t,n,o){var r=vt(e.useState(t),2),i=r[0],a=r[1],s=vt(e.useState(null),2),l=s[0],c=s[1];return e.useEffect((function(){var e=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var p=l(o[d]);if(p!==l(r[d])){c=d,u=u||p!==l(r[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],t||[],n);void 0!==(null==e?void 0:e.index)&&c(t[e.index]),a(t)}),[t]),[l]}_h.displayName="Filler";var Hh="object"===("undefined"==typeof navigator?"undefined":T(navigator))&&/Firefox/i.test(navigator.userAgent),Fh=function(e,t,n,o){var r=a(!1),i=a(null);var s=a({top:e,bottom:t,left:n,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||(clearTimeout(i.current),r.current=!0,i.current=setTimeout((function(){r.current=!1}),50)),!r.current&&o}};function Wh(e,t,n,o,r,i,s){var l=a(0),c=a(null),u=a(null),d=a(!1),p=Fh(t,n,o,r);var f=a(null),h=a(null);return[function(t){if(e){ft.cancel(h.current),h.current=ft((function(){f.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,a=n,g=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(a=o,g=0,f.current="sx");var m=Math.abs(a),v=Math.abs(g);null===f.current&&(f.current=i&&m>v?"x":"y"),"y"===f.current?function(e,t){if(ft.cancel(c.current),!p(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,u.current=t,Hh||n.preventDefault(),c.current=ft((function(){var e=d.current?10:1;s(l.current*e,!1),l.current=0})))}}(t,g):function(e,t){s(t,!0),Hh||e.preventDefault()}(t,a)}},function(t){e&&(d.current=t.detail===u.current)}]}var Vh=function(){function e(){Fe(this,e),Q(this,"maps",void 0),Q(this,"id",0),Q(this,"diffKeys",new Set),this.maps=Object.create(null)}return Ve(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1,this.diffKeys.add(e)}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function Kh(e){var t=parseFloat(e);return isNaN(t)?0:t}var qh=14/15;function Xh(e){return Math.floor(Math.pow(e,.5))}function Uh(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Gh=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.rtl,i=t.scrollOffset,a=t.scrollRange,s=t.onStartMove,l=t.onStopMove,c=t.onScroll,u=t.horizontal,d=t.spinSize,p=t.containerSize,f=t.style,h=t.thumbStyle,g=t.showScrollBar,m=vt(e.useState(!1),2),v=m[0],b=m[1],y=vt(e.useState(null),2),x=y[0],C=y[1],w=vt(e.useState(null),2),S=w[0],k=w[1],E=!r,O=e.useRef(),$=e.useRef(),N=vt(e.useState(g),2),M=N[0],I=N[1],P=e.useRef(),L=function(){!0!==g&&!1!==g&&(clearTimeout(P.current),I(!0),P.current=setTimeout((function(){I(!1)}),3e3))},j=a-p||0,D=p-d||0,T=e.useMemo((function(){return 0===i||0===j?0:i/j*D}),[i,j,D]),R=e.useRef({top:T,dragging:v,pageY:x,startTop:S});R.current={top:T,dragging:v,pageY:x,startTop:S};var _=function(e){b(!0),C(Uh(e,u)),k(R.current.top),s(),e.stopPropagation(),e.preventDefault()};e.useEffect((function(){var e=function(e){e.preventDefault()},t=O.current,n=$.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",_,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}}),[]);var z=e.useRef();z.current=j;var B=e.useRef();B.current=D,e.useEffect((function(){if(v){var e,t=function(t){var n=R.current,o=n.dragging,r=n.pageY,i=n.startTop;ft.cancel(e);var a=O.current.getBoundingClientRect(),s=p/(u?a.width:a.height);if(o){var l=(Uh(t,u)-r)*s,d=i;!E&&u?d-=l:d+=l;var f=z.current,h=B.current,g=h?d/h:0,m=Math.ceil(g*f);m=Math.max(m,0),m=Math.min(m,f),e=ft((function(){c(m,u)}))}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ft.cancel(e)}}}),[v]),e.useEffect((function(){return L(),function(){clearTimeout(P.current)}}),[i]),e.useImperativeHandle(n,(function(){return{delayHidden:L}}));var H="".concat(o,"-scrollbar"),F={position:"absolute",visibility:M?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,W.height="100%",W.width=d,E?W.left=T:W.right=T):(F.width=8,F.top=0,F.bottom=0,E?F.right=0:F.left=0,W.width="100%",W.height=d,W.top=T),e.createElement("div",{ref:O,className:A(H,Q(Q(Q({},"".concat(H,"-horizontal"),u),"".concat(H,"-vertical"),!u),"".concat(H,"-visible"),M)),style:J(J({},F),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:L},e.createElement("div",{ref:$,className:A("".concat(H,"-thumb"),Q({},"".concat(H,"-thumb-moving"),v)),style:J(J({},W),h),onMouseDown:_}))}));"production"!==process.env.NODE_ENV&&(Gh.displayName="ScrollBar");function Yh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Qh=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Zh=[],Jh={overflowY:"auto",overflowAnchor:"none"};function eg(t,n){var o=t.prefixCls,r=void 0===o?"rc-virtual-list":o,i=t.className,s=t.height,c=t.itemHeight,u=t.fullHeight,p=void 0===u||u,f=t.style,h=t.data,g=t.children,m=t.itemKey,v=t.virtual,b=t.direction,y=t.scrollWidth,x=t.component,C=void 0===x?"div":x,w=t.onScroll,k=t.onVirtualScroll,E=t.onVisibleChange,O=t.innerProps,$=t.extraRender,N=t.styles,M=t.showScrollBar,I=void 0===M?"optional":M,P=Pt(t,Qh),L=e.useCallback((function(e){return"function"==typeof m?m(e):null==e?void 0:e[m]}),[m]),j=function(t){var n=vt(e.useState(0),2),o=n[0],r=n[1],i=a(new Map),s=a(new Vh),c=a(0);function u(){c.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){var e=!1;i.current.forEach((function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,a=r.marginBottom,l=o+Kh(i)+Kh(a);s.current.get(n)!==l&&(s.current.set(n,l),e=!0)}})),e&&r((function(e){return e+1}))};if(e)t();else{c.current+=1;var n=c.current;Promise.resolve().then((function(){n===c.current&&t()}))}}return l((function(){return u}),[]),[function(e,n){var o=t(e);i.current.get(o),n?(i.current.set(o,n),d()):i.current.delete(o)},d,s.current,o]}(L),R=vt(j,4),_=R[0],z=R[1],B=R[2],H=R[3],F=!(!1===v||!s||!c),W=e.useMemo((function(){return Object.values(B.maps).reduce((function(e,t){return e+t}),0)}),[B.id,B.maps]),V=F&&h&&(Math.max(c*h.length,W)>s||!!y),K="rtl"===b,q=A(r,Q({},"".concat(r,"-rtl"),K),i),X=h||Zh,G=a(),Y=a(),Z=a(),ee=vt(d(0),2),te=ee[0],ne=ee[1],oe=vt(d(0),2),re=oe[0],ie=oe[1],ae=vt(d(!1),2),se=ae[0],le=ae[1],ce=function(){le(!0)},ue=function(){le(!1)},de={getKey:L};function pe(e){ne((function(t){var n=function(e){var t=e;Number.isNaN(Me.current)||(t=Math.min(t,Me.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return G.current.scrollTop=n,n}))}var fe=a({start:0,end:X.length}),he=a(),ge=vt(Bh(X,L),1)[0];he.current=ge;var me=e.useMemo((function(){if(!F)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!V)return{scrollHeight:(null===(e=Y.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var t,n,o,r=0,i=X.length,a=0;a<i;a+=1){var l=X[a],u=L(l),d=B.get(u),p=r+(void 0===d?c:d);p>=te&&void 0===t&&(t=a,n=r),p>te+s&&void 0===o&&(o=a),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(s/c)),void 0===o&&(o=X.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,X.length-1),offset:n}}),[V,F,te,X,H,s]),ve=me.scrollHeight,be=me.start,ye=me.end,xe=me.offset;fe.current.start=be,fe.current.end=ye,e.useLayoutEffect((function(){var e=B.getRecord();if(1===e.size){var t=Array.from(e)[0],n=X[be];if(n)if(L(n)===t){var o=B.get(t)-c;pe((function(e){return e+o}))}}B.resetRecord()}),[ve]);var Ce=vt(e.useState({width:0,height:s}),2),we=Ce[0],Se=Ce[1],ke=a(),Ee=a(),Oe=e.useMemo((function(){return Yh(we.width,y)}),[we.width,y]),$e=e.useMemo((function(){return Yh(we.height,ve)}),[we.height,ve]),Ne=ve-s,Me=a(Ne);Me.current=Ne;var Ie=te<=0,Pe=te>=Ne,Le=re<=0,je=re>=y,Ae=Fh(Ie,Pe,Le,je),De=function(){return{x:K?-re:re,y:te}},Te=a(De()),Re=yi((function(e){if(k){var t=J(J({},De()),e);Te.current.x===t.x&&Te.current.y===t.y||(k(t),Te.current=t)}}));function _e(e,t){var n=e;t?(S((function(){ie(n)})),Re()):pe(n)}var ze=function(e){var t=e,n=y?y-we.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Be=yi((function(e,t){t?(S((function(){ie((function(t){return ze(t+(K?-e:e))}))})),Re()):pe((function(t){return t+e}))})),He=vt(Wh(F,Ie,Pe,Le,je,!!y,Be),2),Fe=He[0],We=He[1];!function(e,t,n){var o,r=a(!1),i=a(0),s=a(0),l=a(null),c=a(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),a=i.current-t,l=s.current-o,u=Math.abs(a)>Math.abs(l);u?i.current=t:s.current=o;var d=n(u,u?a:l,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?a*=qh:l*=qh;var e=Math.floor(u?a:l);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},d=function(){r.current=!1,o()},p=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},nn((function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",p),o(),clearInterval(c.current)}}),[e])}(F,G,(function(e,t,n,o){var r=o;return!Ae(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Fe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(t,n,o){e.useEffect((function(){var e=n.current;if(t&&e){var r,i,a=!1,s=function(){ft.cancel(r)},l=function e(){s(),r=ft((function(){o(i),e()}))},c=function(e){if(!e.target.draggable){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,s()},d=function(t){if(a){var n=Uh(t,!1),o=e.getBoundingClientRect(),r=o.top,c=o.bottom;n<=r?(i=-Xh(r-n),l()):n>=c?(i=Xh(n-c),l()):s()}};return e.addEventListener("mousedown",c),e.ownerDocument.addEventListener("mouseup",u),e.ownerDocument.addEventListener("mousemove",d),function(){e.removeEventListener("mousedown",c),e.ownerDocument.removeEventListener("mouseup",u),e.ownerDocument.removeEventListener("mousemove",d),s()}}}),[t])}(V,G,(function(e){pe((function(t){return t+e}))})),nn((function(){function e(e){var t=Ie&&e.detail<0,n=Pe&&e.detail>0;!F||t||n||e.preventDefault()}var t=G.current;return t.addEventListener("wheel",Fe,{passive:!1}),t.addEventListener("DOMMouseScroll",We,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Fe),t.removeEventListener("DOMMouseScroll",We),t.removeEventListener("MozMousePixelScroll",e)}}),[F,Ie,Pe]),nn((function(){if(y){var e=ze(re);ie(e),Re({x:e})}}),[we.width,y]);var Ve=function(){var e,t;null===(e=ke.current)||void 0===e||e.delayHidden(),null===(t=Ee.current)||void 0===t||t.delayHidden()},Ke=function(t,n,o,r,i,a,s,l){var c=e.useRef(),u=vt(e.useState(null),2),d=u[0],p=u[1];return nn((function(){if(d&&d.times<10){if(!t.current)return void p((function(e){return J({},e)}));a();var e=d.targetAlign,l=d.originAlign,c=d.index,u=d.offset,f=t.current.clientHeight,h=!1,g=e,m=null;if(f){for(var v=e||l,b=0,y=0,x=0,C=Math.min(n.length-1,c),w=0;w<=C;w+=1){var S=i(n[w]);y=b;var k=o.get(S);b=x=y+(void 0===k?r:k)}for(var E="top"===v?u:f-u,O=C;O>=0;O-=1){var $=i(n[O]),N=o.get($);if(void 0===N){h=!0;break}if((E-=N)<=0)break}switch(v){case"top":m=y-u;break;case"bottom":m=x-f+u;break;default:var M=t.current.scrollTop;y<M?g="top":x>M+f&&(g="bottom")}null!==m&&s(m),m!==d.lastTop&&(h=!0)}h&&p(J(J({},d),{},{times:d.times+1,targetAlign:g,lastTop:m}))}else"production"!==process.env.NODE_ENV&&10===(null==d?void 0:d.times)&&U(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")}),[d,t.current]),function(e){if(null!=e){if(ft.cancel(c.current),"number"==typeof e)s(e);else if(e&&"object"===T(e)){var t,o=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var r=e.offset;p({times:0,index:t,offset:void 0===r?0:r,originAlign:o})}}else l()}}(G,X,B,c,L,(function(){return z(!0)}),pe,Ve);e.useImperativeHandle(n,(function(){return{nativeElement:Z.current,getScrollInfo:De,scrollTo:function(e){var t;(t=e)&&"object"===T(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ie(ze(e.left)),Ke(e.top)):Ke(e)}}})),nn((function(){if(E){var e=X.slice(be,ye+1);E(e,X)}}),[be,ye,X]);var qe=function(t,n,o,r){var i=vt(e.useMemo((function(){return[new Map,[]]}),[t,o.id,r]),2),a=i[0],s=i[1];return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,l=a.get(e),c=a.get(i);if(void 0===l||void 0===c)for(var u=t.length,d=s.length;d<u;d+=1){var p,f=t[d],h=n(f);a.set(h,d);var g=null!==(p=o.get(h))&&void 0!==p?p:r;if(s[d]=(s[d-1]||0)+g,h===e&&(l=d),h===i&&(c=d),void 0!==l&&void 0!==c)break}return{top:s[l-1]||0,bottom:s[c]}}}(X,L,B,c),Xe=null==$?void 0:$({start:be,end:ye,virtual:V,offsetX:re,offsetY:xe,rtl:K,getSize:qe}),Ue=function(t,n,o,r,i,a,s,l){var c=l.getKey;return t.slice(n,o+1).map((function(t,o){var l=s(t,n+o,{style:{width:r},offsetX:i}),u=c(t);return e.createElement(zh,{key:u,setRef:function(e){return a(t,e)}},l)}))}(X,be,ye,y,re,_,g,de),Ge=null;s&&(Ge=J(Q({},p?"height":"maxHeight",s),Jh),F&&(Ge.overflowY="hidden",y&&(Ge.overflowX="hidden"),se&&(Ge.pointerEvents="none")));var Ye={};return K&&(Ye.dir="rtl"),e.createElement("div",D({ref:Z,style:J(J({},f),{},{position:"relative"}),className:q},Ye,P),e.createElement(nt,{onResize:function(e){Se({width:e.offsetWidth,height:e.offsetHeight})}},e.createElement(C,{className:"".concat(r,"-holder"),style:Ge,ref:G,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==te&&pe(t),null==w||w(e),Re()},onMouseEnter:Ve},e.createElement(_h,{prefixCls:r,height:ve,offsetX:re,offsetY:xe,scrollWidth:y,onInnerResize:z,ref:Y,innerProps:O,rtl:K,extra:Xe},Ue))),V&&ve>s&&e.createElement(Gh,{ref:ke,prefixCls:r,scrollOffset:te,scrollRange:ve,rtl:K,onScroll:_e,onStartMove:ce,onStopMove:ue,spinSize:$e,containerSize:we.height,style:null==N?void 0:N.verticalScrollBar,thumbStyle:null==N?void 0:N.verticalScrollBarThumb,showScrollBar:I}),V&&y>we.width&&e.createElement(Gh,{ref:Ee,prefixCls:r,scrollOffset:re,scrollRange:y,rtl:K,onScroll:_e,onStartMove:ce,onStopMove:ue,spinSize:Oe,containerSize:we.width,horizontal:!0,style:null==N?void 0:N.horizontalScrollBar,thumbStyle:null==N?void 0:N.horizontalScrollBarThumb,showScrollBar:I}))}var tg=e.forwardRef(eg);tg.displayName="List";var ng=["disabled","title","children","style","className"];function og(e){return"string"==typeof e||"number"==typeof e}var rg=function(t,n){var o=e.useContext(Sf),r=o.prefixCls,i=o.id,a=o.open,s=o.multiple,c=o.mode,u=o.searchValue,d=o.toggleOpen,p=o.notFoundContent,f=o.onPopupScroll,h=e.useContext(Ih),g=h.maxCount,m=h.flattenOptions,v=h.onActiveValue,b=h.defaultActiveFirstOption,y=h.onSelect,x=h.menuItemSelectedIcon,C=h.rawValues,w=h.fieldNames,S=h.virtual,k=h.direction,E=h.listHeight,O=h.listItemHeight,$=h.optionRender,N="".concat(r,"-item"),M=le((function(){return m}),[a,m],(function(e,t){return t[0]&&e[1]!==t[1]})),I=e.useRef(null),P=e.useMemo((function(){return s&&$h(g)&&(null==C?void 0:C.size)>=g}),[s,g,null==C?void 0:C.size]),L=function(e){e.preventDefault()},j=function(e){var t;null===(t=I.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},T=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=M.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=M[r]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||P))return r}return-1},R=vt(e.useState((function(){return T(0)})),2),_=R[0],z=R[1],B=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];z(e);var n={source:t?"keyboard":"mouse"},o=M[e];o?v(o.value,e,n):v(null,-1,n)};l((function(){B(!1!==b?T(0):-1)}),[M.length,u]);var H=e.useCallback((function(e){return C.has(e)&&"combobox"!==c}),[c,st(C).toString(),C.size]);l((function(){var e,t=setTimeout((function(){if(!s&&a&&1===C.size){var e=Array.from(C)[0],t=M.findIndex((function(t){return t.data.value===e}));-1!==t&&(B(t),j(t))}}));a&&(null===(e=I.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,u]);var F=function(e){void 0!==e&&y(e,{selected:!C.has(e)}),s||d(!1)};if(e.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case qs.N:case qs.P:case qs.UP:case qs.DOWN:var o=0;if(t===qs.UP?o=-1:t===qs.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===qs.N?o=1:t===qs.P&&(o=-1)),0!==o){var r=T(_+o,o);j(r),B(r,!0)}break;case qs.ENTER:var i,s=M[_];!s||null!=s&&null!==(i=s.data)&&void 0!==i&&i.disabled||P?F(void 0):F(s.value),a&&e.preventDefault();break;case qs.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===M.length)return e.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(N,"-empty"),onMouseDown:L},p);var W=Object.keys(w).map((function(e){return w[e]})),V=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var q=function(t){var n=M[t];if(!n)return null;var o=n.data||{},r=o.value,i=n.group,a=_s(o,!0),s=V(n);return n?e.createElement("div",D({"aria-label":"string"!=typeof s||i?null:s},a,{key:t},K(n,t),{"aria-selected":H(r)}),r):null},X={role:"listbox",id:"".concat(i,"_list")};return e.createElement(e.Fragment,null,S&&e.createElement("div",D({},X,{style:{height:0,width:0,overflow:"hidden"}}),q(_-1),q(_),q(_+1)),e.createElement(tg,{itemKey:"key",ref:I,data:M,height:E,itemHeight:O,fullHeight:!1,onMouseDown:L,onScroll:f,virtual:S,direction:k,innerProps:S?null:X},(function(t,n){var o=t.group,r=t.groupOption,i=t.data,a=t.label,s=t.value,l=i.key;if(o){var c,u=null!==(c=i.title)&&void 0!==c?c:og(a)?a.toString():void 0;return e.createElement("div",{className:A(N,"".concat(N,"-group"),i.className),title:u},void 0!==a?a:l)}var d=i.disabled,p=i.title;i.children;var f=i.style,h=i.className,g=ot(Pt(i,ng),W),m=H(s),v=d||!m&&P,b="".concat(N,"-option"),y=A(N,b,h,Q(Q(Q(Q({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),_===n&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),m)),C=V(t),w=!x||"function"==typeof x||m,k="number"==typeof C?C:C||s,E=og(k)?k.toString():void 0;return void 0!==p&&(E=p),e.createElement("div",D({},_s(g),S?{}:K(t,n),{"aria-selected":m,className:y,title:E,onMouseMove:function(){_===n||v||B(n)},onClick:function(){v||F(s)},style:f}),e.createElement("div",{className:"".concat(b,"-content")},"function"==typeof $?$(t,{index:n}):k),e.isValidElement(x)||m,w&&e.createElement(wf,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:s,disabled:v,isSelected:m}},m?"✓":null))})))},ig=e.forwardRef(rg);"production"!==process.env.NODE_ENV&&(ig.displayName="OptionList");function ag(e,t){return Kf(e).join("").toUpperCase().includes(t)}var sg=0,lg="test"!==process.env.NODE_ENV&&yt();function cg(t){var n=vt(e.useState(),2),o=n[0],r=n[1];return e.useEffect((function(){var e;r("rc_select_".concat((lg?(e=sg,sg+=1):e="TEST_OR_SSR",e)))}),[]),t||o}var ug=["children","value"],dg=["children"];function pg(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return H(t).map((function(t,o){if(!e.isValidElement(t)||!t.type)return null;var r=t,i=r.type.isSelectOptGroup,a=r.key,s=r.props,l=s.children,c=Pt(s,dg);return n||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return J({key:n,value:void 0!==i?i:n,children:r},Pt(o,ug))}(t):J(J({key:"__RC_SELECT_GRP__".concat(null===a?o:a,"__"),label:a},c),{},{options:pg(l)})})).filter((function(e){return e}))}function fg(t){var n=e.useRef();n.current=t;var o=e.useCallback((function(){return n.current.apply(n,arguments)}),[]);return o}var hg=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],gg=["inputValue"];var mg=e.forwardRef((function(t,n){var o=t.id,r=t.mode,i=t.prefixCls,a=void 0===i?"rc-select":i,s=t.backfill,l=t.fieldNames,c=t.inputValue,u=t.searchValue,d=t.onSearch,p=t.autoClearSearchValue,f=void 0===p||p,h=t.onSelect,g=t.onDeselect,m=t.dropdownMatchSelectWidth,v=void 0===m||m,b=t.filterOption,y=t.filterSort,x=t.optionFilterProp,C=t.optionLabelProp,w=t.options,S=t.optionRender,k=t.children,E=t.defaultActiveFirstOption,O=t.menuItemSelectedIcon,$=t.virtual,N=t.direction,M=t.listHeight,I=void 0===M?200:M,P=t.listItemHeight,L=void 0===P?20:P,j=t.labelRender,A=t.value,R=t.defaultValue,_=t.labelInValue,z=t.onChange,B=t.maxCount,F=Pt(t,hg),W=cg(o),V=Ah(r),K=!(w||!k),q=e.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),X=e.useMemo((function(){return Nh(l,K)}),[JSON.stringify(l),K]),Y=vt(wi("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),Z=Y[0],ee=Y[1],te=function(t,n,o,r,i){return e.useMemo((function(){var e=t;!t&&(e=pg(n));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[o.options]||n?(a.set(u[o.value],u),l(s,u,o.label),l(s,u,r),l(s,u,i)):e(u[o.options],!0)}}(e),{options:e,valueOptions:a,labelOptions:s}}),[t,n,o,r,i])}(w,k,X,x,C),ne=te.valueOptions,oe=te.labelOptions,re=te.options,ie=e.useCallback((function(t){return Kf(t).map((function(t){var n,o,r,i,a,s;(function(e){return!e||"object"!==T(e)})(t)?n=t:(r=t.key,o=t.label,n=null!==(s=t.value)&&void 0!==s?s:r);var l,c=ne.get(n);if(c&&(void 0===o&&(o=null==c?void 0:c[C||X.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:n),i=null==c?void 0:c.disabled,a=null==c?void 0:c.title,"production"!==process.env.NODE_ENV&&!C)){var u=null==c?void 0:c[X.label];void 0===u||e.isValidElement(u)||e.isValidElement(o)||u===o||U(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:o,value:n,key:r,disabled:i,title:a}}))}),[X,C,ne]),ae=vt(wi(R,{value:A}),2),se=ae[0],le=ae[1],ce=e.useMemo((function(){var e,t=ie(V&&null===se?[]:se);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[se,ie,r,V]),ue=function(t,n){var o=e.useRef({values:new Map,options:new Map});return[e.useMemo((function(){var e=o.current,r=e.values,i=e.options,a=t.map((function(e){var t;return void 0===e.label?J(J({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,n.get(e.value)||i.get(e.value))})),o.current.values=s,o.current.options=l,a}),[t,n]),e.useCallback((function(e){return n.get(e)||o.current.options.get(e)}),[n])]}(ce,ne),de=vt(ue,2),pe=de[0],fe=de[1],he=e.useMemo((function(){if(!r&&1===pe.length){var e=pe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return pe.map((function(e){var t;return J(J({},e),{},{label:null!==(t="function"==typeof j?j(e):e.label)&&void 0!==t?t:e.value})}))}),[r,pe,j]),ge=e.useMemo((function(){return new Set(pe.map((function(e){return e.value})))}),[pe]);e.useEffect((function(){if("combobox"===r){var e,t=null===(e=pe[0])||void 0===e?void 0:e.value;ee(function(e){return null!=e}(t)?String(t):"")}}),[pe]);var me=fg((function(e,t){var n=null!=t?t:e;return Q(Q({},X.value,e),X.label,n)})),ve=function(t,n,o,r,i){return e.useMemo((function(){if(!o||!1===r)return t;var e=n.options,a=n.label,s=n.value,l=[],c="function"==typeof r,u=o.toUpperCase(),d=c?r:function(t,n){return i?ag(n[i],u):n[e]?ag(n["children"!==a?a:"label"],u):ag(n[s],u)},p=c?function(e){return Mh(e)}:function(e){return e};return t.forEach((function(t){if(t[e])if(d(o,p(t)))l.push(t);else{var n=t[e].filter((function(e){return d(o,p(e))}));n.length&&l.push(J(J({},t),{},Q({},e,n)))}else d(o,p(t))&&l.push(t)})),l}),[t,r,i,o,n])}(e.useMemo((function(){if("tags"!==r)return re;var e=st(re);return st(pe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ne.has(e)})(n)||e.push(me(n,t.label))})),e}),[me,re,ne,pe,r]),X,Z,q,x),be=e.useMemo((function(){return"tags"!==r||!Z||ve.some((function(e){return e[x||"value"]===Z}))||ve.some((function(e){return e[X.value]===Z}))?ve:[me(Z)].concat(st(ve))}),[me,x,r,ve,Z,X]),ye=function e(t){return st(t).sort((function(e,t){return y(e,t,{searchValue:Z})})).map((function(t){return Array.isArray(t.options)?J(J({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},xe=e.useMemo((function(){return y?ye(be):be}),[be,y,Z]),Ce=e.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=Nh(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[s];r.push({key:Oh(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&o&&(u=t.label),r.push({key:Oh(t,r.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),r}(xe,{fieldNames:X,childrenAsData:K})}),[xe,X,K]),we=function(e){var t=ie(e);if(le(t),z&&(t.length!==pe.length||t.some((function(e,t){var n;return(null===(n=pe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=_?t:t.map((function(e){return e.value})),o=t.map((function(e){return Mh(fe(e.value))}));z(V?n:n[0],V?o:o[0])}},Se=vt(e.useState(null),2),ke=Se[0],Ee=Se[1],Oe=vt(e.useState(0),2),$e=Oe[0],Ne=Oe[1],Me=void 0!==E?E:"combobox"!==r,Ie=e.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Ne(t),s&&"combobox"===r&&null!==e&&"keyboard"===o&&Ee(String(e))}),[s,r]),Pe=function(e,t,n){var o=function(){var t,n=fe(e);return[_?{label:null==n?void 0:n[X.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Mh(n)]};if(t&&h){var r=vt(o(),2),i=r[0],a=r[1];h(i,a)}else if(!t&&g&&"clear"!==n){var s=vt(o(),2),l=s[0],c=s[1];g(l,c)}},Le=fg((function(e,t){var n,o=!V||t.selected;n=o?V?[].concat(st(pe),[e]):[e]:pe.filter((function(t){return t.value!==e})),we(n),Pe(e,o),"combobox"===r?Ee(""):Ah&&!f||(ee(""),Ee(""))})),je=e.useMemo((function(){var e=!1!==$&&!1!==v;return J(J({},te),{},{flattenOptions:Ce,onActiveValue:Ie,defaultActiveFirstOption:Me,onSelect:Le,menuItemSelectedIcon:O,rawValues:ge,fieldNames:X,virtual:e,direction:N,listHeight:I,listItemHeight:L,childrenAsData:K,maxCount:B,optionRender:S})}),[B,te,Ce,Ie,Me,Le,O,ge,X,$,v,N,I,L,K,S]);return"production"!==process.env.NODE_ENV&&(function(t){var n=t.mode,o=t.options,r=t.children,i=t.backfill,a=t.allowClear,s=t.placeholder,l=t.getInputElement,c=t.showSearch,u=t.onSearch,d=t.defaultOpen,p=t.autoFocus,f=t.labelInValue,h=t.value,g=t.inputValue,m=t.optionLabelProp,v=Ah(n),b=void 0!==c?c:v||"combobox"===n,y=o||pg(r);if(U("tags"!==n||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===n||"combobox"===n)&&U(!y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)})),"`value` of Option should not use number type when `mode` is `tags` or `combobox`."),U("combobox"!==n||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),U("combobox"===n||!i,"`backfill` only works with `combobox` mode."),U("combobox"===n||!l,"`getInputElement` only work with `combobox` mode."),G("combobox"!==n||!l||!a||!s,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==n&&"tags"!==n&&U(!1,"`onSearch` should work with `showSearch` instead of use alone."),G(!d||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=h){var x=Kf(h);U(!f||x.every((function(e){return"object"===T(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),U(!v||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var C=null;H(r).some((function(t){if(!e.isValidElement(t)||!t.type)return!1;var n=t.type;return!n.isSelectOption&&(n.isSelectOptGroup?!H(t.props.children).every((function(n){return!(e.isValidElement(n)&&t.type&&!n.type.isSelectOption&&(C=n.type,1))})):(C=n,!0))})),C&&U(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(C.displayName||C.name||C,"`.")),U(void 0===g,"`inputValue` is deprecated, please use `searchValue` instead.")}}(t),function(e,t){e&&function e(n){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;r<n.length;r++){var i=n[r];if(null===i[null==t?void 0:t.value])return U(!1,"`value` in Select options should not be `null`."),!0;if(!o&&Array.isArray(i[null==t?void 0:t.options])&&e(i[null==t?void 0:t.options],!0))break}}(e)}(re,X)),e.createElement(Ih.Provider,{value:je},e.createElement(Dh,D({},F,{id:W,prefixCls:a,ref:n,omitDomProps:gg,mode:r,displayValues:he,onDisplayValuesChange:function(e,t){we(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Pe(e.value,!1,n)}))},direction:N,searchValue:Z,onSearch:function(e,t){if(ee(e),Ee(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&we(e),null==d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(st(ge),[n])));we(o),Pe(n,!0),ee("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=oe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(st(ge),st(t))));we(n),n.forEach((function(e){Pe(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:ig,emptyOptions:!Ce.length,activeValue:ke,activeDescendantId:"".concat(W,"_list_").concat($e)})))}));"production"!==process.env.NODE_ENV&&(mg.displayName="Select");var vg=mg;function bg(e,t,n){return A({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}vg.Option=Rh,vg.OptGroup=Th;const yg=(e,t)=>t||e,xg=()=>{const[,t]=Wi(),n=new qr(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"empty image"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(xg.displayName="EmptyImage");const Cg=()=>{const[,t]=Wi(),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=t,{borderColor:a,shadowColor:s,contentColor:l}=u((()=>({borderColor:new qr(n).onBackground(i).toHexShortString(),shadowColor:new qr(o).onBackground(i).toHexShortString(),contentColor:new qr(r).onBackground(i).toHexShortString()})),[n,o,r,i]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"Simple Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:a},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};"production"!==process.env.NODE_ENV&&(Cg.displayName="SimpleImage");const wg=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var Sg=Qi("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=Oi(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[wg(r)]})),kg=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 Eg=e.createElement(xg,null),Og=e.createElement(Cg,null),$g=t=>{var{className:n,rootClassName:o,prefixCls:r,image:i=Eg,description:a,children:s,imageStyle:l,style:c}=t,u=kg(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:f}=e.useContext(ii),h=d("empty",r),[g,m,v]=Sg(h),[b]=Zo("Empty"),y=void 0!==a?a:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let C=null;return C="string"==typeof i?e.createElement("img",{alt:x,src:i}):i,g(e.createElement("div",Object.assign({className:A(m,v,h,null==f?void 0:f.className,{[`${h}-normal`]:i===Og,[`${h}-rtl`]:"rtl"===p},n,o),style:Object.assign(Object.assign({},null==f?void 0:f.style),c)},u),e.createElement("div",{className:`${h}-image`,style:l},C),y&&e.createElement("div",{className:`${h}-description`},y),s&&e.createElement("div",{className:`${h}-footer`},s)))};$g.PRESENTED_IMAGE_DEFAULT=Eg,$g.PRESENTED_IMAGE_SIMPLE=Og,"production"!==process.env.NODE_ENV&&($g.displayName="Empty");const Ng=e=>{const{componentName:n}=e,{getPrefixCls:o}=r(ii),i=o("empty");switch(n){case"Table":case"List":return t.createElement($g,{image:$g.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t.createElement($g,{image:$g.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return t.createElement($g,null)}},Mg=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:s}=r(ii),l=r(Sd),c=null==s?void 0:s.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=l?l:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,ri.includes(u)]};function Ig(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const Pg=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},Lg=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},qi(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:wp},[`\n ${r}${s}topLeft,\n ${i}${s}topLeft,\n ${r}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:kp},[`${a}${s}bottomLeft`]:{animationName:Sp},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:Ep},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},Pg(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ki),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${o}-option-selected:not(${o}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${o}-option-selected:not(${o}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Pg(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Pp(e,"slide-up"),Pp(e,"slide-down"),Cp(e,"move-up"),Cp(e,"move-down")]},jg=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":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"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Ag=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),s=t?`${n}-${t}`:"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:Yt(t),itemLineHeight:Yt(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},jg(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Yt(o)} 0`,lineHeight:Yt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Yt(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Yt(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Dg(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",r={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Ag(e,t),r]}const Tg=e=>{const{componentCls:t}=e,n=Oi(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Oi(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Dg(e),Dg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Dg(o,"lg")]};function Rg(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},qi(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Yt(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Yt(o)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Yt(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Yt(o)}`,"&:after":{display:"none"}}}}}}}function _g(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Rg(e),Rg(Oi(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Yt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Rg(Oi(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const zg=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Yt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Yt(r)} ${t.activeShadowColor}`,outline:0}}}},Bg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zg(e,t))}),Hg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},zg(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Bg(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Bg(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Fg=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Yt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Wg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fg(e,t))}),Vg=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Fg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Wg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Wg(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Kg=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),qg=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Hg(e)),Vg(e)),Kg(e))}),Xg=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ug=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Gg=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Xg(e)),Ug(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ki),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ki),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]: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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},Yg=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Gg(e),_g(e),Tg(e),Lg(e),{[`${t}-rtl`]:{direction:"rtl"}},Mc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var Qg=Qi("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Oi(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Yg(o),qg(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:f,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:v}=e,b=2*s,y=2*o,x=Math.min(r-b,r-y),C=Math.min(i-b,i-y),w=Math.min(a-b,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:f,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:C,multipleItemHeightLG:w,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Zg={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"},Jg=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:Zg}))},em=e.forwardRef(Jg);"production"!==process.env.NODE_ENV&&(em.displayName="CheckOutlined");var tm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},nm=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:tm}))},om=e.forwardRef(nm);"production"!==process.env.NODE_ENV&&(om.displayName="DownOutlined");var rm={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"},im=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:rm}))},am=e.forwardRef(im);"production"!==process.env.NODE_ENV&&(am.displayName="SearchOutlined");var sm=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 lm="SECRET_COMBOBOX_MODE_DO_NOT_USE",cm=(t,n)=>{var o;const{prefixCls:r,bordered:i,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:f,size:h,disabled:g,notFoundContent:m,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:C,style:w,allowClear:S,variant:k,dropdownStyle:E,transitionName:O,tagRender:$,maxCount:N}=t,M=sm(t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:I,getPrefixCls:P,renderEmpty:L,direction:j,virtual:D,popupMatchSelectWidth:T,popupOverflow:R,select:_}=e.useContext(ii),[,z]=Wi(),B=null!=f?f:null==z?void 0:z.controlHeight,H=P("select",r),F=P(),W=null!=C?C:j,{compactSize:V,compactItemClassnames:K}=Bl(H,W),[q,X]=Mg("select",k,i),U=Ks(H),[G,Y,Q]=Qg(H,U),Z=e.useMemo((()=>{const{mode:e}=t;if("combobox"!==e)return e===lm?"combobox":e}),[t.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(t.suffixIcon,t.showArrow),te=null!==(o=null!=x?x:y)&&void 0!==o?o:T,{status:ne,hasFeedback:oe,isFormItemInput:re,feedbackIcon:ie}=e.useContext(Cd),ae=yg(ne,v);let se;se=void 0!==m?m:"combobox"===Z?null:(null==L?void 0:L("Select"))||e.createElement(Ng,{componentName:"Select"});const{suffixIcon:le,itemIcon:ce,removeIcon:ue,clearIcon:de}=function(t){let{suffixIcon:n,clearIcon:o,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=t;"production"!==process.env.NODE_ENV&&_o(f).deprecated(!o,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=null!=o?o:e.createElement(Os,null),g=t=>null!==n||l||p?e.createElement(e.Fragment,null,!1!==u&&t,l&&d):null;let m=null;if(void 0!==n)m=g(n);else if(a)m=g(e.createElement(Gs,{spin:!0}));else{const t=`${c}-suffix`;m=n=>{let{open:o,showSearch:r}=n;return g(o&&r?e.createElement(am,{className:t}):e.createElement(om,{className:t}))}}let v=null;v=void 0!==r?r:s?e.createElement(em,null):null;let b=null;return b=void 0!==i?i:e.createElement(Ms,null),{clearIcon:h,suffixIcon:m,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},M),{multiple:J,hasFeedback:oe,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:H,componentName:"Select"})),pe=!0===S?{clearIcon:de}:S,fe=ot(M,["suffixIcon","itemIcon"]),he=A(c||u,{[`${H}-dropdown-${W}`]:"rtl"===W},s,Q,U,Y),ge=jl((e=>{var t;return null!==(t=null!=h?h:V)&&void 0!==t?t:e})),me=e.useContext(li),ve=null!=g?g:me,be=A({[`${H}-lg`]:"large"===ge,[`${H}-sm`]:"small"===ge,[`${H}-rtl`]:"rtl"===W,[`${H}-${q}`]:X,[`${H}-in-form-item`]:re},bg(H,ae,oe),K,null==_?void 0:_.className,a,s,Q,U,Y),ye=e.useMemo((()=>void 0!==p?p:"rtl"===W?"bottomRight":"bottomLeft"),[p,W]);if("production"!==process.env.NODE_ENV){const e=_o("Select");e.deprecated(!u,"dropdownClassName","popupClassName"),e.deprecated(void 0===y,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&e(!("showArrow"in t),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),e.deprecated(!("bordered"in t),"bordered","variant"),"production"!==process.env.NODE_ENV&&e(!(void 0!==N&&!J),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[xe]=el("SelectLike",null==E?void 0:E.zIndex);return G(e.createElement(vg,Object.assign({ref:n,virtual:D,showSearch:null==_?void 0:_.showSearch},fe,{style:Object.assign(Object.assign({},null==_?void 0:_.style),w),dropdownMatchSelectWidth:te,transitionName:wl(F,"slide-up",O),builtinPlacements:Ig(b,R),listHeight:d,listItemHeight:B,mode:Z,prefixCls:H,placement:ye,direction:W,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:ue,allowClear:pe,notFoundContent:se,className:be,getPopupContainer:l||I,dropdownClassName:he,disabled:ve,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:xe}),maxCount:J?N:void 0,tagRender:J?$:void 0})))};"production"!==process.env.NODE_ENV&&(cm.displayName="Select");const um=e.forwardRef(cm),dm=xf(um);um.SECRET_COMBOBOX_MODE_DO_NOT_USE=lm,um.Option=Rh,um.OptGroup=Th,um._InternalPanelDoNotUseOrYouWillBeFired=dm,"production"!==process.env.NODE_ENV&&(um.displayName="Select");const pm=["xxl","xl","lg","md","sm","xs"];function fm(){const[,e]=Wi(),n=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(pm).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return t.useMemo((()=>{const e=new Map;let t=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(o),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],o=this.matchHandlers[t];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(t);i.addListener(r),this.matchHandlers[t]={mql:i,listener:r},r(i)}))},responsiveMap:n}}),[e])}function hm(){const[,t]=e.useReducer((e=>e+1),0);return t}function gm(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=a({}),n=hm(),o=fm();return nn((()=>{const r=o.subscribe((o=>{t.current=o,e&&n()}));return()=>o.unsubscribe(r)}),[]),t.current}const mm=e.createContext({}),vm=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:f,borderRadiusSM:h,lineWidth:g,lineType:m}=e,v=(e,t,r)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${Yt(g)} ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,c,p)),{"&-lg":Object.assign({},v(s,u,f)),"&-sm":Object.assign({},v(l,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},bm=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}};var ym=Qi("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Oi(e,{avatarBg:n,avatarColor:t});return[vm(o),bm(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:r,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}})),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 Cm=(t,n)=>{const[o,r]=e.useState(1),[i,a]=e.useState(!1),[s,l]=e.useState(!0),c=e.useRef(null),u=e.useRef(null),d=de(n,c),{getPrefixCls:p,avatar:f}=e.useContext(ii),h=e.useContext(mm),g=()=>{if(!u.current||!c.current)return;const e=u.current.offsetWidth,n=c.current.offsetWidth;if(0!==e&&0!==n){const{gap:o=4}=t;2*o<n&&r(n-2*o<e?(n-2*o)/e:1)}};e.useEffect((()=>{a(!0)}),[]),e.useEffect((()=>{l(!0),r(1)}),[t.src]),e.useEffect(g,[t.gap]);const m=()=>{const{onError:e}=t;!1!==(null==e?void 0:e())&&l(!1)},{prefixCls:v,shape:b,size:y,src:x,srcSet:C,icon:w,className:S,rootClassName:k,alt:E,draggable:O,children:$,crossOrigin:N}=t,M=xm(t,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),I=jl((e=>{var t,n;return null!==(n=null!==(t=null!=y?y:null==h?void 0:h.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),P=gm(Object.keys("object"==typeof I&&I||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),L=e.useMemo((()=>{if("object"!=typeof I)return{};const e=pm.find((e=>P[e])),t=I[e];return t?{width:t,height:t,fontSize:t&&(w||$)?t/2:18}:{}}),[P,I]);if("production"!==process.env.NODE_ENV){const e=_o("Avatar");"production"!==process.env.NODE_ENV&&e(!("string"==typeof w&&w.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${w}\` at https://ant.design/components/icon`)}const j=p("avatar",v),D=Ks(j),[T,R,_]=ym(j,D),z=A({[`${j}-lg`]:"large"===I,[`${j}-sm`]:"small"===I}),B=e.isValidElement(x),H=b||(null==h?void 0:h.shape)||"circle",F=A(j,z,null==f?void 0:f.className,`${j}-${H}`,{[`${j}-image`]:B||x&&s,[`${j}-icon`]:!!w},_,D,S,k,R),W="number"==typeof I?{width:I,height:I,fontSize:w?I/2:18}:{};let V;if("string"==typeof x&&s)V=e.createElement("img",{src:x,draggable:O,srcSet:C,onError:m,alt:E,crossOrigin:N});else if(B)V=x;else if(w)V=w;else if(i||1!==o){const t=`scale(${o})`,n={msTransform:t,WebkitTransform:t,transform:t};V=e.createElement(nt,{onResize:g},e.createElement("span",{className:`${j}-string`,ref:u,style:Object.assign({},n)},$))}else V=e.createElement("span",{className:`${j}-string`,style:{opacity:0},ref:u},$);return delete M.onError,delete M.gap,T(e.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},W),L),null==f?void 0:f.style),M.style),className:F,ref:d}),V))},wm=e.forwardRef(Cm);"production"!==process.env.NODE_ENV&&(wm.displayName="Avatar");const Sm=e=>e?"function"==typeof e?e():e:null;function km(t){var n=t.children,o=t.prefixCls,r=t.id,i=t.overlayInnerStyle,a=t.className,s=t.style;return e.createElement("div",{className:A("".concat(o,"-content"),a),style:s},e.createElement("div",{className:"".concat(o,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof n?n():n))}var Em={shiftX:64,adjustY:1},Om={adjustX:1,shiftY:!0},$m=[0,0],Nm={left:{points:["cr","cl"],overflow:Om,offset:[-4,0],targetOffset:$m},right:{points:["cl","cr"],overflow:Om,offset:[4,0],targetOffset:$m},top:{points:["bc","tc"],overflow:Em,offset:[0,-4],targetOffset:$m},bottom:{points:["tc","bc"],overflow:Em,offset:[0,4],targetOffset:$m},topLeft:{points:["bl","tl"],overflow:Em,offset:[0,-4],targetOffset:$m},leftTop:{points:["tr","tl"],overflow:Om,offset:[-4,0],targetOffset:$m},topRight:{points:["br","tr"],overflow:Em,offset:[0,-4],targetOffset:$m},rightTop:{points:["tl","tr"],overflow:Om,offset:[4,0],targetOffset:$m},bottomRight:{points:["tr","br"],overflow:Em,offset:[0,4],targetOffset:$m},rightBottom:{points:["bl","br"],overflow:Om,offset:[4,0],targetOffset:$m},bottomLeft:{points:["tl","bl"],overflow:Em,offset:[0,4],targetOffset:$m},leftBottom:{points:["br","bl"],overflow:Om,offset:[-4,0],targetOffset:$m}},Mm=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Im=function(t,n){var o=t.overlayClassName,r=t.trigger,i=void 0===r?["hover"]:r,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,p=t.prefixCls,f=void 0===p?"rc-tooltip":p,h=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,y=t.animation,x=t.motion,C=t.placement,w=void 0===C?"right":C,S=t.align,k=void 0===S?{}:S,E=t.destroyTooltipOnHide,O=void 0!==E&&E,$=t.defaultVisible,N=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,P=t.id,L=t.showArrow,j=void 0===L||L,A=Pt(t,Mm),T=a(null);g(n,(function(){return T.current}));var R=J({},A);"visible"in t&&(R.popupVisible=t.visible);return e.createElement(wh,D({popupClassName:o,prefixCls:f,popup:function(){return e.createElement(km,{key:"content",prefixCls:f,id:P,overlayInnerStyle:M},I)},action:i,builtinPlacements:Nm,popupPlacement:w,ref:T,popupAlign:k,getPopupContainer:N,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:j},R),h)},Pm=c(Im);function Lm(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,p=2*r-a,f=s,h=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 ${p} ${f} A ${o} ${o} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const jm=(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 ${Yt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Am(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function Dm(e,t){return e?t:{}}function Tm(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}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},jm(e,t,r)),{"&:before":{background:t}})]},Dm(!!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% - ${Yt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Dm(!!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% - ${Yt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Dm(!!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}})),Dm(!!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 Rm={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"]}},_m={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"]}},zm=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Bm(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Rm).forEach((e=>{const c=o&&_m[e]||Rm[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,zm.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=Am({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 Hm=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({},qi(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:`${Yt(e.calc(c).div(2).equal())} ${Yt(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,8)}},[`${t}-content`]:{position:"relative"}}),ea(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Tm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Fm=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Am({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Lm(Oi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Wm=function(e){const t=Qi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Oi(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[Hm(r),zp(e,"zoom-big-fast")]}),Fm,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Vm=ji.map((e=>`${e}-inverse`)),Km=["success","processing","error","default","warning"];function qm(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(st(Vm),st(ji)).includes(e):ji.includes(e)}function Xm(e,t){const n=qm(t),o=A({[`${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 Um=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 Gm=e.forwardRef(((t,n)=>{var o,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:g=!0,title:m,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=t,C=!!g,[,w]=Wi(),{getPopupContainer:S,getPrefixCls:k,direction:E}=e.useContext(ii),O=_o("Tooltip"),$=e.useRef(null),N=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},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((e=>{let[n,o]=e;O.deprecated(!(n in t),n,o)})),"production"!==process.env.NODE_ENV&&O(!h||"boolean"==typeof h,"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[M,I]=wi(!1,{value:null!==(o=t.open)&&void 0!==o?o:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),P=!m&&!v&&0!==m,L=e.useMemo((()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||Bm({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:C?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[y,g,b,w]),j=e.useMemo((()=>0===m?m:v||m||""),[v,m]),D=e.createElement(kd,{space:!0},"function"==typeof j?j():j),{getPopupContainer:T,placement:R="top",mouseEnterDelay:_=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:H}=t,F=Um(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=k("tooltip",i),V=k(),K=t["data-popover-inject"];let q=M;"open"in t||"visible"in t||!P||(q=!1);const X=e.isValidElement(d)&&!zs(d)?d:e.createElement("span",null,d),U=X.props,G=U.className&&"string"!=typeof U.className?U.className:A(U.className,a||`${W}-open`),[Y,Q,Z]=Wm(W,!K),J=Xm(W,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=A(l,{[`${W}-rtl`]:"rtl"===E},J.className,H,Q,Z),[oe,re]=el("Tooltip",F.zIndex),ie=e.createElement(Pm,Object.assign({},F,{zIndex:oe,showArrow:C,placement:R,mouseEnterDelay:_,mouseLeaveDelay:z,prefixCls:W,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),B),getTooltipContainer:T||s||S,ref:$,builtinPlacements:L,overlay:D,visible:q,onVisibleChange:e=>{var n,o;I(!P&&e),P||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(o=t.onVisibleChange)||void 0===o||o.call(t,e))},afterVisibleChange:null!=p?p:f,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:wl(V,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),q?Hs(X,{className:G}):X);return Y(e.createElement(Ys.Provider,{value:re},ie))})),Ym=Gm;"production"!==process.env.NODE_ENV&&(Ym.displayName="Tooltip"),Ym._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:o,placement:r="top",title:i,color:a,overlayInnerStyle:s}=t,{getPrefixCls:l}=e.useContext(ii),c=l("tooltip",n),[u,d,p]=Wm(c),f=Xm(c,a),h=f.arrowStyle,g=Object.assign(Object.assign({},s),f.overlayStyle),m=A(d,p,c,`${c}-pure`,`${c}-placement-${r}`,o,f.className);return u(e.createElement("div",{className:m,style:h},e.createElement("div",{className:`${c}-arrow`}),e.createElement(km,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const Qm=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:p,titleBorderBottom:f,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},qi(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:r,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},Tm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Zm=e=>{const{componentCls:t}=e;return{[t]:ji.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}};var Jm=Qi("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=Oi(e,{popoverBg:t,popoverColor:n});return[Qm(o),Zm(o),zp(o,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,p=n-o,f=p/2,h=p/2-t,g=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Lm(e)),Am({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${f}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),ev=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 tv=t=>{let{title:n,content:o,prefixCls:r}=t;return n||o?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${r}-title`},n),o&&e.createElement("div",{className:`${r}-inner-content`},o)):null},nv=t=>{const{hashId:n,prefixCls:o,className:r,style:i,placement:a="top",title:s,content:l,children:c}=t,u=Sm(s),d=Sm(l),p=A(n,o,`${o}-pure`,`${o}-placement-${a}`,r);return e.createElement("div",{className:p,style:i},e.createElement("div",{className:`${o}-arrow`}),e.createElement(km,Object.assign({},t,{className:n,prefixCls:o}),c||e.createElement(tv,{prefixCls:o,title:u,content:d})))};var ov=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 rv=e.forwardRef(((t,n)=>{var o,r;const{prefixCls:i,title:a,content:s,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:p=.1,mouseLeaveDelay:f=.1,onOpenChange:h,overlayStyle:g={}}=t,m=ov(t,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=e.useContext(ii),b=v("popover",i),[y,x,C]=Jm(b),w=v(),S=A(l,x,C),[k,E]=wi(!1,{value:null!==(o=t.open)&&void 0!==o?o:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),O=(e,t)=>{E(e,!0),null==h||h(e,t)},$=Sm(a),N=Sm(s);return y(e.createElement(Ym,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:f,overlayStyle:g},m,{prefixCls:b,overlayClassName:S,ref:n,open:k,onOpenChange:e=>{O(e)},overlay:$||N?e.createElement(tv,{prefixCls:b,title:$,content:N}):null,transitionName:wl(w,"zoom-big",m.transitionName),"data-popover-inject":!0}),Hs(d,{onKeyDown:t=>{var n,o;e.isValidElement(d)&&(null===(o=null==d?void 0:(n=d.props).onKeyDown)||void 0===o||o.call(n,t)),(e=>{e.keyCode===qs.ESC&&O(!1,e)})(t)}})))}));rv._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:o}=t,r=ev(t,["prefixCls","className"]),{getPrefixCls:i}=e.useContext(ii),a=i("popover",n),[s,l,c]=Jm(a);return s(e.createElement(nv,Object.assign({},r,{prefixCls:a,hashId:l,className:A(o,c)})))},"production"!==process.env.NODE_ENV&&(rv.displayName="Popover");const iv=t=>{const{size:n,shape:o}=e.useContext(mm),r=e.useMemo((()=>({size:t.size||n,shape:t.shape||o})),[t.size,t.shape,n,o]);return e.createElement(mm.Provider,{value:r},t.children)},av=wm;av.Group=t=>{var n,o,r;const{getPrefixCls:i,direction:a}=e.useContext(ii),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:p,size:f,shape:h,maxPopoverPlacement:g,maxPopoverTrigger:m,children:v,max:b}=t;if("production"!==process.env.NODE_ENV){const e=_o("Avatar.Group");e.deprecated(!d,"maxCount","max={{ count: number }}"),e.deprecated(!p,"maxStyle","max={{ style: CSSProperties }}"),e.deprecated(!g,"maxPopoverPlacement","max={{ popover: PopoverProps }}"),e.deprecated(!m,"maxPopoverTrigger","max={{ popover: PopoverProps }}")}const y=i("avatar",s),x=`${y}-group`,C=Ks(y),[w,S,k]=ym(y,C),E=A(x,{[`${x}-rtl`]:"rtl"===a},k,C,l,c,S),O=H(v).map(((e,t)=>Hs(e,{key:`avatar-key-${t}`}))),$=(null==b?void 0:b.count)||d,N=O.length;if($&&$<N){const t=O.slice(0,$),i=O.slice($,N),a=(null==b?void 0:b.style)||p,s=(null===(n=null==b?void 0:b.popover)||void 0===n?void 0:n.trigger)||m||"hover",l=(null===(o=null==b?void 0:b.popover)||void 0===o?void 0:o.placement)||g||"top",c=Object.assign(Object.assign({content:i},null==b?void 0:b.popover),{overlayClassName:A(`${x}-popover`,null===(r=null==b?void 0:b.popover)||void 0===r?void 0:r.overlayClassName),placement:l,trigger:s});return t.push(e.createElement(rv,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},c),e.createElement(wm,{style:a},"+"+(N-$)))),w(e.createElement(iv,{shape:h,size:f},e.createElement("div",{className:E,style:u},t)))}return w(e.createElement(iv,{shape:h,size:f},e.createElement("div",{className:E,style:u},O)))};var sv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},lv=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:sv}))},cv=e.forwardRef(lv);"production"!==process.env.NODE_ENV&&(cv.displayName="VerticalAlignTopOutlined");const uv=new ko("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),dv=new ko("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),pv=new ko("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),fv=new ko("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),hv=new ko("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),gv=new ko("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),mv=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return Oi(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%)"})},vv=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 bv=Qi("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:p,marginXS:f,calc:h}=e,g=`${o}-scroll-number`,m=ea(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({},qi(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:Yt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${Yt(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:p,height:p,fontSize:s,lineHeight:Yt(p),borderRadius:h(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Yt(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 ${Yt(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:gv,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:uv,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:f,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:dv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:pv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:fv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:hv,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%)"}}})}})(mv(e))),vv);var yv=Qi(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=ea(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({},qi(e)),{position:"absolute",top:o,padding:`0 ${Yt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Yt(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:`${Yt(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"}})}})(mv(e))),vv);const xv=t=>{const{className:n,prefixCls:o,style:r,color:i,children:a,text:s,placement:l="end",rootClassName:c}=t,{getPrefixCls:u,direction:d}=e.useContext(ii),p=u("ribbon",o),f=`${p}-wrapper`,[h,g,m]=yv(p,f),v=qm(i,!1),b=A(p,`${p}-placement-${l}`,{[`${p}-rtl`]:"rtl"===d,[`${p}-color-${i}`]:v},n),y={},x={};return i&&!v&&(y.background=i,x.color=i),h(e.createElement("div",{className:A(f,c,g,m)},a,e.createElement("div",{className:A(b,g),style:Object.assign(Object.assign({},y),r)},e.createElement("span",{className:`${p}-text`},s),e.createElement("div",{className:`${p}-corner`,style:x}))))};"production"!==process.env.NODE_ENV&&(xv.displayName="Ribbon");const Cv=t=>{const{prefixCls:n,value:o,current:r,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),e.createElement("span",{style:a,className:A(`${n}-only-unit`,{current:r})},o)};function wv(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const Sv=t=>{const{prefixCls:n,count:o,value:r}=t,i=Number(r),a=Math.abs(o),[s,l]=e.useState(i),[c,u]=e.useState(a),d=()=>{l(i),u(a)};let p,f;if(e.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))p=[e.createElement(Cv,Object.assign({},t,{key:i,current:!0}))],f={transition:"none"};else{p=[];const n=i+10,o=[];for(let e=i;e<=n;e+=1)o.push(e);const r=o.findIndex((e=>e%10===s));p=o.map(((n,o)=>{const i=n%10;return e.createElement(Cv,Object.assign({},t,{key:n,value:i,offset:o-r,current:o===r}))}));f={transform:`translateY(${-wv(s,i,c<a?1:-1)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:f,onTransitionEnd:d},p)};var kv=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 Ev=e.forwardRef(((t,n)=>{const{prefixCls:o,count:r,className:i,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=t,p=kv(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=e.useContext(ii),h=f("scroll-number",o),g=Object.assign(Object.assign({},p),{"data-show":c,style:s,className:A(h,i,a),title:l});let m=r;if(r&&Number(r)%1==0){const t=String(r).split("");m=e.createElement("bdi",null,t.map(((n,o)=>e.createElement(Sv,{prefixCls:h,count:Number(r),value:n,key:t.length-o}))))}return(null==s?void 0:s.borderColor)&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?Hs(d,(e=>({className:A(`${h}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(u,Object.assign({},g,{ref:n}),m)}));var Ov=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 $v=e.forwardRef(((t,n)=>{var o,r,i,s,l;const{prefixCls:c,scrollNumberPrefixCls:d,children:p,status:f,text:h,color:g,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:x,offset:C,style:w,className:S,rootClassName:k,classNames:E,styles:O,showZero:$=!1}=t,N=Ov(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:I,badge:P}=e.useContext(ii),L=M("badge",c),[j,D,T]=bv(L),R=m>v?`${v}+`:m,_="0"===R||0===R,z=(null!=f||null!=g)&&(null===m||_&&!$),B=b&&!_,H=B?"":R,F=u((()=>(null==H||""===H||_&&!$)&&!B),[H,_,$,B]),W=a(m);F||(W.current=m);const V=W.current,K=a(H);F||(K.current=H);const q=K.current,X=a(B);F||(X.current=B);const U=u((()=>{if(!C)return Object.assign(Object.assign({},null==P?void 0:P.style),w);const e={marginTop:C[1]};return"rtl"===I?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==P?void 0:P.style),w)}),[I,C,w,null==P?void 0:P.style]),G=null!=x?x:"string"==typeof V||"number"==typeof V?V:void 0,Y=F||!h?null:e.createElement("span",{className:`${L}-status-text`},h),Q=V&&"object"==typeof V?Hs(V,(e=>({style:Object.assign(Object.assign({},U),e.style)}))):void 0,Z=qm(g,!1),J=A(null==E?void 0:E.indicator,null===(o=null==P?void 0:P.classNames)||void 0===o?void 0:o.indicator,{[`${L}-status-dot`]:z,[`${L}-status-${f}`]:!!f,[`${L}-color-${g}`]:Z}),ee={};g&&!Z&&(ee.color=g,ee.background=g);const te=A(L,{[`${L}-status`]:z,[`${L}-not-a-wrapper`]:!p,[`${L}-rtl`]:"rtl"===I},S,k,null==P?void 0:P.className,null===(r=null==P?void 0:P.classNames)||void 0===r?void 0:r.root,null==E?void 0:E.root,D,T);if(!p&&z){const t=U.color;return j(e.createElement("span",Object.assign({},N,{className:te,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==P?void 0:P.styles)||void 0===i?void 0:i.root),U)}),e.createElement("span",{className:J,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),ee)}),h&&e.createElement("span",{style:{color:t},className:`${L}-status-text`},h)))}return j(e.createElement("span",Object.assign({ref:n},N,{className:te,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)}),p,e.createElement(Ra,{visible:!F,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n}=t;var o,r;const i=M("scroll-number",d),a=X.current,s=A(null==E?void 0:E.indicator,null===(o=null==P?void 0:P.classNames)||void 0===o?void 0:o.indicator,{[`${L}-dot`]:a,[`${L}-count`]:!a,[`${L}-count-sm`]:"small"===y,[`${L}-multiple-words`]:!a&&q&&q.toString().length>1,[`${L}-status-${f}`]:!!f,[`${L}-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),e.createElement(Ev,{prefixCls:i,show:!F,motionClassName:n,className:s,count:q,title:G,style:l,key:"scrollNumber"},Q)})),Y))})),Nv=$v;Nv.Ribbon=xv,"production"!==process.env.NODE_ENV&&(Nv.displayName="Badge");var Mv={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"},Iv=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:Mv}))},Pv=e.forwardRef(Iv);"production"!==process.env.NODE_ENV&&(Pv.displayName="RightOutlined");var Lv=qs.ESC,jv=qs.TAB;var Av=c((function(e,n){var o=e.overlay,r=e.arrow,i=e.prefixCls,a=u((function(){return"function"==typeof o?o():o}),[o]),s=de(n,ge(a));return t.createElement(t.Fragment,null,r&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:fe(a)?s:void 0}))})),Dv={adjustX:1,adjustY:1},Tv=[0,0],Rv={topLeft:{points:["bl","tl"],overflow:Dv,offset:[0,-4],targetOffset:Tv},top:{points:["bc","tc"],overflow:Dv,offset:[0,-4],targetOffset:Tv},topRight:{points:["br","tr"],overflow:Dv,offset:[0,-4],targetOffset:Tv},bottomLeft:{points:["tl","bl"],overflow:Dv,offset:[0,4],targetOffset:Tv},bottom:{points:["tc","bc"],overflow:Dv,offset:[0,4],targetOffset:Tv},bottomRight:{points:["tr","br"],overflow:Dv,offset:[0,4],targetOffset:Tv}},_v=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function zv(n,o){var r,i=n.arrow,a=void 0!==i&&i,s=n.prefixCls,l=void 0===s?"rc-dropdown":s,c=n.transitionName,u=n.animation,d=n.align,p=n.placement,f=void 0===p?"bottomLeft":p,h=n.placements,g=void 0===h?Rv:h,m=n.getPopupContainer,v=n.showAction,b=n.hideAction,y=n.overlayClassName,x=n.overlayStyle,C=n.visible,w=n.trigger,S=void 0===w?["hover"]:w,k=n.autoFocus,E=n.overlay,O=n.children,$=n.onVisibleChange,N=Pt(n,_v),M=vt(t.useState(),2),I=M[0],P=M[1],L="visible"in n?C:I,j=t.useRef(null),T=t.useRef(null),R=t.useRef(null);t.useImperativeHandle(o,(function(){return j.current}));var _=function(e){P(e),null==$||$(e)};!function(t){var n=t.visible,o=t.triggerRef,r=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,s=e.useRef(!1),l=function(){var e,t;n&&(null===(e=o.current)||void 0===e||null===(t=e.focus)||void 0===t||t.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 Lv:l();break;case jv:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&ft(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[n])}({visible:L,triggerRef:R,onVisibleChange:_,autoFocus:k,overlayRef:T});var z,B,H,F=function(){return t.createElement(Av,{ref:T,overlay:E,prefixCls:l,arrow:a})},W=t.cloneElement(O,{className:A(null===(r=O.props)||void 0===r?void 0:r.className,L&&(z=n.openClassName,void 0!==z?z:"".concat(l,"-open"))),ref:fe(O)?de(R,ge(O)):void 0}),V=b;return V||-1===S.indexOf("contextMenu")||(V=["click"]),t.createElement(wh,D({builtinPlacements:g},N,{prefixCls:l,ref:j,popupClassName:A(y,Q({},"".concat(l,"-show-arrow"),a)),popupStyle:x,action:S,showAction:v,hideAction:V,popupPlacement:f,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:L,stretch:(B=n.minOverlayWidthMatchTrigger,H=n.alignPoint,("minOverlayWidthMatchTrigger"in n?B:!H)?"minWidth":""),popup:"function"==typeof E?F:F(),onPopupVisibleChange:_,onPopupClick:function(e){var t=n.onOverlayClick;P(!1),t&&t(e)},getPopupContainer:m}),W)}var Bv=t.forwardRef(zv),Hv=e.createContext(null);function Fv(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Wv(t){return Fv(e.useContext(Hv),t)}var Vv=["children","locked"],Kv=e.createContext(null);function qv(t){var n=t.children,o=t.locked,r=Pt(t,Vv),i=e.useContext(Kv),a=le((function(){return function(e,t){var n=J({},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!(o||e[0]===t[0]&&Lt(e[1],t[1],!0))}));return e.createElement(Kv.Provider,{value:a},n)}var Xv=[],Uv=e.createContext(null);function Gv(){return e.useContext(Uv)}var Yv=e.createContext(Xv);function Qv(t){var n=e.useContext(Yv);return e.useMemo((function(){return void 0!==t?[].concat(st(n),[t]):n}),[n,t])}var Zv=e.createContext(null),Jv=e.createContext({});function eb(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Sl(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 tb=qs.LEFT,nb=qs.RIGHT,ob=qs.UP,rb=qs.DOWN,ib=qs.ENTER,ab=qs.ESC,sb=qs.HOME,lb=qs.END,cb=[ob,rb,tb,nb];function ub(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=st(e.querySelectorAll("*")).filter((function(e){return eb(e,t)}));return eb(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function db(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=ub(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 pb=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(Fv(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function fb(t,n,o,r,i,a,s,l,c,u){var d=e.useRef(),p=e.useRef();p.current=n;var f=function(){ft.cancel(d.current)};return e.useEffect((function(){return function(){f()}}),[]),function(e){var h=e.which;if([].concat(cb,[ib,ab,sb,lb]).includes(h)){var g=a(),m=pb(g,r),v=m,b=v.elements,y=v.key2element,x=v.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),w=x.get(C),S=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===ib)return{inlineTrigger:!0};var p=(Q(r={},ob,l),Q(r,rb,c),r),f=(Q(i={},tb,n?c:l),Q(i,nb,n?l:c),Q(i,rb,u),Q(i,ib,u),i),h=(Q(a={},ob,l),Q(a,rb,c),Q(a,ib,u),Q(a,ab,d),Q(a,tb,n?u:d),Q(a,nb,n?d:u),a);switch(null===(s={inline:p,horizontal:f,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h}["".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}}(t,1===s(w,!0).length,o,h);if(!S&&h!==sb&&h!==lb)return;(cb.includes(h)||[sb,lb].includes(h))&&e.preventDefault();var k=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),f(),d.current=ft((function(){p.current===o&&t.focus()}))}};if([sb,lb].includes(h)||S.sibling||!C){var E,O,$=ub(E=C&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,b);O=h===sb?$[0]:h===lb?$[$.length-1]:db(E,b,C,S.offset),k(O)}else if(S.inlineTrigger)c(w);else if(S.offset>0)c(w,!0),f(),d.current=ft((function(){m=pb(g,r);var e=C.getAttribute("aria-controls"),t=db(document.getElementById(e),m.elements);k(t)}),5);else if(S.offset<0){var N=s(w,!0),M=N[N.length-2],I=y.get(M);c(M,!1),k(I)}}null==u||u(e)}}var hb="__RC_UTIL_PATH_SPLIT__",gb=function(e){return e.join(hb)},mb="rc-menu-more";function vb(){var t=vt(e.useState({}),2)[1],n=a(new Map),o=a(new Map),r=vt(e.useState([]),2),i=r[0],s=r[1],l=a(0),c=a(!1),u=h((function(e,r){"production"!==process.env.NODE_ENV&&U(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=gb(r);o.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=h((function(e,t){var r=gb(t);o.current.delete(r),n.current.delete(e)}),[]),p=h((function(e){s(e)}),[]),f=h((function(e,t){var o=n.current.get(e)||"",r=o.split(hb);return t&&i.includes(r[0])&&r.unshift(mb),r}),[i]),g=h((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),m=h((function(e){var t="".concat(n.current.get(e)).concat(hb),r=new Set;return st(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return e.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:f,getKeys:function(){var e=st(n.current.keys());return i.length&&e.push(mb),e},getSubPathKeys:m}}function bb(t){var n=e.useRef(t);n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return t?o:void 0}var yb=Math.random().toFixed(5).toString().slice(2),xb=0;function Cb(t,n,o,r){var i=e.useContext(Kv),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===t};return n||(c.onMouseEnter=function(e){null==o||o({key:t,domEvent:e}),s(t)},c.onMouseLeave=function(e){null==r||r({key:t,domEvent:e}),l(t)}),c}function wb(t){var n=e.useContext(Kv),o=n.mode,r=n.rtl,i=n.inlineIndent;if("inline"!==o)return null;return r?{paddingRight:t*i}:{paddingLeft:t*i}}function Sb(t){var n,o=t.icon,r=t.props,i=t.children;return null===o||!1===o?null:("function"==typeof o?n=e.createElement(o,J({},r)):"boolean"!=typeof o&&(n=o),n||i||null)}var kb=["item"];function Eb(e){var t=e.item,n=Pt(e,kb);return Object.defineProperty(n,"item",{get:function(){return U(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Ob=["title","attribute","elementRef"],$b=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Nb=["active"],Mb=function(){qe(n,e.Component);var t=Qe(n);function n(){return Fe(this,n),t.apply(this,arguments)}return Ve(n,[{key:"render",value:function(){var t=this.props,n=t.title,o=t.attribute,r=t.elementRef,i=ot(Pt(t,Ob),["eventKey","popupClassName","popupOffset","onTitleClick"]);return U(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(Ff.Item,D({},o,{title:"string"==typeof n?n:void 0},i,{ref:r}))}}]),n}(),Ib=e.forwardRef((function(t,n){var o,r=t.style,i=t.className,a=t.eventKey,s=t.warnKey,l=t.disabled,c=t.itemIcon,u=t.children,d=t.role,p=t.onMouseEnter,f=t.onMouseLeave,h=t.onClick,g=t.onKeyDown,m=t.onFocus,v=Pt(t,$b),b=Wv(a),y=e.useContext(Kv),x=y.prefixCls,C=y.onItemClick,w=y.disabled,S=y.overflowDisabled,k=y.itemIcon,E=y.selectedKeys,O=y.onActive,$=e.useContext(Jv)._internalRenderMenuItem,N="".concat(x,"-item"),M=e.useRef(),I=e.useRef(),P=w||l,L=pe(n,I),j=Qv(a);"production"!==process.env.NODE_ENV&&s&&U(!1,"MenuItem should not leave undefined `key`.");var T=function(e){return{key:a,keyPath:st(j).reverse(),item:M.current,domEvent:e}},R=c||k,_=Cb(a,P,p,f),z=_.active,B=Pt(_,Nb),H=E.includes(a),F=wb(j.length),W={};"option"===t.role&&(W["aria-selected"]=H);var V=e.createElement(Mb,D({ref:M,elementRef:L,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":S&&b?null:b},v,B,W,{component:"li","aria-disabled":l,style:J(J({},F),r),className:A(N,(o={},Q(o,"".concat(N,"-active"),z),Q(o,"".concat(N,"-selected"),H),Q(o,"".concat(N,"-disabled"),P),o),i),onClick:function(e){if(!P){var t=T(e);null==h||h(Eb(t)),C(t)}},onKeyDown:function(e){if(null==g||g(e),e.which===qs.ENTER){var t=T(e);null==h||h(Eb(t)),C(t)}},onFocus:function(e){O(a),null==m||m(e)}}),u,e.createElement(Sb,{props:J(J({},t),{},{isSelected:H}),icon:R}));return $&&(V=$(V,t,{selected:H})),V}));function Pb(t,n){var o=t.eventKey,r=Gv(),i=Qv(o);return e.useEffect((function(){if(r)return r.registerPath(o,i),function(){r.unregisterPath(o,i)}}),[i]),r?null:e.createElement(Ib,D({},t,{ref:n}))}var Lb=e.forwardRef(Pb),jb=["className","children"],Ab=function(t,n){var o=t.className,r=t.children,i=Pt(t,jb),a=e.useContext(Kv),s=a.prefixCls,l=a.mode,c=a.rtl;return e.createElement("ul",D({className:A(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),o),role:"menu"},i,{"data-menu-list":!0,ref:n}),r)},Db=e.forwardRef(Ab);function Tb(t,n){return H(t).map((function(t,o){if(e.isValidElement(t)){var r,i,a=t.key,s=null!==(r=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,l=null==s;l&&(s="tmp_key-".concat([].concat(st(n),[o]).join("-")));var c={key:s,eventKey:s};return"production"!==process.env.NODE_ENV&&l&&(c.warnKey=!0),e.cloneElement(t,c)}return t}))}Db.displayName="SubMenuList";var Rb={adjustX:1,adjustY:1},_b={topLeft:{points:["bl","tl"],overflow:Rb},topRight:{points:["br","tr"],overflow:Rb},bottomLeft:{points:["tl","bl"],overflow:Rb},bottomRight:{points:["tr","br"],overflow:Rb},leftTop:{points:["tr","tl"],overflow:Rb},leftBottom:{points:["br","bl"],overflow:Rb},rightTop:{points:["tl","tr"],overflow:Rb},rightBottom:{points:["bl","br"],overflow:Rb}},zb={topLeft:{points:["bl","tl"],overflow:Rb},topRight:{points:["br","tr"],overflow:Rb},bottomLeft:{points:["tl","bl"],overflow:Rb},bottomRight:{points:["tr","br"],overflow:Rb},rightTop:{points:["tr","tl"],overflow:Rb},rightBottom:{points:["br","bl"],overflow:Rb},leftTop:{points:["tl","tr"],overflow:Rb},leftBottom:{points:["bl","br"],overflow:Rb}};function Bb(e,t,n){return t||(n?n[e]||n.other:void 0)}var Hb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Fb(t){var n=t.prefixCls,o=t.visible,r=t.children,i=t.popup,a=t.popupStyle,s=t.popupClassName,l=t.popupOffset,c=t.disabled,u=t.mode,d=t.onVisibleChange,p=e.useContext(Kv),f=p.getPopupContainer,h=p.rtl,g=p.subMenuOpenDelay,m=p.subMenuCloseDelay,v=p.builtinPlacements,b=p.triggerSubMenuAction,y=p.forceSubMenuRender,x=p.rootClassName,C=p.motion,w=p.defaultMotions,S=vt(e.useState(!1),2),k=S[0],E=S[1],O=J(J({},h?zb:_b),v),$=Hb[u],N=Bb(u,C,w),M=e.useRef(N);"inline"!==u&&(M.current=N);var I=J(J({},M.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=e.useRef();return e.useEffect((function(){return P.current=ft((function(){E(o)})),function(){ft.cancel(P.current)}}),[o]),e.createElement(wh,{prefixCls:n,popupClassName:A("".concat(n,"-popup"),Q({},"".concat(n,"-rtl"),h),s,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:$,popupVisible:k,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:m,onPopupVisibleChange:d,forceRender:y,popupMotion:I,fresh:!0},r)}function Wb(t){var n=t.id,o=t.open,r=t.keyPath,i=t.children,a="inline",s=e.useContext(Kv),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,p=s.mode,f=e.useRef(!1);f.current=p===a;var h=vt(e.useState(!f.current),2),g=h[0],m=h[1],v=!!f.current&&o;e.useEffect((function(){f.current&&m(!1)}),[p]);var b=J({},Bb(a,u,d));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||m(!0),null==y?void 0:y(e)},g?null:e.createElement(qv,{mode:a,locked:!f.current},e.createElement(Ra,D({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(t){var o=t.className,r=t.style;return e.createElement(Db,{id:n,className:o,style:r},i)})))}var Vb=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Kb=["active"],qb=e.forwardRef((function(t,n){var o,r=t.style,i=t.className,a=t.title,s=t.eventKey,l=t.warnKey,c=t.disabled,u=t.internalPopupClose,d=t.children,p=t.itemIcon,f=t.expandIcon,h=t.popupClassName,g=t.popupOffset,m=t.popupStyle,v=t.onClick,b=t.onMouseEnter,y=t.onMouseLeave,x=t.onTitleClick,C=t.onTitleMouseEnter,w=t.onTitleMouseLeave,S=Pt(t,Vb),k=Wv(s),E=e.useContext(Kv),O=E.prefixCls,$=E.mode,N=E.openKeys,M=E.disabled,I=E.overflowDisabled,P=E.activeKey,L=E.selectedKeys,j=E.itemIcon,T=E.expandIcon,R=E.onItemClick,_=E.onOpenChange,z=E.onActive,B=e.useContext(Jv)._internalRenderSubMenuItem,H=e.useContext(Zv).isSubPathKey,F=Qv(),W="".concat(O,"-submenu"),V=M||c,K=e.useRef(),q=e.useRef();"production"!==process.env.NODE_ENV&&l&&U(!1,"SubMenu should not leave undefined `key`.");var X=null!=p?p:j,G=null!=f?f:T,Y=N.includes(s),Z=!I&&Y,ee=H(L,s),te=Cb(s,V,C,w),ne=te.active,oe=Pt(te,Kb),re=vt(e.useState(!1),2),ie=re[0],ae=re[1],se=function(e){V||ae(e)},le=e.useMemo((function(){return ne||"inline"!==$&&(ie||H([P],s))}),[$,ne,P,ie,s,H]),ce=wb(F.length),ue=bb((function(e){null==v||v(Eb(e)),R(e)})),de=k&&"".concat(k,"-popup"),pe=e.createElement("div",D({role:"menuitem",style:ce,className:"".concat(W,"-title"),tabIndex:V?null:-1,ref:K,title:"string"==typeof a?a:null,"data-menu-id":I&&k?null:k,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":V,onClick:function(e){V||(null==x||x({key:s,domEvent:e}),"inline"===$&&_(s,!Y))},onFocus:function(){z(s)}},oe),a,e.createElement(Sb,{icon:"horizontal"!==$?G:void 0,props:J(J({},t),{},{isOpen:Z,isSubMenu:!0})},e.createElement("i",{className:"".concat(W,"-arrow")}))),fe=e.useRef($);if("inline"!==$&&F.length>1?fe.current="vertical":fe.current=$,!I){var he=fe.current;pe=e.createElement(Fb,{mode:he,prefixCls:W,visible:!u&&Z&&"inline"!==$,popupClassName:h,popupOffset:g,popupStyle:m,popup:e.createElement(qv,{mode:"horizontal"===he?"vertical":he},e.createElement(Db,{id:de,ref:q},d)),disabled:V,onVisibleChange:function(e){"inline"!==$&&_(s,e)}},pe)}var ge=e.createElement(Ff.Item,D({ref:n,role:"none"},S,{component:"li",style:r,className:A(W,"".concat(W,"-").concat($),i,(o={},Q(o,"".concat(W,"-open"),Z),Q(o,"".concat(W,"-active"),le),Q(o,"".concat(W,"-selected"),ee),Q(o,"".concat(W,"-disabled"),V),o)),onMouseEnter:function(e){se(!0),null==b||b({key:s,domEvent:e})},onMouseLeave:function(e){se(!1),null==y||y({key:s,domEvent:e})}}),pe,!I&&e.createElement(Wb,{id:de,open:Z,keyPath:F},d));return B&&(ge=B(ge,t,{selected:ee,active:le,open:Z,disabled:V})),e.createElement(qv,{onItemClick:ue,mode:"horizontal"===$?"vertical":$,itemIcon:X,expandIcon:G},ge)})),Xb=e.forwardRef((function(t,n){var o,r=t.eventKey,i=t.children,a=Qv(r),s=Tb(i,a),l=Gv();return e.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),o=l?s:e.createElement(qb,D({ref:n},t),s),e.createElement(Yv.Provider,{value:a},o)}));function Ub(t){var n=t.className,o=t.style,r=e.useContext(Kv).prefixCls;return Gv()?null:e.createElement("li",{role:"separator",className:A("".concat(r,"-item-divider"),n),style:o})}"production"!==process.env.NODE_ENV&&(Xb.displayName="SubMenu");var Gb=["className","title","eventKey","children"],Yb=e.forwardRef((function(t,n){var o=t.className,r=t.title;t.eventKey;var i=t.children,a=Pt(t,Gb),s=e.useContext(Kv).prefixCls,l="".concat(s,"-item-group");return e.createElement("li",D({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:A(l,o)}),e.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),e.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))})),Qb=e.forwardRef((function(t,n){var o=t.eventKey,r=Tb(t.children,Qv(o));return Gv()?r:e.createElement(Yb,D({ref:n},ot(t,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(Qb.displayName="MenuItemGroup");var Zb=["label","children","key","type"];function Jb(t,n){var o=n.item,r=n.group,i=n.submenu,a=n.divider;return(t||[]).map((function(t,s){if(t&&"object"===T(t)){var l=t,c=l.label,u=l.children,d=l.key,p=l.type,f=Pt(l,Zb),h=null!=d?d:"tmp-".concat(s);return u||"group"===p?"group"===p?e.createElement(r,D({key:h},f,{title:c}),Jb(u,n)):e.createElement(i,D({key:h},f,{title:c}),Jb(u,n)):"divider"===p?e.createElement(a,D({key:h},f)):e.createElement(o,D({key:h},f),c)}return null})).filter((function(e){return e}))}function ey(e,t,n,o){var r=e,i=J({divider:Ub,item:Lb,group:Qb,submenu:Xb},o);return t&&(r=Jb(t,i)),Tb(r,n)}var ty=["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"],ny=[],oy=e.forwardRef((function(t,n){var o,r,i=t,a=i.prefixCls,s=void 0===a?"rc-menu":a,l=i.rootClassName,c=i.style,u=i.className,d=i.tabIndex,p=void 0===d?0:d,f=i.items,h=i.children,m=i.direction,v=i.id,b=i.mode,y=void 0===b?"vertical":b,x=i.inlineCollapsed,C=i.disabled,w=i.disabledOverflow,k=i.subMenuOpenDelay,E=void 0===k?.1:k,O=i.subMenuCloseDelay,$=void 0===O?.1:O,N=i.forceSubMenuRender,M=i.defaultOpenKeys,I=i.openKeys,P=i.activeKey,L=i.defaultActiveFirst,j=i.selectable,T=void 0===j||j,R=i.multiple,_=void 0!==R&&R,z=i.defaultSelectedKeys,B=i.selectedKeys,H=i.onSelect,F=i.onDeselect,W=i.inlineIndent,V=void 0===W?24:W,K=i.motion,q=i.defaultMotions,X=i.triggerSubMenuAction,G=void 0===X?"hover":X,Y=i.builtinPlacements,Z=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,oe=i.overflowedIndicatorPopupClassName,re=i.getPopupContainer,ie=i.onClick,ae=i.onOpenChange,se=i.onKeyDown,le=i.openAnimation,ce=i.openTransitionName,ue=i._internalRenderMenuItem,de=i._internalRenderSubMenuItem,pe=i._internalComponents,fe=Pt(i,ty),he=vt(e.useMemo((function(){return[ey(h,f,ny,pe),ey(h,f,ny,{})]}),[h,f,pe]),2),ge=he[0],me=he[1],ve=vt(e.useState(!1),2),be=ve[0],ye=ve[1],xe=e.useRef(),Ce=function(t){var n=vt(wi(t,{value:t}),2),o=n[0],r=n[1];return e.useEffect((function(){xb+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(yb,"-").concat(xb);r("rc-menu-uuid-".concat(e))}),[]),o}(v),we="rtl"===m;"production"!==process.env.NODE_ENV&&U(!le&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Se=wi(M,{value:I,postState:function(e){return e||ny}}),ke=vt(Se,2),Ee=ke[0],Oe=ke[1],$e=function(e){function t(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?S(t):t()},Ne=vt(e.useState(Ee),2),Me=Ne[0],Ie=Ne[1],Pe=e.useRef(!1),Le=vt(e.useMemo((function(){return"inline"!==y&&"vertical"!==y||!x?[y,!1]:["vertical",x]}),[y,x]),2),je=Le[0],Ae=Le[1],De="inline"===je,Te=vt(e.useState(je),2),Re=Te[0],_e=Te[1],ze=vt(e.useState(Ae),2),Be=ze[0],He=ze[1];e.useEffect((function(){_e(je),He(Ae),Pe.current&&(De?Oe(Me):$e(ny))}),[je,Ae]);var Fe=vt(e.useState(0),2),We=Fe[0],Ve=Fe[1],Ke=We>=ge.length-1||"horizontal"!==Re||w;e.useEffect((function(){De&&Ie(Ee)}),[Ee]),e.useEffect((function(){return Pe.current=!0,function(){Pe.current=!1}}),[]);var qe=vb(),Xe=qe.registerPath,Ue=qe.unregisterPath,Ge=qe.refreshOverflowKeys,Ye=qe.isSubPathKey,Qe=qe.getKeyPath,Ze=qe.getKeys,Je=qe.getSubPathKeys,et=e.useMemo((function(){return{registerPath:Xe,unregisterPath:Ue}}),[Xe,Ue]),tt=e.useMemo((function(){return{isSubPathKey:Ye}}),[Ye]);e.useEffect((function(){Ge(Ke?ny:ge.slice(We+1).map((function(e){return e.key})))}),[We,Ke]);var nt=vt(wi(P||L&&(null===(o=ge[0])||void 0===o?void 0:o.key),{value:P}),2),ot=nt[0],rt=nt[1],it=bb((function(e){rt(e)})),at=bb((function(){rt(void 0)}));g(n,(function(){return{list:xe.current,focus:function(e){var t,n,o=Ze(),r=pb(o,Ce),i=r.elements,a=r.key2element,s=r.element2key,l=ub(xe.current,i),c=null!=ot?ot: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 lt=wi(z||[],{value:B,postState:function(e){return Array.isArray(e)?e:null==e?ny:[e]}}),ct=vt(lt,2),ut=ct[0],dt=ct[1],pt=bb((function(e){null==ie||ie(Eb(e)),function(e){if(T){var t,n=e.key,o=ut.includes(n);t=_?o?ut.filter((function(e){return e!==n})):[].concat(st(ut),[n]):[n],dt(t);var r=J(J({},e),{},{selectedKeys:t});o?null==F||F(r):null==H||H(r)}!_&&Ee.length&&"inline"!==Re&&$e(ny)}(e)})),ft=bb((function(e,t){var n=Ee.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var o=Je(e);n=n.filter((function(e){return!o.has(e)}))}Lt(Ee,n,!0)||$e(n,!0)})),ht=fb(Re,ot,we,Ce,xe,Ze,Qe,rt,(function(e,t){var n=null!=t?t:!Ee.includes(e);ft(e,n)}),se);e.useEffect((function(){ye(!0)}),[]);var gt=e.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),mt="horizontal"!==Re||w?ge:ge.map((function(t,n){return e.createElement(qv,{key:t.key,overflowDisabled:n>We},t)})),bt=e.createElement(Ff,D({id:v,ref:xe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Lb,className:A(s,"".concat(s,"-root"),"".concat(s,"-").concat(Re),u,(r={},Q(r,"".concat(s,"-inline-collapsed"),Be),Q(r,"".concat(s,"-rtl"),we),r),l),dir:m,style:c,role:"menu",tabIndex:p,data:mt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,o=n?ge.slice(-n):null;return e.createElement(Xb,{eventKey:mb,title:ne,disabled:Ke,internalPopupClose:0===n,popupClassName:oe},o)},maxCount:"horizontal"!==Re||w?Ff.INVALIDATE:Ff.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ve(e)},onKeyDown:ht},fe));return e.createElement(Jv.Provider,{value:gt},e.createElement(Hv.Provider,{value:Ce},e.createElement(qv,{prefixCls:s,rootClassName:l,mode:Re,openKeys:Ee,rtl:we,disabled:C,motion:be?K:null,defaultMotions:be?q:null,activeKey:ot,onActive:it,onInactive:at,selectedKeys:ut,inlineIndent:V,subMenuOpenDelay:E,subMenuCloseDelay:$,forceSubMenuRender:N,builtinPlacements:Y,triggerSubMenuAction:G,getPopupContainer:re,itemIcon:Z,expandIcon:ee,onItemClick:pt,onOpenChange:ft},e.createElement(Zv.Provider,{value:tt},bt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Uv.Provider,{value:et},me)))))})),ry=oy;ry.Item=Lb,ry.SubMenu=Xb,ry.ItemGroup=Qb,ry.Divider=Ub;var iy={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"},ay=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:iy}))},sy=e.forwardRef(ay);"production"!==process.env.NODE_ENV&&(sy.displayName="BarsOutlined");var ly={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"},cy=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:ly}))},uy=e.forwardRef(cy);"production"!==process.env.NODE_ENV&&(uy.displayName="LeftOutlined");const dy=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var py=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 fy={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},hy=e.createContext({}),gy=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),my=e.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:s,children:c,defaultCollapsed:u=!1,theme:p="dark",style:f={},collapsible:h=!1,reverseArrow:g=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:x,onBreakpoint:C}=t,w=py(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=r(dy),[k,E]=d("collapsed"in t?t.collapsed:u),[O,$]=d(!1);l((()=>{"collapsed"in t&&E(t.collapsed)}),[t.collapsed]);const N=(e,n)=>{"collapsed"in t||E(e),null==x||x(e,n)},M=a();M.current=e=>{$(e.matches),null==C||C(e.matches),k!==e.matches&&N(e.matches,"responsive")},l((()=>{function e(e){return M.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in fy){t=n(`screen and (max-width: ${fy[y]})`);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)}}}),[y]),l((()=>{const e=gy("ant-sider-");return S.addSider(e),()=>S.removeSider(e)}),[]);const I=()=>{N(!k,"clickTrigger")},{getPrefixCls:P}=r(ii),L=e.useMemo((()=>({siderCollapsed:k})),[k]);return e.createElement(hy.Provider,{value:L},(()=>{const t=P("layout-sider",o),r=ot(w,["collapsed"]),a=k?v:m,l=(u=a,!isNaN(parseFloat(u))&&isFinite(u)?`${a}px`:String(a));var u;const d=0===parseFloat(String(v||0))?e.createElement("span",{onClick:I,className:A(`${t}-zero-width-trigger`,`${t}-zero-width-trigger-${g?"right":"left"}`),style:b},s||e.createElement(sy,null)):null,y={expanded:g?e.createElement(Pv,null):e.createElement(uy,null),collapsed:g?e.createElement(uy,null):e.createElement(Pv,null)}[k?"collapsed":"expanded"],x=null!==s?d||e.createElement("div",{className:`${t}-trigger`,onClick:I,style:{width:l}},s||y):null,C=Object.assign(Object.assign({},f),{flex:`0 0 ${l}`,maxWidth:l,minWidth:l,width:l}),S=A(t,`${t}-${p}`,{[`${t}-collapsed`]:!!k,[`${t}-has-trigger`]:h&&null!==s&&!d,[`${t}-below`]:!!O,[`${t}-zero-width`]:0===parseFloat(l)},i);return e.createElement("aside",Object.assign({className:S},r,{style:C,ref:n}),e.createElement("div",{className:`${t}-children`},c),h||O&&d?x:null)})())}));"production"!==process.env.NODE_ENV&&(my.displayName="Sider");var vy={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"},by=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:vy}))},yy=e.forwardRef(by);"production"!==process.env.NODE_ENV&&(yy.displayName="EllipsisOutlined");const xy=i({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Cy=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 wy=t=>{const{prefixCls:n,className:o,dashed:r}=t,i=Cy(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(ii),s=a("menu",n),l=A({[`${s}-item-divider-dashed`]:!!r},o);return e.createElement(Ub,Object.assign({className:l},i))},Sy=t=>{var n;const{className:o,children:r,icon:i,title:a,danger:s}=t,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=e.useContext(xy),{siderCollapsed:f}=e.useContext(hy);let h=a;void 0===a?h=c?r:"":!1===a&&(h="");const g={title:h};f||p||(g.title=null,g.open=!1);const m=H(r).length;let v=e.createElement(Lb,Object.assign({},ot(t,["title","icon","danger"]),{className:A({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?m+1:m)},o),title:"string"==typeof a?a:void 0}),Hs(i,{className:A(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),(t=>{const n=e.createElement("span",{className:`${l}-title-content`},r);return(!i||e.isValidElement(r)&&"span"===r.type)&&r&&t&&c&&"string"==typeof r?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):n})(p));return d||(v=e.createElement(Ym,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v};var ky=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 Ey=e.createContext(null),Oy=e.forwardRef(((t,n)=>{const{children:o}=t,r=ky(t,["children"]),i=e.useContext(Ey),a=e.useMemo((()=>Object.assign(Object.assign({},i),r)),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=function(e){return he(e)&&fe(e)}(o),l=pe(n,s?o.ref:null);return e.createElement(Ey.Provider,{value:a},e.createElement(kd,{space:!0},s?e.cloneElement(o,{ref:l}):o))})),$y=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:`${Yt(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"}}}},Ny=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(${Yt(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Yt(n)})`}}}}},My=e=>Object.assign({},Ui(e)),Iy=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:S,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:$,itemActiveBg:N,menuSubMenuBg:M,horizontalItemSelectedColor:I,horizontalItemSelectedBg:P,horizontalItemBorderRadius:L,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},My(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({},My(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}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${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:L,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Yt(c)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Yt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Yt(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}},Py=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:Yt(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Yt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Ly=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:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,v={height:o,lineHeight:Yt(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Py(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Py(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Yt(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 ${p}`,`background ${p}`,`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% - ${Yt(e.calc(d).div(2).equal())} - ${Yt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Yt(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({},Ki),{paddingInline:f})}}]},jy=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"}}}},Ay=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(${Yt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Yt(a)})`}}}}},Dy=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:p,subMenuItemBorderRadius:f,menuArrowSize:h,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({},qi(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:`${Yt(s)} ${Yt(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"}}}),jy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Yt(e.calc(o).mul(2).equal())} ${Yt(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,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:p},jy(e)),Ay(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${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}}}),Ay(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Yt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Yt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Yt(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Yt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Yt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ty=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:C,fontSize:w,controlHeightSM:S,fontSizeLG:k,colorTextLightSolid:E,colorErrorHover:O}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,M=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,I=new qr(E).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:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:f,activeBarBorderWidth:N,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:C,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:S-w,collapsedIconSize:k,groupTitleFontSize:w,darkItemDisabledColor:new qr(E).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${N}px)`:`calc(100% - ${2*M}px)`}};const Ry=t=>{var n;const{popupClassName:o,icon:r,title:i,theme:a}=t,s=e.useContext(xy),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=Qv();let p;if(r){const t=e.isValidElement(i)&&"span"===i.type;p=e.createElement(e.Fragment,null,Hs(r,{className:A(e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),t?i:e.createElement("span",{className:`${l}-title-content`},i))}else p=c&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${l}-title-content`},i);const f=e.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[h]=el("Menu");return e.createElement(xy.Provider,{value:f},e.createElement(Xb,Object.assign({},ot(t,["icon"]),{title:p,popupClassName:A(l,o,`${l}-${a||u}`),popupStyle:{zIndex:h}})))};var _y=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 zy(e){return null===e||!1===e}const By={item:Sy,submenu:Ry,divider:wy},Hy=c(((t,n)=>{var o;const r=e.useContext(Ey),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=e.useContext(ii),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:x,selectable:C,onClick:w,overflowedIndicatorPopupClassName:S}=t,k=ot(_y(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const e=_o("Menu");"production"!==process.env.NODE_ENV&&e(!("inlineCollapsed"in t&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&e(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),e.deprecated("items"in t&&!t.children,"children","items")}null===(o=i.validator)||void 0===o||o.call(i,{mode:x});const E=yi((function(){var e;null==w||w.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,$=null!=C?C:i.selectable,N=e.useMemo((()=>void 0!==b?b:v),[v,b]),M={horizontal:{motionName:`${u}-slide-up`},inline:Cl(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),P=Ks(I),[L,j,D]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Qi("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:p,darkItemHoverColor:f,darkItemDisabledColor:h,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),C=Oi(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}),w=Oi(C,{itemColor:r,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Dy(C),$y(C),Ly(C),Iy(C,"light"),Iy(w,"dark"),Ny(C),sp(C),Pp(C,"slide-up"),Pp(C,"slide-down"),zp(C,"zoom-big")]}),Ty,{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)}(I,P,!r),T=A(`${I}-${h}`,null==c?void 0:c.className,p),R=e.useMemo((()=>{var t,n;if("function"==typeof g||zy(g))return g||null;if("function"==typeof i.expandIcon||zy(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||zy(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const o=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==c?void 0:c.expandIcon;return Hs(o,{className:A(`${I}-submenu-expand-icon`,e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,I]),_=e.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:m})),[I,N,l,m,h]);return L(e.createElement(Ey.Provider,{value:null},e.createElement(xy.Provider,{value:_},e.createElement(ry,Object.assign({getPopupContainer:s,overflowedIndicator:e.createElement(yy,null),overflowedIndicatorPopupClassName:A(I,`${I}-${h}`,S),mode:O,selectable:$,onClick:E},k,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:T,prefixCls:I,direction:l,defaultMotions:M,expandIcon:R,ref:n,rootClassName:A(y,j,i.rootClassName,D,P),_internalComponents:By})))))})),Fy=c(((t,n)=>{const o=a(null),r=e.useContext(hy);return g(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),e.createElement(Hy,Object.assign({ref:o},t,r))}));Fy.Item=Sy,Fy.SubMenu=Ry,Fy.Divider=wy,Fy.ItemGroup=Qb,"production"!==process.env.NODE_ENV&&(Fy.displayName="Menu");const Wy=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},Vy=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:h,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:wp},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:kp},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Sp},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ep}}},Tm(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},qi(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Gi(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Yt(c)} ${Yt(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Yt(c)} ${Yt(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Gi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Yt(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Yt(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Pp(e,"slide-up"),Pp(e,"slide-down"),Cp(e,"move-up"),Cp(e,"move-down"),zp(e,"zoom-big")]]};var Ky=Qi("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=Oi(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Vy(i),Wy(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Am({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Lm(e))),{resetStyle:!1});const qy=t=>{var n;const{menu:o,arrow:r,prefixCls:i,children:a,trigger:s,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:p,overlayStyle:f,open:h,onOpenChange:g,visible:m,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:C="",overlay:w,transitionName:S}=t,{getPopupContainer:k,getPrefixCls:E,direction:O,dropdown:$}=e.useContext(ii),N=_o("Dropdown");"production"!==process.env.NODE_ENV&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach((e=>{let[n,o]=e;N.deprecated(!(n in t),n,o)})),N.deprecated(!("overlay"in t),"overlay","menu"));const M=e.useMemo((()=>{const e=E();return void 0!==S?S:C.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[E,C,S]),I=e.useMemo((()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:"rtl"===O?"bottomRight":"bottomLeft"),[C,O]);if("production"!==process.env.NODE_ENV){if(C.includes("Center")){const e=C.slice(0,C.indexOf("Center"));"production"!==process.env.NODE_ENV&&N(!C.includes("Center"),"deprecated",`You are using '${C}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach((e=>{let[n,o]=e;N.deprecated(!(n in t),n,o)}))}const P=E("dropdown",i),L=Ks(P),[j,D,T]=Ky(P,L),[,R]=Wi(),_=e.Children.only(a),z=Hs(_,{className:A(`${P}-trigger`,{[`${P}-rtl`]:"rtl"===O},_.props.className),disabled:null!==(n=_.props.disabled)&&void 0!==n?n:l}),B=l?[]:s,H=!!(null==B?void 0:B.includes("contextMenu")),[F,W]=wi(!1,{value:null!=h?h:m}),V=yi((e=>{null==g||g(e,{source:"trigger"}),null==v||v(e),W(e)})),K=A(d,p,D,T,L,null==$?void 0:$.className,{[`${P}-rtl`]:"rtl"===O}),q=Bm({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:x,offset:R.marginXXS,arrowWidth:r?R.sizePopupArrow:0,borderRadius:R.borderRadius}),X=e.useCallback((()=>{(null==o?void 0:o.selectable)&&(null==o?void 0:o.multiple)||(null==g||g(!1,{source:"menu"}),W(!1))}),[null==o?void 0:o.selectable,null==o?void 0:o.multiple]),[U,G]=el("Dropdown",null==f?void 0:f.zIndex);let Y=e.createElement(Bv,Object.assign({alignPoint:H},ot(t,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:F,builtinPlacements:q,arrow:!!r,overlayClassName:K,prefixCls:P,getPopupContainer:u||k,transitionName:M,trigger:B,overlay:()=>{let t;return t=(null==o?void 0:o.items)?e.createElement(Fy,Object.assign({},o)):"function"==typeof w?w():w,c&&(t=c(t)),t=e.Children.only("string"==typeof t?e.createElement("span",null,t):t),e.createElement(Oy,{prefixCls:`${P}-menu`,rootClassName:A(T,L),expandIcon:e.createElement("span",{className:`${P}-menu-submenu-arrow`},e.createElement(Pv,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:e=>{let{mode:t}=e;"production"!==process.env.NODE_ENV&&N(!t||"vertical"===t,"usage",`mode="${t}" is not supported for Dropdown's Menu.`)}},t)},placement:I,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},null==$?void 0:$.style),f),{zIndex:U})}),z);return U&&(Y=e.createElement(Ys.Provider,{value:G},Y)),j(Y)};const Xy=xf(qy,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));qy._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(Xy,Object.assign({},t),e.createElement("span",null)),"production"!==process.env.NODE_ENV&&(qy.displayName="Dropdown");const Uy=t=>{let{children:n}=t;const{getPrefixCls:o}=e.useContext(ii),r=o("breadcrumb");return e.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};Uy.__ANT_BREADCRUMB_SEPARATOR=!0;var Gy=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 Yy(t,n,o,r){if(null==o)return null;const{className:i,onClick:a}=n,s=Gy(n,["className","onClick"]),l=Object.assign(Object.assign({},_s(s,{data:!0,aria:!0})),{onClick:a});return void 0!==r?e.createElement("a",Object.assign({},l,{className:A(`${t}-link`,i),href:r}),o):e.createElement("span",Object.assign({},l,{className:A(`${t}-link`,i)}),o)}function Qy(e,t){return(n,o,r,i,a)=>{if(t)return t(n,o,r,i);const s=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,o);return Yy(e,n,s,a)}}var Zy=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 Jy=t=>{const{prefixCls:n,separator:o="/",children:r,menu:i,overlay:a,dropdownProps:s,href:l}=t;if("production"!==process.env.NODE_ENV){_o("Breadcrumb.Item").deprecated(!("overlay"in t),"overlay","menu")}const c=(t=>{if(i||a){const o=Object.assign({},s);if(i){const t=i||{},{items:n}=t,r=Zy(t,["items"]);o.menu=Object.assign(Object.assign({},r),{items:null==n?void 0:n.map(((t,n)=>{var{key:o,title:r,label:i,path:a}=t,s=Zy(t,["key","title","label","path"]);let c=null!=i?i:r;return a&&(c=e.createElement("a",{href:`${l}${a}`},c)),Object.assign(Object.assign({},s),{key:null!=o?o:n,label:c})}))})}else a&&(o.overlay=a);return e.createElement(qy,Object.assign({placement:"bottom"},o),e.createElement("span",{className:`${n}-overlay-link`},t,e.createElement(om,null)))}return t})(r);return null!=c?e.createElement(e.Fragment,null,e.createElement("li",null,c),o&&e.createElement(Uy,null,o)):null},ex=t=>{const{prefixCls:n,children:o,href:r}=t,i=Zy(t,["prefixCls","children","href"]),{getPrefixCls:a}=e.useContext(ii),s=a("breadcrumb",n);return e.createElement(Jy,Object.assign({},i,{prefixCls:s}),Yy(s,i,o,r))};ex.__ANT_BREADCRUMB_ITEM=!0;var tx=ex;var nx=Qi("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Yt(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:o(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Gi(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Yt(e.paddingXXS)}`,marginInline:o(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})(Oi(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),ox=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 rx(e){const{breadcrumbName:t,children:n}=e,o=ox(e,["breadcrumbName","children"]),r=Object.assign({title:t},o);return n&&(r.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=ox(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var ix=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 ax=t=>{const{prefixCls:n,separator:o="/",style:r,className:i,rootClassName:a,routes:s,items:l,children:c,itemRender:d,params:p={}}=t,f=ix(t,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:h,direction:g,breadcrumb:m}=e.useContext(ii);let v;const b=h("breadcrumb",n),[y,x,C]=nx(b),w=function(e,t){return u((()=>e||(t?t.map(rx):null)),[e,t])}(l,s);if("production"!==process.env.NODE_ENV){const e=_o("Breadcrumb");if(e.deprecated(!s,"routes","items"),!w||0===w.length){const t=H(c);e.deprecated(0===t.length,"Breadcrumb.Item and Breadcrumb.Separator","items"),t.forEach((t=>{t&&"production"!==process.env.NODE_ENV&&e(t.type&&(!0===t.type.__ANT_BREADCRUMB_ITEM||!0===t.type.__ANT_BREADCRUMB_SEPARATOR),"usage","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children")}))}}const S=Qy(b,d);if(w&&w.length>0){const t=[],n=l||s;v=w.map(((r,i)=>{const{path:a,key:s,type:l,menu:c,overlay:u,onClick:d,className:f,separator:h,dropdownProps:g}=r,m=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(p,a);void 0!==m&&t.push(m);const v=null!=s?s:i;if("separator"===l)return e.createElement(Uy,{key:v},h);const y={},x=i===w.length-1;c?y.menu=c:u&&(y.overlay=u);let{href:C}=r;return t.length&&void 0!==m&&(C=`#/${t.join("/")}`),e.createElement(Jy,Object.assign({key:v},y,_s(r,{data:!0,aria:!0}),{className:f,dropdownProps:g,href:C,separator:x?"":o,onClick:d,prefixCls:b}),S(r,p,n,t,C))}))}else if(c){const e=H(c).length;v=H(c).map(((t,n)=>{if(!t)return t;return Hs(t,{separator:n===e-1?"":o,key:n})}))}const k=A(b,null==m?void 0:m.className,{[`${b}-rtl`]:"rtl"===g},i,a,x,C),E=Object.assign(Object.assign({},null==m?void 0:m.style),r);return y(e.createElement("nav",Object.assign({className:k,style:E},f),e.createElement("ol",null,v)))};ax.Item=tx,ax.Separator=Uy,"production"!==process.env.NODE_ENV&&(ax.displayName="Breadcrumb");const sx=e.createContext(null),lx=sx.Provider,cx=e.createContext(null),ux=cx.Provider;var dx=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],px=c((function(t,n){var o=t.prefixCls,r=void 0===o?"rc-checkbox":o,i=t.className,s=t.style,l=t.checked,c=t.disabled,u=t.defaultChecked,d=void 0!==u&&u,p=t.type,f=void 0===p?"checkbox":p,h=t.title,m=t.onChange,v=Pt(t,dx),b=a(null),y=a(null),x=vt(wi(d,{value:l}),2),C=x[0],w=x[1];g(n,(function(){return{focus:function(e){var t;null===(t=b.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=b.current)||void 0===e||e.blur()},input:b.current,nativeElement:y.current}}));var S=A(r,i,Q(Q({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),c));return e.createElement("span",{className:S,title:h,style:s,ref:y},e.createElement("input",D({},v,{className:"".concat(r,"-input"),ref:b,onChange:function(e){c||("checked"in t||w(e.target.checked),null==m||m({target:J(J({},t),{},{type:f,checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},disabled:c,checked:!!C,type:f})),e.createElement("span",{className:"".concat(r,"-inner")}))}));const fx=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},qi(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},hx=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:p,paddingXS:f,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(r).sub(b(4).mul(2)),C=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},qi(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Yt(u)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Ui(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}})}},gx=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:h,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:k,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:$,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:I,calc:P}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Yt(P(n).sub(P(r).mul(2)).equal()),background:d,border:`${Yt(r)} ${i} ${a}`,borderBlockStartWidth:P(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:P(r).mul(-1).equal(),insetInlineStart:P(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Yt(r)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${o}-group-large &`]:{height:f,fontSize:p,lineHeight:Yt(P(f).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:h,paddingInline:P(g).sub(r).equal(),paddingBlock:0,lineHeight:Yt(P(h).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Ui(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:x,background:N,borderColor:N,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:I,borderColor:I}},"&-disabled":{color:C,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:k,backgroundColor:S,borderColor:a,boxShadow:"none"}}}};var mx=Qi("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${Yt(n)} ${t}`,r=Oi(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[fx(r),hx(r),gx(r)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:f,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:h,radioBgColor:t?s:d}}),{unitless:{radioSize:!0,dotSize:!0}}),vx=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 bx=(t,n)=>{var o,r;const i=e.useContext(sx),a=e.useContext(cx),{getPrefixCls:s,direction:l,radio:c}=e.useContext(ii),u=e.useRef(null),d=de(n,u),{isFormItemInput:p}=e.useContext(Cd);if("production"!==process.env.NODE_ENV){const e=_o("Radio");"production"!==process.env.NODE_ENV&&e(!("optionType"in t),"usage","`optionType` is only support in Radio.Group.")}const f=e=>{var n,o;null===(n=t.onChange)||void 0===n||n.call(t,e),null===(o=null==i?void 0:i.onChange)||void 0===o||o.call(i,e)},{prefixCls:h,className:g,rootClassName:m,children:v,style:b,title:y}=t,x=vx(t,["prefixCls","className","rootClassName","children","style","title"]),C=s("radio",h),w="button"===((null==i?void 0:i.optionType)||a),S=w?`${C}-button`:C,k=Ks(C),[E,O,$]=mx(C,k),N=Object.assign({},x),M=e.useContext(li);i&&(N.name=i.name,N.onChange=f,N.checked=t.value===i.value,N.disabled=null!==(o=N.disabled)&&void 0!==o?o:i.disabled),N.disabled=null!==(r=N.disabled)&&void 0!==r?r:M;const I=A(`${S}-wrapper`,{[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:N.disabled,[`${S}-wrapper-rtl`]:"rtl"===l,[`${S}-wrapper-in-form-item`]:p},null==c?void 0:c.className,g,m,O,$,k);return E(e.createElement(Ll,{component:"Radio",disabled:N.disabled},e.createElement("label",{className:I,style:Object.assign(Object.assign({},null==c?void 0:c.style),b),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,title:y},e.createElement(px,Object.assign({},N,{className:A(N.className,{[Ol]:!w}),type:"radio",prefixCls:S,ref:d})),void 0!==v?e.createElement("span",null,v):null)))},yx=e.forwardRef(bx);"production"!==process.env.NODE_ENV&&(yx.displayName="Radio");const xx=e.forwardRef(((t,n)=>{const{getPrefixCls:o,direction:r}=e.useContext(ii),[i,a]=wi(t.defaultValue,{value:t.value}),{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:p,children:f,size:h,style:g,id:m,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:x}=t,C=o("radio",s),w=`${C}-group`,S=Ks(C),[k,E,O]=mx(C,S);let $=f;u&&u.length>0&&($=u.map((t=>"string"==typeof t||"number"==typeof t?e.createElement(yx,{key:t.toString(),prefixCls:C,disabled:p,value:t,checked:i===t},t):e.createElement(yx,{key:`radio-group-value-options-${t.value}`,prefixCls:C,disabled:t.disabled||p,value:t.value,checked:i===t.value,title:t.title,style:t.style,id:t.id,required:t.required},t.label))));const N=jl(h),M=A(w,`${w}-${d}`,{[`${w}-${N}`]:N,[`${w}-rtl`]:"rtl"===r},l,c,E,O,S);return k(e.createElement("div",Object.assign({},_s(t,{aria:!0,data:!0}),{className:M,style:g,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:x,id:m,ref:n}),e.createElement(lx,{value:{onChange:e=>{const n=i,o=e.target.value;"value"in t||a(o);const{onChange:r}=t;r&&o!==n&&r(e)},value:i,disabled:t.disabled,name:t.name,optionType:t.optionType}},$)))}));var Cx=e.memo(xx),wx=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 Sx=(t,n)=>{const{getPrefixCls:o}=e.useContext(ii),{prefixCls:r}=t,i=wx(t,["prefixCls"]),a=o("radio",r);return e.createElement(ux,{value:"button"},e.createElement(yx,Object.assign({prefixCls:a},i,{type:"radio",ref:n})))};var kx=e.forwardRef(Sx);const Ex=yx;function Ox(e){return Oi(e,{inputAffixPadding:e.paddingXXS})}Ex.Button=kx,Ex.Group=Cx,Ex.__ANT_RADIO=!0;const $x=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:p,colorPrimaryHover:f,colorPrimary:h,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:p,activeBorderColor:h,hoverBorderColor:f,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}},Nx=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Mx=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({},Nx(Oi(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ix=(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}}),Px=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ix(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Lx=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ix(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Mx(e))}),Px(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Px(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),jx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ax=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},jx(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),jx(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Mx(e))}})}),Dx=(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)}},Tx=(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}}),Rx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Tx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),_x=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Mx(e))}),Rx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Rx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),zx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Bx=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:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},zx(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),zx(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:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Hx=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Yt(t)} ${Yt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Fx=e=>({padding:`${Yt(e.paddingBlockSM)} ${Yt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Wx=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Yt(e.paddingBlock)} ${Yt(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({},Hx(e)),"&-sm":Object.assign({},Fx(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Vx=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({},Hx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Fx(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 ${Yt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Yt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Yt(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:`${Yt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Yt(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}}}})}},Kx=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({},qi(e)),Wx(e)),Lx(e)),_x(e)),Dx(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"}})}},qx=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 ${Yt(e.inputAffixPadding)}`}}}},Xx=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({},Wx(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}}}),qx(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},Ux=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},qi(e)),Vx(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}}},Ax(e)),Bx(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}}})})}},Gx=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}}}}},Yx=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}}}}}},Qx=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Zx=Qi("Input",(e=>{const t=Oi(e,Ox(e));return[Kx(t),Yx(t),Xx(t),Ux(t),Gx(t),Qx(t),Mc(t)]}),$x,{resetFont:!1}),Jx={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"},eC=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:Jx}))},tC=e.forwardRef(eC);"production"!==process.env.NODE_ENV&&(tC.displayName="PlusOutlined");var nC=i(null),oC={width:0,height:0,left:0,top:0};function rC(t,n){var o=e.useRef(t),r=vt(e.useState({}),2)[1];return[o.current,function(e){var t="function"==typeof e?e(o.current):e;t!==o.current&&n(t,o.current),o.current=t,r({})}]}var iC=Math.pow(.995,20);function aC(e){var t=vt(d(0),2),n=t[0],o=t[1],r=a(0),i=a();return i.current=e,on((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var sC={width:0,height:0,left:0,top:0,right:0};function lC(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function cC(e){return String(e).replace(/"/g,"TABS_DQ")}function uC(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var dC=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.editable,i=t.locale,a=t.style;return r&&!1!==r.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(o,"-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})),pC=e.forwardRef((function(t,n){var o,r=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var s={};return"object"!==T(a)||e.isValidElement(a)?s.right=a:s=a,"right"===r&&(o=s.right),"left"===r&&(o=s.left),o?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},o):null}));"production"!==process.env.NODE_ENV&&(pC.displayName="ExtraContent");var fC=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.id,i=t.tabs,a=t.locale,s=t.mobile,c=t.more,u=void 0===c?{}:c,p=t.style,f=t.className,h=t.editable,g=t.tabBarGutter,m=t.rtl,v=t.removeAriaLabel,b=t.onTabClick,y=t.getPopupContainer,x=t.popupClassName,C=vt(d(!1),2),w=C[0],S=C[1],k=vt(d(null),2),E=k[0],O=k[1],$=u.icon,N=void 0===$?"More":$,M="".concat(r,"-more-popup"),I="".concat(o,"-dropdown"),P=null!==E?"".concat(M,"-").concat(E):null,L=null==a?void 0:a.dropdownAriaLabel;var j=e.createElement(ry,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},prefixCls:"".concat(I,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[E],"aria-label":void 0!==L?L:"expanded dropdown"},i.map((function(t){var n=t.closable,o=t.disabled,i=t.closeIcon,a=t.key,s=t.label,l=uC(n,i,h,o);return e.createElement(Lb,{key:a,id:"".concat(M,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:o},e.createElement("span",null,s),l&&e.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:t,event:e})}(e,a)}},i||h.removeIcon||"×"))})));function T(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void O(a.key)}}l((function(){var e=document.getElementById(P);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),l((function(){w||O(null)}),[w]);var R=Q({},m?"marginRight":"marginLeft",g);i.length||(R.visibility="hidden",R.order=1);var _=A(Q({},"".concat(I,"-rtl"),m)),z=s?null:e.createElement(Bv,D({prefixCls:I,overlay:j,visible:!!i.length&&w,onVisibleChange:S,overlayClassName:A(_,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u),e.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case qs.UP:T(-1),e.preventDefault();break;case qs.DOWN:T(1),e.preventDefault();break;case qs.ESC:S(!1);break;case qs.SPACE:case qs.ENTER:null!==E&&b(E,e)}else[qs.DOWN,qs.SPACE,qs.ENTER].includes(t)&&(S(!0),e.preventDefault())}},N));return e.createElement("div",{className:A("".concat(o,"-nav-operations"),f),style:p,ref:n},z,e.createElement(dC,{prefixCls:o,locale:a,editable:h}))})),hC=e.memo(fC,(function(e,t){return t.tabMoving})),gC=function(t){var n=t.prefixCls,o=t.id,r=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=t.closable,p=t.renderWrapper,f=t.removeAriaLabel,h=t.editable,g=t.onClick,m=t.onFocus,v=t.style,b="".concat(n,"-tab"),y=uC(d,c,h,l);function x(e){l||g(e)}var C=e.useMemo((function(){return u&&"string"==typeof s?e.createElement("span",null,s):s}),[s,u]),w=e.createElement("div",{key:a,"data-node-key":cC(a),className:A(b,Q(Q(Q({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),r),"".concat(b,"-disabled"),l)),style:v,onClick:x},e.createElement("div",{role:"tab","aria-selected":r,id:o&&"".concat(o,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":o&&"".concat(o,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[qs.SPACE,qs.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:m},u&&e.createElement("span",{className:"".concat(b,"-icon")},u),s&&C),y&&e.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},c||h.removeIcon||"×"));return p?p(w):w},mC=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]},vC=function(e,t){return e[t?0:1]},bC=e.forwardRef((function(n,o){var r,i,s,c,p,f=n.className,h=n.style,g=n.id,m=n.animated,v=n.activeKey,b=n.rtl,y=n.extra,x=n.editable,C=n.locale,w=n.tabPosition,S=n.tabBarGutter,k=n.children,E=n.onTabClick,O=n.onTabScroll,$=n.indicator,N=e.useContext(nC),M=N.prefixCls,I=N.tabs,P=a(null),L=a(null),j=a(null),T=a(null),R=a(null),_=a(null),z=a(null),B="top"===w||"bottom"===w,H=rC(0,(function(e,t){B&&O&&O({direction:e>t?"left":"right"})})),F=vt(H,2),W=F[0],V=F[1],K=rC(0,(function(e,t){!B&&O&&O({direction:e>t?"top":"bottom"})})),q=vt(K,2),X=q[0],U=q[1],G=vt(d([0,0]),2),Y=G[0],Z=G[1],ee=vt(d([0,0]),2),te=ee[0],ne=ee[1],oe=vt(d([0,0]),2),re=oe[0],ie=oe[1],ae=vt(d([0,0]),2),se=ae[0],le=ae[1],ce=(r=new Map,i=a([]),s=vt(d({}),2)[1],c=a("function"==typeof r?r():r),p=aC((function(){var e=c.current;i.current.forEach((function(t){e=t(e)})),i.current=[],c.current=e,s({})})),[c.current,function(e){i.current.push(e),p()}]),ue=vt(ce,2),de=ue[0],fe=ue[1],he=function(e,t,n){return u((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||oC,i=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||oC);var u=o.get(l)||J({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(I,de,te[0]),ge=vC(Y,B),me=vC(te,B),ve=vC(re,B),be=vC(se,B),ye=ge<me+ve,xe=ye?ge-be:ge-ve,Ce="".concat(M,"-nav-operations-hidden"),we=0,Se=0;function ke(e){return e<we?we:e>Se?Se:e}B&&b?(we=0,Se=Math.max(0,me-xe)):(we=Math.min(0,xe-me),Se=0);var Ee=a(null),Oe=vt(d(),2),$e=Oe[0],Ne=Oe[1];function Me(){Ne(Date.now())}function Ie(){Ee.current&&clearTimeout(Ee.current)}!function(t,n){var o=vt(d(),2),r=o[0],i=o[1],s=vt(d(0),2),l=s[0],c=s[1],u=vt(d(0),2),p=u[0],f=u[1],h=vt(d(),2),g=h[0],m=h[1],v=a(),b=a(),y=a(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(v.current)},onTouchMove:function(e){if(r){e.preventDefault();var t=e.touches[0],o=t.screenX,a=t.screenY;i({x:o,y:a});var s=o-r.x,u=a-r.y;n(s,u);var d=Date.now();c(d),f(d-l),m({x:s,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),g)){var e=g.x/p,t=g.y/p,o=Math.abs(e),a=Math.abs(t);if(Math.max(o,a)<.1)return;var s=e,l=t;v.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(v.current):n(20*(s*=iC),20*(l*=iC))}),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"===b.current?t:o:i>a?(r=t,b.current="x"):(r=o,b.current="y"),n(-r,-r)&&e.preventDefault()}},e.useEffect((function(){function e(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){y.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 ke(e+t)}))}return!!ye&&(B?n(V,e):n(U,t),Ie(),Me(),!0)})),l((function(){return Ie(),$e&&(Ee.current=setTimeout((function(){Ne(0)}),100)),Ie}),[$e]);var Pe=function(e,t,n,o,r,i,a){var s,l,c,d=a.tabs,p=a.tabPosition,f=a.rtl;return["top","bottom"].includes(p)?(s="width",l=f?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),u((function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;r<n;r+=1){var i=e.get(d[r].key)||sC;if(i[l]+i[s]>c+t){o=r-1;break}}for(var a=0,u=n-1;u>=0;u-=1)if((e.get(d[u].key)||sC)[l]<c){a=u+1;break}return a>=o?[0,0]:[a,o]}),[e,t,o,r,i,c,p,d.map((function(e){return e.key})).join("_"),f])}(he,xe,B?W:X,me,ve,be,J(J({},n),{},{tabs:I})),Le=vt(Pe,2),je=Le[0],Ae=Le[1],De=yi((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=he.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=W;b?t.right<W?n=t.right:t.right+t.width>W+xe&&(n=t.right+t.width-xe):t.left<-W?n=-t.left:t.left+t.width>-W+xe&&(n=-(t.left+t.width-xe)),U(0),V(ke(n))}else{var o=X;t.top<-X?o=-t.top:t.top+t.height>-X+xe&&(o=-(t.top+t.height-xe)),V(0),U(ke(o))}})),Te={};"top"===w||"bottom"===w?Te[b?"marginRight":"marginLeft"]=S:Te.marginTop=S;var Re=I.map((function(t,n){var o=t.key;return e.createElement(gC,{id:g,prefixCls:M,key:o,tab:t,style:0===n?void 0:Te,closable:t.closable,editable:x,active:o===v,renderWrapper:k,removeAriaLabel:null==C?void 0:C.removeAriaLabel,onClick:function(e){E(o,e)},onFocus:function(){De(o),Me(),T.current&&(b||(T.current.scrollLeft=0),T.current.scrollTop=0)}})})),_e=function(){return fe((function(){var e,t=new Map,n=null===(e=R.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach((function(e){var o,r=e.key,i=null===(o=R.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(cC(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=vt(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}))};l((function(){_e()}),[I.map((function(e){return e.key})).join("_")]);var ze=aC((function(){var e=mC(P),t=mC(L),n=mC(j);Z([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=mC(z);ie(o);var r=mC(_);le(r);var i=mC(R);ne([i[0]-o[0],i[1]-o[1]]),_e()})),Be=I.slice(0,je),He=I.slice(Ae+1),Fe=[].concat(st(Be),st(He)),We=he.get(v),Ve=function(e){var n=e.activeTabOffset,o=e.horizontal,r=e.rtl,i=e.indicator,s=void 0===i?{}:i,c=s.size,u=s.align,p=void 0===u?"center":u,f=vt(d(),2),h=f[0],g=f[1],m=a(),v=t.useCallback((function(e){return"function"==typeof c?c(e):"number"==typeof c?c:e}),[c]);function b(){ft.cancel(m.current)}return l((function(){var e={};if(n)if(o){e.width=v(n.width);var t=r?"right":"left";"start"===p&&(e[t]=n[t]),"center"===p&&(e[t]=n[t]+n.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===p&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=v(n.height),"start"===p&&(e.top=n.top),"center"===p&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===p&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return b(),m.current=ft((function(){g(e)})),b}),[n,o,r,p,v]),{style:h}}({activeTabOffset:We,horizontal:B,indicator:$,rtl:b}),Ke=Ve.style;l((function(){De()}),[v,we,Se,lC(We),lC(he),B]),l((function(){ze()}),[b]);var qe,Xe,Ue,Ge,Ye=!!Fe.length,Qe="".concat(M,"-nav-wrap");return B?b?(Xe=W>0,qe=W!==Se):(qe=W<0,Xe=W!==we):(Ue=X<0,Ge=X!==we),e.createElement(nt,{onResize:ze},e.createElement("div",{ref:pe(o,P),role:"tablist",className:A("".concat(M,"-nav"),f),style:h,onKeyDown:function(){Me()}},e.createElement(pC,{ref:L,position:"left",extra:y,prefixCls:M}),e.createElement(nt,{onResize:ze},e.createElement("div",{className:A(Qe,Q(Q(Q(Q({},"".concat(Qe,"-ping-left"),qe),"".concat(Qe,"-ping-right"),Xe),"".concat(Qe,"-ping-top"),Ue),"".concat(Qe,"-ping-bottom"),Ge)),ref:T},e.createElement(nt,{onResize:ze},e.createElement("div",{ref:R,className:"".concat(M,"-nav-list"),style:{transform:"translate(".concat(W,"px, ").concat(X,"px)"),transition:$e?"none":void 0}},Re,e.createElement(dC,{ref:z,prefixCls:M,locale:C,editable:x,style:J(J({},0===Re.length?void 0:Te),{},{visibility:Ye?"hidden":null})}),e.createElement("div",{className:A("".concat(M,"-ink-bar"),Q({},"".concat(M,"-ink-bar-animated"),m.inkBar)),style:Ke}))))),e.createElement(hC,D({},n,{removeAriaLabel:null==C?void 0:C.removeAriaLabel,ref:_,prefixCls:M,tabs:Fe,className:!Ye&&Ce,tabMoving:!!$e})),e.createElement(pC,{ref:j,position:"right",extra:y,prefixCls:M})))})),yC=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.className,i=t.style,a=t.id,s=t.active,l=t.tabKey,c=t.children;return e.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:A(o,s&&"".concat(o,"-active"),r),ref:n},c)}));"production"!==process.env.NODE_ENV&&(yC.displayName="TabPane");var xC=["renderTabBar"],CC=["label","key"],wC=function(t){var n=t.renderTabBar,o=Pt(t,xC),r=e.useContext(nC).tabs;return n?n(J(J({},o),{},{panes:r.map((function(t){var n=t.label,o=t.key,r=Pt(t,CC);return e.createElement(yC,D({tab:n,key:o,tabKey:o},r))}))}),bC):e.createElement(bC,o)};"production"!==process.env.NODE_ENV&&(wC.displayName="TabNavListWrapper");var SC=["key","forceRender","style","className","destroyInactiveTabPane"],kC=function(t){var n=t.id,o=t.activeKey,r=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=e.useContext(nC),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return e.createElement("div",{className:A("".concat(l,"-content-holder"))},e.createElement("div",{className:A("".concat(l,"-content"),"".concat(l,"-content-").concat(i),Q({},"".concat(l,"-content-animated"),u))},c.map((function(t){var i=t.key,s=t.forceRender,l=t.style,c=t.className,p=t.destroyInactiveTabPane,f=Pt(t,SC),h=i===o;return e.createElement(Ra,D({key:i,visible:h,forceRender:s,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(t,o){var r=t.style,a=t.className;return e.createElement(yC,D({},f,{prefixCls:d,id:n,tabKey:i,animated:u,active:h,style:J(J({},l),r),className:A(c,a),ref:o}))}))}))))};var EC=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],OC=0,$C=e.forwardRef((function(t,n){var o=t.id,r=t.prefixCls,i=void 0===r?"rc-tabs":r,a=t.className,s=t.items,c=t.direction,u=t.activeKey,p=t.defaultActiveKey,f=t.editable,h=t.animated,g=t.tabPosition,m=void 0===g?"top":g,v=t.tabBarGutter,b=t.tabBarStyle,y=t.tabBarExtraContent,x=t.locale,C=t.more,w=t.destroyInactiveTabPane,S=t.renderTabBar,k=t.onChange,E=t.onTabClick,O=t.onTabScroll,$=t.getPopupContainer,N=t.popupClassName,M=t.indicator,I=Pt(t,EC),P=e.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===T(e)&&"key"in e}))}),[s]),L="rtl"===c,j=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"===T(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&U(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(h),R=vt(d(!1),2),_=R[0],z=R[1];l((function(){z(Cf())}),[]);var B=vt(wi((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:p}),2),H=B[0],F=B[1],W=vt(d((function(){return P.findIndex((function(e){return e.key===H}))})),2),V=W[0],K=W[1];l((function(){var e,t=P.findIndex((function(e){return e.key===H}));-1===t&&(t=Math.max(0,Math.min(V,P.length-1)),F(null===(e=P[t])||void 0===e?void 0:e.key));K(t)}),[P.map((function(e){return e.key})).join("_"),H,V]);var q=vt(wi(null,{value:o}),2),X=q[0],G=q[1];l((function(){o||(G("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":OC)),OC+=1)}),[]);var Y={id:X,activeKey:H,animated:j,tabPosition:m,rtl:L,mobile:_},Z=J(J({},Y),{},{editable:f,locale:x,more:C,tabBarGutter:v,onTabClick:function(e,t){null==E||E(e,t);var n=e!==H;F(e),n&&(null==k||k(e))},onTabScroll:O,extra:y,style:b,panes:null,getPopupContainer:$,popupClassName:N,indicator:M});return e.createElement(nC.Provider,{value:{tabs:P,prefixCls:i}},e.createElement("div",D({ref:n,id:o,className:A(i,"".concat(i,"-").concat(m),Q(Q(Q({},"".concat(i,"-mobile"),_),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),L),a)},I),e.createElement(wC,D({},Z,{renderTabBar:S})),e.createElement(kC,D({destroyInactiveTabPane:w},Y,{animated:j}))))}));"production"!==process.env.NODE_ENV&&($C.displayName="Tabs");const NC={motionAppear:!1,motionEnter:!0,motionLeave:!0};var MC=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 IC=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}`}}}}},[Pp(e,"slide-up"),Pp(e,"slide-down")]]},PC=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:`${Yt(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:Yt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Yt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Yt(e.borderRadiusLG)} 0 0 ${Yt(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 ${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},LC=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},qi(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:`${Yt(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({},Ki),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Yt(e.paddingXXS)} ${Yt(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"}}})}})}},jC=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:`${Yt(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:Yt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Yt(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:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},AC=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 ${Yt(e.borderRadius)} ${Yt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Yt(e.borderRadius)} ${Yt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Yt(e.borderRadius)} ${Yt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Yt(e.borderRadius)} 0 0 ${Yt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},DC=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}},Gi(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}}}},TC=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:Yt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Yt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Yt(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"}}}}},RC=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({},qi(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 ${Yt(e.paddingXS)}`,background:"transparent",border:`${Yt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Yt(e.borderRadiusLG)} ${Yt(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}},Gi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),DC(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 _C=Qi("Tabs",(e=>{const t=Oi(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Yt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Yt(e.horizontalItemGutter)}`});return[AC(t),TC(t),jC(t),LC(t),PC(t),RC(t),IC(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 zC=()=>null;"production"!==process.env.NODE_ENV&&(zC.displayName="DeprecatedTabPane");var BC=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 HC=t=>{var n,o,r,i,a,s,l,c,u,d,p;const{type:f,className:h,rootClassName:g,size:m,onEdit:v,hideAdd:b,centered:y,addIcon:x,removeIcon:C,moreIcon:w,more:S,popupClassName:k,children:E,items:O,animated:$,style:N,indicatorSize:M,indicator:I}=t,P=BC(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:L}=P,{direction:j,tabs:D,getPrefixCls:T,getPopupContainer:R}=e.useContext(ii),_=T("tabs",L),z=Ks(_),[B,F,W]=_C(_,z);let V;"editable-card"===f&&(V={onEdit:(e,t)=>{let{key:n,event:o}=t;null==v||v("add"===e?o:n,e)},removeIcon:null!==(n=null!=C?C:null==D?void 0:D.removeIcon)&&void 0!==n?n:e.createElement(Ms,null),addIcon:(null!=x?x:null==D?void 0:D.addIcon)||e.createElement(tC,null),showAdd:!0!==b});const K=T();if("production"!==process.env.NODE_ENV){const e=_o("Tabs");"production"!==process.env.NODE_ENV&&e(!("onPrevClick"in t)&&!("onNextClick"in t),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&e(!(M||(null==D?void 0:D.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=jl(m),X=function(t,n){"production"!==process.env.NODE_ENV&&_o("Tabs").deprecated(!n,"Tabs.TabPane","items");if(t)return t;const o=H(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,o=n||{},{tab:r}=o,i=MC(o,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(o)}(O,E),U=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({},NC),{motionName:wl(e,"switch")})),t}(_,$),G=Object.assign(Object.assign({},null==D?void 0:D.style),N),Y={align:null!==(o=null==I?void 0:I.align)&&void 0!==o?o:null===(r=null==D?void 0:D.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:M)&&void 0!==a?a:null===(s=null==D?void 0:D.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==D?void 0:D.indicatorSize};return B(e.createElement($C,Object.assign({direction:j,getPopupContainer:R},P,{items:X,className:A({[`${_}-${q}`]:q,[`${_}-card`]:["card","editable-card"].includes(f),[`${_}-editable-card`]:"editable-card"===f,[`${_}-centered`]:y},null==D?void 0:D.className,h,g,F,W,z),popupClassName:A(k,F,W,z),style:G,editable:V,more:Object.assign({icon:null!==(p=null!==(d=null!==(u=null===(c=null==D?void 0:D.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null==D?void 0:D.moreIcon)&&void 0!==d?d:w)&&void 0!==p?p:e.createElement(yy,null),transitionName:`${K}-slide-up`},S),prefixCls:_,animated:U,indicator:Y})))};HC.TabPane=zC,"production"!==process.env.NODE_ENV&&(HC.displayName="Tabs");var FC=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 WC=t=>{var{prefixCls:n,className:o,hoverable:r=!0}=t,i=FC(t,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=e.useContext(ii),s=a("card",n),l=A(`${s}-grid`,o,{[`${s}-grid-hoverable`]:r});return e.createElement("div",Object.assign({},i,{className:l}))},VC=e=>{const{antCls:t,componentCls:n,headerHeight:o,cardPaddingBase:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${Yt(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ki),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},KC=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Yt(r)} 0 0 0 ${n},\n 0 ${Yt(r)} 0 0 ${n},\n ${Yt(r)} ${Yt(r)} 0 0 ${n},\n ${Yt(r)} 0 0 0 ${n} inset,\n 0 ${Yt(r)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},qC=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Yt(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Yt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:Yt(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Yt(e.lineWidth)} ${e.lineType} ${i}`}}})},XC=e=>Object.assign(Object.assign({margin:`${Yt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ki),"&-description":{color:e.colorTextDescription}}),UC=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${Yt(n)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Yt(e.padding)} ${Yt(n)}`}}},GC=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},YC=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadowTertiary:i,cardPaddingBase:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:VC(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:KC(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:qC(e),[`${t}-meta`]:XC(e)}),[`${t}-bordered`]:{border:`${Yt(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Yt(e.borderRadiusLG)} ${Yt(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:UC(e),[`${t}-loading`]:GC(e),[`${t}-rtl`]:{direction:"rtl"}}},QC=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:o,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Yt(n)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var ZC=Qi("Card",(e=>{const t=Oi(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[YC(t),QC(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),JC=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 ew=t=>{const{actionClasses:n,actions:o=[],actionStyle:r}=t;return e.createElement("ul",{className:n,style:r},o.map(((t,n)=>{const r=`action-${n}`;return e.createElement("li",{style:{width:100/o.length+"%"},key:r},e.createElement("span",null,t))})))},tw=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,rootClassName:i,style:a,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:p=!0,size:f,type:h,cover:g,actions:m,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:x,tabBarExtraContent:C,hoverable:w,tabProps:S={},classNames:k,styles:E}=t,O=JC(t,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:$,direction:N,card:M}=e.useContext(ii);if("production"!==process.env.NODE_ENV){const e=_o("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const I=e=>{var t;return A(null===(t=null==M?void 0:M.classNames)||void 0===t?void 0:t[e],null==k?void 0:k[e])},P=e=>{var t;return Object.assign(Object.assign({},null===(t=null==M?void 0:M.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},L=e.useMemo((()=>{let t=!1;return e.Children.forEach(b,(e=>{(null==e?void 0:e.type)===WC&&(t=!0)})),t}),[b]),j=$("card",o),[D,T,R]=ZC(j),_=e.createElement(ep,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),z=void 0!==y,B=Object.assign(Object.assign({},S),{[z?"activeKey":"defaultActiveKey"]:z?y:x,tabBarExtraContent:C});let H;const F=jl(f),W=F&&"default"!==F?F:"large",V=v?e.createElement(HC,Object.assign({size:W},B,{className:`${j}-head-tabs`,onChange:e=>{var n;null===(n=t.onTabChange)||void 0===n||n.call(t,e)},items:v.map((e=>{var{tab:t}=e,n=JC(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||s||V){const t=A(`${j}-head`,I("header")),n=A(`${j}-head-title`,I("title")),o=A(`${j}-extra`,I("extra")),r=Object.assign(Object.assign({},l),P("header"));H=e.createElement("div",{className:t,style:r},e.createElement("div",{className:`${j}-head-wrapper`},u&&e.createElement("div",{className:n,style:P("title")},u),s&&e.createElement("div",{className:o,style:P("extra")},s)),V)}const K=A(`${j}-cover`,I("cover")),q=g?e.createElement("div",{className:K,style:P("cover")},g):null,X=A(`${j}-body`,I("body")),U=Object.assign(Object.assign({},c),P("body")),G=e.createElement("div",{className:X,style:U},d?_:b),Y=A(`${j}-actions`,I("actions")),Q=(null==m?void 0:m.length)?e.createElement(ew,{actionClasses:Y,actionStyle:P("actions"),actions:m}):null,Z=ot(O,["onTabChange"]),J=A(j,null==M?void 0:M.className,{[`${j}-loading`]:d,[`${j}-bordered`]:p,[`${j}-hoverable`]:w,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:null==v?void 0:v.length,[`${j}-${F}`]:F,[`${j}-type-${h}`]:!!h,[`${j}-rtl`]:"rtl"===N},r,i,T,R),ee=Object.assign(Object.assign({},null==M?void 0:M.style),a);return D(e.createElement("div",Object.assign({ref:n},Z,{className:J,style:ee}),H,q,G,Q))}));var nw=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 ow=tw;ow.Grid=WC,ow.Meta=t=>{const{prefixCls:n,className:o,avatar:r,title:i,description:a}=t,s=nw(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=e.useContext(ii),c=l("card",n),u=A(`${c}-meta`,o),d=r?e.createElement("div",{className:`${c}-meta-avatar`},r):null,p=i?e.createElement("div",{className:`${c}-meta-title`},i):null,f=a?e.createElement("div",{className:`${c}-meta-description`},a):null,h=p||f?e.createElement("div",{className:`${c}-meta-detail`},p,f):null;return e.createElement("div",Object.assign({},s,{className:u}),d,h)},"production"!==process.env.NODE_ENV&&(ow.displayName="Card");var rw={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function iw(e,t,n){var o={}.atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,s=r.noLeading,l=void 0!==s&&s,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function f(){o&&clearTimeout(o)}function h(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s=this,c=Date.now()-p;function h(){p=Date.now(),t.apply(s,r)}function g(){o=void 0}d||(l||!u||o||h(),f(),void 0===u&&c>e?l?(p=Date.now(),a||(o=setTimeout(u?g:h,e))):h():!0!==a&&(o=setTimeout(u?g:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}var aw={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return t.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return t.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function sw(e,t,n){return Math.max(t,Math.min(e,n))}var lw=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},cw=function(e){for(var t=[],n=uw(e),o=dw(e),r=n;r<o;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},uw=function(e){return e.currentSlide-pw(e)},dw=function(e){return e.currentSlide+fw(e)},pw=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},fw=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},hw=function(e){return e&&e.offsetWidth||0},gw=function(e){return e&&e.offsetHeight||0},mw=function(e){var t,n,o,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,o=Math.atan2(n,t),(r=Math.round(180*o/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===i?r>=35&&r<=135?"up":"down":"vertical"},vw=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},bw=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},yw=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return r}(e),o=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=o;break}o=n[r]}return t},xw=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((function(o){if(e.vertical){if(o.offsetTop+gw(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+hw(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},Cw=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},ww=function(e){var t,n;(Cw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=$w(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=J(J({},o),{},{WebkitTransform:r,transform:i,msTransform:a})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},Sw=function(e){Cw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=ww(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},kw=function(e){if(e.unslick)return 0;Cw(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,o=e.slideIndex,r=e.trackRef,i=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,g=e.vertical;if(h||1===e.slideCount)return 0;var m=0;if(i?(m=-Ew(e),s%c!=0&&o+c>s&&(m=-(o>s?l-(o-s):s%c)),a&&(m+=parseInt(l/2))):(s%c!=0&&o+c>s&&(m=l-s%c),a&&(m=parseInt(l/2))),t=g?o*f*-1+m*f:o*u*-1+m*u,!0===p){var v,b=r&&r.node;if(v=o+Ew(e),t=(n=b&&b.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=i?o+Ew(e):o,n=b&&b.children[v],t=0;for(var y=0;y<v;y++)t-=b&&b.children[y]&&b.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},Ew=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},Ow=function(e){return e.unslick||!e.infinite?0:e.slideCount},$w=function(e){return 1===e.slideCount?1:Ew(e)+e.slideCount+Ow(e)},Nw=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Mw(e)?"left":"right":e.targetSlide<e.currentSlide-Iw(e)?"right":"left"},Mw=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o&&t%2==0&&(i+=1),i}return o?0:t-1},Iw=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o||t%2!=0||(i+=1),i}return o?t-1:0},Pw=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Lw=Object.keys(aw);var jw=function(e){var t,n,o,r,i;return o=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},Aw=function(e,t){return e.key+"-"+t},Dw=function(e){var n,o=[],r=[],i=[],a=t.Children.count(e.children),s=uw(e),l=dw(e);return t.Children.forEach(e.children,(function(c,u){var d,p={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?c:t.createElement("div",null);var f=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(J(J({},e),{},{index:u})),h=d.props.className||"",g=jw(J(J({},e),{},{index:u}));if(o.push(t.cloneElement(d,{key:"original"+Aw(d,u),"data-index":u,className:A(g,h),tabIndex:"-1","aria-hidden":!g["slick-active"],style:J(J({outline:"none"},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&a>1&&!1===e.fade&&!e.unslick){var m=a-u;m<=Ew(e)&&((n=-m)>=s&&(d=c),g=jw(J(J({},e),{},{index:n})),r.push(t.cloneElement(d,{key:"precloned"+Aw(d,n),"data-index":n,tabIndex:"-1",className:A(g,h),"aria-hidden":!g["slick-active"],style:J(J({},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(n=a+u)<l&&(d=c),g=jw(J(J({},e),{},{index:n})),i.push(t.cloneElement(d,{key:"postcloned"+Aw(d,n),"data-index":n,tabIndex:"-1",className:A(g,h),"aria-hidden":!g["slick-active"],style:J(J({},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))}})),e.rtl?r.concat(o,i).reverse():r.concat(o,i)},Tw=function(){function e(){var t,n,o,r;Fe(this,e);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=this,o=e,r=[].concat(a),o=Xe(o),Q(t=Ye(n,Ue()?Reflect.construct(o,r||[],Xe(n).constructor):o.apply(n,r)),"node",null),Q(t,"handleRef",(function(e){t.node=e})),t}return qe(e,t.PureComponent),Ve(e,[{key:"render",value:function(){var e=Dw(this.props),n=this.props,o={onMouseEnter:n.onMouseEnter,onMouseOver:n.onMouseOver,onMouseLeave:n.onMouseLeave};return t.createElement("div",D({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},o),e)}}])}();var Rw=function(){function e(){return Fe(this,e),t=this,o=arguments,n=Xe(n=e),Ye(t,Ue()?Reflect.construct(n,o||[],Xe(t).constructor):n.apply(t,o));var t,n,o}return qe(e,t.PureComponent),Ve(e,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,n=this.props,o=n.onMouseEnter,r=n.onMouseOver,i=n.onMouseLeave,a=n.infinite,s=n.slidesToScroll,l=n.slidesToShow,c=n.slideCount,u=n.currentSlide,d=(e={slideCount:c,slidesToScroll:s,slidesToShow:l,infinite:a}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,p={onMouseEnter:o,onMouseOver:r,onMouseLeave:i},f=[],h=0;h<d;h++){var g=(h+1)*s-1,m=a?g:sw(g,0,c-1),v=m-(s-1),b=a?v:sw(v,0,c-1),y=A({"slick-active":a?u>=b&&u<=m:u===b}),x={message:"dots",index:h,slidesToScroll:s,currentSlide:u},C=this.clickHandler.bind(this,x);f=f.concat(t.createElement("li",{key:h,className:y},t.cloneElement(this.props.customPaging(h),{onClick:C})))}return t.cloneElement(this.props.appendDots(f),J({className:this.props.dotsClass},p))}}])}();function _w(e,t,n){return t=Xe(t),Ye(e,Ue()?Reflect.construct(t,n||[],Xe(e).constructor):t.apply(e,n))}var zw=function(){function e(){return Fe(this,e),_w(this,e,arguments)}return qe(e,t.PureComponent),Ve(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},n=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,n=null);var o={key:"0","data-role":"none",className:A(e),style:{display:"block"},onClick:n},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?t.cloneElement(this.props.prevArrow,J(J({},o),r)):t.createElement("button",D({key:"0",type:"button"},o)," ","Previous")}}])}(),Bw=function(){function e(){return Fe(this,e),_w(this,e,arguments)}return qe(e,t.PureComponent),Ve(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},n=this.clickHandler.bind(this,{message:"next"});vw(this.props)||(e["slick-disabled"]=!0,n=null);var o={key:"1","data-role":"none",className:A(e),style:{display:"block"},onClick:n},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?t.cloneElement(this.props.nextArrow,J(J({},o),r)):t.createElement("button",D({key:"1",type:"button"},o)," ","Next")}}])}(),Hw=["animating"];var Fw=function(){function e(n){var o,r,i,a;Fe(this,e),r=this,a=[n],i=Xe(i=e),Q(o=Ye(r,Ue()?Reflect.construct(i,a||[],Xe(r).constructor):i.apply(r,a)),"listRefHandler",(function(e){return o.list=e})),Q(o,"trackRefHandler",(function(e){return o.track=e})),Q(o,"adaptHeight",(function(){if(o.props.adaptiveHeight&&o.list){var e=o.list.querySelector('[data-index="'.concat(o.state.currentSlide,'"]'));o.list.style.height=gw(e)+"px"}})),Q(o,"componentDidMount",(function(){if(o.props.onInit&&o.props.onInit(),o.props.lazyLoad){var e=cw(J(J({},o.props),o.state));e.length>0&&(o.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),o.props.onLazyLoad&&o.props.onLazyLoad(e))}var t=J({listRef:o.list,trackRef:o.track},o.props);o.updateState(t,!0,(function(){o.adaptHeight(),o.props.autoplay&&o.autoPlay("playing")})),"progressive"===o.props.lazyLoad&&(o.lazyLoadTimer=setInterval(o.progressiveLazyLoad,1e3)),o.ro=new _e((function(){o.state.animating?(o.onWindowResized(!1),o.callbackTimers.push(setTimeout((function(){return o.onWindowResized()}),o.props.speed))):o.onWindowResized()})),o.ro.observe(o.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=o.props.pauseOnFocus?o.onSlideFocus:null,e.onblur=o.props.pauseOnFocus?o.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",o.onWindowResized):window.attachEvent("onresize",o.onWindowResized)})),Q(o,"componentWillUnmount",(function(){o.animationEndCallback&&clearTimeout(o.animationEndCallback),o.lazyLoadTimer&&clearInterval(o.lazyLoadTimer),o.callbackTimers.length&&(o.callbackTimers.forEach((function(e){return clearTimeout(e)})),o.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",o.onWindowResized):window.detachEvent("onresize",o.onWindowResized),o.autoplayTimer&&clearInterval(o.autoplayTimer),o.ro.disconnect()})),Q(o,"componentDidUpdate",(function(e){if(o.checkImagesLoad(),o.props.onReInit&&o.props.onReInit(),o.props.lazyLoad){var n=cw(J(J({},o.props),o.state));n.length>0&&(o.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),o.props.onLazyLoad&&o.props.onLazyLoad(n))}o.adaptHeight();var r=J(J({listRef:o.list,trackRef:o.track},o.props),o.state),i=o.didPropsChange(e);i&&o.updateState(r,i,(function(){o.state.currentSlide>=t.Children.count(o.props.children)&&o.changeSlide({message:"index",index:t.Children.count(o.props.children)-o.props.slidesToShow,currentSlide:o.state.currentSlide}),e.autoplay===o.props.autoplay&&e.autoplaySpeed===o.props.autoplaySpeed||(!e.autoplay&&o.props.autoplay?o.autoPlay("playing"):o.props.autoplay?o.autoPlay("update"):o.pause("paused"))}))})),Q(o,"onWindowResized",(function(e){o.debouncedResize&&o.debouncedResize.cancel(),o.debouncedResize=iw(50,(function(){return o.resizeWindow(e)})),o.debouncedResize()})),Q(o,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(o.track&&o.track.node)){var t=J(J({listRef:o.list,trackRef:o.track},o.props),o.state);o.updateState(t,e,(function(){o.props.autoplay?o.autoPlay("update"):o.pause("paused")})),o.setState({animating:!1}),clearTimeout(o.animationEndCallback),delete o.animationEndCallback}})),Q(o,"updateState",(function(e,n,r){var i=function(e){var n,o=t.Children.count(e.children),r=e.listRef,i=Math.ceil(hw(r)),a=e.trackRef&&e.trackRef.node,s=Math.ceil(hw(a));if(e.vertical)n=i;else{var l=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(l*=i/100),n=Math.ceil((i-l)/e.slidesToShow)}var c=r&&gw(r.querySelector('[data-index="0"]')),u=c*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=o-1-e.initialSlide);var p=e.lazyLoadedList||[],f=cw(J(J({},e),{},{currentSlide:d,lazyLoadedList:p})),h={slideCount:o,slideWidth:n,listWidth:i,trackWidth:s,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:p=p.concat(f)};return null===e.autoplaying&&e.autoplay&&(h.autoplaying="playing"),h}(e);e=J(J(J({},e),i),{},{slideIndex:i.currentSlide});var a=kw(e);e=J(J({},e),{},{left:a});var s=ww(e);(n||t.Children.count(o.props.children)!==t.Children.count(e.children))&&(i.trackStyle=s),o.setState(i,r)})),Q(o,"ssrInit",(function(){if(o.props.variableWidth){var e=0,n=0,r=[],i=Ew(J(J(J({},o.props),o.state),{},{slideCount:o.props.children.length})),a=Ow(J(J(J({},o.props),o.state),{},{slideCount:o.props.children.length}));o.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<i;s++)n+=r[r.length-1-s],e+=r[r.length-1-s];for(var l=0;l<a;l++)e+=r[l];for(var c=0;c<o.state.currentSlide;c++)n+=r[c];var u={width:e+"px",left:-n+"px"};if(o.props.centerMode){var d="".concat(r[o.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var p=t.Children.count(o.props.children),f=J(J(J({},o.props),o.state),{},{slideCount:p}),h=Ew(f)+Ow(f)+p,g=100/o.props.slidesToShow*h,m=100/h,v=-m*(Ew(f)+o.state.currentSlide)*g/100;return o.props.centerMode&&(v+=(100-m*g/100)/2),{slideWidth:m+"%",trackStyle:{width:g+"%",left:v+"%"}}})),Q(o,"checkImagesLoad",(function(){var e=o.list&&o.list.querySelectorAll&&o.list.querySelectorAll(".slick-slide img")||[],t=e.length,n=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++n&&n>=t&&o.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(o.props.lazyLoad?e.onload=function(){o.adaptHeight(),o.callbackTimers.push(setTimeout(o.onWindowResized,o.props.speed))}:(e.onload=r,e.onerror=function(){r(),o.props.onLazyLoadError&&o.props.onLazyLoadError()}))}))})),Q(o,"progressiveLazyLoad",(function(){for(var e=[],t=J(J({},o.props),o.state),n=o.state.currentSlide;n<o.state.slideCount+Ow(t);n++)if(o.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=o.state.currentSlide-1;r>=-Ew(t);r--)if(o.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(o.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),o.props.onLazyLoad&&o.props.onLazyLoad(e)):o.lazyLoadTimer&&(clearInterval(o.lazyLoadTimer),delete o.lazyLoadTimer)})),Q(o,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o.props,r=n.asNavFor,i=n.beforeChange,a=n.onLazyLoad,s=n.speed,l=n.afterChange,c=o.state.currentSlide,u=function(e){var t=e.waitForAnimate,n=e.animating,o=e.fade,r=e.infinite,i=e.index,a=e.slideCount,s=e.lazyLoad,l=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS,f=e.lazyLoadedList;if(t&&n)return{};var h,g,m,v=i,b={},y={},x=r?i:sw(i,0,a-1);if(o){if(!r&&(i<0||i>=a))return{};i<0?v=i+a:i>=a&&(v=i-a),s&&f.indexOf(v)<0&&(f=f.concat(v)),b={animating:!0,currentSlide:v,lazyLoadedList:f,targetSlide:v},y={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+a,r?a%u!=0&&(h=a-a%u):h=0):!vw(e)&&v>l?v=h=l:c&&v>=a?(v=r?a:a-1,h=r?0:a-1):v>=a&&(h=v-a,r?a%u!=0&&(h=0):h=a-d),!r&&v+d>=a&&(h=a-d),g=kw(J(J({},e),{},{slideIndex:v})),m=kw(J(J({},e),{},{slideIndex:h})),r||(g===m&&(v=h),g=m),s&&(f=f.concat(cw(J(J({},e),{},{currentSlide:v})))),p?(b={animating:!0,currentSlide:h,trackStyle:Sw(J(J({},e),{},{left:g})),lazyLoadedList:f,targetSlide:x},y={animating:!1,currentSlide:h,trackStyle:ww(J(J({},e),{},{left:m})),swipeLeft:null,targetSlide:x}):b={currentSlide:h,trackStyle:ww(J(J({},e),{},{left:m})),lazyLoadedList:f,targetSlide:x};return{state:b,nextState:y}}(J(J(J({index:e},o.props),o.state),{},{trackRef:o.track,useCSS:o.props.useCSS&&!t})),d=u.state,p=u.nextState;if(d){i&&i(c,d.currentSlide);var f=d.lazyLoadedList.filter((function(e){return o.state.lazyLoadedList.indexOf(e)<0}));a&&f.length>0&&a(f),!o.props.waitForAnimate&&o.animationEndCallback&&(clearTimeout(o.animationEndCallback),l&&l(c),delete o.animationEndCallback),o.setState(d,(function(){r&&o.asNavForIndex!==e&&(o.asNavForIndex=e,r.innerSlider.slideHandler(e)),p&&(o.animationEndCallback=setTimeout((function(){var e=p.animating,t=Pt(p,Hw);o.setState(t,(function(){o.callbackTimers.push(setTimeout((function(){return o.setState({animating:e})}),10)),l&&l(d.currentSlide),delete o.animationEndCallback}))}),s))}))}})),Q(o,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(e,t){var n,o,r,i,a=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(n=l%a!=0?0:(l-c)%a,"previous"===t.message)i=c-(r=0===n?a:s-n),d&&!p&&(i=-1==(o=c-r)?l-1:o),p||(i=u-a);else if("next"===t.message)i=c+(r=0===n?a:n),d&&!p&&(i=(c+a)%l+n),p||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,p){var f=Nw(J(J({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===f?i-=l:i<t.currentSlide&&"right"===f&&(i+=l)}}else"index"===t.message&&(i=Number(t.index));return i}(J(J({},o.props),o.state),e);if((0===n||n)&&(!0===t?o.slideHandler(n,t):o.slideHandler(n),o.props.autoplay&&o.autoPlay("update"),o.props.focusOnSelect)){var r=o.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}})),Q(o,"clickHandler",(function(e){!1===o.clickable&&(e.stopPropagation(),e.preventDefault()),o.clickable=!0})),Q(o,"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,o.props.accessibility,o.props.rtl);""!==t&&o.changeSlide({message:t})})),Q(o,"selectHandler",(function(e){o.changeSlide(e)})),Q(o,"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),Q(o,"enableBodyScroll",(function(){window.ontouchmove=null})),Q(o,"swipeStart",(function(e){o.props.verticalSwiping&&o.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&lw(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,o.props.swipe,o.props.draggable);""!==t&&o.setState(t)})),Q(o,"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,o=t.animating,r=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,s=t.rtl,l=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,p=t.swiped,f=t.swiping,h=t.slideCount,g=t.slidesToScroll,m=t.infinite,v=t.touchObject,b=t.swipeEvent,y=t.listHeight,x=t.listWidth;if(!n){if(o)return lw(e);r&&i&&a&&lw(e);var C,w={},S=kw(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));var k=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!a&&!f&&k>10)return{scrolling:!0};a&&(v.swipeLength=k);var E=(s?-1:1)*(v.curX>v.startX?1:-1);a&&(E=v.curY>v.startY?1:-1);var O=Math.ceil(h/g),$=mw(t.touchObject,a),N=v.swipeLength;return m||(0===l&&("right"===$||"down"===$)||l+1>=O&&("left"===$||"up"===$)||!vw(t)&&("left"===$||"up"===$))&&(N=v.swipeLength*c,!1===u&&d&&(d($),w.edgeDragged=!0)),!p&&b&&(b($),w.swiped=!0),C=r?S+N*(y/x)*E:s?S-N*E:S+N*E,a&&(C=S+N*E),w=J(J({},w),{},{touchObject:v,swipeLeft:C,trackStyle:ww(J(J({},t),{},{left:C}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(w.swiping=!0,lw(e)),w}}(e,J(J(J({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));t&&(t.swiping&&(o.clickable=!1),o.setState(t))})),Q(o,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,o=t.swipe,r=t.touchObject,i=t.listWidth,a=t.touchThreshold,s=t.verticalSwiping,l=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,p=t.targetSlide,f=t.currentSlide,h=t.infinite;if(!n)return o&&lw(e),{};var g=s?l/a:i/a,m=mw(r,s),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!r.swipeLength)return v;if(r.swipeLength>g){var b,y;lw(e),d&&d(m);var x=h?f:p;switch(m){case"left":case"up":y=x+xw(t),b=c?yw(t,y):y,v.currentDirection=0;break;case"right":case"down":y=x-xw(t),b=c?yw(t,y):y,v.currentDirection=1;break;default:b=x}v.triggerSlideHandler=b}else{var C=kw(t);v.trackStyle=Sw(J(J({},t),{},{left:C}))}return v}(e,J(J(J({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,o.setState(t),void 0!==n&&(o.slideHandler(n),o.props.verticalSwiping&&o.enableBodyScroll())}})),Q(o,"touchEnd",(function(e){o.swipeEnd(e),o.clickable=!0})),Q(o,"slickPrev",(function(){o.callbackTimers.push(setTimeout((function(){return o.changeSlide({message:"previous"})}),0))})),Q(o,"slickNext",(function(){o.callbackTimers.push(setTimeout((function(){return o.changeSlide({message:"next"})}),0))})),Q(o,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";o.callbackTimers.push(setTimeout((function(){return o.changeSlide({message:"index",index:e,currentSlide:o.state.currentSlide},t)}),0))})),Q(o,"play",(function(){var e;if(o.props.rtl)e=o.state.currentSlide-o.props.slidesToScroll;else{if(!vw(J(J({},o.props),o.state)))return!1;e=o.state.currentSlide+o.props.slidesToScroll}o.slideHandler(e)})),Q(o,"autoPlay",(function(e){o.autoplayTimer&&clearInterval(o.autoplayTimer);var t=o.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;o.autoplayTimer=setInterval(o.play,o.props.autoplaySpeed+50),o.setState({autoplaying:"playing"})})),Q(o,"pause",(function(e){o.autoplayTimer&&(clearInterval(o.autoplayTimer),o.autoplayTimer=null);var t=o.state.autoplaying;"paused"===e?o.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||o.setState({autoplaying:"focused"}):"playing"===t&&o.setState({autoplaying:"hovered"})})),Q(o,"onDotsOver",(function(){return o.props.autoplay&&o.pause("hovered")})),Q(o,"onDotsLeave",(function(){return o.props.autoplay&&"hovered"===o.state.autoplaying&&o.autoPlay("leave")})),Q(o,"onTrackOver",(function(){return o.props.autoplay&&o.pause("hovered")})),Q(o,"onTrackLeave",(function(){return o.props.autoplay&&"hovered"===o.state.autoplaying&&o.autoPlay("leave")})),Q(o,"onSlideFocus",(function(){return o.props.autoplay&&o.pause("focused")})),Q(o,"onSlideBlur",(function(){return o.props.autoplay&&"focused"===o.state.autoplaying&&o.autoPlay("blur")})),Q(o,"render",(function(){var e,n,r,i=A("slick-slider",o.props.className,{"slick-vertical":o.props.vertical,"slick-initialized":!0}),a=J(J({},o.props),o.state),s=bw(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=o.props.pauseOnHover;if(s=J(J({},s),{},{onMouseEnter:l?o.onTrackOver:null,onMouseLeave:l?o.onTrackLeave:null,onMouseOver:l?o.onTrackOver:null,focusOnSelect:o.props.focusOnSelect&&o.clickable?o.selectHandler:null}),!0===o.props.dots&&o.state.slideCount>=o.props.slidesToShow){var c=bw(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),u=o.props.pauseOnDotsHover;c=J(J({},c),{},{clickHandler:o.changeSlide,onMouseEnter:u?o.onDotsLeave:null,onMouseOver:u?o.onDotsOver:null,onMouseLeave:u?o.onDotsLeave:null}),e=t.createElement(Rw,c)}var d=bw(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);d.clickHandler=o.changeSlide,o.props.arrows&&(n=t.createElement(zw,d),r=t.createElement(Bw,d));var p=null;o.props.vertical&&(p={height:o.state.listHeight});var f=null;!1===o.props.vertical?!0===o.props.centerMode&&(f={padding:"0px "+o.props.centerPadding}):!0===o.props.centerMode&&(f={padding:o.props.centerPadding+" 0px"});var h=J(J({},p),f),g=o.props.touchMove,m={className:"slick-list",style:h,onClick:o.clickHandler,onMouseDown:g?o.swipeStart:null,onMouseMove:o.state.dragging&&g?o.swipeMove:null,onMouseUp:g?o.swipeEnd:null,onMouseLeave:o.state.dragging&&g?o.swipeEnd:null,onTouchStart:g?o.swipeStart:null,onTouchMove:o.state.dragging&&g?o.swipeMove:null,onTouchEnd:g?o.touchEnd:null,onTouchCancel:o.state.dragging&&g?o.swipeEnd:null,onKeyDown:o.props.accessibility?o.keyHandler:null},v={className:i,dir:"ltr",style:o.props.style};return o.props.unslick&&(m={className:"slick-list"},v={className:i,style:o.props.style}),t.createElement("div",v,o.props.unslick?"":n,t.createElement("div",D({ref:o.listRefHandler},m),t.createElement(Tw,D({ref:o.trackRefHandler},s),o.props.children)),o.props.unslick?"":r,o.props.unslick?"":e)})),o.list=null,o.track=null,o.state=J(J({},rw),{},{currentSlide:o.props.initialSlide,targetSlide:o.props.initialSlide?o.props.initialSlide:0,slideCount:t.Children.count(o.props.children)}),o.callbackTimers=[],o.clickable=!0,o.debouncedResize=null;var s=o.ssrInit();return o.state=J(J({},o.state),s),o}return qe(e,t.Component),Ve(e,[{key:"didPropsChange",value:function(e){for(var n=!1,o=0,r=Object.keys(this.props);o<r.length;o++){var i=r[o];if(!e.hasOwnProperty(i)){n=!0;break}if("object"!==T(e[i])&&"function"!=typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){n=!0;break}}return n||t.Children.count(this.props.children)!==t.Children.count(e.children)}}])}(),Ww=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()},Vw=Ww,Kw=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,r){var i=e[o];(function(e){return/[height|width]$/.test(e)})(o=Vw(o))&&"number"==typeof i&&(i+="px"),t+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",r<n.length-1&&(t+=" and ")})),t},qw=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=Kw(n),o<e.length-1&&(t+=", ")})),t):Kw(e)},Xw=O(qw);var Uw=function(){function e(t){var n,o,r,i;return Fe(this,e),o=this,i=[t],r=Xe(r=e),Q(n=Ye(o,Ue()?Reflect.construct(r,i||[],Xe(o).constructor):r.apply(o,i)),"innerSliderRefHandler",(function(e){return n.innerSlider=e})),Q(n,"slickPrev",(function(){return n.innerSlider.slickPrev()})),Q(n,"slickNext",(function(){return n.innerSlider.slickNext()})),Q(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),Q(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),Q(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return qe(e,t.Component),Ve(e,[{key:"media",value:function(e,t){var n=window.matchMedia(e),o=function(e){e.matches&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,o){var r;r=Xw(0===o?{minWidth:0,maxWidth:n}:{minWidth:t[o-1]+1,maxWidth:n}),Pw()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=Xw({minWidth:t.slice(-1)[0]});Pw()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,n,o=this;(e=this.state.breakpoint?"unslick"===(n=this.props.responsive.filter((function(e){return e.breakpoint===o.state.breakpoint})))[0].settings?"unslick":J(J(J({},aw),this.props),n[0].settings):J(J({},aw),this.props)).centerMode&&(e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(e.slidesToScroll)),e.slidesToScroll=1),e.fade&&(e.slidesToShow>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(e.slidesToShow)),e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(e.slidesToScroll)),e.slidesToShow=1,e.slidesToScroll=1);var r=t.Children.toArray(this.props.children);r=r.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,s=0;s<r.length;s+=e.rows*e.slidesPerRow){for(var l=[],c=s;c<s+e.rows*e.slidesPerRow;c+=e.slidesPerRow){for(var u=[],d=c;d<c+e.slidesPerRow&&(e.variableWidth&&r[d].props.style&&(a=r[d].props.style.width),!(d>=r.length));d+=1)u.push(t.cloneElement(r[d],{key:100*s+10*c+d,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));l.push(t.createElement("div",{key:10*s+c},u))}e.variableWidth?i.push(t.createElement("div",{key:s,style:{width:a}},l)):i.push(t.createElement("div",{key:s},l))}if("unslick"===e){var p="regular slider "+(this.props.className||"");return t.createElement("div",{className:p},r)}return i.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),t.createElement(Fw,D({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return Lw.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),i)}}])}();const Gw=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},Yw=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:o,arrowOffset:r}=e,i=e.calc(o).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:o,height:o,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(o).sub(i).div(2).equal(),insetInlineStart:e.calc(o).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:r,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:r,"&::after":{transform:"rotate(135deg)"}}}}]},Qw=e=>{const{componentCls:t,dotOffset:n,dotWidth:o,dotHeight:r,dotGap:i,colorBgContainer:a,motionDurationSlow:s}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:o,height:r,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${s}`,button:{position:"relative",display:"block",width:"100%",height:r,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:r,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${s}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},Zw=e=>{const{componentCls:t,dotOffset:n,arrowOffset:o,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:o,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:o,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${Yt(r)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":Object.assign(Object.assign({},i),{button:i})})}}}},Jw=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]};var eS=Qi("Carousel",(e=>[Gw(e),Yw(e),Qw(e),Zw(e),Jw(e)]),(e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),tS=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 nS="slick-dots",oS=t=>{var n=tS(t,["currentSlide","slideCount"]);return e.createElement("button",Object.assign({type:"button"},n))},rS=e.forwardRef(((t,n)=>{const{dots:o=!0,arrows:r=!1,prevArrow:i=e.createElement(oS,{"aria-label":"prev"}),nextArrow:a=e.createElement(oS,{"aria-label":"next"}),draggable:s=!1,waitForAnimate:l=!1,dotPosition:c="bottom",vertical:u="left"===c||"right"===c,rootClassName:d,className:p,style:f,id:h}=t,g=tS(t,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:m,direction:v,carousel:b}=e.useContext(ii),y=e.useRef(),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.current.slickGoTo(e,t)};e.useImperativeHandle(n,(()=>({goTo:x,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext})),[y.current]);const C=e.useRef(e.Children.count(t.children));e.useEffect((()=>{C.current!==e.Children.count(t.children)&&(x(t.initialSlide||0,!1),C.current=e.Children.count(t.children))}),[t.children]);const w=Object.assign({vertical:u,className:A(p,null==b?void 0:b.className),style:Object.assign(Object.assign({},null==b?void 0:b.style),f)},g);"fade"===w.effect&&(w.fade=!0);const S=m("carousel",w.prefixCls),k=!!o,E=A(nS,`${nS}-${c}`,"boolean"!=typeof o&&(null==o?void 0:o.className)),[O,$,N]=eS(S),M=A(S,{[`${S}-rtl`]:"rtl"===v,[`${S}-vertical`]:w.vertical},$,N,d);return O(e.createElement("div",{className:M,id:h},e.createElement(Uw,Object.assign({ref:y},w,{dots:k,dotsClass:E,arrows:r,prevArrow:i,nextArrow:a,draggable:s,verticalSwiping:u,waitForAnimate:l}))))}));function iS(e,t){return e[t]}"production"!==process.env.NODE_ENV&&(rS.displayName="Carousel");var aS=["children"];function sS(e,t){return"".concat(e,"-").concat(t)}function lS(e,t){return null!=e?e:t}function cS(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function uS(e){return function e(t){return H(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return U(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,i=J({key:n},Pt(o,aS)),a=e(r);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function dS(e,t,n){var o=cS(n),r=o._title,i=o.key,a=o.children,s=new Set(!0===t?[]:t),l=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var d,p=sS(o?o.pos:"0",u),f=lS(c[i],p),h=0;h<r.length;h+=1){var g=r[h];if(void 0!==c[g]){d=c[g];break}}var m=Object.assign(ot(c,[].concat(st(r),[i,a])),{title:d,key:f,parent:o,pos:p,children:null,data:c,isStart:[].concat(st(o?o.isStart:[]),[0===u]),isEnd:[].concat(st(o?o.isEnd:[]),[u===n.length-1])});return l.push(m),!0===t||s.has(f)?m.children=e(c[a]||[],m):m.children=[],m}))}(e),l}function pS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=i||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,r=("object"===T(n)?n:{externalGetKey:n})||{},i=r.childrenPropName,a=r.externalGetKey,s=cS(r.fieldNames),l=s.key,c=s.children,u=i||c;a?"string"==typeof a?o=function(e){return e[a]}:"function"==typeof a&&(o=function(e){return a(e)}):o=function(e,t){return lS(e[l],t)},function n(r,i,a,s){var l=r?r[u]:e,c=r?sS(a.pos,i):"0",d=r?[].concat(st(s),[r]):[];if(r){var p=o(r,c),f={node:r,index:i,pos:c,key:p,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(f)}l&&l.forEach((function(e,t){n(e,t,{node:r,pos:c,level:a?a.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:s},p=lS(i,r);c[r]=l,u[p]=l,l.parent=c[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),o&&o(l,d)}),{externalGetKey:l,childrenPropName:a,fieldNames:s}),r&&r(d),d}function fS(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=iS(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function hS(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,p=e.active,f=e.eventKey,h=J(J({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,key:f});return"props"in h||Object.defineProperty(h,"props",{get:function(){return U(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function gS(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function mS(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function vS(e,t,n,o){var r,i=[];r=o||mS;var a,s=new Set(e.filter((function(e){var t=!!iS(n,e);return t||i.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,r=l.get(o);r||(r=new Set,l.set(o,r)),r.add(t),c=Math.max(c,o)})),U(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter((function(e){return!o(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),l||!n&&!i.has(t)||(l=!0)})),a&&r.add(t.key),l&&i.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(gS(i,r))}}(s,l,c,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),s=0;s<=o;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,s=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||s.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var l=new Set,c=o;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var o=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),s||!n&&!a.has(t)||(s=!0)})),o||i.delete(t.key),s&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(gS(a,i))}}(s,t.halfCheckedKeys,l,c,r),a}const bS=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},qi(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},qi(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},qi(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ui(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Yt(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function yS(e,t){const n=Oi(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[bS(n)]}var xS=Qi("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[yS(n,e)]}));const CS=t.createContext(null);var wS=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 SS=(t,n)=>{var o;const{prefixCls:r,className:i,rootClassName:a,children:s,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:f}=t,h=wS(t,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:m,checkbox:v}=e.useContext(ii),b=e.useContext(CS),{isFormItemInput:y}=e.useContext(Cd),x=e.useContext(li),C=null!==(o=(null==b?void 0:b.disabled)||f)&&void 0!==o?o:x,w=e.useRef(h.value);if("production"!==process.env.NODE_ENV){const e=_o("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in h||!!b||!("value"in h),"usage","`value` is not a valid prop, do you mean `checked`?")}e.useEffect((()=>{null==b||b.registerValue(h.value)}),[]),e.useEffect((()=>{if(!p)return h.value!==w.current&&(null==b||b.cancelValue(w.current),null==b||b.registerValue(h.value),w.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)}),[h.value]);const S=g("checkbox",r),k=Ks(S),[E,O,$]=xS(S,k),N=Object.assign({},h);b&&!p&&(N.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:s,value:h.value})},N.name=b.name,N.checked=b.value.includes(h.value));const M=A(`${S}-wrapper`,{[`${S}-rtl`]:"rtl"===m,[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:C,[`${S}-wrapper-in-form-item`]:y},null==v?void 0:v.className,i,a,$,k,O),I=A({[`${S}-indeterminate`]:l},Ol,O),P=l?"mixed":void 0;return E(e.createElement(Ll,{component:"Checkbox",disabled:C},e.createElement("label",{className:M,style:Object.assign(Object.assign({},null==v?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d},e.createElement(px,Object.assign({"aria-checked":P},N,{prefixCls:S,className:I,disabled:C,ref:n})),void 0!==s&&e.createElement("span",null,s))))},kS=e.forwardRef(SS);"production"!==process.env.NODE_ENV&&(kS.displayName="Checkbox");var ES=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 OS=e.forwardRef(((t,n)=>{const{defaultValue:o,children:r,options:i=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:u}=t,d=ES(t,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:f}=e.useContext(ii),[h,g]=e.useState(d.value||o||[]),[m,v]=e.useState([]);e.useEffect((()=>{"value"in d&&g(d.value||[])}),[d.value]);const b=e.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=p("checkbox",a),x=`${y}-group`,C=Ks(y),[w,S,k]=xS(y,C),E=ot(d,["value","disabled"]),O=i.length?b.map((t=>e.createElement(kS,{prefixCls:y,key:t.value.toString(),disabled:"disabled"in t?t.disabled:d.disabled,value:t.value,checked:h.includes(t.value),onChange:t.onChange,className:`${x}-item`,style:t.style,title:t.title,id:t.id,required:t.required},t.label))):r,$={toggleOption:e=>{const t=h.indexOf(e.value),n=st(h);-1===t?n.push(e.value):n.splice(t,1),"value"in d||g(n),null==u||u(n.filter((e=>m.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:h,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat(st(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},N=A(x,{[`${x}-rtl`]:"rtl"===f},s,l,k,C,S);return w(e.createElement("div",Object.assign({className:N,style:c},E,{ref:n}),e.createElement(CS.Provider,{value:$},O)))})),$S=kS;$S.Group=OS,$S.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&($S.displayName="Checkbox");const NS=i({}),MS=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},IS=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)0===e?(i[`${o}${t}-${e}`]={display:"none"},i[`${o}-push-${e}`]={insetInlineStart:"auto"},i[`${o}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${e}`]={marginInlineStart:0},i[`${o}${t}-order-${e}`]={order:0}):(i[`${o}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],i[`${o}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},i[`${o}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},i[`${o}${t}-order-${e}`]={order:e});return i[`${o}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),PS=Qi("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),LS=Qi("Grid",(e=>{const t=Oi(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[MS(t),IS(t,""),IS(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Yt(t)})`]:Object.assign({},IS(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var jS=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 AS(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const DS=["xs","sm","md","lg","xl","xxl"],TS=e.forwardRef(((t,n)=>{const{getPrefixCls:o,direction:r}=e.useContext(ii),{gutter:i,wrap:a}=e.useContext(NS),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:p,className:f,children:h,flex:g,style:m}=t,v=jS(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=o("col",s),[y,x,C]=LS(b),w={};let S={};DS.forEach((e=>{let n={};const o=t[e];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete v[e],S=Object.assign(Object.assign({},S),{[`${b}-${e}-${n.span}`]:void 0!==n.span,[`${b}-${e}-order-${n.order}`]:n.order||0===n.order,[`${b}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${e}-push-${n.push}`]:n.push||0===n.push,[`${b}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===r}),n.flex&&(S[`${b}-${e}-flex`]=!0,w[`--${b}-${e}-flex`]=AS(n.flex))}));const k=A(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${p}`]:p},f,S,x,C),E={};if(i&&i[0]>0){const e=i[0]/2;E.paddingLeft=e,E.paddingRight=e}return g&&(E.flex=AS(g),!1!==a||E.minWidth||(E.minWidth=0)),y(e.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),m),w),className:k,ref:n}),h))}));"production"!==process.env.NODE_ENV&&(TS.displayName="Col");var RS=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 _S(t,n){const[o,r]=e.useState("string"==typeof t?t:"");return e.useEffect((()=>{(()=>{if("string"==typeof t&&r(t),"object"==typeof t)for(let e=0;e<pm.length;e++){const o=pm[e];if(!n[o])continue;const i=t[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(t),n]),o}const zS=e.forwardRef(((t,n)=>{const{prefixCls:o,justify:r,align:i,className:a,style:s,children:l,gutter:c=0,wrap:u}=t,d=RS(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:f}=e.useContext(ii),[h,g]=e.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,v]=e.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=_S(i,m),y=_S(r,m),x=e.useRef(c),C=fm();e.useEffect((()=>{const e=C.subscribe((e=>{v(e);const t=x.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&g(e)}));return()=>C.unsubscribe(e)}),[]);const w=p("row",o),[S,k,E]=PS(w),O=(()=>{const e=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let o=0;o<pm.length;o++){const r=pm[o];if(h[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t})),e})(),$=A(w,{[`${w}-no-wrap`]:!1===u,[`${w}-${y}`]:y,[`${w}-${b}`]:b,[`${w}-rtl`]:"rtl"===f},a,k,E),N={},M=null!=O[0]&&O[0]>0?O[0]/-2:void 0;M&&(N.marginLeft=M,N.marginRight=M);const[I,P]=O;N.rowGap=P;const L=e.useMemo((()=>({gutter:[I,P],wrap:u})),[I,P,u]);return S(e.createElement(NS.Provider,{value:L},e.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},N),s),ref:n}),l)))}));"production"!==process.env.NODE_ENV&&(zS.displayName="Row");var BS=t.forwardRef((function(e,n){var o=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=vt(t.useState(l||r),2),d=u[0],p=u[1];return t.useEffect((function(){(r||l)&&p(!0)}),[r,l]),d?t.createElement("div",{ref:n,className:A("".concat(o,"-content"),Q(Q({},"".concat(o,"-content-active"),l),"".concat(o,"-content-inactive"),!l),i),style:a,role:c},t.createElement("div",{className:"".concat(o,"-content-box")},s)):null}));BS.displayName="PanelContent";var HS=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],FS=t.forwardRef((function(e,n){var o=e.showArrow,r=void 0===o||o,i=e.headerClass,a=e.isActive,s=e.onItemClick,l=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,p=e.accordion,f=e.panelKey,h=e.extra,g=e.header,m=e.expandIcon,v=e.openMotion,b=e.destroyInactivePanel,y=e.children,x=Pt(e,HS),C="disabled"===d,w="header"===d,S="icon"===d,k=null!=h&&"boolean"!=typeof h,E=function(){null==s||s(f)},O="function"==typeof m?m(e):t.createElement("i",{className:"arrow"});O&&(O=t.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?E:void 0},O));var $=A(Q(Q(Q({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),C),c),N={className:A(i,Q(Q(Q({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),w),"".concat(u,"-icon-collapsible-only"),S)),"aria-expanded":a,"aria-disabled":C,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==qs.ENTER&&e.which!==qs.ENTER||E()}};return w||S||(N.onClick=E,N.role=p?"tab":"button",N.tabIndex=C?-1:0),t.createElement("div",D({},x,{ref:n,className:$}),t.createElement("div",N,r&&O,t.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===d?E:void 0},g),k&&t.createElement("div",{className:"".concat(u,"-extra")},h)),t.createElement(Ra,D({visible:a,leavedClassName:"".concat(u,"-content-hidden")},v,{forceRender:l,removeOnLeave:b}),(function(e,n){var o=e.className,r=e.style;return t.createElement(BS,{ref:n,prefixCls:u,className:o,style:r,isActive:a,forceRender:l,role:p?"tabpanel":void 0},y)})))})),WS=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function VS(e,n,o){return Array.isArray(e)?function(e,n){var o=n.prefixCls,r=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return e.map((function(e,n){var d=e.children,p=e.label,f=e.key,h=e.collapsible,g=e.onItemClick,m=e.destroyInactivePanel,v=Pt(e,WS),b=String(null!=f?f:n),y=null!=h?h:i,x=null!=m?m:a,C=!1;return C=r?l[0]===b:l.indexOf(b)>-1,t.createElement(FS,D({},v,{prefixCls:o,key:b,panelKey:b,isActive:C,accordion:r,openMotion:c,expandIcon:u,header:p,collapsible:y,onItemClick:function(e){"disabled"!==y&&(s(e),null==g||g(e))},destroyInactivePanel:x}),d)}))}(e,o):H(n).map((function(e,n){return function(e,n,o){if(!e)return null;var r=o.prefixCls,i=o.accordion,a=o.collapsible,s=o.destroyInactivePanel,l=o.onItemClick,c=o.activeKey,u=o.openMotion,d=o.expandIcon,p=e.key||String(n),f=e.props,h=f.header,g=f.headerClass,m=f.destroyInactivePanel,v=f.collapsible,b=f.onItemClick,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;var x=null!=v?v:a,C={key:p,panelKey:p,header:h,headerClass:g,isActive:y,prefixCls:r,destroyInactivePanel:null!=m?m:s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),t.cloneElement(e,C))}(e,n,o)}))}function KS(e){var t=e;if(!Array.isArray(t)){var n=T(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var qS=t.forwardRef((function(e,n){var o=e.prefixCls,r=void 0===o?"rc-collapse":o,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,p=e.openMotion,f=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,m=e.onChange,v=e.items,b=A(r,c),y=vt(wi([],{value:h,onChange:function(e){return null==m?void 0:m(e)},defaultValue:g,postState:KS}),2),x=y[0],C=y[1];U(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=VS(v,u,{prefixCls:r,accordion:l,openMotion:p,expandIcon:f,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return C((function(){return l?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter((function(t){return t!==e})):[].concat(st(x),[e])}))},activeKey:x});return t.createElement("div",D({ref:n,className:b,style:s,role:l?"tablist":void 0},_s(e,{aria:!0,data:!0})),w)})),XS=Object.assign(qS,{Panel:FS});XS.Panel;const US=e.forwardRef(((t,n)=>{if("production"!==process.env.NODE_ENV){_o("Collapse.Panel").deprecated(!("disabled"in t),"disabled",'collapsible="disabled"')}const{getPrefixCls:o}=e.useContext(ii),{prefixCls:r,className:i,showArrow:a=!0}=t,s=o("collapse",r),l=A({[`${s}-no-arrow`]:!a},i);return e.createElement(XS.Panel,Object.assign({ref:n},t,{prefixCls:s,className:l}))})),GS=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSizeLG:g,lineHeight:m,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:w,fontSizeIcon:S,contentPadding:k,fontHeight:E,fontHeightLG:O}=e,$=`${Yt(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},qi(e)),{backgroundColor:r,border:$,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Yt(l)} ${Yt(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:m,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]: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"}}),{fontSize:S,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:s,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(x).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Yt(l)} ${Yt(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},YS=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},QS=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},ZS=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var JS=Qi("Collapse",(e=>{const t=Oi(e,{collapseHeaderPaddingSM:`${Yt(e.paddingXS)} ${Yt(e.paddingSM)}`,collapseHeaderPaddingLG:`${Yt(e.padding)} ${Yt(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[GS(t),QS(t),ZS(t),YS(t),sp(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const ek=e.forwardRef(((t,n)=>{const{getPrefixCls:o,direction:r,collapse:i}=e.useContext(ii),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:f="start",children:h,expandIcon:g}=t,m=jl((e=>{var t;return null!==(t=null!=p?p:e)&&void 0!==t?t:"middle"})),v=o("collapse",a),b=o(),[y,x,C]=JS(v);if("production"!==process.env.NODE_ENV){const e=_o("Collapse");"production"!==process.env.NODE_ENV&&e("left"!==f&&"right"!==f,"deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.")}const w=e.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),S=null!=g?g:null==i?void 0:i.expandIcon,k=e.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof S?S(t):e.createElement(Pv,{rotate:t.isActive?90:void 0,"aria-label":t.isActive?"expanded":"collapsed"});return Hs(n,(()=>{var e;return{className:A(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${v}-arrow`)}}))}),[S,v]),E=A(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:"rtl"===r,[`${v}-ghost`]:!!d,[`${v}-${m}`]:"middle"!==m},null==i?void 0:i.className,s,l,x,C),O=Object.assign(Object.assign({},Cl(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),$=e.useMemo((()=>h?H(h).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props;return Hs(e,Object.assign(Object.assign({},ot(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0}))}return e})):null),[h]);return y(e.createElement(XS,Object.assign({ref:n,openMotion:O},ot(t,["rootClassName"]),{expandIcon:k,prefixCls:v,className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),$))}));"production"!==process.env.NODE_ENV&&(ek.displayName="Collapse");var tk=Object.assign(ek,{Panel:US});const nk=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{borderBlockStart:`${Yt(r)} solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Yt(r)} solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Yt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Yt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Yt(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${Yt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:o,borderStyle:"dotted",borderWidth:`${Yt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var ok=Qi("Divider",(e=>{const t=Oi(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[nk(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),rk=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 ik=t=>{const{getPrefixCls:n,direction:o,divider:r}=e.useContext(ii),{prefixCls:i,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:p,variant:f="solid",plain:h,style:g}=t,m=rk(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=n("divider",i),[b,y,x]=ok(v),C=!!d,w="left"===s&&null!=l,S="right"===s&&null!=l,k=A(v,null==r?void 0:r.className,y,x,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text-${s}`]:C,[`${v}-dashed`]:!!p,[`${v}-${f}`]:"solid"!==f,[`${v}-plain`]:!!h,[`${v}-rtl`]:"rtl"===o,[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:S},c,u),E=e.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),O=Object.assign(Object.assign({},w&&{marginLeft:E}),S&&{marginRight:E});if("production"!==process.env.NODE_ENV){const e=_o("Divider");"production"!==process.env.NODE_ENV&&e(!d||"vertical"!==a,"usage","`children` not working in `vertical` mode.")}return b(e.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),g)},m,{role:"separator"}),d&&"vertical"!==a&&e.createElement("span",{className:`${v}-inner-text`,style:O},d)))};function ak(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 sk(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=ak(t,e,o)):n(r=ak(t,e,""))}}"production"!==process.env.NODE_ENV&&(ik.displayName="Divider");var lk=t.forwardRef((function(e,n){var o,r,i=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,p=e.addonAfter,f=e.className,h=e.style,g=e.disabled,v=e.readOnly,b=e.focused,y=e.triggerFocus,x=e.allowClear,C=e.value,w=e.handleReset,S=e.hidden,k=e.classes,E=e.classNames,O=e.dataAttrs,$=e.styles,N=e.components,M=e.onClear,I=null!=s?s:i,P=(null==N?void 0:N.affixWrapper)||"span",L=(null==N?void 0:N.groupWrapper)||"span",j=(null==N?void 0:N.wrapper)||"span",R=(null==N?void 0:N.groupAddon)||"span",_=a(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),B=m(I,{value:C,className:A(I.props.className,!z&&(null==E?void 0:E.variant))||null}),H=a(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:H.current||_.current}})),z){var F=null;if(x){var W=!g&&!v&&C,V="".concat(l,"-clear-icon"),K="object"===T(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";F=t.createElement("span",{onClick:function(e){null==w||w(e),null==M||M()},onMouseDown:function(e){return e.preventDefault()},className:A(V,Q(Q({},"".concat(V,"-hidden"),!W),"".concat(V,"-has-suffix"),!!u)),role:"button",tabIndex:-1},K)}var q="".concat(l,"-affix-wrapper"),X=A(q,Q(Q(Q(Q(Q({},"".concat(l,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),b),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),u&&x&&C),null==k?void 0:k.affixWrapper,null==E?void 0:E.affixWrapper,null==E?void 0:E.variant),U=(u||x)&&t.createElement("span",{className:A("".concat(l,"-suffix"),null==E?void 0:E.suffix),style:null==$?void 0:$.suffix},F,u);B=t.createElement(P,D({className:X,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=_.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:_}),c&&t.createElement("span",{className:A("".concat(l,"-prefix"),null==E?void 0:E.prefix),style:null==$?void 0:$.prefix},c),B,U)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(l,"-group"),Y="".concat(G,"-addon"),Z="".concat(G,"-wrapper"),ee=A("".concat(l,"-wrapper"),G,null==k?void 0:k.wrapper,null==E?void 0:E.wrapper),te=A(Z,Q({},"".concat(Z,"-disabled"),g),null==k?void 0:k.group,null==E?void 0:E.groupWrapper);B=t.createElement(L,{className:te,ref:H},t.createElement(j,{className:ee},d&&t.createElement(R,{className:Y},d),B,p&&t.createElement(R,{className:Y},p)))}return t.cloneElement(B,{className:A(null===(o=B.props)||void 0===o?void 0:o.className,f)||null,style:J(J({},null===(r=B.props)||void 0===r?void 0:r.style),h),hidden:S})})),ck=["show"];function uk(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===T(n)&&n.formatter?n.formatter:!!n);var o=e=J(J({},e),t),r=o.show,i=Pt(o,ck);return J(J({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var dk=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],pk=c((function(e,n){var o=e.autoComplete,r=e.onChange,i=e.onFocus,s=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,p=e.onKeyUp,f=e.prefixCls,h=void 0===f?"rc-input":f,m=e.disabled,v=e.htmlSize,b=e.className,y=e.maxLength,x=e.suffix,C=e.showCount,w=e.count,S=e.type,k=void 0===S?"text":S,E=e.classes,O=e.classNames,$=e.styles,N=e.onCompositionStart,M=e.onCompositionEnd,I=Pt(e,dk),P=vt(d(!1),2),L=P[0],j=P[1],T=a(!1),R=a(!1),_=a(null),z=a(null),B=function(e){_.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)}}}}(_.current,e)},H=vt(wi(e.defaultValue,{value:e.value}),2),F=H[0],W=H[1],V=null==F?"":String(F),K=vt(d(null),2),q=K[0],X=K[1],U=uk(w,C),G=U.max||y,Y=U.strategy(V),Z=!!G&&Y>G;g(n,(function(){var e;return{focus:B,blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=_.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=_.current)||void 0===e||e.select()},input:_.current,nativeElement:(null===(e=z.current)||void 0===e?void 0:e.nativeElement)||_.current}})),l((function(){R.current&&(R.current=!1),j((function(e){return(!e||!m)&&e}))}),[m]);var ee=function(e,t,n){var o,i,a=t;if(!T.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&X([(null===(o=_.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=_.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;W(a),_.current&&sk(_.current,e,r,a)};l((function(){var e;q&&(null===(e=_.current)||void 0===e||e.setSelectionRange.apply(e,st(q)))}),[q]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},oe=function(e){T.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==M||M(e)},re=function(e){c&&"Enter"===e.key&&!R.current&&(R.current=!0,c(e)),null==u||u(e)},ie=function(e){"Enter"===e.key&&(R.current=!1),null==p||p(e)},ae=function(e){j(!0),null==i||i(e)},se=function(e){R.current&&(R.current=!1),j(!1),null==s||s(e)},le=Z&&"".concat(h,"-out-of-range");return t.createElement(lk,D({},I,{prefixCls:h,className:A(b,le),handleReset:function(e){W(""),B(),_.current&&sk(_.current,e,r)},value:V,focused:L,triggerFocus:B,suffix:function(){var e=Number(G)>0;if(x||U.show){var n=U.showFormatter?U.showFormatter({value:V,count:Y,maxLength:G}):"".concat(Y).concat(e?" / ".concat(G):"");return t.createElement(t.Fragment,null,U.show&&t.createElement("span",{className:A("".concat(h,"-show-count-suffix"),Q({},"".concat(h,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:J({},null==$?void 0:$.count)},n),x)}return null}(),disabled:m,classes:E,classNames:O,styles:$}),(te=ot(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",D({autoComplete:o},te,{onChange:ne,onFocus:ae,onBlur:se,onKeyDown:re,onKeyUp:ie,className:A(h,Q({},"".concat(h,"-disabled"),m),null==O?void 0:O.input),style:null==$?void 0:$.input,ref:_,size:v,type:k,onCompositionStart:function(e){T.current=!0,null==N||N(e)},onCompositionEnd:oe}))))}));const fk=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(Os,null)}),n};function hk(e,t){const n=a([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return l((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var gk=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 mk=c(((e,n)=>{var o;const{prefixCls:i,bordered:s=!0,status:c,size:u,disabled:d,onBlur:p,onFocus:f,suffix:h,allowClear:g,addonAfter:m,addonBefore:v,className:b,style:y,styles:x,rootClassName:C,onChange:w,classNames:S,variant:k}=e,E=gk(e,["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:t}=_o("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:$,input:N}=t.useContext(ii),M=O("input",i),I=a(null),P=Ks(M),[L,j,D]=Zx(M,P),{compactSize:T,compactItemClassnames:R}=Bl(M,$),_=jl((e=>{var t;return null!==(t=null!=u?u:T)&&void 0!==t?t:e})),z=t.useContext(li),B=null!=d?d:z,{status:H,hasFeedback:F,feedbackIcon:W}=r(Cd),V=yg(H,c),K=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!F,q=a(K);if("production"!==process.env.NODE_ENV){const e=_o("Input");l((()=>{var t;K&&!q.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.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"),q.current=K}),[K])}const X=hk(I,!0),U=(F||h)&&t.createElement(t.Fragment,null,h,F&&W),G=fk(null!=g?g:null==N?void 0:N.allowClear),[Y,Q]=Mg("input",k,s);return L(t.createElement(pk,Object.assign({ref:de(n,I),prefixCls:M,autoComplete:null==N?void 0:N.autoComplete},E,{disabled:B,onBlur:e=>{X(),null==p||p(e)},onFocus:e=>{X(),null==f||f(e)},style:Object.assign(Object.assign({},null==N?void 0:N.style),y),styles:Object.assign(Object.assign({},null==N?void 0:N.styles),x),suffix:U,allowClear:G,className:A(b,C,D,P,R,null==N?void 0:N.className),onChange:e=>{X(),null==w||w(e)},addonBefore:v&&t.createElement(kd,{form:!0,space:!0},v),addonAfter:m&&t.createElement(kd,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},S),null==N?void 0:N.classNames),{input:A({[`${M}-sm`]:"small"===_,[`${M}-lg`]:"large"===_,[`${M}-rtl`]:"rtl"===$},null==S?void 0:S.input,null===(o=null==N?void 0:N.classNames)||void 0===o?void 0:o.input,j),variant:A({[`${M}-${Y}`]:Q},bg(M,V)),affixWrapper:A({[`${M}-affix-wrapper-sm`]:"small"===_,[`${M}-affix-wrapper-lg`]:"large"===_,[`${M}-affix-wrapper-rtl`]:"rtl"===$},j),wrapper:A({[`${M}-group-rtl`]:"rtl"===$},j),groupWrapper:A({[`${M}-group-wrapper-sm`]:"small"===_,[`${M}-group-wrapper-lg`]:"large"===_,[`${M}-group-wrapper-rtl`]:"rtl"===$,[`${M}-group-wrapper-${Y}`]:Q},bg(`${M}-group-wrapper`,V,F),j)})})))}));"production"!==process.env.NODE_ENV&&(mk.displayName="Input");const vk=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 bk=Qi(["Input","OTP"],(e=>{const t=Oi(e,Ox(e));return[vk(t)]}),$x),yk=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 xk=e.forwardRef(((t,n)=>{const{value:o,onChange:r,onActiveChange:i,index:a,mask:s}=t,l=yk(t,["value","onChange","onActiveChange","index","mask"]),c=o&&"string"==typeof s?s:o,u=e.useRef(null);e.useImperativeHandle(n,(()=>u.current));const d=()=>{ft((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(mk,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||o||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===s?"password":"text"}))}));var Ck=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 wk(e){return(e||"").split("")}const Sk=e.forwardRef(((t,n)=>{const{prefixCls:o,length:r=6,size:i,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:p,autoFocus:f,mask:h}=t,g=Ck(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=_o("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof h&&h.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:m,direction:v}=e.useContext(ii),b=m("otp",o),y=_s(g,{aria:!0,data:!0,attr:!0}),x=Ks(b),[C,w,S]=bk(b,x),k=jl((e=>null!=i?i:e)),E=e.useContext(Cd),O=yg(E.status,p),$=e.useMemo((()=>Object.assign(Object.assign({},E),{status:O,hasFeedback:!1,feedbackIcon:null})),[E,O]),N=e.useRef(null),M=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=M.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=M.current[t])||void 0===e||e.blur()},nativeElement:N.current})));const I=e=>c?c(e):e,[P,L]=e.useState(wk(I(a||"")));e.useEffect((()=>{void 0!==s&&L(wk(s))}),[s]);const j=yi((e=>{L(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>P[t]!==e))&&l(e.join(""))})),D=yi(((e,t)=>{let n=st(P);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(wk(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=I(n.map((e=>e||" ")).join(""));return n=wk(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),T=(e,t)=>{var n;const o=D(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=M.current[i])||void 0===n||n.focus()),j(o)},R=e=>{var t;null===(t=M.current[e])||void 0===t||t.focus()},_={variant:u,disabled:d,status:O,mask:h};return C(e.createElement("div",Object.assign({},y,{ref:N,className:A(b,{[`${b}-sm`]:"small"===k,[`${b}-lg`]:"large"===k,[`${b}-rtl`]:"rtl"===v},S,w)}),e.createElement(Cd.Provider,{value:$},Array.from({length:r}).map(((t,n)=>{const o=`otp-${n}`,r=P[n]||"";return e.createElement(xk,Object.assign({ref:e=>{M.current[n]=e},key:o,index:n,size:k,htmlSize:1,className:`${b}-input`,onChange:T,value:r,onActiveChange:R,autoFocus:0===n&&f},_))})))))}));var kk={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"},Ek=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:kk}))},Ok=e.forwardRef(Ek);"production"!==process.env.NODE_ENV&&(Ok.displayName="EyeInvisibleOutlined");var $k={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"},Nk=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:$k}))},Mk=e.forwardRef(Nk);"production"!==process.env.NODE_ENV&&(Mk.displayName="EyeOutlined");var Ik=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 Pk=t=>t?e.createElement(Mk,null):e.createElement(Ok,null),Lk={click:"onClick",hover:"onMouseOver"},jk=e.forwardRef(((t,n)=>{const{disabled:o,action:r="click",visibilityToggle:i=!0,iconRender:s=Pk}=t,l="object"==typeof i&&void 0!==i.visible,[c,u]=d((()=>!!l&&i.visible)),p=a(null);e.useEffect((()=>{l&&u(i.visible)}),[l,i]);const f=hk(p),h=()=>{o||(c&&f(),u((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:g,prefixCls:m,inputPrefixCls:v,size:b}=t,y=Ik(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=e.useContext(ii),C=x("input",v),w=x("input-password",m),S=i&&(t=>{const n=Lk[r]||"",o=s(c),i={[n]:h,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(o)?o:e.createElement("span",null,o),i)})(w),k=A(w,g,{[`${w}-${b}`]:!!b}),E=Object.assign(Object.assign({},ot(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:k,prefixCls:C,suffix:S});return b&&(E.size=b),e.createElement(mk,Object.assign({ref:de(n,p)},E))}));"production"!==process.env.NODE_ENV&&(jk.displayName="Input.Password");var Ak=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 Dk=e.forwardRef(((t,n)=>{const{prefixCls:o,inputPrefixCls:r,className:i,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:f,onCompositionStart:h,onCompositionEnd:g}=t,m=Ak(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=e.useContext(ii),y=e.useRef(!1),x=v("input-search",o),C=v("input",r),{compactSize:w}=Bl(x,b),S=jl((e=>{var t;return null!==(t=null!=a?a:w)&&void 0!==t?t:e})),k=e.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;p&&p(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?e.createElement(am,null):null,N=`${x}-button`;let M;const I=l||{},P=I.type&&!0===I.type.__ANT_BUTTON;M=P||"button"===I.type?Hs(I,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==I?void 0:I.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},P?{className:N,size:S}:{})):e.createElement(Tc,{className:N,type:l?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:$},l),c&&(M=[M,Hs(c,{key:"addonAfter"})]);const L=A(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!l},i);return e.createElement(mk,Object.assign({ref:de(k,n),onPressEnter:e=>{y.current||u||O(e)}},m,{size:S,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:C,addonAfter:M,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null==f||f(e)},className:L,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Dk.displayName="Search");var Tk,Rk=["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"],_k={};function zk(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;Tk||((Tk=document.createElement("textarea")).setAttribute("tab-index","-1"),Tk.setAttribute("aria-hidden","true"),Tk.setAttribute("name","hiddenTextarea"),document.body.appendChild(Tk)),e.getAttribute("wrap")?Tk.setAttribute("wrap",e.getAttribute("wrap")):Tk.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&&_k[n])return _k[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:Rk.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(_k[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;Tk.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")),Tk.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=Tk.scrollHeight;if("border-box"===s?p+=a:"content-box"===s&&(p-=i),null!==n||null!==o){Tk.value=" ";var f=Tk.scrollHeight-i;null!==n&&(u=f*n,"border-box"===s&&(u=u+i+a),p=Math.max(u,p)),null!==o&&(d=f*o,"border-box"===s&&(d=d+i+a),c=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var Bk=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Hk=e.forwardRef((function(t,n){var o=t,r=o.prefixCls,i=o.defaultValue,a=o.value,s=o.autoSize,l=o.onResize,c=o.className,u=o.style,d=o.disabled,p=o.onChange,f=o.onInternalAutoSize,h=Pt(o,Bk),g=vt(wi(i,{value:a,postState:function(e){return null!=e?e:""}}),2),m=g[0],v=g[1],b=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=vt(e.useMemo((function(){return s&&"object"===T(s)?[s.minRows,s.maxRows]:[]}),[s]),2),x=y[0],C=y[1],w=!!s,S=vt(e.useState(2),2),k=S[0],E=S[1],O=vt(e.useState(),2),$=O[0],N=O[1],M=function(){E(0),"test"===process.env.NODE_ENV&&(null==f||f())};nn((function(){w&&M()}),[a,x,C,w]),nn((function(){if(0===k)E(1);else if(1===k){var e=zk(b.current,!1,x,C);E(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=o}}catch(e){}}()}),[k]);var I=e.useRef(),P=function(){ft.cancel(I.current)};e.useEffect((function(){return P}),[]);var L=w?$:null,j=J(J({},u),L);return 0!==k&&1!==k||(j.overflowY="hidden",j.overflowX="hidden"),e.createElement(nt,{onResize:function(e){2===k&&(null==l||l(e),s&&(P(),I.current=ft((function(){M()}))))},disabled:!(s||l)},e.createElement("textarea",D({},h,{ref:b,style:j,className:A(r,c,Q({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:function(e){v(e.target.value),null==p||p(e)}})))})),Fk=["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"],Wk=t.forwardRef((function(e,n){var o,r=e.defaultValue,i=e.value,s=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,p=e.maxLength,f=e.onCompositionStart,h=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,b=void 0===v?"rc-textarea":v,y=e.showCount,x=e.count,C=e.className,w=e.style,S=e.disabled,k=e.hidden,E=e.classNames,O=e.styles,$=e.onResize,N=e.onClear,M=e.onPressEnter,I=e.readOnly,P=e.autoSize,L=e.onKeyDown,j=Pt(e,Fk),T=vt(wi(r,{value:i,defaultValue:r}),2),R=T[0],_=T[1],z=null==R?"":String(R),B=vt(t.useState(!1),2),H=B[0],F=B[1],W=t.useRef(!1),V=vt(t.useState(null),2),K=V[0],q=V[1],X=a(null),U=a(null),G=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Y=function(){G().focus()};g(n,(function(){var e;return{resizableTextArea:U.current,focus:Y,blur:function(){G().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||G()}})),l((function(){F((function(e){return!S&&e}))}),[S]);var Z=vt(t.useState(null),2),ee=Z[0],te=Z[1];t.useEffect((function(){var e;ee&&(e=G()).setSelectionRange.apply(e,st(ee))}),[ee]);var ne,oe=uk(x,y),re=null!==(o=oe.max)&&void 0!==o?o:p,ie=Number(re)>0,ae=oe.strategy(z),se=!!re&&ae>re,le=function(e,t){var n=t;!W.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max&&t!==(n=oe.exceedFormatter(t,{max:oe.max}))&&te([G().selectionStart||0,G().selectionEnd||0]),_(n),sk(e.currentTarget,e,u,n)},ce=m;oe.show&&(ne=oe.showFormatter?oe.showFormatter({value:z,count:ae,maxLength:re}):"".concat(ae).concat(ie?" / ".concat(re):""),ce=t.createElement(t.Fragment,null,ce,t.createElement("span",{className:A("".concat(b,"-data-count"),null==E?void 0:E.count),style:null==O?void 0:O.count},ne)));var ue=!P&&!y&&!d;return t.createElement(lk,{ref:X,value:z,allowClear:d,handleReset:function(e){_(""),Y(),sk(G(),e,u)},suffix:ce,prefixCls:b,classNames:J(J({},E),{},{affixWrapper:A(null==E?void 0:E.affixWrapper,Q(Q({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),d))}),disabled:S,focused:H,className:A(C,se&&"".concat(b,"-out-of-range")),style:J(J({},w),K&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:k,readOnly:I,onClear:N},t.createElement(Hk,D({},j,{autoSize:P,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==L||L(e)},onChange:function(e){le(e,e.target.value)},onFocus:function(e){F(!0),null==s||s(e)},onBlur:function(e){F(!1),null==c||c(e)},onCompositionStart:function(e){W.current=!0,null==f||f(e)},onCompositionEnd:function(e){W.current=!1,le(e,e.currentTarget.value),null==h||h(e)},className:A(null==E?void 0:E.textarea),style:J(J({},null==O?void 0:O.textarea),{},{resize:null==w?void 0:w.resize}),disabled:S,prefixCls:b,onResize:function(e){var t;null==$||$(e),null!==(t=G())&&void 0!==t&&t.style.height&&q(!0)},ref:U,readOnly:I})))})),Vk=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 Kk=c(((t,n)=>{var o,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:p,className:f,style:h,styles:g,variant:m}=t,v=Vk(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=_o("TextArea");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:x}=e.useContext(ii),C=jl(s),w=e.useContext(li),S=null!=l?l:w,{status:k,hasFeedback:E,feedbackIcon:O}=e.useContext(Cd),$=yg(k,c),N=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=N.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=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const M=b("input",i),I=Ks(M),[P,L,j]=Zx(M,I),[D,T]=Mg("textArea",m,a),R=fk(null!=u?u:null==x?void 0:x.allowClear);return P(e.createElement(Wk,Object.assign({autoComplete:null==x?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},null==x?void 0:x.style),h),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:R,className:A(j,I,f,p,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:A({[`${M}-sm`]:"small"===C,[`${M}-lg`]:"large"===C},L,null==d?void 0:d.textarea,null===(o=null==x?void 0:x.classNames)||void 0===o?void 0:o.textarea),variant:A({[`${M}-${D}`]:T},bg(M,$)),affixWrapper:A(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:"rtl"===y,[`${M}-affix-wrapper-sm`]:"small"===C,[`${M}-affix-wrapper-lg`]:"large"===C,[`${M}-textarea-show-count`]:t.showCount||(null===(r=t.count)||void 0===r?void 0:r.show)},L)}),prefixCls:M,suffix:E&&e.createElement("span",{className:`${M}-textarea-suffix`},O),ref:N})))})),qk=mk;function Xk(e){return["small","middle","large"].includes(e)}function Uk(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}qk.Group=t=>{const{getPrefixCls:n,direction:o}=r(ii),{prefixCls:i,className:a}=t,s=n("input-group",i),l=n("input"),[c,d]=Zx(l),p=A(s,{[`${s}-lg`]:"large"===t.size,[`${s}-sm`]:"small"===t.size,[`${s}-compact`]:t.compact,[`${s}-rtl`]:"rtl"===o},d,a),f=r(Cd),h=u((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){_o("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(e.createElement("span",{className:p,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(Cd.Provider,{value:h},t.children)))},qk.Search=Dk,qk.TextArea=Kk,qk.Password=jk,qk.OTP=Sk;const Gk=t.createContext({latestIndex:0}),Yk=Gk.Provider,Qk=t=>{let{className:n,index:o,children:r,split:i,style:a}=t;const{latestIndex:s}=e.useContext(Gk);return null==r?null:e.createElement(e.Fragment,null,e.createElement("div",{className:n,style:a},r),o<s&&i&&e.createElement("span",{className:`${n}-split`},i))};var Zk=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 Jk=e.forwardRef(((t,n)=>{var o,r,i;const{getPrefixCls:a,space:s,direction:l}=e.useContext(ii),{size:c=(null!==(o=null==s?void 0:s.size)&&void 0!==o?o:"small"),align:u,className:d,rootClassName:p,children:f,direction:h="horizontal",prefixCls:g,split:m,style:v,wrap:b=!1,classNames:y,styles:x}=t,C=Zk(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,S]=Array.isArray(c)?c:[c,c],k=Xk(S),E=Xk(w),O=Uk(S),$=Uk(w),N=H(f,{keepEmpty:!0}),M=void 0===u&&"horizontal"===h?"center":u,I=a("space",g),[P,L,j]=Rl(I),D=A(I,null==s?void 0:s.className,L,`${I}-${h}`,{[`${I}-rtl`]:"rtl"===l,[`${I}-align-${M}`]:M,[`${I}-gap-row-${S}`]:k,[`${I}-gap-col-${w}`]:E},d,p,j),T=A(`${I}-item`,null!==(r=null==y?void 0:y.item)&&void 0!==r?r:null===(i=null==s?void 0:s.classNames)||void 0===i?void 0:i.item);let R=0;const _=N.map(((t,n)=>{var o,r;null!=t&&(R=n);const i=(null==t?void 0:t.key)||`${T}-${n}`;return e.createElement(Qk,{className:T,key:i,index:n,split:m,style:null!==(o=null==x?void 0:x.item)&&void 0!==o?o:null===(r=null==s?void 0:s.styles)||void 0===r?void 0:r.item},t)})),z=e.useMemo((()=>({latestIndex:R})),[R]);if(0===N.length)return null;const B={};return b&&(B.flexWrap="wrap"),!E&&$&&(B.columnGap=w),!k&&O&&(B.rowGap=S),P(e.createElement("div",Object.assign({ref:n,className:D,style:Object.assign(Object.assign(Object.assign({},B),null==s?void 0:s.style),v)},C),e.createElement(Yk,{value:z},_)))})),eE=Jk;eE.Compact=t=>{const{getPrefixCls:n,direction:o}=e.useContext(ii),{size:r,direction:i,block:a,prefixCls:s,className:l,rootClassName:c,children:u}=t,d=_l(t,["size","direction","block","prefixCls","className","rootClassName","children"]),p=jl((e=>null!=r?r:e)),f=n("space-compact",s),[h,g]=Rl(f),m=A(f,g,{[`${f}-rtl`]:"rtl"===o,[`${f}-block`]:a,[`${f}-vertical`]:"vertical"===i},l,c),v=e.useContext(zl),b=H(u),y=e.useMemo((()=>b.map(((t,n)=>{const o=(null==t?void 0:t.key)||`${f}-item-${n}`;return e.createElement(Fl,{key:o,compactSize:p,compactDirection:i,isFirstItem:0===n&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:n===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},t)}))),[r,b,v]);return 0===b.length?null:h(e.createElement("div",Object.assign({className:m},d),y))},"production"!==process.env.NODE_ENV&&(eE.displayName="Space");var tE=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 nE=t=>{const{getPopupContainer:n,getPrefixCls:o,direction:r}=e.useContext(ii),{prefixCls:i,type:a="default",danger:s,disabled:l,loading:c,onClick:u,htmlType:d,children:p,className:f,menu:h,arrow:g,autoFocus:m,overlay:v,trigger:b,align:y,open:x,onOpenChange:C,placement:w,getPopupContainer:S,href:k,icon:E=e.createElement(yy,null),title:O,buttonsRender:$=e=>e,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:L,dropdownRender:j}=t,D=tE(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=o("dropdown",i),R=`${T}-button`,_={menu:h,arrow:g,autoFocus:m,align:y,disabled:l,trigger:l?[]:b,onOpenChange:C,getPopupContainer:S||n,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:L,dropdownRender:j},{compactSize:z,compactItemClassnames:B}=Bl(T,r),H=A(R,B,f);"overlay"in t&&(_.overlay=v),"open"in t&&(_.open=x),_.placement="placement"in t?w:"rtl"===r?"bottomLeft":"bottomRight";const F=e.createElement(Tc,{type:a,danger:s,disabled:l,loading:c,onClick:u,htmlType:d,href:k,title:O},p),W=e.createElement(Tc,{type:a,danger:s,icon:E}),[V,K]=$([F,W]);return e.createElement(eE.Compact,Object.assign({className:H,size:z,block:!0},D),V,e.createElement(qy,Object.assign({},_),K))};nE.__ANT_BUTTON=!0;const oE=qy;oE.Button=nE;const rE=t.createContext(void 0),{Provider:iE}=rE;var aE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},sE=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:aE}))},lE=e.forwardRef(sE);"production"!==process.env.NODE_ENV&&(lE.displayName="FileTextOutlined");var cE=v((e=>{const{icon:n,description:o,prefixCls:r,className:i}=e,a=t.createElement("div",{className:`${r}-icon`},t.createElement(lE,null));return t.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:A(i,`${r}-content`)},n||o?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${r}-icon`},n),o&&t.createElement("div",{className:`${r}-description`},o)):a)}));const uE=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),dE=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,a=new ko("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${Yt(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new ko("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${Yt(n)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:Object.assign({},up(`${i}-wrap`,a,s,o,!0))},{[`${i}-wrap`]:{[`\n &${i}-wrap-enter,\n &${i}-wrap-appear\n `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},pE=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l,calc:c}=e,u=`${n}-group`;return{[u]:Object.assign(Object.assign({},qi(e)),{zIndex:e.zIndexPopupBase,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${u}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${u}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${u}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${u}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${u}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:c(c(l).add(s)).mul(-1).equal(),insetInlineEnd:c(c(l).add(s)).mul(-1).equal()}}},[`${u}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:l,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${u}-circle-shadow`]:{boxShadow:"none"},[`${u}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},fE=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:c,calc:u}=e;return{[n]:Object.assign(Object.assign({},qi(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:u(s).mul(-1).equal(),insetInlineEnd:u(s).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${Yt(u(o).div(2).equal())} ${Yt(o)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Yt(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Yt(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var hE=Qi("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:c,calc:u}=e,d=Oi(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:u(s).mul(1.5).equal(),floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(o).sub(u(c).mul(2)).equal(),floatButtonBodyPadding:c,badgeOffset:u(c).mul(1.5).equal()});return[pE(d),fE(d),fp(e),dE(d)]}),(e=>({dotOffsetInCircle:uE(e.controlHeightLG/2),dotOffsetInSquare:uE(e.borderRadiusLG)}))),gE=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 mE="float-btn",vE=t.forwardRef(((e,n)=>{const{prefixCls:o,className:i,rootClassName:a,type:s="default",shape:l="circle",icon:c,description:d,tooltip:p,badge:f={}}=e,h=gE(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:g,direction:m}=r(ii),v=r(rE),b=g(mE,o),y=Ks(b),[x,C,w]=hE(b,y),S=A(C,w,y,b,i,a,`${b}-${s}`,`${b}-${v||l}`,{[`${b}-rtl`]:"rtl"===m}),k=u((()=>ot(f,["title","children","status","text"])),[f]),E=u((()=>({prefixCls:b,description:d,icon:c,type:s})),[b,d,c,s]);let O=t.createElement("div",{className:`${b}-body`},t.createElement(cE,Object.assign({},E)));if("badge"in e&&(O=t.createElement(Nv,Object.assign({},k),O)),"tooltip"in e&&(O=t.createElement(Ym,{title:p,placement:"rtl"===m?"right":"left"},O)),"production"!==process.env.NODE_ENV){const e=_o("FloatButton");"production"!==process.env.NODE_ENV&&e(!("circle"===l&&d),"usage","supported only when `shape` is `square`. Due to narrow space for text, short sentence is recommended.")}return x(e.href?t.createElement("a",Object.assign({ref:n},h,{className:S}),O):t.createElement("button",Object.assign({ref:n},h,{className:S,type:"button"}),O))})),bE=vE;"production"!==process.env.NODE_ENV&&(bE.displayName="FloatButton");var yE=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 xE=t.forwardRef(((e,n)=>{const{prefixCls:o,className:i,type:a="default",shape:s="circle",visibilityHeight:c=400,icon:u=t.createElement(cv,null),target:p,onClick:f,duration:h=450}=e,g=yE(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[m,v]=d(0===c),b=t.useRef(null);t.useImperativeHandle(n,(()=>({nativeElement:b.current})));const y=()=>{var e;return(null===(e=b.current)||void 0===e?void 0:e.ownerDocument)||window},x=ht((e=>{const t=Ws(e.target);v(t>=c)}));l((()=>{const e=(p||y)();return x({target:e}),null==e||e.addEventListener("scroll",x),()=>{x.cancel(),null==e||e.removeEventListener("scroll",x)}}),[p]);const C=e=>{Vs(0,{getContainer:p||y,duration:h}),null==f||f(e)},{getPrefixCls:w}=r(ii),S=w(mE,o),k=w(),E=r(rE)||s,O=Object.assign({prefixCls:S,icon:u,type:a,shape:E},g);return t.createElement(Ra,{visible:m,motionName:`${k}-fade`},((e,n)=>{let{className:o}=e;return t.createElement(bE,Object.assign({ref:de(b,n)},O,{onClick:C,className:A(i,o)}))}))}));"production"!==process.env.NODE_ENV&&(xE.displayName="BackTop");var CE=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 wE=e=>{var n;const{prefixCls:o,className:i,style:a,shape:s="circle",type:l="default",icon:c=t.createElement(lE,null),closeIcon:u,description:d,trigger:p,children:f,onOpenChange:h,open:g,onClick:m}=e,v=CE(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:b,getPrefixCls:y,floatButtonGroup:x}=r(ii),C=null!==(n=null!=u?u:null==x?void 0:x.closeIcon)&&void 0!==n?n:t.createElement(Ms,null),w=y(mE,o),S=Ks(w),[k,E,O]=hE(w,S),$=`${w}-group`,N=A($,E,O,S,i,{[`${$}-rtl`]:"rtl"===b,[`${$}-${s}`]:s,[`${$}-${s}-shadow`]:!p}),M=A(E,`${$}-wrap`),[I,P]=wi(!1,{value:g}),L=t.useRef(null),j="hover"===p,D="click"===p,T=yi((e=>{I!==e&&(P(e),null==h||h(e))}));if(t.useEffect((()=>{if(D){const e=e=>{var t;(null===(t=L.current)||void 0===t?void 0:t.contains(e.target))||T(!1)};return document.addEventListener("click",e,{capture:!0}),()=>{document.removeEventListener("click",e,{capture:!0})}}}),[D]),"production"!==process.env.NODE_ENV){const t=_o("FloatButton.Group");"production"!==process.env.NODE_ENV&&t(!("open"in e)||!!p,"usage","`open` need to be used together with `trigger`")}return k(t.createElement(iE,{value:s},t.createElement("div",{ref:L,className:N,style:a,onMouseEnter:()=>{j&&T(!0)},onMouseLeave:()=>{j&&T(!1)}},p&&["click","hover"].includes(p)?t.createElement(t.Fragment,null,t.createElement(Ra,{visible:I,motionName:`${$}-wrap`},(e=>{let{className:n}=e;return t.createElement("div",{className:A(n,M)},f)})),t.createElement(bE,Object.assign({type:l,icon:I?C:c,description:d,"aria-label":e["aria-label"],className:`${$}-trigger`,onClick:e=>{D&&T(!I),null==m||m(e)}},v))):f)))};var SE=v(wE),kE=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 EE=t=>{var{backTop:n}=t,o=kE(t,["backTop"]);return n?e.createElement(xE,Object.assign({},o,{visibilityHeight:0})):e.createElement(bE,Object.assign({},o))};function OE(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function $E(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)}}function NE(e,t,n,o){var r=x.unstable_batchedUpdates?function(e){x.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}bE.BackTop=xE,bE.Group=SE,bE._InternalPanelDoNotUseOrYouWillBeFired=t=>{var{className:n,items:o}=t,r=kE(t,["className","items"]);const{prefixCls:i}=r,{getPrefixCls:a}=e.useContext(ii),s=`${a(mE,i)}-pure`;return o?e.createElement(SE,Object.assign({className:A(n,s)},r),o.map(((t,n)=>e.createElement(EE,Object.assign({key:n},t))))):e.createElement(EE,Object.assign({className:A(n,s)},r))};var ME=e.createContext(null),IE=function(t){var n=t.visible,o=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,s=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,p=t.current,f=t.transform,h=t.count,g=t.scale,m=t.minScale,v=t.maxScale,b=t.closeIcon,y=t.onSwitchLeft,x=t.onSwitchRight,C=t.onClose,w=t.onZoomIn,S=t.onZoomOut,k=t.onRotateRight,E=t.onRotateLeft,O=t.onFlipX,$=t.onFlipY,N=t.onReset,M=t.toolbarRender,I=t.zIndex,P=t.image,L=r(ME),j=l.rotateLeft,D=l.rotateRight,T=l.zoomIn,R=l.zoomOut,_=l.close,z=l.left,B=l.right,H=l.flipX,F=l.flipY,W="".concat(a,"-operations-operation");e.useEffect((function(){var e=function(e){e.keyCode===qs.ESC&&C()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var V=[{icon:F,onClick:$,type:"flipY"},{icon:H,onClick:O,type:"flipX"},{icon:j,onClick:E,type:"rotateLeft"},{icon:D,onClick:k,type:"rotateRight"},{icon:R,onClick:S,type:"zoomOut",disabled:g<=m},{icon:T,onClick:w,type:"zoomIn",disabled:g===v}].map((function(t){var n,o=t.icon,r=t.onClick,i=t.type,s=t.disabled;return e.createElement("div",{className:A(W,(n={},Q(n,"".concat(a,"-operations-operation-").concat(i),!0),Q(n,"".concat(a,"-operations-operation-disabled"),!!s),n)),onClick:r,key:i},o)})),K=e.createElement("div",{className:"".concat(a,"-operations")},V);return e.createElement(Ra,{visible:n,motionName:o},(function(t){var n=t.className,o=t.style;return e.createElement(Jc,{open:!0,getContainer:null!=i?i:document.body},e.createElement("div",{className:A("".concat(a,"-operations-wrapper"),n,s),style:J(J({},o),{},{zIndex:I})},null===b?null:e.createElement("button",{className:"".concat(a,"-close"),onClick:C},b||_),u&&e.createElement(e.Fragment,null,e.createElement("div",{className:A("".concat(a,"-switch-left"),Q({},"".concat(a,"-switch-left-disabled"),0===p)),onClick:y},z),e.createElement("div",{className:A("".concat(a,"-switch-right"),Q({},"".concat(a,"-switch-right-disabled"),p===h-1)),onClick:x},B)),e.createElement("div",{className:"".concat(a,"-footer")},d&&e.createElement("div",{className:"".concat(a,"-progress")},c?c(p+1,h):"".concat(p+1," / ").concat(h)),M?M(K,J(J({icons:{flipYIcon:V[0],flipXIcon:V[1],rotateLeftIcon:V[2],rotateRightIcon:V[3],zoomOutIcon:V[4],zoomInIcon:V[5]},actions:{onFlipY:$,onFlipX:O,onRotateLeft:E,onRotateRight:k,onZoomOut:S,onZoomIn:w,onReset:N,onClose:C},transform:f},L?{current:p,total:h}:{}),{},{image:P})):K)))}))},PE={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function LE(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return Q({},e,i);if(t<0&&r<o)return Q({},e,-i)}else if(t<0||r>o)return Q({},e,t<0?i:-i);return{}}function jE(e,t,n,o){var r=OE(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=J(J({},LE("x",n,e,i)),LE("y",o,t,a))),s}function AE(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,r=vt(d(n?"loading":"normal"),2),i=r[0],s=r[1],c=a(!1),u="error"===i;l((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}))}(t).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[t]),l((function(){n&&!c.current?s("loading"):u&&s("normal")}),[t]);var p=function(){s("normal")};return[function(e){c.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},u&&o?{src:o}:{onLoad:p,src:t},i]}function DE(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function TE(e,t,n,o,r,i,s){var c=r.rotate,u=r.scale,p=r.x,f=r.y,h=vt(d(!1),2),g=h[0],m=h[1],v=a({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){v.current=J(J({},v.current),e)};return l((function(){var e;return n&&t&&(e=NE(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),m(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?b({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):b({point1:{x:o[0].clientX-p,y:o[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=v.current,r=o.point1,a=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=DE(e,n),i=DE(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,a,c,u),p=vt(d,2),f=p[0],h=p[1],g=DE(c,u)/DE(r,a);s(g,"touchZoom",f,h,!0),b({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(i({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&m(!1),b({eventType:"none"}),o>u)return i({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*u,r=e.current.offsetHeight*u,a=e.current.getBoundingClientRect(),s=a.left,l=a.top,d=c%180!=0,p=jE(d?r:t,d?t:r,s,l);p&&i(J({},p),"dragRebound")}}}}var RE=["fallback","src","imgRef"],_E=["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"],zE=function(e){var n=e.fallback,o=e.src,r=e.imgRef,i=Pt(e,RE),a=vt(AE({src:o,fallback:n}),2),s=a[0],l=a[1];return t.createElement("img",D({ref:function(e){r.current=e,s(e)}},i,l))},BE=function(e){var n=e.prefixCls,o=e.src,i=e.alt,s=e.imageInfo,c=e.fallback,u=e.movable,p=void 0===u||u,f=e.onClose,h=e.visible,g=e.icons,m=void 0===g?{}:g,v=e.rootClassName,b=e.closeIcon,y=e.getContainer,x=e.current,C=void 0===x?0:x,w=e.count,S=void 0===w?1:w,k=e.countRender,E=e.scaleStep,O=void 0===E?.5:E,$=e.minScale,N=void 0===$?1:$,M=e.maxScale,I=void 0===M?50:M,P=e.transitionName,L=void 0===P?"zoom":P,j=e.maskTransitionName,T=void 0===j?"fade":j,R=e.imageRender,_=e.imgCommonProps,z=e.toolbarRender,B=e.onTransform,H=e.onChange,F=Pt(e,_E),W=a(),K=r(ME),q=K&&S>1,X=K&&S>=1,U=vt(d(!0),2),G=U[0],Y=U[1],Z=function(e,t,n,o){var r=a(null),i=a([]),s=vt(d(PE),2),l=s[0],c=s[1],u=function(e,t){null===r.current&&(i.current=[],r.current=ft((function(){c((function(e){var n=e;return i.current.forEach((function(e){n=J(J({},n),e)})),r.current=null,null==o||o({transform:n,action:t}),n}))}))),i.current.push(J(J({},l),e))};return{transform:l,resetTransform:function(e){c(PE),Lt(PE,l)||null==o||o({transform:PE,action:e})},updateTransform:u,dispatchZoomChange:function(o,r,i,a,s){var c=e.current,d=c.width,p=c.height,f=c.offsetWidth,h=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=o,b=l.scale*o;b>n?(b=n,v=n/l.scale):b<t&&(v=(b=s?b:t)/l.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,C=v-1,w=C*d*.5,S=C*p*.5,k=C*(y-l.x-g),E=C*(x-l.y-m),O=l.x-(k-w),$=l.y-(E-S);if(o<1&&1===b){var N=f*b,M=h*b,I=OE(),P=I.width,L=I.height;N<=P&&M<=L&&(O=0,$=0)}u({x:O,y:$,scale:b},r)}}}(W,N,I,B),ee=Z.transform,te=Z.resetTransform,ne=Z.updateTransform,oe=Z.dispatchZoomChange,re=function(e,t,n,o,r,i,s){var c=r.rotate,u=r.scale,p=r.x,f=r.y,h=vt(d(!1),2),g=h[0],m=h[1],v=a({diffX:0,diffY:0,transformX:0,transformY:0}),b=function(e){n&&g&&i({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},y=function(){if(n&&g){m(!1);var t=v.current,o=t.transformX,r=t.transformY;if(p===o||f===r)return;var a=e.current.offsetWidth*u,s=e.current.offsetHeight*u,l=e.current.getBoundingClientRect(),d=l.left,h=l.top,b=c%180!=0,y=jE(b?s:a,b?a:s,d,h);y&&i(J({},y),"dragRebound")}};return l((function(){var e,n,o,r;if(t){o=NE(window,"mouseup",y,!1),r=NE(window,"mousemove",b,!1);try{window.top!==window.self&&(e=NE(window.top,"mouseup",y,!1),n=NE(window.top,"mousemove",b,!1))}catch(e){V(!1,"[rc-image] ".concat(e))}}return function(){var t,i,a,s;null===(t=o)||void 0===t||t.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=n)||void 0===s||s.remove()}}),[n,g,p,f,c,t]),{isMoving:g,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-p,diffY:e.pageY-f,transformX:p,transformY:f},m(!0))},onMouseMove:b,onMouseUp:y,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),r=1+Math.min(t,1)*o;e.deltaY>0&&(r=1/r),s(r,"wheel",e.clientX,e.clientY)}}}}(W,p,h,O,ee,ne,oe),ie=re.isMoving,ae=re.onMouseDown,se=re.onWheel,le=TE(W,p,h,N,ee,ne,oe),ce=le.isTouching,ue=le.onTouchStart,de=le.onTouchMove,pe=le.onTouchEnd,fe=ee.rotate,he=ee.scale,ge=A(Q({},"".concat(n,"-moving"),ie));l((function(){G||Y(!0)}),[G]);var me=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C>0&&(Y(!1),te("prev"),null==H||H(C-1,C))},ve=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C<S-1&&(Y(!1),te("next"),null==H||H(C+1,C))},be=function(e){h&&q&&(e.keyCode===qs.LEFT?me():e.keyCode===qs.RIGHT&&ve())};l((function(){var e=NE(window,"keydown",be,!1);return function(){e.remove()}}),[h,q,C]);var ye=t.createElement(zE,D({},_,{width:e.width,height:e.height,imgRef:W,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ee.x,"px, ").concat(ee.y,"px, 0) scale3d(").concat(ee.flipX?"-":"").concat(he,", ").concat(ee.flipY?"-":"").concat(he,", 1) rotate(").concat(fe,"deg)"),transitionDuration:(!G||ce)&&"0s"},fallback:c,src:o,onWheel:se,onMouseDown:ae,onDoubleClick:function(e){h&&(1!==he?ne({x:0,y:0,scale:1},"doubleClick"):oe(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:ue,onTouchMove:de,onTouchEnd:pe,onTouchCancel:pe})),xe=J({url:o,alt:i},s);return t.createElement(t.Fragment,null,t.createElement(fu,D({transitionName:L,maskTransitionName:T,closable:!1,keyboard:!0,prefixCls:n,onClose:f,visible:h,classNames:{wrapper:ge},rootClassName:v,getContainer:y},F,{afterClose:function(){te("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},R?R(ye,J({transform:ee,image:xe},K?{current:C}:{})):ye)),t.createElement(IE,{visible:h,transform:ee,maskTransitionName:T,closeIcon:b,getContainer:y,prefixCls:n,rootClassName:v,icons:m,countRender:k,showSwitch:q,showProgress:X,current:C,count:S,scale:he,minScale:N,maxScale:I,toolbarRender:z,onSwitchLeft:me,onSwitchRight:ve,onZoomIn:function(){oe(1+O,"zoomIn")},onZoomOut:function(){oe(1/(1+O),"zoomOut")},onRotateRight:function(){ne({rotate:fe+90},"rotateRight")},onRotateLeft:function(){ne({rotate:fe-90},"rotateLeft")},onFlipX:function(){ne({flipX:!ee.flipX},"flipX")},onFlipY:function(){ne({flipY:!ee.flipY},"flipY")},onClose:f,onReset:function(){te("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:xe}))},HE=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var FE=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],WE=["src"],VE=0;var KE=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],qE=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],XE=function(t){var n=t.src,o=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,p=t.placeholder,f=t.fallback,h=t.width,g=t.height,m=t.style,v=t.preview,b=void 0===v||v,y=t.className,x=t.onClick,C=t.onError,w=t.wrapperClassName,S=t.wrapperStyle,k=t.rootClassName,E=Pt(t,KE),O=p&&!0!==p,$="object"===T(b)?b:{},N=$.src,M=$.visible,I=void 0===M?void 0:M,P=$.onVisibleChange,L=void 0===P?i:P,j=$.getContainer,R=void 0===j?void 0:j,_=$.mask,z=$.maskClassName,B=$.movable,H=$.icons,F=$.scaleStep,W=$.minScale,V=$.maxScale,K=$.imageRender,q=$.toolbarRender,X=Pt($,qE),U=null!=N?N:n,G=vt(wi(!!I,{value:I,onChange:L}),2),Y=G[0],Z=G[1],ee=vt(AE({src:n,isCustomPlaceholder:O,fallback:f}),3),te=ee[0],ne=ee[1],oe=ee[2],re=vt(d(null),2),ie=re[0],ae=re[1],se=r(ME),le=!!b,ce=A(s,w,k,Q({},"".concat(s,"-error"),"error"===oe)),ue=u((function(){var e={};return HE.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}),HE.map((function(e){return t[e]}))),de=function(t,n){var o=vt(e.useState((function(){return String(VE+=1)})),1)[0],r=e.useContext(ME),i={data:n,canPreview:t};return e.useEffect((function(){if(r)return r.register(o,i)}),[]),e.useEffect((function(){r&&r.register(o,i)}),[t,n]),o}(le,u((function(){return J(J({},ue),{},{src:U})}),[U,ue]));return e.createElement(e.Fragment,null,e.createElement("div",D({},E,{className:ce,onClick:le?function(e){var t=$E(e.target),n=t.left,o=t.top;se?se.onPreview(de,U,n,o):(ae({x:n,y:o}),Z(!0)),null==x||x(e)}:x,style:J({width:h,height:g},S)}),e.createElement("img",D({},ue,{className:A("".concat(s,"-img"),Q({},"".concat(s,"-img-placeholder"),!0===p),y),style:J({height:g},m),ref:te},ne,{width:h,height:g,onError:C})),"loading"===oe&&e.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},p),_&&le&&e.createElement("div",{className:A("".concat(s,"-mask"),z),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},_)),!se&&le&&e.createElement(BE,D({"aria-hidden":!Y,visible:Y,prefixCls:c,onClose:function(){Z(!1),ae(null)},mousePosition:ie,src:U,alt:o,imageInfo:{width:h,height:g},fallback:f,getContainer:R,icons:H,movable:B,scaleStep:F,minScale:W,maxScale:V,rootClassName:k,imageRender:K,imgCommonProps:ue,toolbarRender:q},X)))};XE.PreviewGroup=function(t){var n,o=t.previewPrefixCls,r=void 0===o?"rc-image-preview":o,i=t.children,a=t.icons,s=void 0===a?{}:a,l=t.items,c=t.preview,u=t.fallback,p="object"===T(c)?c:{},f=p.visible,h=p.onVisibleChange,g=p.getContainer,m=p.current,v=p.movable,b=p.minScale,y=p.maxScale,x=p.countRender,C=p.closeIcon,w=p.onChange,S=p.onTransform,k=p.toolbarRender,E=p.imageRender,O=Pt(p,FE),$=function(t){var n=vt(e.useState({}),2),o=n[0],r=n[1],i=e.useCallback((function(e,t){return r((function(n){return J(J({},n),{},Q({},e,t))})),function(){r((function(t){var n=J({},t);return delete n[e],n}))}}),[]);return[e.useMemo((function(){return t?t.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(st(HE)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(o).reduce((function(e,t){var n=o[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e}),[])}),[t,o]),i,!!t]}(l),N=vt($,3),M=N[0],I=N[1],P=N[2],L=vt(wi(0,{value:m}),2),j=L[0],A=L[1],R=vt(d(!1),2),_=R[0],z=R[1],B=(null===(n=M[j])||void 0===n?void 0:n.data)||{},H=B.src,F=Pt(B,WE),W=vt(wi(!!f,{value:f,onChange:function(e,t){null==h||h(e,t,j)}}),2),V=W[0],K=W[1],q=vt(d(null),2),X=q[0],U=q[1],G=e.useCallback((function(e,t,n,o){var r=P?M.findIndex((function(e){return e.data.src===t})):M.findIndex((function(t){return t.id===e}));A(r<0?0:r),K(!0),U({x:n,y:o}),z(!0)}),[M,P]);e.useEffect((function(){V?_||A(0):z(!1)}),[V]);var Y=e.useMemo((function(){return{register:I,onPreview:G}}),[I,G]);return e.createElement(ME.Provider,{value:Y},i,e.createElement(BE,D({"aria-hidden":!V,movable:v,visible:V,prefixCls:r,closeIcon:C,onClose:function(){K(!1),U(null)},mousePosition:X,imgCommonProps:F,src:H,fallback:u,icons:s,minScale:b,maxScale:y,getContainer:g,current:j,count:M.length,countRender:x,onTransform:S,toolbarRender:k,imageRender:E,onChange:function(e,t){A(e),null==w||w(e,t)}},O)))},"production"!==process.env.NODE_ENV&&(XE.displayName="Image");var UE={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"},GE=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:UE}))},YE=e.forwardRef(GE);"production"!==process.env.NODE_ENV&&(YE.displayName="RotateLeftOutlined");var QE={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"},ZE=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:QE}))},JE=e.forwardRef(ZE);"production"!==process.env.NODE_ENV&&(JE.displayName="RotateRightOutlined");var eO={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"},tO=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:eO}))},nO=e.forwardRef(tO);"production"!==process.env.NODE_ENV&&(nO.displayName="SwapOutlined");var oO={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"},rO=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:oO}))},iO=e.forwardRef(rO);"production"!==process.env.NODE_ENV&&(iO.displayName="ZoomInOutlined");var aO={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"},sO=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:aO}))},lO=e.forwardRef(sO);"production"!==process.env.NODE_ENV&&(lO.displayName="ZoomOutOutlined");const cO=e=>({position:e||"absolute",inset:0}),uO=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 qr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ki),{padding:`0 ${Yt(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},dO=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,p=new qr(n).setAlpha(.1),f=p.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:p.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Yt(a)}`,backgroundColor:p.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}}}}},pO=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new qr(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}}},fO=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({},cO()),{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({},cO()),{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()},"&":[dO(e),pO(e)]}]},hO=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({},uO(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},cO())}}},gO=e=>{const{previewCls:t}=e;return{[`${t}-root`]:zp(e,"zoom"),"&":fp(e,!0)}};var mO=Qi("Image",(e=>{const t=`${e.componentCls}-preview`,n=Oi(e,{previewCls:t,modalMaskBg:new qr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[hO(n),fO(n),Hp(Oi(n,{componentCls:t})),gO(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new qr(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new qr(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new qr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),vO=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 bO={rotateLeft:e.createElement(YE,null),rotateRight:e.createElement(JE,null),zoomIn:e.createElement(iO,null),zoomOut:e.createElement(lO,null),close:e.createElement(Ms,null),left:e.createElement(uy,null),right:e.createElement(Pv,null),flipX:e.createElement(nO,null),flipY:e.createElement(nO,{rotate:90})};var yO=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 xO=t=>{var n;const{prefixCls:o,preview:r,className:i,rootClassName:a,style:s}=t,l=yO(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=qo,getPopupContainer:d,image:p}=e.useContext(ii),f=c("image",o),h=c(),g=u.Image||qo.Image,m=Ks(f),[v,b,y]=mO(f,m),x=A(a,b,y,m),C=A(i,b,null==p?void 0:p.className),[w]=el("ImagePreview","object"==typeof r?r.zIndex:void 0),S=e.useMemo((()=>{var t;if(!1===r)return r;const n="object"==typeof r?r:{},{getContainer:o,closeIcon:i}=n,a=yO(n,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:e.createElement("div",{className:`${f}-mask-info`},e.createElement(Mk,null),null==g?void 0:g.preview),icons:bO},a),{getContainer:null!=o?o:d,transitionName:wl(h,"zoom",n.transitionName),maskTransitionName:wl(h,"fade",n.maskTransitionName),zIndex:w,closeIcon:null!=i?i:null===(t=null==p?void 0:p.preview)||void 0===t?void 0:t.closeIcon})}),[r,g,null===(n=null==p?void 0:p.preview)||void 0===n?void 0:n.closeIcon]),k=Object.assign(Object.assign({},null==p?void 0:p.style),s);return v(e.createElement(XE,Object.assign({prefixCls:f,preview:S,rootClassName:x,className:C,style:k},l)))};xO.PreviewGroup=t=>{var{previewPrefixCls:n,preview:o}=t,r=vO(t,["previewPrefixCls","preview"]);const{getPrefixCls:i}=e.useContext(ii),a=i("image",n),s=`${a}-preview`,l=i(),c=Ks(a),[u,d,p]=mO(a,c),[f]=el("ImagePreview","object"==typeof o?o.zIndex:void 0),h=e.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},n=A(d,p,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:wl(l,"zoom",t.transitionName),maskTransitionName:wl(l,"fade",t.maskTransitionName),rootClassName:n,zIndex:f})}),[o]);return u(e.createElement(XE.PreviewGroup,Object.assign({preview:h,previewPrefixCls:s,icons:bO},r)))},"production"!==process.env.NODE_ENV&&(xO.displayName="Image");const CO=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}}}},wO=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:p,zeroTriggerWidth:f,motionDurationMid:h,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 ${h}, 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:Yt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(f).mul(-1).equal(),zIndex:1,width:f,height:p,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(f).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},CO(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Yt(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 SO=Qi("Layout",(e=>[wO(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"]]}),kO=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 EO(t){let{suffixCls:n,tagName:o,displayName:r}=t;return t=>{const i=e.forwardRef(((r,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:o},r))));return"production"!==process.env.NODE_ENV&&(i.displayName=r),i}}const OO=e.forwardRef(((t,n)=>{const{prefixCls:o,suffixCls:r,className:i,tagName:a}=t,s=kO(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=e.useContext(ii),c=l("layout",o),[u,d,p]=SO(c),f=r?`${c}-${r}`:c;return u(e.createElement(a,Object.assign({className:A(o||f,i,d,p),ref:n},s)))})),$O=e.forwardRef(((t,n)=>{const{direction:o}=e.useContext(ii),[r,i]=e.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:p}=t,f=ot(kO(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:g}=e.useContext(ii),m=h("layout",a),v=function(e,t,n){return"boolean"==typeof n?n:!!e.length||H(t).some((e=>e.type===my))}(r,c,u),[b,y,x]=SO(m),C=A(m,{[`${m}-has-sider`]:v,[`${m}-rtl`]:"rtl"===o},null==g?void 0:g.className,s,l,y,x),w=e.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(st(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(e.createElement(dy.Provider,{value:w},e.createElement(d,Object.assign({ref:n,className:C,style:Object.assign(Object.assign({},null==g?void 0:g.style),p)},f),c)))})),NO=EO({tagName:"div",displayName:"Layout"})($O),MO=EO({suffixCls:"header",tagName:"header",displayName:"Header"})(OO),IO=EO({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(OO),PO=EO({suffixCls:"content",tagName:"main",displayName:"Content"})(OO),LO=NO;LO.Header=MO,LO.Footer=IO,LO.Content=PO,LO.Sider=my,LO._InternalSiderContext=hy;const jO=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const o=n[t];void 0!==o&&(e[t]=o)}))}return e};var AO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},DO=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:AO}))},TO=e.forwardRef(DO);"production"!==process.env.NODE_ENV&&(TO.displayName="DoubleLeftOutlined");var RO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},_O=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:RO}))},zO=e.forwardRef(_O);"production"!==process.env.NODE_ENV&&(zO.displayName="DoubleRightOutlined");var BO={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},HO=["10","20","50","100"],FO=function(e){var n=e.pageSizeOptions,o=void 0===n?HO:n,r=e.locale,i=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,p=e.disabled,f=e.buildOptionText,h=vt(t.useState(""),2),g=h[0],m=h[1],v=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b="function"==typeof f?f:function(e){return"".concat(e," ").concat(r.items_per_page)},y=function(e){""!==g&&(e.keyCode!==qs.ENTER&&"click"!==e.type||(m(""),null==l||l(v())))},x="".concat(c,"-options");if(!i&&!l)return null;var C=null,w=null,S=null;if(i&&u){var k=(o.some((function(e){return e.toString()===a.toString()}))?o:o.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,n){return t.createElement(u.Option,{key:n,value:e.toString()},b(e))}));C=t.createElement(u,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||o[0]).toString(),onChange:function(e){null==i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},k)}return l&&(s&&(S="boolean"==typeof s?t.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:p,className:"".concat(x,"-quick-jumper-button")},r.jump_to_confirm):t.createElement("span",{onClick:y,onKeyUp:y},s)),w=t.createElement("div",{className:"".concat(x,"-quick-jumper")},r.jump_to,t.createElement("input",{disabled:p,type:"text",value:g,onChange:function(e){m(e.target.value)},onKeyUp:y,onBlur:function(e){s||""===g||(m(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(v()))},"aria-label":r.page}),r.page,S)),t.createElement("li",{className:x},C,w)};"production"!==process.env.NODE_ENV&&(FO.displayName="Options");var WO=function(e){var n,o=e.rootPrefixCls,r=e.page,i=e.active,a=e.className,s=e.showTitle,l=e.onClick,c=e.onKeyPress,u=e.itemRender,d="".concat(o,"-item"),p=A(d,"".concat(d,"-").concat(r),(Q(n={},"".concat(d,"-active"),i),Q(n,"".concat(d,"-disabled"),!r),n),a),f=u(r,"page",t.createElement("a",{rel:"nofollow"},r));return f?t.createElement("li",{title:s?String(r):null,className:p,onClick:function(){l(r)},onKeyDown:function(e){c(e,l,r)},tabIndex:0},f):null};"production"!==process.env.NODE_ENV&&(WO.displayName="Pager");var VO=function(e,t,n){return n};function KO(){}function qO(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function XO(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}var UO=function(e){var n,o=e.prefixCls,r=void 0===o?"rc-pagination":o,i=e.selectPrefixCls,a=void 0===i?"rc-select":i,s=e.className,c=e.selectComponentClass,u=e.current,d=e.defaultCurrent,p=void 0===d?1:d,f=e.total,h=void 0===f?0:f,g=e.pageSize,m=e.defaultPageSize,v=void 0===m?10:m,b=e.onChange,y=void 0===b?KO:b,x=e.hideOnSinglePage,C=e.align,w=e.showPrevNextJumpers,S=void 0===w||w,k=e.showQuickJumper,E=e.showLessItems,O=e.showTitle,$=void 0===O||O,N=e.onShowSizeChange,M=void 0===N?KO:N,I=e.locale,P=void 0===I?BO:I,L=e.style,j=e.totalBoundaryShowSizeChanger,R=void 0===j?50:j,_=e.disabled,z=e.simple,B=e.showTotal,H=e.showSizeChanger,F=e.pageSizeOptions,W=e.itemRender,V=void 0===W?VO:W,K=e.jumpPrevIcon,q=e.jumpNextIcon,X=e.prevIcon,G=e.nextIcon,Y=t.useRef(null),Z=vt(wi(10,{value:g,defaultValue:v}),2),ee=Z[0],te=Z[1],ne=vt(wi(1,{value:u,defaultValue:p,postState:function(e){return Math.max(1,Math.min(e,XO(void 0,ee,h)))}}),2),oe=ne[0],re=ne[1],ie=vt(t.useState(oe),2),ae=ie[0],se=ie[1];l((function(){se(oe)}),[oe]);var le=y!==KO,ce="current"in e;"production"!==process.env.NODE_ENV&&U(!ce||le,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ue=Math.max(1,oe-(E?3:5)),de=Math.min(XO(void 0,ee,h),oe+(E?3:5));function pe(n,o){var i=n||t.createElement("button",{type:"button","aria-label":o,className:"".concat(r,"-item-link")});return"function"==typeof n&&(i=t.createElement(n,J({},e))),i}function fe(e){var t=e.target.value,n=XO(void 0,ee,h);return""===t?t:Number.isNaN(Number(t))?ae:t>=n?n:Number(t)}var he=h>ee&&k;function ge(e){var t=fe(e);switch(t!==ae&&se(t),e.keyCode){case qs.ENTER:me(t);break;case qs.UP:me(t-1);break;case qs.DOWN:me(t+1)}}function me(e){if(function(e){return qO(e)&&e!==oe&&qO(h)&&h>0}(e)&&!_){var t=XO(void 0,ee,h),n=e;return e>t?n=t:e<1&&(n=1),n!==ae&&se(n),re(n),null==y||y(n,ee),n}return oe}var ve=oe>1,be=oe<XO(void 0,ee,h),ye=null!=H?H:h>R;function xe(){ve&&me(oe-1)}function Ce(){be&&me(oe+1)}function we(){me(ue)}function Se(){me(de)}function ke(e,t){if("Enter"===e.key||e.charCode===qs.ENTER||e.keyCode===qs.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function Ee(e){"click"!==e.type&&e.keyCode!==qs.ENTER||me(ae)}var Oe=null,$e=_s(e,{aria:!0,data:!0}),Ne=B&&t.createElement("li",{className:"".concat(r,"-total-text")},B(h,[0===h?0:(oe-1)*ee+1,oe*ee>h?h:oe*ee])),Me=null,Ie=XO(void 0,ee,h);if(x&&h<=ee)return null;var Pe=[],Le={rootPrefixCls:r,onClick:me,onKeyPress:ke,showTitle:$,itemRender:V,page:-1},je=oe-1>0?oe-1:0,Ae=oe+1<Ie?oe+1:Ie,De=k&&k.goButton,Te="object"===T(z)?z.readOnly:!z,Re=De,_e=null;z&&(De&&(Re="boolean"==typeof De?t.createElement("button",{type:"button",onClick:Ee,onKeyUp:Ee},P.jump_to_confirm):t.createElement("span",{onClick:Ee,onKeyUp:Ee},De),Re=t.createElement("li",{title:$?"".concat(P.jump_to).concat(oe,"/").concat(Ie):null,className:"".concat(r,"-simple-pager")},Re)),_e=t.createElement("li",{title:$?"".concat(oe,"/").concat(Ie):null,className:"".concat(r,"-simple-pager")},Te?ae:t.createElement("input",{type:"text",value:ae,disabled:_,onKeyDown:function(e){e.keyCode!==qs.UP&&e.keyCode!==qs.DOWN||e.preventDefault()},onKeyUp:ge,onChange:ge,onBlur:function(e){me(fe(e))},size:3}),t.createElement("span",{className:"".concat(r,"-slash")},"/"),Ie));var ze=E?1:2;if(Ie<=3+2*ze){Ie||Pe.push(t.createElement(WO,D({},Le,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Be=1;Be<=Ie;Be+=1)Pe.push(t.createElement(WO,D({},Le,{key:Be,page:Be,active:oe===Be})))}else{var He=E?P.prev_3:P.prev_5,Fe=E?P.next_3:P.next_5,We=V(ue,"jump-prev",pe(K,"prev page")),Ve=V(de,"jump-next",pe(q,"next page"));S&&(Oe=We?t.createElement("li",{title:$?He:null,key:"prev",onClick:we,tabIndex:0,onKeyDown:function(e){ke(e,we)},className:A("".concat(r,"-jump-prev"),Q({},"".concat(r,"-jump-prev-custom-icon"),!!K))},We):null,Me=Ve?t.createElement("li",{title:$?Fe:null,key:"next",onClick:Se,tabIndex:0,onKeyDown:function(e){ke(e,Se)},className:A("".concat(r,"-jump-next"),Q({},"".concat(r,"-jump-next-custom-icon"),!!q))},Ve):null);var Ke=Math.max(1,oe-ze),qe=Math.min(oe+ze,Ie);oe-1<=ze&&(qe=1+2*ze),Ie-oe<=ze&&(Ke=Ie-2*ze);for(var Xe=Ke;Xe<=qe;Xe+=1)Pe.push(t.createElement(WO,D({},Le,{key:Xe,page:Xe,active:oe===Xe})));if(oe-1>=2*ze&&3!==oe&&(Pe[0]=t.cloneElement(Pe[0],{className:A("".concat(r,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(Oe)),Ie-oe>=2*ze&&oe!==Ie-2){var Ue=Pe[Pe.length-1];Pe[Pe.length-1]=t.cloneElement(Ue,{className:A("".concat(r,"-item-before-jump-next"),Ue.props.className)}),Pe.push(Me)}1!==Ke&&Pe.unshift(t.createElement(WO,D({},Le,{key:1,page:1}))),qe!==Ie&&Pe.push(t.createElement(WO,D({},Le,{key:Ie,page:Ie})))}var Ge=function(e){var n=V(e,"prev",pe(X,"prev page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!ve}):n}(je);if(Ge){var Ye=!ve||!Ie;Ge=t.createElement("li",{title:$?P.prev_page:null,onClick:xe,tabIndex:Ye?null:0,onKeyDown:function(e){ke(e,xe)},className:A("".concat(r,"-prev"),Q({},"".concat(r,"-disabled"),Ye)),"aria-disabled":Ye},Ge)}var Qe,Ze,Je=function(e){var n=V(e,"next",pe(G,"next page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!be}):n}(Ae);Je&&(z?(Qe=!be,Ze=ve?0:null):Ze=(Qe=!be||!Ie)?null:0,Je=t.createElement("li",{title:$?P.next_page:null,onClick:Ce,tabIndex:Ze,onKeyDown:function(e){ke(e,Ce)},className:A("".concat(r,"-next"),Q({},"".concat(r,"-disabled"),Qe)),"aria-disabled":Qe},Je));var et=A(r,s,(Q(n={},"".concat(r,"-start"),"start"===C),Q(n,"".concat(r,"-center"),"center"===C),Q(n,"".concat(r,"-end"),"end"===C),Q(n,"".concat(r,"-simple"),z),Q(n,"".concat(r,"-disabled"),_),n));return t.createElement("ul",D({className:et,style:L,ref:Y},$e),Ne,Ge,z?_e:Pe,Je,t.createElement(FO,{locale:P,rootPrefixCls:r,disabled:_,selectComponentClass:c,selectPrefixCls:a,changeSize:ye?function(e){var t=XO(e,ee,h),n=oe>t&&0!==t?t:oe;te(e),se(n),null==M||M(oe,e),re(n),null==y||y(n,e)}:null,pageSize:ee,pageSizeOptions:F,quickGo:he?me:null,goButton:Re}))};"production"!==process.env.NODE_ENV&&(UO.displayName="Pagination");const GO=t=>e.createElement(um,Object.assign({},t,{showSearch:!0,size:"small"})),YO=t=>e.createElement(um,Object.assign({},t,{showSearch:!0,size:"middle"}));GO.Option=um.Option,YO.Option=um.Option;const QO=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ZO=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Yt(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Yt(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Yt(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Yt(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Yt(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Yt(e.itemSizeSM),input:Object.assign(Object.assign({},Fx(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},JO=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:Yt(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Yt(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Yt(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Yt(e.inputOutlineOffset)} 0 ${Yt(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},e$=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Yt(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Yt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Yt(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Wx(e)),Ix(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Mx(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},t$=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Yt(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Yt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Yt(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},n$=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Yt(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),t$(e)),e$(e)),JO(e)),ZO(e)),QO(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},o$=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Gi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ui(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ui(e))}}}},r$=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},$x(e)),i$=e=>Oi(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ox(e));var a$=Qi("Pagination",(e=>{const t=i$(e);return[n$(t),o$(t)]}),r$);const s$=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var l$=Ji(["Pagination","bordered"],(e=>{const t=i$(e);return[s$(t)]}),r$),c$=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 u$=t=>{const{align:n,prefixCls:o,selectPrefixCls:r,className:i,rootClassName:a,style:s,size:l,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:p}=t,f=c$(t,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:h}=gm(d),[,g]=Wi(),{getPrefixCls:m,direction:v,pagination:b={}}=e.useContext(ii),y=m("pagination",o),[x,C,w]=a$(y),S=null!=p?p:b.showSizeChanger,k=e.useMemo((()=>{const t=e.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:e.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?e.createElement(Pv,null):e.createElement(uy,null)),nextIcon:e.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?e.createElement(uy,null):e.createElement(Pv,null)),jumpPrevIcon:e.createElement("a",{className:`${y}-item-link`},e.createElement("div",{className:`${y}-item-container`},"rtl"===v?e.createElement(zO,{className:`${y}-item-link-icon`}):e.createElement(TO,{className:`${y}-item-link-icon`}),t)),jumpNextIcon:e.createElement("a",{className:`${y}-item-link`},e.createElement("div",{className:`${y}-item-container`},"rtl"===v?e.createElement(TO,{className:`${y}-item-link-icon`}):e.createElement(zO,{className:`${y}-item-link-icon`}),t))}}),[v,y]),[E]=Zo("Pagination",Ho),O=Object.assign(Object.assign({},E),c),$=jl(l),N="small"===$||!(!h||$||!d),M=m("select",r),I=A({[`${y}-${n}`]:!!n,[`${y}-mini`]:N,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:g.wireframe},null==b?void 0:b.className,i,a,C,w),P=Object.assign(Object.assign({},null==b?void 0:b.style),s);return x(e.createElement(e.Fragment,null,g.wireframe&&e.createElement(l$,{prefixCls:y}),e.createElement(UO,Object.assign({},k,f,{style:P,prefixCls:y,selectPrefixCls:M,className:I,selectComponentClass:u||(N?GO:YO),locale:O,showSizeChanger:S}))))};"production"!==process.env.NODE_ENV&&(u$.displayName="Pagination");const d$=80*Math.PI,p$=t=>{const{dotClassName:n,style:o,hasCircleCls:r}=t;return e.createElement("circle",{className:A(`${n}-circle`,{[`${n}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:o})},f$=t=>{let{percent:n,prefixCls:o}=t;const r=`${o}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[s,l]=e.useState(!1);nn((()=>{0!==n&&l(!0)}),[0!==n]);const c=Math.max(Math.min(n,100),0);if(!s)return null;const u={strokeDashoffset:""+d$/4,strokeDasharray:`${d$*c/100} ${d$*(100-c)/100}`};return e.createElement("span",{className:A(i,`${r}-progress`,c<=0&&a)},e.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},e.createElement(p$,{dotClassName:r,hasCircleCls:!0}),e.createElement(p$,{dotClassName:r,style:u})))};function h$(t){const{prefixCls:n,percent:o=0}=t,r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return e.createElement(e.Fragment,null,e.createElement("span",{className:A(i,o>0&&a)},e.createElement("span",{className:A(r,`${n}-dot-spin`)},[1,2,3,4].map((t=>e.createElement("i",{className:`${n}-dot-item`,key:t}))))),e.createElement(f$,{prefixCls:n,percent:o}))}function g$(t){const{prefixCls:n,indicator:o,percent:r}=t,i=`${n}-dot`;return o&&e.isValidElement(o)?Hs(o,{className:A(o.props.className,i),percent:r}):e.createElement(h$,{prefixCls:n,percent:r})}const m$=new ko("antSpinMove",{to:{opacity:1}}),v$=new ko("antRotate",{to:{transform:"rotate(405deg)"}}),b$=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:m$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:v$,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var y$=Qi("Spin",(e=>{const t=Oi(e,{spinDotDefault:e.colorTextDescription});return[b$(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const x$=[[30,.05],[70,.03],[96,.01]];var C$=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 w$;const S$=t=>{var n;const{prefixCls:o,spinning:r=!0,delay:i=0,className:a,rootClassName:s,size:l="default",tip:c,wrapperClassName:u,style:d,children:p,fullscreen:f=!1,indicator:h,percent:g}=t,m=C$(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,spin:y}=e.useContext(ii),x=v("spin",o),[C,w,S]=y$(x),[k,E]=e.useState((()=>r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,i))),O=function(t,n){const[o,r]=e.useState(0),i=e.useRef(),a="auto"===n;return e.useEffect((()=>(a&&t&&(r(0),i.current=setInterval((()=>{r((e=>{const t=100-e;for(let n=0;n<x$.length;n+=1){const[o,r]=x$[n];if(e<=o)return e+t*r}return e}))}),200)),()=>{clearInterval(i.current)})),[a,t]),a?o:n}(k,g);e.useEffect((()=>{if(r){const e=iw(i,(()=>{E(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}E(!1)}),[i,r]);const $=e.useMemo((()=>void 0!==p&&!f),[p,f]);if("production"!==process.env.NODE_ENV){const e=_o("Spin");"production"!==process.env.NODE_ENV&&e(!c||$||f,"usage","`tip` only work in nest or fullscreen pattern.")}const N=A(x,null==y?void 0:y.className,{[`${x}-sm`]:"small"===l,[`${x}-lg`]:"large"===l,[`${x}-spinning`]:k,[`${x}-show-text`]:!!c,[`${x}-rtl`]:"rtl"===b},a,!f&&s,w,S),M=A(`${x}-container`,{[`${x}-blur`]:k}),I=null!==(n=null!=h?h:null==y?void 0:y.indicator)&&void 0!==n?n:w$,P=Object.assign(Object.assign({},null==y?void 0:y.style),d),L=e.createElement("div",Object.assign({},m,{style:P,className:N,"aria-live":"polite","aria-busy":k}),e.createElement(g$,{prefixCls:x,indicator:I,percent:O}),c&&($||f)?e.createElement("div",{className:`${x}-text`},c):null);return C($?e.createElement("div",Object.assign({},m,{className:A(`${x}-nested-loading`,u,w,S)}),k&&e.createElement("div",{key:"loading"},L),e.createElement("div",{className:M,key:"container"},p)):f?e.createElement("div",{className:A(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:k},s,w,S)},L):L)};S$.setDefaultIndicator=e=>{w$=e},"production"!==process.env.NODE_ENV&&(S$.displayName="Spin");const k$=t.createContext({});k$.Consumer;var E$=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 O$=t.forwardRef(((e,n)=>{const{prefixCls:o,children:i,actions:a,extra:s,styles:l,className:c,classNames:u,colStyle:d}=e,f=E$(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:h,itemLayout:g}=r(k$),{getPrefixCls:m,list:v}=r(ii),b=e=>{var t,n;return A(null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null==u?void 0:u[e])},y=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null==l?void 0:l[e])},x=m("list",o),C=a&&a.length>0&&t.createElement("ul",{className:A(`${x}-item-action`,b("actions")),key:"actions",style:y("actions")},a.map(((e,n)=>t.createElement("li",{key:`${x}-item-action-${n}`},e,n!==a.length-1&&t.createElement("em",{className:`${x}-item-action-split`}))))),w=h?"div":"li",S=t.createElement(w,Object.assign({},f,h?{}:{ref:n},{className:A(`${x}-item`,{[`${x}-item-no-flex`]:!("vertical"===g?s:!(()=>{let e=!1;return p.forEach(i,(t=>{"string"==typeof t&&(e=!0)})),e&&p.count(i)>1})())},c)}),"vertical"===g&&s?[t.createElement("div",{className:`${x}-item-main`,key:"content"},i,C),t.createElement("div",{className:A(`${x}-item-extra`,b("extra")),key:"extra",style:y("extra")},s)]:[i,C,Hs(s,{key:"extra"})]);return h?t.createElement(TS,{ref:n,flex:1,style:d},S):S}));O$.Meta=e=>{var{prefixCls:n,className:o,avatar:i,title:a,description:s}=e,l=E$(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=r(ii),u=c("list",n),d=A(`${u}-item-meta`,o),p=t.createElement("div",{className:`${u}-item-meta-content`},a&&t.createElement("h4",{className:`${u}-item-meta-title`},a),s&&t.createElement("div",{className:`${u}-item-meta-description`},s));return t.createElement("div",Object.assign({},l,{className:d}),i&&t.createElement("div",{className:`${u}-item-meta-avatar`},i),(a||s)&&p)};const $$=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,itemPaddingSM:i,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${Yt(r)} ${Yt(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},N$=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${o}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Yt(a)}`}}}}}},M$=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:a,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:p,margin:f,colorText:h,colorTextDescription:g,motionDurationSlow:m,lineWidth:v,headerBg:b,footerBg:y,emptyTextPadding:x,metaMarginBottom:C,avatarMarginRight:w,titleMarginBottom:S,descriptionFontSize:k}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${Yt(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:k,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Yt(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Yt(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:S,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Yt(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var I$=Qi("List",(e=>{const t=Oi(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[M$(t),$$(t),N$(t)]}),(e=>({contentWidth:220,itemPadding:`${Yt(e.paddingContentVertical)} 0`,itemPaddingSM:`${Yt(e.paddingContentVerticalSM)} ${Yt(e.paddingContentHorizontal)}`,itemPaddingLG:`${Yt(e.paddingContentVerticalLG)} ${Yt(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}))),P$=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 L$(t){var{pagination:n=!1,prefixCls:o,bordered:r=!1,split:i=!0,className:a,rootClassName:s,style:l,children:c,itemLayout:u,loadMore:d,grid:p,dataSource:f=[],size:h,header:g,footer:m,loading:v=!1,rowKey:b,renderItem:y,locale:x}=t,C=P$(t,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const w=n&&"object"==typeof n?n:{},[S,k]=e.useState(w.defaultCurrent||1),[E,O]=e.useState(w.defaultPageSize||10),{getPrefixCls:$,renderEmpty:N,direction:M,list:I}=e.useContext(ii),P=e=>(t,o)=>{var r;k(t),O(o),n&&(null===(r=null==n?void 0:n[e])||void 0===r||r.call(n,t,o))},L=P("onChange"),j=P("onShowSizeChange"),D=$("list",o),[T,R,_]=I$(D);let z=v;"boolean"==typeof z&&(z={spinning:z});const B=!!(null==z?void 0:z.spinning);let H="";switch(jl(h)){case"large":H="lg";break;case"small":H="sm"}const F=A(D,{[`${D}-vertical`]:"vertical"===u,[`${D}-${H}`]:H,[`${D}-split`]:i,[`${D}-bordered`]:r,[`${D}-loading`]:B,[`${D}-grid`]:!!p,[`${D}-something-after-last-item`]:!!(d||n||m),[`${D}-rtl`]:"rtl"===M},null==I?void 0:I.className,a,s,R,_),W=jO({current:1,total:0},{total:f.length,current:S,pageSize:E},n||{}),V=Math.ceil(W.total/W.pageSize);W.current>V&&(W.current=V);const K=n&&e.createElement("div",{className:A(`${D}-pagination`)},e.createElement(u$,Object.assign({align:"end"},W,{onChange:L,onShowSizeChange:j})));let q=st(f);n&&f.length>(W.current-1)*W.pageSize&&(q=st(f).splice((W.current-1)*W.pageSize,W.pageSize));const X=gm(Object.keys(p||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),U=e.useMemo((()=>{for(let e=0;e<pm.length;e+=1){const t=pm[e];if(X[t])return t}}),[X]),G=e.useMemo((()=>{if(!p)return;const e=U&&p[U]?p[U]:p.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0}),[JSON.stringify(p),U]);let Y=B&&e.createElement("div",{style:{minHeight:53}});if(q.length>0){const t=q.map(((t,n)=>((t,n)=>{if(!y)return null;let o;return o="function"==typeof b?b(t):b?t[b]:t.key,o||(o=`list-item-${n}`),e.createElement(e.Fragment,{key:o},y(t,n))})(t,n)));Y=p?e.createElement(zS,{gutter:p.gutter},e.Children.map(t,(t=>e.createElement("div",{key:null==t?void 0:t.key,style:G},t)))):e.createElement("ul",{className:`${D}-items`},t)}else c||B||(Y=e.createElement("div",{className:`${D}-empty-text`},(null==x?void 0:x.emptyText)||(null==N?void 0:N("List"))||e.createElement(Ng,{componentName:"List"})));const Q=W.position||"bottom",Z=e.useMemo((()=>({grid:p,itemLayout:u})),[JSON.stringify(p),u]);return T(e.createElement(k$.Provider,{value:Z},e.createElement("div",Object.assign({style:Object.assign(Object.assign({},null==I?void 0:I.style),l),className:F},C),("top"===Q||"both"===Q)&&K,g&&e.createElement("div",{className:`${D}-header`},g),e.createElement(S$,Object.assign({},z),Y,c),m&&e.createElement("div",{className:`${D}-footer`},m),d||("bottom"===Q||"both"===Q)&&K)))}"production"!==process.env.NODE_ENV&&(L$.displayName="List"),L$.Item=O$;var j$=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};var A$=yf((t=>{const{prefixCls:n,className:o,closeIcon:r,closable:i,type:a,title:s,children:l,footer:c}=t,u=j$(t,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=e.useContext(ii),p=d(),f=n||d("modal"),h=Ks(p),[g,m,v]=qp(f,h),b=`${f}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:e.createElement(ef,Object.assign({},t,{prefixCls:f,confirmPrefixCls:b,rootPrefixCls:p,content:l}))}:{closable:null==i||i,title:s,footer:null!==c&&e.createElement(ap,Object.assign({},t)),children:l},g(e.createElement(cu,Object.assign({prefixCls:f,className:A(m,`${f}-pure-panel`,a&&b,a&&`${b}-${a}`,o,v,h)},u,{closeIcon:ip(f,r),closable:i},y)))}));function D$(e){return lf(cf(e))}const T$=Yp;T$.useModal=function(){const t=e.useRef(null),[n,o]=e.useState([]);e.useEffect((()=>{if(n.length){st(n).forEach((e=>{e()})),o([])}}),[n]);const r=e.useCallback((n=>function(r){var i;vf+=1;const a=e.createRef();let s;const l=new Promise((e=>{s=e}));let c,u=!1;const d=e.createElement(mf,{key:`modal-${vf}`,config:n(r),ref:a,afterClose:()=>{null==c||c()},isSilent:()=>u,onConfirm:e=>{s(e)}});c=null===(i=t.current)||void 0===i?void 0:i.patchElement(d),c&&of.push(c);const p={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():o((t=>[].concat(st(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():o((e=>[].concat(st(e),[t])))},then:e=>(u=!0,l.then(e))};return p}),[]);return[e.useMemo((()=>({info:r(uf),success:r(df),error:r(pf),warning:r(cf),confirm:r(ff)})),[]),e.createElement(bf,{key:"modal-holder",ref:t})]},T$.info=function(e){return lf(uf(e))},T$.success=function(e){return lf(df(e))},T$.error=function(e){return lf(pf(e))},T$.warning=D$,T$.warn=D$,T$.confirm=function(e){return lf(ff(e))},T$.destroyAll=function(){for(;of.length;){const e=of.pop();e&&e()}},T$.config=function(e){let{rootPrefixCls:t}=e;"production"!==process.env.NODE_ENV&&zo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),rf=t},T$._InternalPanelDoNotUseOrYouWillBeFired=A$,"production"!==process.env.NODE_ENV&&(T$.displayName="Modal");var R$={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"};process.env.NODE_ENV;var _$=0,z$="test"!==process.env.NODE_ENV&&yt();var B$=function(t){var n=vt(e.useState(),2),o=n[0],r=n[1];return e.useEffect((function(){var e;r("rc_progress_".concat((z$?(e=_$,_$+=1):e="TEST_OR_SSR",e)))}),[]),t||o},H$=function(t){var n=t.bg,o=t.children;return e.createElement("div",{style:{width:"100%",height:"100%",background:n}},o)};function F$(e,t){return Object.keys(e).map((function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)}))}var W$=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.color,i=t.gradientId,a=t.radius,s=t.style,l=t.ptg,c=t.strokeLinecap,u=t.strokeWidth,d=t.size,p=t.gapDegree,f=r&&"object"===T(r),h=f?"#FFF":void 0,g=d/2,m=e.createElement("circle",{className:"".concat(o,"-circle-path"),r:a,cx:g,cy:g,stroke:h,strokeLinecap:c,strokeWidth:u,opacity:0===l?0:1,style:s,ref:n});if(!f)return m;var v="".concat(i,"-conic"),b=p?"".concat(180+p/2,"deg"):"0deg",y=F$(r,(360-p)/360),x=F$(r,1),C="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(x.join(", "),")");return e.createElement(e.Fragment,null,e.createElement("mask",{id:v},m),e.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},e.createElement(H$,{bg:w},e.createElement(H$,{bg:C}))))}));"production"!==process.env.NODE_ENV&&(W$.displayName="PtgCircle");var V$=100,K$=function(e,t,n,o,r,i,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-o)/100*t;"round"===l&&100!==o&&(f+=c/2)>=t&&(f=t-.01);return{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(r+d+p,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},q$=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function X$(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var U$=function(t){var n,o,r,i,s,c=J(J({},R$),t),u=c.id,d=c.prefixCls,p=c.steps,f=c.strokeWidth,h=c.trailWidth,g=c.gapDegree,m=void 0===g?0:g,v=c.gapPosition,b=c.trailColor,y=c.strokeLinecap,x=c.style,C=c.className,w=c.strokeColor,S=c.percent,k=Pt(c,q$),E=B$(u),O="".concat(E,"-gradient"),$=50-f/2,N=2*Math.PI*$,M=m>0?90+m/2:-90,I=N*((360-m)/360),P="object"===T(p)?p:{count:p,gap:2},L=P.count,j=P.gap,R=X$(S),_=X$(w),z=_.find((function(e){return e&&"object"===T(e)})),B=z&&"object"===T(z)?"butt":y,H=K$(N,I,0,100,M,m,v,b,B,f),F=(n=a([]),o=a(null),l((function(){var e=Date.now(),t=!1;n.current.forEach((function(n){if(n){t=!0;var r=n.style;r.transitionDuration=".3s, .3s, .3s, .06s",o.current&&e-o.current<100&&(r.transitionDuration="0s, 0s")}})),t&&(o.current=Date.now())})),n.current);return e.createElement("svg",D({className:A("".concat(d,"-circle"),C),viewBox:"0 0 ".concat(V$," ").concat(V$),style:x,id:u,role:"presentation"},k),!L&&e.createElement("circle",{className:"".concat(d,"-circle-trail"),r:$,cx:50,cy:50,stroke:b,strokeLinecap:B,strokeWidth:h||f,style:H}),L?(r=Math.round(L*(R[0]/100)),i=100/L,s=0,new Array(L).fill(null).map((function(t,n){var o=n<=r-1?_[0]:b,a=o&&"object"===T(o)?"url(#".concat(O,")"):void 0,l=K$(N,I,s,i,M,m,v,o,"butt",f,j);return s+=100*(I-l.strokeDashoffset+j)/I,e.createElement("circle",{key:n,className:"".concat(d,"-circle-path"),r:$,cx:50,cy:50,stroke:a,strokeWidth:f,opacity:1,style:l,ref:function(e){F[n]=e}})}))):function(){var t=0;return R.map((function(n,o){var r=_[o]||_[_.length-1],i=K$(N,I,t,n,M,m,v,r,B,f);return t+=n,e.createElement(W$,{key:o,color:r,ptg:n,radius:$,prefixCls:d,gradientId:O,style:i,strokeLinecap:B,strokeWidth:f,gapDegree:m,ref:function(e){F[o]=e},size:V$})})).reverse()}())};function G$(e){return!e||e<0?0:e>100?100:e}function Y$(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}"production"!==process.env.NODE_ENV&&(U$.displayName="Circle");const Q$=(e,t,n)=>{var o,r,i,a;let s=-1,l=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=o?o:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,l=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[s,l]},Z$=t=>{const{prefixCls:n,trailColor:o=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:s=120,type:l,children:c,success:u,size:d=s,steps:p}=t,[f,h]=Q$(d,"circle");let{strokeWidth:g}=t;void 0===g&&(g=Math.max((e=>3/e*100)(f),6));const m={width:f,height:h,fontSize:.15*f+6},v=e.useMemo((()=>a||0===a?a:"dashboard"===l?75:void 0),[a,l]),b=(e=>{let{percent:t,success:n,successPercent:o}=e;const r=G$(Y$({success:n,successPercent:o}));return[r,G$(G$(t)-r)]})(t),y=i||"dashboard"===l&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(t.strokeColor),C=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||dr.green,n||null]})({success:u,strokeColor:t.strokeColor}),w=A(`${n}-inner`,{[`${n}-circle-gradient`]:x}),S=e.createElement(U$,{steps:p,percent:p?b[1]:b,strokeWidth:g,trailWidth:g,strokeColor:p?C[1]:C,strokeLinecap:r,trailColor:o,prefixCls:n,gapDegree:v,gapPosition:y}),k=f<=20,E=e.createElement("div",{className:w,style:m},S,!k&&c);return k?e.createElement(Ym,{title:c},E):E},J$="--progress-line-stroke-color",eN="--progress-percent",tN=e=>{const t=e?"100%":"-100%";return new ko(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},nN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${J$})`]},height:"100%",width:`calc(1 / var(${eN}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Yt(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:tN(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:tN(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},oN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},rN=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},iN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var aN=Qi("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Oi(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[nN(n),oN(n),rN(n),iN(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),sN=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 lN=(e,t)=>{const{from:n=dr.blue,to:o=dr.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=sN(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`;return{background:e,[J$]:e}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[J$]:a}},cN=t=>{const{prefixCls:n,direction:o,percent:r,size:i,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:p}=t,{align:f,type:h}=d,g=s&&"string"!=typeof s?lN(s,o):{[J$]:s,background:s},m="square"===l||"butt"===l?0:void 0,v=null!=i?i:[-1,a||("small"===i?6:8)],[b,y]=Q$(v,"line",{strokeWidth:a});if("production"!==process.env.NODE_ENV){_o("Progress").deprecated(!("strokeWidth"in t),"strokeWidth","size")}const x={backgroundColor:u||void 0,borderRadius:m},C=Object.assign(Object.assign({width:`${G$(r)}%`,height:y,borderRadius:m},g),{[eN]:G$(r)/100}),w=Y$(t),S={width:`${G$(w)}%`,height:y,borderRadius:m,backgroundColor:null==p?void 0:p.strokeColor},k={width:b<0?"100%":b},E=e.createElement("div",{className:`${n}-inner`,style:x},e.createElement("div",{className:A(`${n}-bg`,`${n}-bg-${h}`),style:C},"inner"===h&&c),void 0!==w&&e.createElement("div",{className:`${n}-success-bg`,style:S})),O="outer"===h&&"start"===f,$="outer"===h&&"end"===f;return"outer"===h&&"center"===f?e.createElement("div",{className:`${n}-layout-bottom`},E,c):e.createElement("div",{className:`${n}-outer`,style:k},O&&c,E,$&&c)},uN=t=>{const{size:n,steps:o,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=t,u=Math.round(o*(r/100)),d=null!=n?n:["small"===n?2:14,i],[p,f]=Q$(d,"step",{steps:o,strokeWidth:i}),h=p/o,g=new Array(o);for(let t=0;t<o;t++){const n=Array.isArray(a)?a[t]:a;g[t]=e.createElement("div",{key:t,className:A(`${l}-steps-item`,{[`${l}-steps-item-active`]:t<=u-1}),style:{backgroundColor:t<=u-1?n:s,width:h,height:f}})}return e.createElement("div",{className:`${l}-steps-outer`},g,c)};var dN=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 pN=["normal","exception","active","success"],fN=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,rootClassName:i,steps:a,strokeColor:s,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:p,format:f,style:h,percentPosition:g={}}=t,m=dN(t,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=g,y=Array.isArray(s)?s[0]:s,x="string"==typeof s||Array.isArray(s)?s:void 0,C=e.useMemo((()=>{if(y){const e="string"==typeof y?y:Object.values(y)[0];return new qr(e).isLight()}return!1}),[s]),w=e.useMemo((()=>{var e,n;const o=Y$(t);return parseInt(void 0!==o?null===(e=null!=o?o:0)||void 0===e?void 0:e.toString():null===(n=null!=l?l:0)||void 0===n?void 0:n.toString(),10)}),[l,t.success,t.successPercent]),S=e.useMemo((()=>!pN.includes(p)&&w>=100?"success":p||"normal"),[p,w]),{getPrefixCls:k,direction:E,progress:O}=e.useContext(ii),$=k("progress",o),[N,M,I]=aN($),P="line"===d,L=P&&!a,j=e.useMemo((()=>{if(!u)return null;const n=Y$(t);let o;const r=f||(e=>`${e}%`),i=P&&C&&"inner"===b;return"inner"===b||f||"exception"!==S&&"success"!==S?o=r(G$(l),G$(n)):"exception"===S?o=P?e.createElement(Os,null):e.createElement(Ms,null):"success"===S&&(o=P?e.createElement(Ss,null):e.createElement(em,null)),e.createElement("span",{className:A(`${$}-text`,{[`${$}-text-bright`]:i,[`${$}-text-${v}`]:L,[`${$}-text-${b}`]:L}),title:"string"==typeof o?o:void 0},o)}),[u,l,w,S,d,$,f]);if("production"!==process.env.NODE_ENV){const e=_o("Progress");e.deprecated(!("successPercent"in t),"successPercent","success.percent"),e.deprecated(!("width"in t),"width","size"),"circle"!==d&&"dashboard"!==d||(Array.isArray(c)?"production"!==process.env.NODE_ENV&&e(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):"object"==typeof c&&"production"!==process.env.NODE_ENV&&e(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),t.success&&"progress"in t.success&&e.deprecated(!1,"success.progress","success.percent")}let D;"line"===d?D=a?e.createElement(uN,Object.assign({},t,{strokeColor:x,prefixCls:$,steps:"object"==typeof a?a.count:a}),j):e.createElement(cN,Object.assign({},t,{strokeColor:y,prefixCls:$,direction:E,percentPosition:{align:v,type:b}}),j):"circle"!==d&&"dashboard"!==d||(D=e.createElement(Z$,Object.assign({},t,{strokeColor:y,prefixCls:$,progressStatus:S}),j));const T=A($,`${$}-status-${S}`,{[`${$}-${"dashboard"===d?"circle":d}`]:"line"!==d,[`${$}-inline-circle`]:"circle"===d&&Q$(c,"circle")[0]<=20,[`${$}-line`]:L,[`${$}-line-align-${v}`]:L,[`${$}-line-position-${b}`]:L,[`${$}-steps`]:a,[`${$}-show-info`]:u,[`${$}-${c}`]:"string"==typeof c,[`${$}-rtl`]:"rtl"===E},null==O?void 0:O.className,r,i,M,I);return N(e.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},null==O?void 0:O.style),h),className:T,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},ot(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))}));"production"!==process.env.NODE_ENV&&(fN.displayName="Progress");var hN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},gN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:hN}))},mN=e.forwardRef(gN);"production"!==process.env.NODE_ENV&&(mN.displayName="CaretDownFilled");var vN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},bN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:vN}))},yN=e.forwardRef(bN);"production"!==process.env.NODE_ENV&&(yN.displayName="CaretDownOutlined");var xN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},CN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:xN}))},wN=e.forwardRef(CN);"production"!==process.env.NODE_ENV&&(wN.displayName="CaretUpOutlined");var SN={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"},kN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:SN}))},EN=e.forwardRef(kN);"production"!==process.env.NODE_ENV&&(EN.displayName="CopyOutlined");var ON={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"},$N=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:ON}))},NN=e.forwardRef($N);"production"!==process.env.NODE_ENV&&(NN.displayName="EditOutlined");var MN={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"},IN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:MN}))},PN=e.forwardRef(IN);"production"!==process.env.NODE_ENV&&(PN.displayName="EnterOutlined");var LN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},jN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:LN}))},AN=e.forwardRef(jN);"production"!==process.env.NODE_ENV&&(AN.displayName="FileOutlined");var DN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},TN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:DN}))},RN=e.forwardRef(TN);"production"!==process.env.NODE_ENV&&(RN.displayName="FilterFilled");var _N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},zN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:_N}))},BN=e.forwardRef(zN);"production"!==process.env.NODE_ENV&&(BN.displayName="FolderOpenOutlined");var HN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},FN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:HN}))},WN=e.forwardRef(FN);"production"!==process.env.NODE_ENV&&(WN.displayName="FolderOutlined");var VN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},KN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:VN}))},qN=e.forwardRef(KN);"production"!==process.env.NODE_ENV&&(qN.displayName="HolderOutlined");var XN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},UN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:XN}))},GN=e.forwardRef(UN);"production"!==process.env.NODE_ENV&&(GN.displayName="MinusSquareOutlined");var YN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},QN=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:YN}))},ZN=e.forwardRef(QN);"production"!==process.env.NODE_ENV&&(ZN.displayName="PlusSquareOutlined");var JN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},eM=function(t,n){return e.createElement(Cs,D({},t,{ref:n,icon:JN}))},tM=e.forwardRef(eM);"production"!==process.env.NODE_ENV&&(tM.displayName="UserOutlined");var nM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],oM=e.forwardRef((function(t,n){var o,r=t.prefixCls,i=void 0===r?"rc-switch":r,a=t.className,s=t.checked,l=t.defaultChecked,c=t.disabled,u=t.loadingIcon,d=t.checkedChildren,p=t.unCheckedChildren,f=t.onClick,h=t.onChange,g=t.onKeyDown,m=Pt(t,nM),v=vt(wi(!1,{value:s,defaultValue:l}),2),b=v[0],y=v[1];function x(e,t){var n=b;return c||(y(n=e),null==h||h(n,t)),n}var C=A(i,a,(Q(o={},"".concat(i,"-checked"),b),Q(o,"".concat(i,"-disabled"),c),o));return e.createElement("button",D({},m,{type:"button",role:"switch","aria-checked":b,disabled:c,className:C,ref:n,onKeyDown:function(e){e.which===qs.LEFT?x(!1,e):e.which===qs.RIGHT&&x(!0,e),null==g||g(e)},onClick:function(e){var t=x(!b,e);null==f||f(t,e)}}),u,e.createElement("span",{className:"".concat(i,"-inner")},e.createElement("span",{className:"".concat(i,"-inner-checked")},d),e.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))}));oM.displayName="Switch";const rM=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Yt(l(s).add(l(o).mul(2)).equal()),d=Yt(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:Yt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Yt(l(s).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},iM=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},aM=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Yt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},sM=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=Yt(s(a).add(s(o).mul(2)).equal()),u=Yt(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(o).mul(2).equal(),marginInlineEnd:s(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(o).mul(-1).mul(2).equal(),marginInlineEnd:s(o).mul(2).equal()}}}}}},lM=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:Yt(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Gi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var cM=Qi("Switch",(e=>{const t=Oi(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[lM(t),sM(t),aM(t),iM(t),rM(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new qr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),uM=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 dM=e.forwardRef(((t,n)=>{const{prefixCls:o,size:r,disabled:i,loading:a,className:s,rootClassName:l,style:c,checked:u,value:d,defaultChecked:p,defaultValue:f,onChange:h}=t,g=uM(t,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,v]=wi(!1,{value:null!=u?u:d,defaultValue:null!=p?p:f}),{getPrefixCls:b,direction:y,switch:x}=e.useContext(ii),C=e.useContext(li),w=(null!=i?i:C)||a,S=b("switch",o),k=e.createElement("div",{className:`${S}-handle`},a&&e.createElement(Gs,{className:`${S}-loading-icon`})),[E,O,$]=cM(S),N=jl(r),M=A(null==x?void 0:x.className,{[`${S}-small`]:"small"===N,[`${S}-loading`]:a,[`${S}-rtl`]:"rtl"===y},s,l,O,$),I=Object.assign(Object.assign({},null==x?void 0:x.style),c);return E(e.createElement(Ll,{component:"Switch"},e.createElement(oM,Object.assign({},g,{checked:m,onChange:function(){v(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:S,className:M,style:I,disabled:w,ref:n,loadingIcon:k}))))})),pM=dM;pM.__ANT_SWITCH=!0,"production"!==process.env.NODE_ENV&&(pM.displayName="Switch");var fM={},hM="rc-table-internal-hook";function gM(t){var n=e.createContext(void 0);return{Context:n,Provider:function(t){var o=t.value,r=t.children,i=e.useRef(o);i.current=o;var a=vt(e.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),1)[0];return nn((function(){w((function(){a.listeners.forEach((function(e){e(o)}))}))}),[o]),e.createElement(n.Provider,{value:a},r)},defaultValue:t}}function mM(t,n){var o=yi("function"==typeof n?n:function(e){if(void 0===n)return e;if(!Array.isArray(n))return e[n];var t={};return n.forEach((function(n){t[n]=e[n]})),t}),r=e.useContext(null==t?void 0:t.Context),i=r||{},a=i.listeners,s=i.getValue,l=e.useRef();l.current=o(r?s():null==t?void 0:t.defaultValue);var c=vt(e.useState({}),2)[1];return nn((function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=o(e);Lt(l.current,t,!0)||c({})}}),[r]),l.current}var vM=function(){var t=e.createContext(null);function n(){return e.useContext(t)}return{makeImmutable:function(o,r){var i=fe(o),a=function(a,s){var l=i?{ref:s}:{},c=e.useRef(0),u=e.useRef(a);return null!==n()?e.createElement(o,D({},a,l)):(r&&!r(u.current,a)||(c.current+=1),u.current=a,e.createElement(t.Provider,{value:c.current},e.createElement(o,D({},a,l))))};return"production"!==process.env.NODE_ENV&&(a.displayName="ImmutableRoot(".concat(o.displayName||o.name,")")),i?e.forwardRef(a):a},responseImmutable:function(t,o){var r=fe(t),i=function(o,i){var a=r?{ref:i}:{};return n(),e.createElement(t,D({},o,a))};return"production"!==process.env.NODE_ENV&&(i.displayName="ImmutableResponse(".concat(t.displayName||t.name,")")),r?e.memo(e.forwardRef(i),o):e.memo(i,o)},useImmutableMark:n}}(),bM=vM.makeImmutable,yM=vM.responseImmutable,xM=vM.useImmutableMark,CM=gM();function wM(t,n){var o=e.useRef(0);o.current+=1;var r=e.useRef(t),i=[];Object.keys(t||{}).map((function(e){var n;(null==t?void 0:t[e])!==(null===(n=r.current)||void 0===n?void 0:n[e])&&i.push(e)})),r.current=t;var a=e.useRef([]);return i.length&&(a.current=i),e.useDebugValue(o.current),e.useDebugValue(a.current.join(", ")),n&&console.log("".concat(n,":"),o.current,a.current),o.current}var SM="production"!==process.env.NODE_ENV?wM:function(){},kM=e.memo((function(){var t=wM();return e.createElement("h1",null,"Render Times: ",t)}));"production"!==process.env.NODE_ENV&&(kM.displayName="RenderBlock");var EM=e.createContext({renderWithProps:!1});function OM(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,s=i||(o=a,null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)})),t}function $M(e){return null!=e}function NM(t,n,o,r,i,a){var s=e.useContext(EM),l=le((function(){if($M(r))return[r];var a,l=null==n||""===n?[]:Array.isArray(n)?n:[n],c=No(t,l),u=c,d=void 0;if(i){var p=i(c,t,o);!(a=p)||"object"!==T(a)||Array.isArray(a)||e.isValidElement(a)?u=p:("production"!==process.env.NODE_ENV&&U(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),u=p.children,d=p.props,s.renderWithProps=!0)}return[u,d]}),[xM(),t,r,n,i,o],(function(e,t){if(a){var n=vt(e,2)[1],o=vt(t,2)[1];return a(o,n)}return!!s.renderWithProps||!Lt(e,t,!0)}));return l}function MM(t){var n,o,r,i,a,s,l,c;"production"!==process.env.NODE_ENV&&SM(t);var u=t.component,d=t.children,p=t.ellipsis,f=t.scope,h=t.prefixCls,g=t.className,m=t.align,v=t.record,b=t.render,y=t.dataIndex,x=t.renderIndex,C=t.shouldCellUpdate,w=t.index,S=t.rowType,k=t.colSpan,E=t.rowSpan,O=t.fixLeft,$=t.fixRight,N=t.firstFixLeft,M=t.lastFixLeft,I=t.firstFixRight,P=t.lastFixRight,L=t.appendNode,j=t.additionalProps,R=void 0===j?{}:j,_=t.isSticky,z="".concat(h,"-cell"),B=mM(CM,["supportSticky","allColumnsFixedLeft","rowHoverable"]),H=B.supportSticky,F=B.allColumnsFixedLeft,W=B.rowHoverable,V=vt(NM(v,y,x,d,b,C),2),K=V[0],q=V[1],X={},U="number"==typeof O&&H,G="number"==typeof $&&H;U&&(X.position="sticky",X.left=O),G&&(X.position="sticky",X.right=$);var Y=null!==(n=null!==(o=null!==(r=null==q?void 0:q.colSpan)&&void 0!==r?r:R.colSpan)&&void 0!==o?o:k)&&void 0!==n?n:1,Z=null!==(i=null!==(a=null!==(s=null==q?void 0:q.rowSpan)&&void 0!==s?s:R.rowSpan)&&void 0!==a?a:E)&&void 0!==i?i:1,ee=function(e,t){return mM(CM,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(w,Z),te=vt(ee,2),ne=te[0],oe=te[1],re=yi((function(e){var t;v&&oe(w,w+Z-1),null==R||null===(t=R.onMouseEnter)||void 0===t||t.call(R,e)})),ie=yi((function(e){var t;v&&oe(-1,-1),null==R||null===(t=R.onMouseLeave)||void 0===t||t.call(R,e)}));if(0===Y||0===Z)return null;var ae=null!==(l=R.title)&&void 0!==l?l:function(t){var n,o=t.ellipsis,r=t.rowType,i=t.children,a=!0===o?{showTitle:!0}:o;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?n=i.toString():e.isValidElement(i)&&"string"==typeof i.props.children&&(n=i.props.children)),n}({rowType:S,ellipsis:p,children:K}),se=A(z,g,(Q(c={},"".concat(z,"-fix-left"),U&&H),Q(c,"".concat(z,"-fix-left-first"),N&&H),Q(c,"".concat(z,"-fix-left-last"),M&&H),Q(c,"".concat(z,"-fix-left-all"),M&&F&&H),Q(c,"".concat(z,"-fix-right"),G&&H),Q(c,"".concat(z,"-fix-right-first"),I&&H),Q(c,"".concat(z,"-fix-right-last"),P&&H),Q(c,"".concat(z,"-ellipsis"),p),Q(c,"".concat(z,"-with-append"),L),Q(c,"".concat(z,"-fix-sticky"),(U||G)&&_&&H),Q(c,"".concat(z,"-row-hover"),!q&&ne),c),R.className,null==q?void 0:q.className),le={};m&&(le.textAlign=m);var ce=J(J(J(J({},X),R.style),le),null==q?void 0:q.style),ue=K;return"object"!==T(ue)||Array.isArray(ue)||e.isValidElement(ue)||(ue=null),p&&(M||I)&&(ue=e.createElement("span",{className:"".concat(z,"-content")},ue)),e.createElement(u,D({},q,R,{className:se,style:ce,title:ae,scope:f,onMouseEnter:W?re:void 0,onMouseLeave:W?ie:void 0,colSpan:1!==Y?Y:null,rowSpan:1!==Z?Z:null}),L,ue)}var IM=e.memo(MM);function PM(e,t,n,o,r){var i,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?i=o.left["rtl"===r?t:e]:"right"===l.fixed&&(a=o.right["rtl"===r?e:t]);var c=!1,u=!1,d=!1,p=!1,f=n[t+1],h=n[e-1],g=f&&!f.fixed||h&&!h.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==i)p=!(h&&"left"===h.fixed)&&g;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&g}}else if(void 0!==i){c=!(f&&"left"===f.fixed)&&g}else if(void 0!==a){u=!(h&&"right"===h.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}var LM=e.createContext({});var jM=["children"];function AM(e){return e.children}AM.Row=function(t){var n=t.children,o=Pt(t,jM);return e.createElement("tr",o,n)},AM.Cell=function(t){var n=t.className,o=t.index,r=t.children,i=t.colSpan,a=void 0===i?1:i,s=t.rowSpan,l=t.align,c=mM(CM,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,p=e.useContext(LM),f=p.scrollColumnIndex,h=p.stickyOffsets,g=o+a-1+1===f?a+1:a,m=PM(o,o+g-1,p.flattenColumns,h,d);return e.createElement(IM,D({className:n,index:o,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:g,rowSpan:s,render:function(){return r}},m))};var DM=yM((function(t){"production"!==process.env.NODE_ENV&&SM(t);var n=t.children,o=t.stickyOffsets,r=t.flattenColumns,i=mM(CM,"prefixCls"),a=r.length-1,s=r[a],l=e.useMemo((function(){return{stickyOffsets:o,flattenColumns:r,scrollColumnIndex:null!=s&&s.scrollbar?a:null}}),[s,r,a,o]);return e.createElement(LM.Provider,{value:l},e.createElement("tfoot",{className:"".concat(i,"-summary")},n))})),TM=AM;function RM(e,t,n,o,r,i,a){e.push({record:t,indent:n,index:a});var s=i(t),l=null==r?void 0:r.has(s);if(t&&Array.isArray(t[o])&&l)for(var c=0;c<t[o].length;c+=1)RM(e,t[o][c],n+1,o,r,i,c)}function _M(t,n,o,r){var i=e.useMemo((function(){if(null!=o&&o.size){for(var e=[],i=0;i<(null==t?void 0:t.length);i+=1){RM(e,t[i],0,n,o,r,i)}return e}return null==t?void 0:t.map((function(e,t){return{record:e,indent:0,index:t}}))}),[t,n,o,r]);return i}function zM(e,t,n,o){var r,i=mM(CM,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,s=i.expandableType,l=i.expandedKeys,c=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,p=i.onRow,f=i.expandRowByClick,h=i.rowClassName,g="nest"===s,m="row"===s&&(!d||d(e)),v=m||g,b=l&&l.has(t),y=c&&e&&e[c],x=yi(u),C=null==p?void 0:p(e,n),w=null==C?void 0:C.onClick;"string"==typeof h?r=h:"function"==typeof h&&(r=h(e,n,o));var S=OM(a);return J(J({},i),{},{columnsKey:S,nestExpandable:g,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:x,rowSupportExpand:m,expandable:v,rowProps:J(J({},C),{},{className:A(r,null==C?void 0:C.className),onClick:function(t){f&&v&&u(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null==w||w.apply(void 0,[t].concat(o))}})})}function BM(t){"production"!==process.env.NODE_ENV&&SM(t);var n=t.prefixCls,o=t.children,r=t.component,i=t.cellComponent,a=t.className,s=t.expanded,l=t.colSpan,c=t.isEmpty,u=mM(CM,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,p=u.fixHeader,f=u.fixColumn,h=u.componentWidth,g=u.horizonScroll,m=o;return(c?g&&h:f)&&(m=e.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(n,"-expanded-row-fixed")},m)),e.createElement(r,{className:a,style:{display:s?null:"none"}},e.createElement(IM,{component:i,prefixCls:n,colSpan:l},m))}function HM(t,n,o,r,i){var a,s,l=t.record,c=t.prefixCls,u=t.columnsKey,d=t.fixedInfoList,p=t.expandIconColumnIndex,f=t.nestExpandable,h=t.indentSize,g=t.expandIcon,m=t.expanded,v=t.hasNestChildren,b=t.onTriggerExpand,y=u[o],x=d[o];return o===(p||0)&&f&&(a=e.createElement(e.Fragment,null,e.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),g({prefixCls:c,expanded:m,expandable:v,record:l,onExpand:b}))),n.onCell&&(s=n.onCell(l,i)),{key:y,fixedInfo:x,appendCellNode:a,additionalCellProps:s||{}}}function FM(t){"production"!==process.env.NODE_ENV&&SM(t);var n=t.className,o=t.style,r=t.record,i=t.index,a=t.renderIndex,s=t.rowKey,l=t.indent,c=void 0===l?0:l,u=t.rowComponent,d=t.cellComponent,p=t.scopeCellComponent,f=zM(r,s,i,c),h=f.prefixCls,g=f.flattenColumns,m=f.expandedRowClassName,v=f.expandedRowRender,b=f.rowProps,y=f.expanded,x=f.rowSupportExpand,C=e.useRef(!1);C.current||(C.current=y),"production"!==process.env.NODE_ENV&&SM(t);var w,S=m&&m(r,i,c),k=e.createElement(u,D({},b,{"data-row-key":s,className:A(n,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(c),null==b?void 0:b.className,c>=1?S:""),style:J(J({},o),null==b?void 0:b.style)}),g.map((function(t,n){var o=t.render,s=t.dataIndex,l=t.className,u=HM(f,t,n,c,i),g=u.key,m=u.fixedInfo,v=u.appendCellNode,b=u.additionalCellProps;return e.createElement(IM,D({className:l,ellipsis:t.ellipsis,align:t.align,scope:t.rowScope,component:t.rowScope?p:d,prefixCls:h,key:g,record:r,index:i,renderIndex:a,dataIndex:s,render:o,shouldCellUpdate:t.shouldCellUpdate},m,{appendNode:v,additionalProps:b}))})));if(x&&(C.current||y)){var E=v(r,i,c+1,y);w=e.createElement(BM,{expanded:y,className:A("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(c+1),S),prefixCls:h,component:u,cellComponent:d,colSpan:g.length,isEmpty:!1},E)}return e.createElement(e.Fragment,null,k,w)}"production"!==process.env.NODE_ENV&&(FM.displayName="BodyRow");var WM=yM(FM);function VM(t){var n=t.columnKey,o=t.onColumnResize,r=e.useRef();return e.useEffect((function(){r.current&&o(n,r.current.offsetWidth)}),[]),e.createElement(nt,{data:n},e.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},e.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function KM(t){var n=t.prefixCls,o=t.columnsKey,r=t.onColumnResize;return e.createElement("tr",{"aria-hidden":"true",className:"".concat(n,"-measure-row"),style:{height:0,fontSize:0}},e.createElement(nt.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},o.map((function(t){return e.createElement(VM,{key:t,columnKey:t,onColumnResize:r})}))))}function qM(t){"production"!==process.env.NODE_ENV&&SM(t);var n,o=t.data,r=t.measureColumnWidth,i=mM(CM,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,s=i.getComponent,l=i.onColumnResize,c=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,p=i.childrenColumnName,f=i.emptyNode,h=_M(o,p,d,u),g=e.useRef({renderWithProps:!1}),m=s(["body","wrapper"],"tbody"),v=s(["body","row"],"tr"),b=s(["body","cell"],"td"),y=s(["body","cell"],"th");n=o.length?h.map((function(t,n){var o=t.record,r=t.indent,i=t.index,a=u(o,n);return e.createElement(WM,{key:a,rowKey:a,record:o,index:n,renderIndex:i,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:r})})):e.createElement(BM,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:v,cellComponent:b,colSpan:c.length,isEmpty:!0},f);var x=OM(c);return e.createElement(EM.Provider,{value:g.current},e.createElement(m,{className:"".concat(a,"-tbody")},r&&e.createElement(KM,{prefixCls:a,columnsKey:x,onColumnResize:l}),n))}"production"!==process.env.NODE_ENV&&(qM.displayName="Body");var XM=yM(qM),UM=["expandable"],GM="RC_TABLE_INTERNAL_COL_DEFINE";var YM=["columnType"];function QM(t){for(var n=t.colWidths,o=t.columns,r=[],i=!1,a=(t.columCount||o.length)-1;a>=0;a-=1){var s=n[a],l=o&&o[a],c=l&&l[GM];if(s||c||i){var u=c||{};u.columnType;var d=Pt(u,YM);r.unshift(e.createElement("col",D({key:a,style:{width:s}},d))),i=!0}}return e.createElement("colgroup",null,r)}var ZM=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var JM=e.forwardRef((function(t,n){"production"!==process.env.NODE_ENV&&SM(t);var o=t.className,r=t.noData,i=t.columns,a=t.flattenColumns,s=t.colWidths,l=t.columCount,c=t.stickyOffsets,d=t.direction,p=t.fixHeader,f=t.stickyTopOffset,h=t.stickyBottomOffset,g=t.stickyClassName,m=t.onScroll,v=t.maxContentScroll,b=t.children,y=Pt(t,ZM),x=mM(CM,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=x.prefixCls,w=x.scrollbarSize,S=x.isSticky,k=(0,x.getComponent)(["header","table"],"table"),E=S&&!p?0:w,O=e.useRef(null),$=e.useCallback((function(e){ue(n,e),ue(O,e)}),[]);e.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(m({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=e.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),M=a[a.length-1],I={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},P=u((function(){return E?[].concat(st(i),[I]):i}),[E,i]),L=u((function(){return E?[].concat(st(a),[I]):a}),[E,a]),j=u((function(){var e=c.right,t=c.left;return J(J({},c),{},{left:"rtl"===d?[].concat(st(t.map((function(e){return e+E}))),[0]):t,right:"rtl"===d?e:[].concat(st(e.map((function(e){return e+E}))),[0]),isSticky:S})}),[E,c,S]),D=function(e,t){return u((function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n}),[e.join("_"),t])}(s,l);return e.createElement("div",{style:J({overflow:"hidden"},S?{top:f,bottom:h}:{}),ref:$,className:A(o,Q({},g,!!g))},e.createElement(k,{style:{tableLayout:"fixed",visibility:r||D?null:"hidden"}},(!r||!v||N)&&e.createElement(QM,{colWidths:D?[].concat(st(D),[E]):[],columCount:l+1,columns:L}),b(J(J({},y),{},{stickyOffsets:j,columns:P,flattenColumns:L}))))}));"production"!==process.env.NODE_ENV&&(JM.displayName="FixedHolder");var eI=e.memo(JM),tI=function(t){var n,o=t.cells,r=t.stickyOffsets,i=t.flattenColumns,a=t.rowComponent,s=t.cellComponent,l=t.onHeaderRow,c=t.index,u=mM(CM,["prefixCls","direction"]),d=u.prefixCls,p=u.direction;l&&(n=l(o.map((function(e){return e.column})),c));var f=OM(o.map((function(e){return e.column})));return e.createElement(a,n,o.map((function(t,n){var o,a=t.column,l=PM(t.colStart,t.colEnd,i,r,p);return a&&a.onHeaderCell&&(o=t.column.onHeaderCell(a)),e.createElement(IM,D({},t,{scope:a.title?t.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:s,prefixCls:d,key:f[n]},l,{additionalProps:o,rowType:"header"}))})))};"production"!==process.env.NODE_ENV&&(tI.displayName="HeaderRow");var nI=yM((function(t){"production"!==process.env.NODE_ENV&&SM(t);var n=t.stickyOffsets,o=t.columns,r=t.flattenColumns,i=t.onHeaderRow,a=mM(CM,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=e.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o,a=n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,s=n.children;return s&&s.length>0&&(a=e(s,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}));return a}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)o(r);return t}(o)}),[o]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),p=l(["header","cell"],"th");return e.createElement(u,{className:"".concat(s,"-thead")},c.map((function(t,o){return e.createElement(tI,{key:o,flattenColumns:r,cells:t,stickyOffsets:n,rowComponent:d,cellComponent:p,onHeaderRow:i,index:o})})))}));function oI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var rI=["children"],iI=["fixed"];function aI(t){return H(t).filter((function(t){return e.isValidElement(t)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=J({key:t},Pt(n,rI));return o&&(r.children=aI(o)),r}))}function sI(e){return e.filter((function(e){return e&&"object"===T(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?J(J({},e),{},{children:sI(t)}):e}))}function lI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===T(e)})).reduce((function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),s=n.children;return s&&s.length>0?[].concat(st(e),st(lI(s,a).map((function(e){return J({fixed:i},e)})))):[].concat(st(e),[J(J({key:a},n),{},{fixed:i})])}),[])}function cI(t,n){var o=t.prefixCls,r=t.columns,i=t.children,a=t.expandable,s=t.expandedKeys,l=t.columnTitle,c=t.getRowKey,u=t.onTriggerExpand,d=t.expandIcon,p=t.rowExpandable,f=t.expandIconColumnIndex,h=t.direction,g=t.expandRowByClick,m=t.columnWidth,v=t.fixed,b=t.scrollWidth,y=t.clientWidth,x=e.useMemo((function(){return sI((r||aI(i)||[]).slice())}),[r,i]),C=e.useMemo((function(){if(a){var t,n=x.slice();if("production"!==process.env.NODE_ENV&&f>=0&&U(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!n.includes(fM)){var r=f||0;r>=0&&n.splice(r,0,fM)}"production"!==process.env.NODE_ENV&&n.filter((function(e){return e===fM})).length>1&&U(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var i=n.indexOf(fM);n=n.filter((function(e,t){return e!==fM||t===i}));var h,b=x[i];h="left"!==v&&!v||f?"right"!==v&&!v||f!==x.length?b?b.fixed:null:"right":"left";var y=(Q(t={},GM,{className:"".concat(o,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Q(t,"title",l),Q(t,"fixed",h),Q(t,"className","".concat(o,"-row-expand-icon-cell")),Q(t,"width",m),Q(t,"render",(function(t,n,r){var i=c(n,r),a=s.has(i),l=!p||p(n),f=d({prefixCls:o,expanded:a,expandable:l,record:n,onExpand:u});return g?e.createElement("span",{onClick:function(e){return e.stopPropagation()}},f):f})),t);return n.map((function(e){return e===fM?y:e}))}return"production"!==process.env.NODE_ENV&&x.includes(fM)&&U(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),x.filter((function(e){return e!==fM}))}),[a,x,c,s,d,h]),w=e.useMemo((function(){var e=C;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,C,h]),S=e.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),J({fixed:n},Pt(e,iI))}))}(lI(w)):lI(w)}),[w,h,b]),k=e.useMemo((function(){for(var e=-1,t=S.length-1;t>=0;t-=1){var n=S[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=S[o].fixed;if("left"!==r&&!0!==r)return!0}var i=S.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<S.length;a+=1){if("right"!==S[a].fixed)return!0}return!1}),[S]),E=function(t,n,o){return e.useMemo((function(){if(n&&n>0){var e=0,r=0;t.forEach((function(t){var o=oI(n,t.width);o?e+=o:r+=1}));var i=Math.max(n,o),a=Math.max(i-e,r),s=r,l=a/r,c=0,u=t.map((function(e){var t=J({},e),o=oI(n,t.width);if(o)t.width=o;else{var r=Math.floor(l);t.width=1===s?a:r,a-=r,s-=1}return c+=t.width,t}));if(c<i){var d=i/c;a=i,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n}))}return[u,Math.max(c,i)]}return[t,n]}),[t,n,o])}(S,b,y),O=vt(E,2),$=O[0],N=O[1];return[w,$,N,k]}function uI(t){var n,o=t.prefixCls,r=t.record,i=t.onExpand,a=t.expanded,s=t.expandable,l="".concat(o,"-row-expand-icon");if(!s)return e.createElement("span",{className:A(l,"".concat(o,"-row-spaced"))});return e.createElement("span",{className:A(l,(n={},Q(n,"".concat(o,"-row-expanded"),a),Q(n,"".concat(o,"-row-collapsed"),!a),n)),onClick:function(e){i(r,e),e.stopPropagation()}})}function dI(t,n,o){var r=function(e){var t,n=e.expandable,o=Pt(e,UM);return"expandable"in e?t=J(J({},o),n):("production"!==process.env.NODE_ENV&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some((function(t){return t in e}))&&U(!1,"expanded related props have been moved into `expandable`."),t=o),!1===t.showExpandColumn&&(t.expandIconColumnIndex=-1),t}(t),i=r.expandIcon,a=r.expandedRowKeys,s=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,p=i||uI,f=r.childrenColumnName||"children",h=e.useMemo((function(){return c?"row":!!(t.expandable&&t.internalHooks===hM&&t.expandable.__PARENT_RENDER_ICON__||n.some((function(e){return e&&"object"===T(e)&&e[f]})))&&"nest"}),[!!c,n]),g=e.useState((function(){return s||(l?function(e,t,n){var o=[];return function e(r){(r||[]).forEach((function(r,i){o.push(t(r,i)),e(r[n])}))}(e),o}(n,o,f):[])})),m=vt(g,2),v=m[0],b=m[1],y=e.useMemo((function(){return new Set(a||v||[])}),[a,v]),x=e.useCallback((function(e){var t,r=o(e,n.indexOf(e)),i=y.has(r);i?(y.delete(r),t=st(y)):t=[].concat(st(y),[r]),b(t),u&&u(!i,e),d&&d(t)}),[o,y,n,u,d]);return"production"!==process.env.NODE_ENV&&c&&n.some((function(e){return Array.isArray(null==e?void 0:e[f])}))&&U(!1,"`expandedRowRender` should not use with nested Table"),[r,h,y,p,f,x]}function pI(e){var t=a(e),n=vt(d({}),2)[1],o=a(null),r=a([]);return l((function(){return function(){o.current=null}}),[]),[t.current,function(e){r.current.push(e);var i=Promise.resolve();o.current=i,i.then((function(){if(o.current===i){var e=r.current,a=t.current;r.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,a!==t.current&&n({})}}))}]}var fI=yt()?window:null;function hI(t){var n=t.className,o=t.children;return e.createElement("div",{className:n},o)}var gI=function(t,n){var o,r,i=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,c=mM(CM,"prefixCls"),u=(null===(o=i.current)||void 0===o?void 0:o.scrollWidth)||0,d=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,p=u&&d*(d/u),f=e.useRef(),h=vt(pI({scrollLeft:0,isHiddenScrollBar:!1}),2),g=h[0],m=h[1],v=e.useRef({delta:0,x:0}),b=vt(e.useState(!1),2),y=b[0],x=b[1],C=e.useRef(null);e.useEffect((function(){return function(){ft.cancel(C.current)}}),[]);var w=function(){x(!1)},S=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(y&&0!==n){var o=v.current.x+e.pageX-v.current.x-v.current.delta;o<=0&&(o=0),o+p>=d&&(o=d-p),a({scrollLeft:o/d*(u+2)}),v.current.x=e.pageX}else y&&x(!1)},k=function(){C.current=ft((function(){if(i.current){var e=$E(i.current).top,t=e+i.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:$E(l).top+l.clientHeight;t-Xc()<=n||e>=n-s?m((function(e){return J(J({},e),{},{isHiddenScrollBar:!0})})):m((function(e){return J(J({},e),{},{isHiddenScrollBar:!1})}))}}))},E=function(e){m((function(t){return J(J({},t),{},{scrollLeft:e/u*d||0})}))};return e.useImperativeHandle(n,(function(){return{setScrollLeft:E,checkScrollBarVisible:k}})),e.useEffect((function(){var e=NE(document.body,"mouseup",w,!1),t=NE(document.body,"mousemove",S,!1);return k(),function(){e.remove(),t.remove()}}),[p,y]),e.useEffect((function(){var e=NE(l,"scroll",k,!1),t=NE(window,"resize",k,!1);return function(){e.remove(),t.remove()}}),[l]),e.useEffect((function(){g.isHiddenScrollBar||m((function(e){var t=i.current;return t?J(J({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[g.isHiddenScrollBar]),u<=d||!p||g.isHiddenScrollBar?null:e.createElement("div",{style:{height:Xc(),width:d,bottom:s},className:"".concat(c,"-sticky-scroll")},e.createElement("div",{onMouseDown:function(e){e.persist(),v.current.delta=e.pageX-g.scrollLeft,v.current.x=0,x(!0),e.preventDefault()},ref:f,className:A("".concat(c,"-sticky-scroll-bar"),Q({},"".concat(c,"-sticky-scroll-bar-active"),y)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))},mI=e.forwardRef(gI),vI="rc-table",bI=[],yI={};function xI(){return"No Data"}function CI(t,n){var o,r=J({rowKey:"key",prefixCls:vI,emptyText:xI},t),i=r.prefixCls,s=r.className,c=r.rowClassName,d=r.style,p=r.data,f=r.rowKey,h=r.scroll,g=r.tableLayout,m=r.direction,v=r.title,b=r.footer,y=r.summary,x=r.caption,C=r.id,w=r.showHeader,S=r.components,k=r.emptyText,E=r.onRow,O=r.onHeaderRow,$=r.onScroll,N=r.internalHooks,M=r.transformColumns,I=r.internalRefs,P=r.tailor,L=r.getContainerWidth,j=r.sticky,R=r.rowHoverable,_=void 0===R||R,z=p||bI,B=!!z.length,H=N===hM;"production"!==process.env.NODE_ENV&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach((function(e){U(void 0===r[e],"`".concat(e,"` is removed, please use `onRow` instead."))})),U(!("getBodyWrapper"in r),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var F=e.useCallback((function(e,t){return No(S,e)||t}),[S]),W=e.useMemo((function(){return"function"==typeof f?f:function(e){var t=e&&e[f];return"production"!==process.env.NODE_ENV&&U(void 0!==t,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),t}}),[f]),V=F(["body"]),K=function(){var t=vt(e.useState(-1),2),n=t[0],o=t[1],r=vt(e.useState(-1),2),i=r[0],a=r[1];return[n,i,e.useCallback((function(e,t){o(e),a(t)}),[])]}(),q=vt(K,3),X=q[0],G=q[1],Y=q[2],Z=vt(dI(r,z,W),6),ee=Z[0],te=Z[1],ne=Z[2],oe=Z[3],re=Z[4],ie=Z[5],ae=null==h?void 0:h.x,se=vt(e.useState(0),2),ce=se[0],ue=se[1],de=vt(cI(J(J(J({},r),ee),{},{expandable:!!ee.expandedRowRender,columnTitle:ee.columnTitle,expandedKeys:ne,getRowKey:W,onTriggerExpand:ie,expandIcon:oe,expandIconColumnIndex:ee.expandIconColumnIndex,direction:m,scrollWidth:H&&P&&"number"==typeof ae?ae:null,clientWidth:ce}),H?M:null),4),pe=de[0],fe=de[1],he=de[2],ge=de[3],me=null!=he?he:ae,ve=e.useMemo((function(){return{columns:pe,flattenColumns:fe}}),[pe,fe]),be=e.useRef(),ye=e.useRef(),xe=e.useRef(),Ce=e.useRef();e.useImperativeHandle(n,(function(){return{nativeElement:be.current,scrollTo:function(e){var t;if(xe.current instanceof HTMLElement){var n=e.index,o=e.top,r=e.key;if(o){var i;null===(i=xe.current)||void 0===i||i.scrollTo({top:o})}else{var a,s=null!=r?r:W(z[n]);null===(a=xe.current.querySelector('[data-row-key="'.concat(s,'"]')))||void 0===a||a.scrollIntoView()}}else null!==(t=xe.current)&&void 0!==t&&t.scrollTo&&xe.current.scrollTo(e)}}}));var we,Se,ke,Ee=e.useRef(),Oe=vt(e.useState(!1),2),$e=Oe[0],Ne=Oe[1],Me=vt(e.useState(!1),2),Ie=Me[0],Pe=Me[1],Le=vt(pI(new Map),2),je=Le[0],Ae=Le[1],De=OM(fe).map((function(e){return je.get(e)})),Te=e.useMemo((function(){return De}),[De.join("_")]),Re=function(e,t,n){var o=u((function(){var o=t.length,r=function(n,o,r){for(var i=[],a=0,s=n;s!==o;s+=r)i.push(a),t[s].fixed&&(a+=e[s]||0);return i},i=r(0,o,1),a=r(o-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n]);return o}(Te,fe,m),_e=h&&$M(h.y),ze=h&&$M(me)||Boolean(ee.fixed),Be=ze&&fe.some((function(e){return e.fixed})),He=e.useRef(),Fe=function(t,n){var o="object"===T(t)?t:{},r=o.offsetHeader,i=void 0===r?0:r,a=o.offsetSummary,s=void 0===a?0:a,l=o.offsetScroll,c=void 0===l?0:l,u=o.getContainer,d=(void 0===u?function(){return fI}:u)()||fI;return e.useMemo((function(){var e=!!t;return{isSticky:e,stickyClassName:e?"".concat(n,"-sticky-holder"):"",offsetHeader:i,offsetSummary:s,offsetScroll:c,container:d}}),[c,i,s,n,d])}(j,i),We=Fe.isSticky,Ve=Fe.offsetHeader,Ke=Fe.offsetSummary,qe=Fe.offsetScroll,Xe=Fe.stickyClassName,Ue=Fe.container,Ge=e.useMemo((function(){return null==y?void 0:y(z)}),[y,z]),Ye=(_e||We)&&e.isValidElement(Ge)&&Ge.type===AM&&Ge.props.fixed;_e&&(Se={overflowY:"scroll",maxHeight:h.y}),ze&&(we={overflowX:"auto"},_e||(Se={overflowY:"hidden"}),ke={width:!0===me?"auto":me,minWidth:"100%"});var Qe=e.useCallback((function(e,t){Sl(be.current)&&Ae((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Ze=vt(function(){var e=a(null),t=a();function n(){window.clearTimeout(t.current)}return l((function(){return n}),[]),[function(o){e.current=o,n(),t.current=window.setTimeout((function(){e.current=null,t.current=void 0}),100)},function(){return e.current}]}(),2),Je=Ze[0],et=Ze[1];function tt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var ot=yi((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===m,i="number"==typeof o?o:n.scrollLeft,a=n||yI;et()&&et()!==a||(Je(a),tt(i,ye.current),tt(i,xe.current),tt(i,Ee.current),tt(i,null===(t=He.current)||void 0===t?void 0:t.setScrollLeft));var s=n||ye.current;if(s){var l=s.scrollWidth,c=s.clientWidth;if(l===c)return Ne(!1),void Pe(!1);r?(Ne(-i<l-c),Pe(-i>0)):(Ne(i>0),Pe(i<l-c))}})),rt=yi((function(e){ot(e),null==$||$(e)})),it=function(){ze&&xe.current?ot({currentTarget:xe.current}):(Ne(!1),Pe(!1))},at=e.useRef(!1);e.useEffect((function(){at.current&&it()}),[ze,p,pe.length]),e.useEffect((function(){at.current=!0}),[]);var st=vt(e.useState(0),2),lt=st[0],ct=st[1],ut=vt(e.useState(!0),2),dt=ut[0],pt=ut[1];e.useEffect((function(){P&&H||(xe.current instanceof Element?ct(Uc(xe.current).width):ct(Uc(Ce.current).width)),pt(Pd("position","sticky"))}),[]),e.useEffect((function(){H&&I&&(I.body.current=xe.current)}));var ft,ht=e.useCallback((function(t){return e.createElement(e.Fragment,null,e.createElement(nI,t),"top"===Ye&&e.createElement(DM,t,Ge))}),[Ye,Ge]),gt=e.useCallback((function(t){return e.createElement(DM,t,Ge)}),[Ge]),mt=F(["table"],"table"),bt=e.useMemo((function(){return g||(Be?"max-content"===me?"auto":"fixed":_e||We||fe.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[_e,Be,fe,g,We]),yt={colWidths:Te,columCount:fe.length,stickyOffsets:Re,onHeaderRow:O,fixHeader:_e,scroll:h},xt=e.useMemo((function(){return B?null:"function"==typeof k?k():k}),[B,k]),Ct=e.createElement(XM,{data:z,measureColumnWidth:_e||ze||We}),wt=e.createElement(QM,{colWidths:fe.map((function(e){return e.width})),columns:fe}),St=null!=x?e.createElement("caption",{className:"".concat(i,"-caption")},x):void 0,kt=_s(r,{data:!0}),Et=_s(r,{aria:!0});if(_e||We){var Ot;"function"==typeof V?(Ot=V(z,{scrollbarSize:lt,ref:xe,onScroll:ot}),yt.colWidths=fe.map((function(e,t){var n=e.width,o=t===fe.length-1?n-lt:n;return"number"!=typeof o||Number.isNaN(o)?("production"!==process.env.NODE_ENV&&U(0===r.columns.length,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):o}))):Ot=e.createElement("div",{style:J(J({},we),Se),onScroll:rt,ref:xe,className:A("".concat(i,"-body"))},e.createElement(mt,D({style:J(J({},ke),{},{tableLayout:bt})},Et),St,wt,Ct,!Ye&&Ge&&e.createElement(DM,{stickyOffsets:Re,flattenColumns:fe},Ge)));var $t=J(J(J({noData:!z.length,maxContentScroll:ze&&"max-content"===me},yt),ve),{},{direction:m,stickyClassName:Xe,onScroll:ot});ft=e.createElement(e.Fragment,null,!1!==w&&e.createElement(eI,D({},$t,{stickyTopOffset:Ve,className:"".concat(i,"-header"),ref:ye}),ht),Ot,Ye&&"top"!==Ye&&e.createElement(eI,D({},$t,{stickyBottomOffset:Ke,className:"".concat(i,"-summary"),ref:Ee}),gt),We&&xe.current&&xe.current instanceof Element&&e.createElement(mI,{ref:He,offsetScroll:qe,scrollBodyRef:xe,onScroll:ot,container:Ue}))}else ft=e.createElement("div",{style:J(J({},we),Se),className:A("".concat(i,"-content")),onScroll:ot,ref:xe},e.createElement(mt,D({style:J(J({},ke),{},{tableLayout:bt})},Et),St,wt,!1!==w&&e.createElement(nI,D({},yt,ve)),Ct,Ge&&e.createElement(DM,{stickyOffsets:Re,flattenColumns:fe},Ge)));var Nt=e.createElement("div",D({className:A(i,s,(o={},Q(o,"".concat(i,"-rtl"),"rtl"===m),Q(o,"".concat(i,"-ping-left"),$e),Q(o,"".concat(i,"-ping-right"),Ie),Q(o,"".concat(i,"-layout-fixed"),"fixed"===g),Q(o,"".concat(i,"-fixed-header"),_e),Q(o,"".concat(i,"-fixed-column"),Be),Q(o,"".concat(i,"-fixed-column-gapped"),Be&&ge),Q(o,"".concat(i,"-scroll-horizontal"),ze),Q(o,"".concat(i,"-has-fix-left"),fe[0]&&fe[0].fixed),Q(o,"".concat(i,"-has-fix-right"),fe[fe.length-1]&&"right"===fe[fe.length-1].fixed),o)),style:d,id:C,ref:be},kt),v&&e.createElement(hI,{className:"".concat(i,"-title")},v(z)),e.createElement("div",{ref:Ce,className:"".concat(i,"-container")},ft),b&&e.createElement(hI,{className:"".concat(i,"-footer")},b(z)));ze&&(Nt=e.createElement(nt,{onResize:function(e){var t,n=e.width;null===(t=He.current)||void 0===t||t.checkScrollBarVisible();var o=be.current?be.current.offsetWidth:n;H&&L&&be.current&&(o=L(be.current,o)||o),o!==ce&&(it(),ue(o))}},Nt));var Mt=function(e,t,n){var o=e.map((function(o,r){return PM(r,r,e,t,n)}));return le((function(){return o}),[o],(function(e,t){return!Lt(e,t)}))}(fe,Re,m),It=e.useMemo((function(){return{scrollX:me,prefixCls:i,getComponent:F,scrollbarSize:lt,direction:m,fixedInfoList:Mt,isSticky:We,supportSticky:dt,componentWidth:ce,fixHeader:_e,fixColumn:Be,horizonScroll:ze,tableLayout:bt,rowClassName:c,expandedRowClassName:ee.expandedRowClassName,expandIcon:oe,expandableType:te,expandRowByClick:ee.expandRowByClick,expandedRowRender:ee.expandedRowRender,onTriggerExpand:ie,expandIconColumnIndex:ee.expandIconColumnIndex,indentSize:ee.indentSize,allColumnsFixedLeft:fe.every((function(e){return"left"===e.fixed})),emptyNode:xt,columns:pe,flattenColumns:fe,onColumnResize:Qe,hoverStartRow:X,hoverEndRow:G,onHover:Y,rowExpandable:ee.rowExpandable,onRow:E,getRowKey:W,expandedKeys:ne,childrenColumnName:re,rowHoverable:_}}),[me,i,F,lt,m,Mt,We,dt,ce,_e,Be,ze,bt,c,ee.expandedRowClassName,oe,te,ee.expandRowByClick,ee.expandedRowRender,ie,ee.expandIconColumnIndex,ee.indentSize,xt,pe,fe,Qe,X,G,Y,ee.rowExpandable,E,W,ne,re,_]);return e.createElement(CM.Provider,{value:It},Nt)}var wI=e.forwardRef(CI);function SI(e){return bM(wI,e)}"production"!==process.env.NODE_ENV&&(wI.displayName="Table");var kI=SI();kI.EXPAND_COLUMN=fM,kI.INTERNAL_HOOKS=hM,kI.Column=function(e){return null},kI.ColumnGroup=function(e){return null},kI.Summary=TM;var EI=gM(null),OI=gM(null);function $I(t){var n=t.rowInfo,o=t.column,r=t.colIndex,i=t.indent,a=t.index,s=t.component,l=t.renderIndex,c=t.record,u=t.style,d=t.className,p=t.inverse,f=t.getHeight,h=o.render,g=o.dataIndex,m=o.className,v=o.width,b=mM(OI,["columnsOffset"]).columnsOffset,y=HM(n,o,r,i,a),x=y.key,C=y.fixedInfo,w=y.appendCellNode,S=y.additionalCellProps,k=S.style,E=S.colSpan,O=void 0===E?1:E,$=S.rowSpan,N=void 0===$?1:$,M=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,O,b),I=O>1?v-M:0,P=J(J(J({},k),u),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:I,pointerEvents:"auto"}),L=e.useMemo((function(){return p?N<=1:0===O||0===N||N>1}),[N,O,p]);L?P.visibility="hidden":p&&(P.height=null==f?void 0:f(N));var j=L?function(){return null}:h,T={};return 0!==N&&0!==O||(T.rowSpan=1,T.colSpan=1),e.createElement(IM,D({className:A(m,d),ellipsis:o.ellipsis,align:o.align,scope:o.rowScope,component:s,prefixCls:n.prefixCls,key:x,record:c,index:a,renderIndex:l,dataIndex:g,render:j,shouldCellUpdate:o.shouldCellUpdate},C,{appendNode:w,additionalProps:J(J({},S),{},{style:P},T)}))}var NI=["data","index","className","rowKey","style","extra","getHeight"],MI=e.forwardRef((function(t,n){var o,r=t.data,i=t.index,a=t.className,s=t.rowKey,l=t.style,c=t.extra,u=t.getHeight,d=Pt(t,NI),p=r.record,f=r.indent,h=r.index,g=mM(CM,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=g.scrollX,v=g.flattenColumns,b=g.prefixCls,y=g.fixColumn,x=g.componentWidth,C=mM(EI,["getComponent"]).getComponent,w=zM(p,s,i,f),S=C(["body","row"],"div"),k=C(["body","cell"],"div"),E=w.rowSupportExpand,O=w.expanded,$=w.rowProps,N=w.expandedRowRender,M=w.expandedRowClassName;if(E&&O){var I=N(p,i,f+1,O),P=null==M?void 0:M(p,i,f),L={};y&&(L={style:Q({},"--virtual-width","".concat(x,"px"))});var j="".concat(b,"-expanded-row-cell");o=e.createElement(S,{className:A("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(f+1),P)},e.createElement(IM,{component:k,prefixCls:b,className:A(j,Q({},"".concat(j,"-fixed"),y)),additionalProps:L},I))}var T=J(J({},l),{},{width:m});c&&(T.position="absolute",T.pointerEvents="none");var R=e.createElement(S,D({},$,d,{"data-row-key":s,ref:E?null:n,className:A(a,"".concat(b,"-row"),null==$?void 0:$.className,Q({},"".concat(b,"-row-extra"),c)),style:J(J({},T),null==$?void 0:$.style)}),v.map((function(t,n){return e.createElement($I,{key:n,component:k,rowInfo:w,column:t,colIndex:n,indent:f,index:i,renderIndex:h,record:p,inverse:c,getHeight:u})})));return E?e.createElement("div",{ref:n},R,o):R})),II=yM(MI);"production"!==process.env.NODE_ENV&&(II.displayName="BodyLine");var PI=e.forwardRef((function(t,n){var o=t.data,r=t.onScroll,i=mM(CM,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=i.flattenColumns,s=i.onColumnResize,l=i.getRowKey,c=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,p=i.emptyNode,f=i.scrollX,h=mM(EI),g=h.sticky,m=h.scrollY,v=h.listItemHeight,b=h.getComponent,y=h.onScroll,x=e.useRef(),C=_M(o,d,c,l),w=e.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),S=e.useMemo((function(){return w.map((function(e){return e[2]}))}),[w]);e.useEffect((function(){w.forEach((function(e){var t=vt(e,2),n=t[0],o=t[1];s(n,o)}))}),[w]),e.useImperativeHandle(n,(function(){var e={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),e}));var k,E=function(e,t){var n,o=null===(n=C[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},O=e.useMemo((function(){return{columnsOffset:S}}),[S]),$="".concat(u,"-tbody"),N=b(["body","wrapper"]),M=b(["body","row"],"div"),I=b(["body","cell"],"div");if(C.length){var P={};g&&(P.position="sticky",P.bottom=0,"object"===T(g)&&g.offsetScroll&&(P.bottom=g.offsetScroll)),k=e.createElement(tg,{fullHeight:!1,ref:x,prefixCls:"".concat($,"-virtual"),styles:{horizontalScrollBar:P},className:$,height:m,itemHeight:v||24,data:C,itemKey:function(e){return l(e.record)},component:N,scrollWidth:f,onVirtualScroll:function(e){var t=e.x;r({scrollLeft:t})},onScroll:y,extraRender:function(t){var n=t.start,o=t.end,r=t.getSize,i=t.offsetY;if(o<0)return null;for(var s=a.filter((function(e){return 0===E(e,n)})),c=n,u=function(e){if(s=s.filter((function(t){return 0===E(t,e)})),!s.length)return c=e,1},d=n;d>=0&&!u(d);d-=1);for(var p=a.filter((function(e){return 1!==E(e,o)})),f=o,h=function(e){if(p=p.filter((function(t){return 1!==E(t,e)})),!p.length)return f=Math.max(e-1,o),1},g=o;g<C.length&&!h(g);g+=1);for(var m=[],v=function(e){if(!C[e])return 1;a.some((function(t){return E(t,e)>1}))&&m.push(e)},b=c;b<=f;b+=1)v(b);var y=m.map((function(t){var n=C[t],o=l(n.record,t),a=r(o);return e.createElement(II,{key:t,data:n,rowKey:o,index:t,style:{top:-i+a.top},extra:!0,getHeight:function(e){var n=t+e-1,i=l(C[n].record,n),a=r(o,i);return a.bottom-a.top}})}));return y}},(function(t,n,o){var r=l(t.record,n);return e.createElement(II,{data:t,rowKey:r,index:n,style:o.style})}))}else k=e.createElement(M,{className:A("".concat(u,"-placeholder"))},e.createElement(IM,{component:I,prefixCls:u},p));return e.createElement(OI.Provider,{value:O},k)})),LI=yM(PI);"production"!==process.env.NODE_ENV&&(LI.displayName="ResponseGrid");var jI=function(t,n){var o=n.ref,r=n.onScroll;return e.createElement(LI,{ref:o,data:t,onScroll:r})};function AI(t,n){var o=t.columns,r=t.scroll,i=t.sticky,a=t.prefixCls,s=void 0===a?vI:a,l=t.className,c=t.listItemHeight,u=t.components,d=t.onScroll,p=r||{},f=p.x,h=p.y;"number"!=typeof f&&("production"!==process.env.NODE_ENV&&U(!f,"`scroll.x` in virtual table must be number."),f=1),"number"!=typeof h&&(h=500,"production"!==process.env.NODE_ENV&&U(!1,"`scroll.y` in virtual table must be number."));var g=yi((function(e,t){return No(u,e)||t})),m=yi(d),v=e.useMemo((function(){return{sticky:i,scrollY:h,listItemHeight:c,getComponent:g,onScroll:m}}),[i,h,c,g,m]);return e.createElement(EI.Provider,{value:v},e.createElement(kI,D({},t,{className:A(l,"".concat(s,"-virtual")),scroll:J(J({},r),{},{x:f}),components:J(J({},u),{},{body:jI}),columns:o,internalHooks:hM,tailor:!0,ref:n})))}var DI=e.forwardRef(AI);function TI(e){return bM(DI,e)}"production"!==process.env.NODE_ENV&&(DI.displayName="VirtualTable"),TI();var RI=e.createContext(null),_I=function(t){for(var n=t.prefixCls,o=t.level,r=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l<o;l+=1)s.push(e.createElement("span",{key:l,className:A(a,Q(Q({},"".concat(a,"-start"),r[l]),"".concat(a,"-end"),i[l]))}));return e.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)},zI=e.memo(_I),BI=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],HI="open",FI="close",WI=function(){qe(n,e.Component);var t=Qe(n);function n(){var o;Fe(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Q(Ge(o=t.call.apply(t,[this].concat(i))),"state",{dragNodeHighlight:!1}),Q(Ge(o),"selectHandle",void 0),Q(Ge(o),"cacheIndent",void 0),Q(Ge(o),"onSelectorClick",(function(e){(0,o.props.context.onNodeClick)(e,hS(o.props)),o.isSelectable()?o.onSelect(e):o.onCheck(e)})),Q(Ge(o),"onSelectorDoubleClick",(function(e){(0,o.props.context.onNodeDoubleClick)(e,hS(o.props))})),Q(Ge(o),"onSelect",(function(e){o.isDisabled()||(0,o.props.context.onNodeSelect)(e,hS(o.props))})),Q(Ge(o),"onCheck",(function(e){if(!o.isDisabled()){var t=o.props,n=t.disableCheckbox,r=t.checked,i=o.props.context.onNodeCheck;if(o.isCheckable()&&!n){var a=!r;i(e,hS(o.props),a)}}})),Q(Ge(o),"onMouseEnter",(function(e){(0,o.props.context.onNodeMouseEnter)(e,hS(o.props))})),Q(Ge(o),"onMouseLeave",(function(e){(0,o.props.context.onNodeMouseLeave)(e,hS(o.props))})),Q(Ge(o),"onContextMenu",(function(e){(0,o.props.context.onNodeContextMenu)(e,hS(o.props))})),Q(Ge(o),"onDragStart",(function(e){var t=o.props.context.onNodeDragStart;e.stopPropagation(),o.setState({dragNodeHighlight:!0}),t(e,Ge(o));try{e.dataTransfer.setData("text/plain","")}catch(e){}})),Q(Ge(o),"onDragEnter",(function(e){var t=o.props.context.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),t(e,Ge(o))})),Q(Ge(o),"onDragOver",(function(e){var t=o.props.context.onNodeDragOver;e.preventDefault(),e.stopPropagation(),t(e,Ge(o))})),Q(Ge(o),"onDragLeave",(function(e){var t=o.props.context.onNodeDragLeave;e.stopPropagation(),t(e,Ge(o))})),Q(Ge(o),"onDragEnd",(function(e){var t=o.props.context.onNodeDragEnd;e.stopPropagation(),o.setState({dragNodeHighlight:!1}),t(e,Ge(o))})),Q(Ge(o),"onDrop",(function(e){var t=o.props.context.onNodeDrop;e.preventDefault(),e.stopPropagation(),o.setState({dragNodeHighlight:!1}),t(e,Ge(o))})),Q(Ge(o),"onExpand",(function(e){var t=o.props,n=t.loading,r=t.context.onNodeExpand;n||r(e,hS(o.props))})),Q(Ge(o),"setSelectHandle",(function(e){o.selectHandle=e})),Q(Ge(o),"getNodeState",(function(){var e=o.props.expanded;return o.isLeaf()?null:e?HI:FI})),Q(Ge(o),"hasChildren",(function(){var e=o.props.eventKey;return!!((iS(o.props.context.keyEntities,e)||{}).children||[]).length})),Q(Ge(o),"isLeaf",(function(){var e=o.props,t=e.isLeaf,n=e.loaded,r=o.props.context.loadData,i=o.hasChildren();return!1!==t&&(t||!r&&!i||r&&n&&!i)})),Q(Ge(o),"isDisabled",(function(){var e=o.props.disabled;return!(!o.props.context.disabled&&!e)})),Q(Ge(o),"isCheckable",(function(){var e=o.props.checkable,t=o.props.context.checkable;return!(!t||!1===e)&&t})),Q(Ge(o),"syncLoadData",(function(e){var t=e.expanded,n=e.loading,r=e.loaded,i=o.props.context,a=i.loadData,s=i.onNodeLoad;n||a&&t&&!o.isLeaf()&&!r&&s(hS(o.props))})),Q(Ge(o),"isDraggable",(function(){var e=o.props,t=e.data,n=e.context.draggable;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))})),Q(Ge(o),"renderDragHandler",(function(){var t=o.props.context,n=t.draggable,r=t.prefixCls;return null!=n&&n.icon?e.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null})),Q(Ge(o),"renderSwitcherIconDom",(function(e){var t=o.props.switcherIcon,n=o.props.context.switcherIcon,r=t||n;return"function"==typeof r?r(J(J({},o.props),{},{isLeaf:e})):r})),Q(Ge(o),"renderSwitcher",(function(){var t=o.props.expanded,n=o.props.context.prefixCls;if(o.isLeaf()){var r=o.renderSwitcherIconDom(!0);return!1!==r?e.createElement("span",{className:A("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var i=A("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?HI:FI)),a=o.renderSwitcherIconDom(!1);return!1!==a?e.createElement("span",{onClick:o.onExpand,className:i},a):null})),Q(Ge(o),"renderCheckbox",(function(){var t=o.props,n=t.checked,r=t.halfChecked,i=t.disableCheckbox,a=o.props.context.prefixCls,s=o.isDisabled(),l=o.isCheckable();if(!l)return null;var c="boolean"!=typeof l?l:null;return e.createElement("span",{className:A("".concat(a,"-checkbox"),n&&"".concat(a,"-checkbox-checked"),!n&&r&&"".concat(a,"-checkbox-indeterminate"),(s||i)&&"".concat(a,"-checkbox-disabled")),onClick:o.onCheck},c)})),Q(Ge(o),"renderIcon",(function(){var t=o.props.loading,n=o.props.context.prefixCls;return e.createElement("span",{className:A("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(o.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})})),Q(Ge(o),"renderSelector",(function(){var t,n,r=o.state.dragNodeHighlight,i=o.props,a=i.title,s=void 0===a?"---":a,l=i.selected,c=i.icon,u=i.loading,d=i.data,p=o.props.context,f=p.prefixCls,h=p.showIcon,g=p.icon,m=p.loadData,v=p.titleRender,b=o.isDisabled(),y="".concat(f,"-node-content-wrapper");if(h){var x=c||g;t=x?e.createElement("span",{className:A("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof x?x(o.props):x):o.renderIcon()}else m&&u&&(t=o.renderIcon());n="function"==typeof s?s(d):v?v(d):s;var C=e.createElement("span",{className:"".concat(f,"-title")},n);return e.createElement("span",{ref:o.setSelectHandle,title:"string"==typeof s?s:"",className:A("".concat(y),"".concat(y,"-").concat(o.getNodeState()||"normal"),!b&&(l||r)&&"".concat(f,"-node-selected")),onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,onContextMenu:o.onContextMenu,onClick:o.onSelectorClick,onDoubleClick:o.onSelectorDoubleClick},t,C,o.renderDropIndicator())})),Q(Ge(o),"renderDropIndicator",(function(){var e=o.props,t=e.disabled,n=e.eventKey,r=o.props.context,i=r.draggable,a=r.dropLevelOffset,s=r.dropPosition,l=r.prefixCls,c=r.indent,u=r.dropIndicatorRender,d=r.dragOverNodeKey,p=r.direction,f=!t&&!!i&&d===n,h=null!=c?c:o.cacheIndent;return o.cacheIndent=c,f?u({dropPosition:s,dropLevelOffset:a,indent:h,prefixCls:l,direction:p}):null})),o}return Ve(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var t,n=this.props,o=n.eventKey,r=n.className,i=n.style,a=n.dragOver,s=n.dragOverGapTop,l=n.dragOverGapBottom,c=n.isLeaf,u=n.isStart,d=n.isEnd,p=n.expanded,f=n.selected,h=n.checked,g=n.halfChecked,m=n.loading,v=n.domRef,b=n.active;n.data;var y=n.onMouseMove,x=n.selectable,C=Pt(n,BI),w=this.props.context,S=w.prefixCls,k=w.filterTreeNode,E=w.keyEntities,O=w.dropContainerKey,$=w.dropTargetKey,N=w.draggingNodeKey,M=this.isDisabled(),I=_s(C,{aria:!0,data:!0}),P=(iS(E,o)||{}).level,L=d[d.length-1],j=this.isDraggable(),T=!M&&j,R=N===o,_=void 0!==x?{"aria-selected":!!x}:void 0;return e.createElement("div",D({ref:v,className:A(r,"".concat(S,"-treenode"),(t={},Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(t,"".concat(S,"-treenode-disabled"),M),"".concat(S,"-treenode-switcher-").concat(p?"open":"close"),!c),"".concat(S,"-treenode-checkbox-checked"),h),"".concat(S,"-treenode-checkbox-indeterminate"),g),"".concat(S,"-treenode-selected"),f),"".concat(S,"-treenode-loading"),m),"".concat(S,"-treenode-active"),b),"".concat(S,"-treenode-leaf-last"),L),"".concat(S,"-treenode-draggable"),j),"dragging",R),Q(Q(Q(Q(Q(Q(t,"drop-target",$===o),"drop-container",O===o),"drag-over",!M&&a),"drag-over-gap-top",!M&&s),"drag-over-gap-bottom",!M&&l),"filter-node",k&&k(hS(this.props))))),style:i,draggable:T,"aria-grabbed":R,onDragStart:T?this.onDragStart:void 0,onDragEnter:j?this.onDragEnter:void 0,onDragOver:j?this.onDragOver:void 0,onDragLeave:j?this.onDragLeave:void 0,onDrop:j?this.onDrop:void 0,onDragEnd:j?this.onDragEnd:void 0,onMouseMove:y},_,I),e.createElement(zI,{prefixCls:S,level:P,isStart:u,isEnd:d}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(),VI=function(t){return e.createElement(RI.Consumer,null,(function(n){return e.createElement(WI,D({},t,{context:n}))}))};function KI(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function qI(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function XI(e){return e.split("-")}function UI(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}(iS(t,e).children),n}function GI(e){if(e.parent){var t=XI(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function YI(e,t,n,o,r,i,a,s,l,c){var u,d=e.clientX,p=e.clientY,f=e.target.getBoundingClientRect(),h=f.top,g=f.height,m=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o,v=l.filter((function(e){var t;return null===(t=s[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=iS(s,n.props.eventKey);if(p<h+g/2){var y=a.findIndex((function(e){return e.key===b.key})),x=a[y<=0?0:y-1].key;b=iS(s,x)}var C=b.key,w=b,S=b.key,k=0,E=0;if(!v.includes(C))for(var O=0;O<m&&GI(b);O+=1)b=b.parent,E+=1;var $,N=t.props.data,M=b.node,I=!0;return $=XI(b.pos),0===Number($[$.length-1])&&0===b.level&&p<h+g/2&&i({dragNode:N,dropNode:M,dropPosition:-1})&&b.key===n.props.eventKey?k=-1:(w.children||[]).length&&v.includes(S)?i({dragNode:N,dropNode:M,dropPosition:0})?k=0:I=!1:0===E?m>-1.5?i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1:i({dragNode:N,dropNode:M,dropPosition:0})?k=0:i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1:i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1,{dropPosition:k,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:S,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:I}}function QI(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function ZI(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==T(e))return U(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function JI(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=iS(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),st(n)}VI.displayName="TreeNode",VI.isTreeNode=1;const eP={},tP="SELECT_ALL",nP="SELECT_INVERT",oP="SELECT_NONE",rP=[],iP=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(st(n),st(iP(e,t[e]))))})),n},aP=(t,n)=>{const{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:p,onSelectNone:f,onSelectMultiple:g,columnWidth:m,type:v,selections:b,fixed:y,renderCell:x,hideSelectAll:C,checkStrictly:w=!0}=n||{},{prefixCls:S,data:k,pageData:E,getRecordByKey:O,getRowKey:$,expandType:N,childrenColumnName:M,locale:I,getPopupContainer:P}=t,L=_o("Table"),[j,D]=function(e){const[t,n]=d(null);return[h(((o,r,i)=>{const a=null!=t?t:o,s=Math.min(a||0,o),l=Math.max(a||0,o),c=r.slice(s,l+1).map((t=>e(t))),u=c.some((e=>!i.has(e))),d=[];return c.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?l:null),d}),[t]),e=>{n(e)}]}((e=>e)),[T,R]=wi(r||i||rP,{value:r}),_=e.useRef(new Map),z=h((e=>{if(o){const t=new Map;e.forEach((e=>{let n=O(e);!n&&_.current.has(e)&&(n=_.current.get(e)),t.set(e,n)})),_.current=t}}),[O,o]);e.useEffect((()=>{z(T)}),[T]);const{keyEntities:B}=u((()=>{if(w)return{keyEntities:null};let e=k;if(o){const t=new Set(k.map(((e,t)=>$(e,t)))),n=Array.from(_.current).reduce(((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)}),[]);e=[].concat(st(e),st(n))}return pS(e,{externalGetKey:$,childrenPropName:M})}),[k,$,w,M,o]),H=u((()=>iP(M,E)),[M,E]),F=u((()=>{const e=new Map;return H.forEach(((t,n)=>{const o=$(t,n),r=(a?a(t):null)||{};e.set(o,r),"production"!==process.env.NODE_ENV&&L(!("checked"in r||"defaultChecked"in r),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")})),e}),[H,$,a]),W=h((e=>{var t;return!!(null===(t=F.get($(e)))||void 0===t?void 0:t.disabled)}),[F,$]),[V,K]=u((()=>{if(w)return[T||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=vS(T,!0,B,W);return[e||[],t]}),[T,w,B,W]),q=u((()=>{const e="radio"===v?V.slice(0,1):V;return new Set(e)}),[V,v]),X=u((()=>"radio"===v?new Set:new Set(K)),[K,v]);e.useEffect((()=>{n||R(rP)}),[!!n]);const U=h(((e,t)=>{let n,r;z(e),o?(n=e,r=e.map((e=>_.current.get(e)))):(n=[],r=[],e.forEach((e=>{const t=O(e);void 0!==t&&(n.push(e),r.push(t))}))),R(n),null==s||s(n,r,{type:t})}),[R,O,s,o]),G=h(((e,t,n,o)=>{if(l){const r=n.map((e=>O(e)));l(O(e),t,r,o)}U(n,"single")}),[l,O,U]),Y=u((()=>{if(!b||C)return null;return(!0===b?[tP,nP,oP]:b).map((e=>e===tP?{key:"all",text:I.selectionAll,onSelect(){U(k.map(((e,t)=>$(e,t))).filter((e=>{const t=F.get(e);return!(null==t?void 0:t.disabled)||q.has(e)})),"all")}}:e===nP?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(q);E.forEach(((t,n)=>{const o=$(t,n),r=F.get(o);(null==r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);p&&(L.deprecated(!1,"onSelectInvert","onChange"),p(t)),U(t,"invert")}}:e===oP?{key:"none",text:I.selectNone,onSelect(){null==f||f(),U(Array.from(q).filter((e=>{const t=F.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),D(null)}})))}),[b,q,E,$,p,U]),Q=h((t=>{var o;if(!n)return"production"!==process.env.NODE_ENV&&L(!t.includes(eP),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),t.filter((e=>e!==eP));let r=st(t);const i=new Set(q),a=H.map($).filter((e=>!F.get(e).disabled)),s=a.every((e=>i.has(e))),l=a.some((e=>i.has(e))),u=()=>{const e=[];s?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==c||c(!s,t.map((e=>O(e))),e.map((e=>O(e)))),U(t,"all"),D(null)};let d,p,f;if("radio"!==v){let t;if(Y){const n={getPopupContainer:P,items:Y.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(a)},label:o}}))};t=e.createElement("div",{className:`${S}-selection-extra`},e.createElement(oE,{menu:n,getPopupContainer:P},e.createElement("span",null,e.createElement(om,null))))}const n=H.map(((e,t)=>{const n=$(e,t),o=F.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),o=!!n.length&&n.length===H.length,r=o&&n.every((e=>{let{checked:t}=e;return t})),c=o&&n.some((e=>{let{checked:t}=e;return t}));p=e.createElement($S,{checked:o?r:!!H.length&&s,indeterminate:o?!r&&c:!s&&l,onChange:u,disabled:0===H.length||o,"aria-label":t?"Custom selection":"Select all",skipGroup:!0}),d=!C&&e.createElement("div",{className:`${S}-selection`},p,t)}f="radio"===v?(t,n,o)=>{const r=$(n,o),a=i.has(r);return{node:e.createElement(Ex,Object.assign({},F.get(r),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||G(r,!0,[r],e.nativeEvent)}})),checked:a}}:(t,n,o)=>{var r;const s=$(n,o),l=i.has(s),c=X.has(s),u=F.get(s);let d;return"nest"===N?(d=c,"production"!==process.env.NODE_ENV&&L("boolean"!=typeof(null==u?void 0:u.indeterminate),"usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):d=null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:e.createElement($S,Object.assign({},u,{indeterminate:d,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,o=a.findIndex((e=>e===s)),r=V.some((e=>a.includes(e)));if(n&&w&&r){const e=j(o,a,i),t=Array.from(i);null==g||g(!l,t.map((e=>O(e))),e.map((e=>O(e)))),U(t,"multiple")}else{const e=V;if(w){const n=l?KI(e,s):qI(e,s);G(s,!l,n,t)}else{const n=vS([].concat(st(e),[s]),!0,B,W),{checkedKeys:o,halfCheckedKeys:r}=n;let i=o;if(l){const e=new Set(o);e.delete(s),i=vS(Array.from(e),{checked:!1,halfCheckedKeys:r},B,W).checkedKeys}G(s,!l,i,t)}}D(l?null:o)}})),checked:l}};if(!r.includes(eP))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[GM])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,eP].concat(st(t))}else r=[eP].concat(st(r));const h=r.indexOf(eP);"production"!==process.env.NODE_ENV&&L(r.filter((e=>e===eP)).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),r=r.filter(((e,t)=>e!==eP||t===h));const k=r[h-1],E=r[h+1];let M=y;void 0===M&&(void 0!==(null==E?void 0:E.fixed)?M=E.fixed:void 0!==(null==k?void 0:k.fixed)&&(M=k.fixed)),M&&k&&"EXPAND_COLUMN"===(null===(o=k[GM])||void 0===o?void 0:o.columnType)&&void 0===k.fixed&&(k.fixed=M);const I=A(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:b&&"checkbox"===v}),T={fixed:M,width:m,className:`${S}-selection-column`,title:(null==n?void 0:n.columnTitle)?"function"==typeof n.columnTitle?n.columnTitle(p):n.columnTitle:d,render:(e,t,n)=>{const{node:o,checked:r}=f(e,t,n);return x?x(r,t,n,o):o},onCell:n.onCell,[GM]:{className:I}};return r.map((e=>e===eP?T:e))}),[$,H,n,V,q,X,m,Y,N,F,g,G,W]);return[Q,q]};function sP(e,t){return g(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}})),o);var o,r}))}const lP=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function cP(e,t){return t?`${t}-${e}`:`${e}`}const uP=(e,t)=>"function"==typeof e?e(t):e;function dP(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var pP=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],fP=function(t,n){var o=t.className,r=t.style,i=t.motion,a=t.motionNodes,s=t.motionType,l=t.onMotionStart,c=t.onMotionEnd,u=t.active,d=t.treeNodeRequiredProps,p=Pt(t,pP),f=vt(e.useState(!0),2),h=f[0],g=f[1],m=e.useContext(RI).prefixCls,v=a&&"hide"!==s;nn((function(){a&&v!==h&&g(v)}),[a]);var b=e.useRef(!1),y=function(){a&&!b.current&&(b.current=!0,c())};!function(t,n){var o=vt(e.useState(!1),2),r=o[0],i=o[1];nn((function(){if(r)return t(),function(){n()}}),[r]),nn((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&l()}),y);return a?e.createElement(Ra,D({ref:n,visible:h},i,{motionAppear:"show"===s,onVisibleChanged:function(e){v===e&&y()}}),(function(t,n){var o=t.className,r=t.style;return e.createElement("div",{ref:n,className:A("".concat(m,"-treenode-motion"),o),style:r},a.map((function(t){var n=Object.assign({},(dP(t.data),t.data)),o=t.title,r=t.key,i=t.isStart,a=t.isEnd;delete n.children;var s=fS(r,d);return e.createElement(VI,D({},n,s,{title:o,active:u,data:t.data,key:r,isStart:i,isEnd:a}))})))})):e.createElement(VI,D({domRef:n,className:o,style:r},p,{active:u}))};fP.displayName="MotionTreeNode";var hP=e.forwardRef(fP);function gP(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var mP=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],vP={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},bP=function(){},yP="RC_TREE_MOTION_".concat(Math.random()),xP={key:yP},CP={key:yP,level:0,index:0,pos:"0",node:xP,nodes:[xP]},wP={parent:null,children:[],pos:CP.pos,data:xP,title:null,key:yP,isStart:[],isEnd:[]};function SP(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function kP(e){return lS(e.key,e.pos)}var EP=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.data;t.selectable,t.checkable;var i=t.expandedKeys,a=t.selectedKeys,s=t.checkedKeys,l=t.loadedKeys,c=t.loadingKeys,u=t.halfCheckedKeys,d=t.keyEntities,p=t.disabled,f=t.dragging,h=t.dragOverNodeKey,g=t.dropPosition,m=t.motion,v=t.height,b=t.itemHeight,y=t.virtual,x=t.focusable,C=t.activeItem,w=t.focused,S=t.tabIndex,k=t.onKeyDown,E=t.onFocus,O=t.onBlur,$=t.onActiveChange,N=t.onListChangeStart,M=t.onListChangeEnd,I=Pt(t,mP),P=e.useRef(null),L=e.useRef(null);e.useImperativeHandle(n,(function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return L.current.offsetWidth}}}));var j=vt(e.useState(i),2),A=j[0],T=j[1],R=vt(e.useState(r),2),_=R[0],z=R[1],B=vt(e.useState(r),2),H=B[0],F=B[1],W=vt(e.useState([]),2),V=W[0],K=W[1],q=vt(e.useState(null),2),X=q[0],U=q[1],G=e.useRef(r);function Y(){var e=G.current;z(e),F(e),K([]),U(null),M()}G.current=r,nn((function(){T(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(A,i);if(null!==e.key)if(e.add){var t=_.findIndex((function(t){return t.key===e.key})),n=SP(gP(_,r,e.key),y,v,b),o=_.slice();o.splice(t+1,0,wP),F(o),K(n),U("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),s=SP(gP(r,_,e.key),y,v,b),l=r.slice();l.splice(a+1,0,wP),F(l),K(s),U("hide")}else _!==r&&(z(r),F(r))}),[i,r]),e.useEffect((function(){f||Y()}),[f]);var Q=m?H:r,Z={expandedKeys:i,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:g,keyEntities:d};return e.createElement(e.Fragment,null,w&&C&&e.createElement("span",{style:vP,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(C)),e.createElement("div",null,e.createElement("input",{style:vP,disabled:!1===x||p,tabIndex:!1!==x?S:null,onKeyDown:k,onFocus:E,onBlur:O,value:"",onChange:bP,"aria-label":"for screen reader"})),e.createElement("div",{className:"".concat(o,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},e.createElement("div",{className:"".concat(o,"-indent")},e.createElement("div",{ref:L,className:"".concat(o,"-indent-unit")}))),e.createElement(tg,D({},I,{data:Q,itemKey:kP,height:v,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:"".concat(o,"-list"),ref:P,onVisibleChange:function(e){e.every((function(e){return kP(e)!==yP}))&&Y()}}),(function(t){var n=t.pos,o=Object.assign({},(dP(t.data),t.data)),r=t.title,i=t.key,a=t.isStart,s=t.isEnd,l=lS(i,n);delete o.key,delete o.children;var c=fS(l,Z);return e.createElement(hP,D({},o,c,{title:r,active:!!C&&i===C.key,pos:n,data:t.data,isStart:a,isEnd:s,motion:m,motionNodes:i===yP?V:null,motionType:X,onMotionStart:N,onMotionEnd:Y,treeNodeRequiredProps:Z,onMouseMove:function(){$(null)}}))})))}));EP.displayName="NodeList";var OP=function(){qe(n,e.Component);var t=Qe(n);function n(){var o;Fe(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Q(Ge(o=t.call.apply(t,[this].concat(i))),"destroyed",!1),Q(Ge(o),"delayedDragEnterLogic",void 0),Q(Ge(o),"loadingRetryTimes",{}),Q(Ge(o),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:cS()}),Q(Ge(o),"dragStartMousePosition",null),Q(Ge(o),"dragNode",void 0),Q(Ge(o),"currentMouseOverDroppableNodeKey",null),Q(Ge(o),"listRef",e.createRef()),Q(Ge(o),"onNodeDragStart",(function(e,t){var n=o.state,r=n.expandedKeys,i=n.keyEntities,a=o.props.onDragStart,s=t.props.eventKey;o.dragNode=t,o.dragStartMousePosition={x:e.clientX,y:e.clientY};var l=KI(r,s);o.setState({draggingNodeKey:s,dragChildrenKeys:UI(s,i),indent:o.listRef.current.getIndentWidth()}),o.setExpandedKeys(l),window.addEventListener("dragend",o.onWindowDragEnd),null==a||a({event:e,node:hS(t.props)})})),Q(Ge(o),"onNodeDragEnter",(function(e,t){var n=o.state,r=n.expandedKeys,i=n.keyEntities,a=n.dragChildrenKeys,s=n.flattenNodes,l=n.indent,c=o.props,u=c.onDragEnter,d=c.onExpand,p=c.allowDrop,f=c.direction,h=t.props,g=h.pos,m=h.eventKey,v=Ge(o).dragNode;if(o.currentMouseOverDroppableNodeKey!==m&&(o.currentMouseOverDroppableNodeKey=m),v){var b=YI(e,v,t,l,o.dragStartMousePosition,p,s,i,r,f),y=b.dropPosition,x=b.dropLevelOffset,C=b.dropTargetKey,w=b.dropContainerKey,S=b.dropTargetPos,k=b.dropAllowed,E=b.dragOverNodeKey;-1===a.indexOf(C)&&k?(o.delayedDragEnterLogic||(o.delayedDragEnterLogic={}),Object.keys(o.delayedDragEnterLogic).forEach((function(e){clearTimeout(o.delayedDragEnterLogic[e])})),v.props.eventKey!==t.props.eventKey&&(e.persist(),o.delayedDragEnterLogic[g]=window.setTimeout((function(){if(null!==o.state.draggingNodeKey){var n=st(r),a=iS(i,t.props.eventKey);a&&(a.children||[]).length&&(n=qI(r,t.props.eventKey)),"expandedKeys"in o.props||o.setExpandedKeys(n),null==d||d(n,{node:hS(t.props),expanded:!0,nativeEvent:e.nativeEvent})}}),800)),v.props.eventKey!==C||0!==x?(o.setState({dragOverNodeKey:E,dropPosition:y,dropLevelOffset:x,dropTargetKey:C,dropContainerKey:w,dropTargetPos:S,dropAllowed:k}),null==u||u({event:e,node:hS(t.props),expandedKeys:r})):o.resetDragState()):o.resetDragState()}else o.resetDragState()})),Q(Ge(o),"onNodeDragOver",(function(e,t){var n=o.state,r=n.dragChildrenKeys,i=n.flattenNodes,a=n.keyEntities,s=n.expandedKeys,l=n.indent,c=o.props,u=c.onDragOver,d=c.allowDrop,p=c.direction,f=Ge(o).dragNode;if(f){var h=YI(e,f,t,l,o.dragStartMousePosition,d,i,a,s,p),g=h.dropPosition,m=h.dropLevelOffset,v=h.dropTargetKey,b=h.dropContainerKey,y=h.dropAllowed,x=h.dropTargetPos,C=h.dragOverNodeKey;-1===r.indexOf(v)&&y&&(f.props.eventKey===v&&0===m?null===o.state.dropPosition&&null===o.state.dropLevelOffset&&null===o.state.dropTargetKey&&null===o.state.dropContainerKey&&null===o.state.dropTargetPos&&!1===o.state.dropAllowed&&null===o.state.dragOverNodeKey||o.resetDragState():g===o.state.dropPosition&&m===o.state.dropLevelOffset&&v===o.state.dropTargetKey&&b===o.state.dropContainerKey&&x===o.state.dropTargetPos&&y===o.state.dropAllowed&&C===o.state.dragOverNodeKey||o.setState({dropPosition:g,dropLevelOffset:m,dropTargetKey:v,dropContainerKey:b,dropTargetPos:x,dropAllowed:y,dragOverNodeKey:C}),null==u||u({event:e,node:hS(t.props)}))}})),Q(Ge(o),"onNodeDragLeave",(function(e,t){o.currentMouseOverDroppableNodeKey!==t.props.eventKey||e.currentTarget.contains(e.relatedTarget)||(o.resetDragState(),o.currentMouseOverDroppableNodeKey=null);var n=o.props.onDragLeave;null==n||n({event:e,node:hS(t.props)})})),Q(Ge(o),"onWindowDragEnd",(function(e){o.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",o.onWindowDragEnd)})),Q(Ge(o),"onNodeDragEnd",(function(e,t){var n=o.props.onDragEnd;o.setState({dragOverNodeKey:null}),o.cleanDragState(),null==n||n({event:e,node:hS(t.props)}),o.dragNode=null,window.removeEventListener("dragend",o.onWindowDragEnd)})),Q(Ge(o),"onNodeDrop",(function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=o.state,a=i.dragChildrenKeys,s=i.dropPosition,l=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=o.props.onDrop;if(o.setState({dragOverNodeKey:null}),o.cleanDragState(),null!==l){var d=J(J({},fS(l,o.getTreeNodeRequiredProps())),{},{active:(null===(n=o.getActiveItem())||void 0===n?void 0:n.key)===l,data:iS(o.state.keyEntities,l).node});U(!(-1!==a.indexOf(l)),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=XI(c),f={event:e,node:hS(d),dragNode:o.dragNode?hS(o.dragNode.props):null,dragNodesKeys:[o.dragNode.props.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(p[p.length-1])};r||null==u||u(f),o.dragNode=null}}})),Q(Ge(o),"cleanDragState",(function(){null!==o.state.draggingNodeKey&&o.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),o.dragStartMousePosition=null,o.currentMouseOverDroppableNodeKey=null})),Q(Ge(o),"triggerExpandActionExpand",(function(e,t){var n=o.state,r=n.expandedKeys,i=n.flattenNodes,a=t.expanded,s=t.key;if(!(t.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey)){var l=i.filter((function(e){return e.key===s}))[0],c=hS(J(J({},fS(s,o.getTreeNodeRequiredProps())),{},{data:l.data}));o.setExpandedKeys(a?KI(r,s):qI(r,s)),o.onNodeExpand(e,c)}})),Q(Ge(o),"onNodeClick",(function(e,t){var n=o.props,r=n.onClick;"click"===n.expandAction&&o.triggerExpandActionExpand(e,t),null==r||r(e,t)})),Q(Ge(o),"onNodeDoubleClick",(function(e,t){var n=o.props,r=n.onDoubleClick;"doubleClick"===n.expandAction&&o.triggerExpandActionExpand(e,t),null==r||r(e,t)})),Q(Ge(o),"onNodeSelect",(function(e,t){var n=o.state.selectedKeys,r=o.state,i=r.keyEntities,a=r.fieldNames,s=o.props,l=s.onSelect,c=s.multiple,u=t.selected,d=t[a.key],p=!u,f=(n=p?c?qI(n,d):[d]:KI(n,d)).map((function(e){var t=iS(i,e);return t?t.node:null})).filter((function(e){return e}));o.setUncontrolledState({selectedKeys:n}),null==l||l(n,{event:"select",selected:p,node:t,selectedNodes:f,nativeEvent:e.nativeEvent})})),Q(Ge(o),"onNodeCheck",(function(e,t,n){var r,i=o.state,a=i.keyEntities,s=i.checkedKeys,l=i.halfCheckedKeys,c=o.props,u=c.checkStrictly,d=c.onCheck,p=t.key,f={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(u){var h=n?qI(s,p):KI(s,p);r={checked:h,halfChecked:KI(l,p)},f.checkedNodes=h.map((function(e){return iS(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),o.setUncontrolledState({checkedKeys:h})}else{var g=vS([].concat(st(s),[p]),!0,a),m=g.checkedKeys,v=g.halfCheckedKeys;if(!n){var b=new Set(m);b.delete(p);var y=vS(Array.from(b),{checked:!1,halfCheckedKeys:v},a);m=y.checkedKeys,v=y.halfCheckedKeys}r=m,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=v,m.forEach((function(e){var t=iS(a,e);if(t){var n=t.node,o=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:o})}})),o.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:v})}null==d||d(r,f)})),Q(Ge(o),"onNodeLoad",(function(e){var t,n=e.key,r=iS(o.state.keyEntities,n);if(null==r||null===(t=r.children)||void 0===t||!t.length){var i=new Promise((function(t,r){o.setState((function(i){var a=i.loadedKeys,s=void 0===a?[]:a,l=i.loadingKeys,c=void 0===l?[]:l,u=o.props,d=u.loadData,p=u.onLoad;return d&&-1===s.indexOf(n)&&-1===c.indexOf(n)?(d(e).then((function(){var r=qI(o.state.loadedKeys,n);null==p||p(r,{event:"load",node:e}),o.setUncontrolledState({loadedKeys:r}),o.setState((function(e){return{loadingKeys:KI(e.loadingKeys,n)}})),t()})).catch((function(e){if(o.setState((function(e){return{loadingKeys:KI(e.loadingKeys,n)}})),o.loadingRetryTimes[n]=(o.loadingRetryTimes[n]||0)+1,o.loadingRetryTimes[n]>=10){var i=o.state.loadedKeys;U(!1,"Retry for `loadData` many times but still failed. No more retry."),o.setUncontrolledState({loadedKeys:qI(i,n)}),t()}r(e)})),{loadingKeys:qI(c,n)}):null}))}));return i.catch((function(){})),i}})),Q(Ge(o),"onNodeMouseEnter",(function(e,t){var n=o.props.onMouseEnter;null==n||n({event:e,node:t})})),Q(Ge(o),"onNodeMouseLeave",(function(e,t){var n=o.props.onMouseLeave;null==n||n({event:e,node:t})})),Q(Ge(o),"onNodeContextMenu",(function(e,t){var n=o.props.onRightClick;n&&(e.preventDefault(),n({event:e,node:t}))})),Q(Ge(o),"onFocus",(function(){var e=o.props.onFocus;o.setState({focused:!0});for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==e||e.apply(void 0,n)})),Q(Ge(o),"onBlur",(function(){var e=o.props.onBlur;o.setState({focused:!1}),o.onActiveChange(null);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==e||e.apply(void 0,n)})),Q(Ge(o),"getTreeNodeRequiredProps",(function(){var e=o.state;return{expandedKeys:e.expandedKeys||[],selectedKeys:e.selectedKeys||[],loadedKeys:e.loadedKeys||[],loadingKeys:e.loadingKeys||[],checkedKeys:e.checkedKeys||[],halfCheckedKeys:e.halfCheckedKeys||[],dragOverNodeKey:e.dragOverNodeKey,dropPosition:e.dropPosition,keyEntities:e.keyEntities}})),Q(Ge(o),"setExpandedKeys",(function(e){var t=o.state,n=dS(t.treeData,e,t.fieldNames);o.setUncontrolledState({expandedKeys:e,flattenNodes:n},!0)})),Q(Ge(o),"onNodeExpand",(function(e,t){var n=o.state.expandedKeys,r=o.state,i=r.listChanging,a=r.fieldNames,s=o.props,l=s.onExpand,c=s.loadData,u=t.expanded,d=t[a.key];if(!i){var p=n.indexOf(d),f=!u;if(U(u&&-1!==p||!u&&-1===p,"Expand state not sync with index check"),n=f?qI(n,d):KI(n,d),o.setExpandedKeys(n),null==l||l(n,{node:t,expanded:f,nativeEvent:e.nativeEvent}),f&&c){var h=o.onNodeLoad(t);h&&h.then((function(){var e=dS(o.state.treeData,n,a);o.setUncontrolledState({flattenNodes:e})})).catch((function(){var e=KI(o.state.expandedKeys,d);o.setExpandedKeys(e)}))}}})),Q(Ge(o),"onListChangeStart",(function(){o.setUncontrolledState({listChanging:!0})})),Q(Ge(o),"onListChangeEnd",(function(){setTimeout((function(){o.setUncontrolledState({listChanging:!1})}))})),Q(Ge(o),"onActiveChange",(function(e){var t=o.state.activeKey,n=o.props,r=n.onActiveChange,i=n.itemScrollOffset,a=void 0===i?0:i;t!==e&&(o.setState({activeKey:e}),null!==e&&o.scrollTo({key:e,offset:a}),null==r||r(e))})),Q(Ge(o),"getActiveItem",(function(){var e=o.state,t=e.activeKey,n=e.flattenNodes;return null===t?null:n.find((function(e){return e.key===t}))||null})),Q(Ge(o),"offsetActiveKey",(function(e){var t=o.state,n=t.flattenNodes,r=t.activeKey,i=n.findIndex((function(e){return e.key===r}));-1===i&&e<0&&(i=n.length);var a=n[i=(i+e+n.length)%n.length];if(a){var s=a.key;o.onActiveChange(s)}else o.onActiveChange(null)})),Q(Ge(o),"onKeyDown",(function(e){var t=o.state,n=t.activeKey,r=t.expandedKeys,i=t.checkedKeys,a=t.fieldNames,s=o.props,l=s.onKeyDown,c=s.checkable,u=s.selectable;switch(e.which){case qs.UP:o.offsetActiveKey(-1),e.preventDefault();break;case qs.DOWN:o.offsetActiveKey(1),e.preventDefault()}var d=o.getActiveItem();if(d&&d.data){var p=o.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=hS(J(J({},fS(n,p)),{},{data:d.data,active:!0}));switch(e.which){case qs.LEFT:f&&r.includes(n)?o.onNodeExpand({},h):d.parent&&o.onActiveChange(d.parent.key),e.preventDefault();break;case qs.RIGHT:f&&!r.includes(n)?o.onNodeExpand({},h):d.children&&d.children.length&&o.onActiveChange(d.children[0].key),e.preventDefault();break;case qs.ENTER:case qs.SPACE:!c||h.disabled||!1===h.checkable||h.disableCheckbox?c||!u||h.disabled||!1===h.selectable||o.onNodeSelect({},h):o.onNodeCheck({},h,!i.includes(n))}}null==l||l(e)})),Q(Ge(o),"setUncontrolledState",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!o.destroyed){var r=!1,i=!0,a={};Object.keys(e).forEach((function(t){t in o.props?i=!1:(r=!0,a[t]=e[t])})),!r||t&&!i||o.setState(J(J({},a),n))}})),Q(Ge(o),"scrollTo",(function(e){o.listRef.current.scrollTo(e)})),o}return Ve(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var t,n=this.state,o=n.focused,r=n.flattenNodes,i=n.keyEntities,a=n.draggingNodeKey,s=n.activeKey,l=n.dropLevelOffset,c=n.dropContainerKey,u=n.dropTargetKey,d=n.dropPosition,p=n.dragOverNodeKey,f=n.indent,h=this.props,g=h.prefixCls,m=h.className,v=h.style,b=h.showLine,y=h.focusable,x=h.tabIndex,C=void 0===x?0:x,w=h.selectable,S=h.showIcon,k=h.icon,E=h.switcherIcon,O=h.draggable,$=h.checkable,N=h.checkStrictly,M=h.disabled,I=h.motion,P=h.loadData,L=h.filterTreeNode,j=h.height,R=h.itemHeight,_=h.virtual,z=h.titleRender,B=h.dropIndicatorRender,H=h.onContextMenu,F=h.onScroll,W=h.direction,V=h.rootClassName,K=h.rootStyle,q=_s(this.props,{aria:!0,data:!0});return O&&(t="object"===T(O)?O:"function"==typeof O?{nodeDraggable:O}:{}),e.createElement(RI.Provider,{value:{prefixCls:g,selectable:w,showIcon:S,icon:k,switcherIcon:E,draggable:t,draggingNodeKey:a,checkable:$,checkStrictly:N,disabled:M,keyEntities:i,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:p,indent:f,direction:W,dropIndicatorRender:B,loadData:P,filterTreeNode:L,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{role:"tree",className:A(g,m,V,Q(Q(Q({},"".concat(g,"-show-line"),b),"".concat(g,"-focused"),o),"".concat(g,"-active-focused"),null!==s)),style:K},e.createElement(EP,D({ref:this.listRef,prefixCls:g,style:v,data:r,disabled:M,selectable:w,checkable:!!$,motion:I,dragging:null!==a,height:j,itemHeight:R,virtual:_,focusable:y,focused:o,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:F},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&t in e||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=cS(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(U(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=uS(e.children)),n){r.treeData=n;var s=pS(n,{fieldNames:a});r.keyEntities=J(Q({},yP,CP),s.keyEntities),"production"!==process.env.NODE_ENV&&function(e,t){var n=new Map;!function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(o||[]).forEach((function(o){var i=o[t.key],a=o[t.children];U(null!=i,"Tree node must have a certain key: [".concat(r).concat(i,"]"));var s=String(i);U(!n.has(s)||null==i,"Same 'key' exist in the Tree: ".concat(s)),n.set(s,!0),e(a,"".concat(r).concat(s," > "))}))}(e)}(n,a)}var l,c=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?JI(e.expandedKeys,c):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=J({},c);delete u[yP];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),r.expandedKeys=d}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?JI(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var p=dS(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=QI(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=QI(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?l=ZI(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?l=ZI(e.defaultCheckedKeys)||{}:n&&(l=ZI(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var f=l,h=f.checkedKeys,g=void 0===h?[]:h,m=f.halfCheckedKeys,v=void 0===m?[]:m;if(!e.checkStrictly){var b=vS(g,!0,c);g=b.checkedKeys,v=b.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}();Q(OP,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(t){var n=t.dropPosition,o=t.dropLevelOffset,r=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-o*r;break;case 1:i.bottom=0,i.left=-o*r;break;case 0:i.bottom=0,i.left=r}return e.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),Q(OP,"TreeNode",VI);const $P=new ko("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),NP=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),MP=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Yt(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),IP=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:s}=t,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},qi(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Ui(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:$P,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[o]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Yt(r)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:Yt(i),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},NP(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:Yt(i),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${Yt(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:Yt(i),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:Yt(i),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:Yt(i),userSelect:"none"},MP(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Yt(t.calc(i).div(2).equal())} !important`}}}}})}},PP=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:r},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},LP=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.calc(t.paddingXS).div(2).equal(),i=Oi(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r});return[IP(e,i),PP(i)]};var jP=Qi("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:yS(`${n}-checkbox`,e)},LP(n,e),sp(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function AP(e){const{dropPosition:n,dropLevelOffset:o,prefixCls:r,indent:i,direction:a="ltr"}=e,s="ltr"===a?"left":"right",l="ltr"===a?"right":"left",c={[s]:-o*i+4,[l]:0};switch(n){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[s]=i+4}return t.createElement("div",{style:c,className:`${r}-drop-indicator`})}const DP=t=>{const{prefixCls:n,switcherIcon:o,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=t,{isLeaf:s,expanded:l,loading:c}=r;if(c)return e.isValidElement(a)?a:e.createElement(Gs,{className:`${n}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),s){if(!i)return null;if("boolean"!=typeof u&&u){const t="function"==typeof u?u(r):u,o=`${n}-switcher-line-custom-icon`;return e.isValidElement(t)?Hs(t,{className:A(t.props.className||"",o)}):t}return u?e.createElement(AN,{className:`${n}-switcher-line-icon`}):e.createElement("span",{className:`${n}-switcher-leaf-line`})}const d=`${n}-switcher-icon`,p="function"==typeof o?o(r):o;return e.isValidElement(p)?Hs(p,{className:A(p.props.className||"",d)}):void 0!==p?p:i?l?e.createElement(GN,{className:`${n}-switcher-line-icon`}):e.createElement(ZN,{className:`${n}-switcher-line-icon`}):e.createElement(mN,{className:d})},TP=t.forwardRef(((e,n)=>{var o;const{getPrefixCls:r,direction:i,virtual:a,tree:s}=t.useContext(ii),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:p,switcherLoadingIcon:f,blockNode:h=!1,children:g,checkable:m=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,C=r("tree",l),w=r(),S=null!=y?y:Object.assign(Object.assign({},Cl(w)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:m,selectable:v,showIcon:u,motion:S,blockNode:h,showLine:Boolean(d),dropIndicatorRender:AP}),[E,O,$]=jP(C),[,N]=Wi(),M=N.paddingXS/2+((null===(o=N.Tree)||void 0===o?void 0:o.titleHeight)||N.controlHeightSM),I=t.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||t.createElement(qN,null)),e}),[b]);return E(t.createElement(OP,Object.assign({itemHeight:M,ref:n,virtual:a},k,{style:Object.assign(Object.assign({},null==s?void 0:s.style),x),prefixCls:C,className:A({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:h,[`${C}-unselectable`]:!v,[`${C}-rtl`]:"rtl"===i},null==s?void 0:s.className,c,O,$),direction:i,checkable:m?t.createElement("span",{className:`${C}-checkbox-inner`}):m,selectable:v,switcherIcon:e=>t.createElement(DP,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:f,treeNodeProps:e,showLine:d}),draggable:I}),g))}));"production"!==process.env.NODE_ENV&&(TP.displayName="Tree");function RP(e,t,n){const{key:o,children:r}=n;e.forEach((function(e){const i=e[o],a=e[r];!1!==t(i,e)&&RP(a||[],t,n)}))}function _P(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let s=0;if(o&&o===r)return[o];if(!o||!r)return[];return RP(t,(e=>{if(2===s)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),0===s)s=1;else if(1===s)return s=2,!1}else 1===s&&a.push(e);return n.includes(e)}),cS(i)),a}function zP(e,t,n){const o=st(t),r=[];return RP(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length}),cS(n)),r}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 HP(t){const{isLeaf:n,expanded:o}=t;return n?e.createElement(AN,null):o?e.createElement(BN,null):e.createElement(WN,null)}function FP(e){let{treeData:t,children:n}=e;return t||uS(n)}const WP=(t,n)=>{var{defaultExpandAll:o,defaultExpandParent:r,defaultExpandedKeys:i}=t,a=BP(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=e.useRef(),l=e.useRef(),[c,u]=e.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,p]=e.useState((()=>(()=>{const{keyEntities:e}=pS(FP(a));let t;return t=o?Object.keys(e):r?JI(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));e.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),e.useEffect((()=>{"expandedKeys"in a&&p(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:f,direction:h}=e.useContext(ii),{prefixCls:g,className:m,showIcon:v=!0,expandAction:b="click"}=a,y=BP(a,["prefixCls","className","showIcon","expandAction"]),x=f("tree",g),C=A(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===h},m);return e.createElement(TP,Object.assign({icon:HP,ref:n,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:x,className:C,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:p=""}=i,f=FP(a),h=Object.assign(Object.assign({},t),{selected:!0}),g=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),m=null==c?void 0:c.shiftKey;let v;o&&g?(v=e,s.current=p,l.current=v,h.selectedNodes=zP(f,v,r)):o&&m?(v=Array.from(new Set([].concat(st(l.current||[]),st(_P({treeData:f,expandedKeys:d,startKey:p,endKey:s.current,fieldNames:r}))))),h.selectedNodes=zP(f,v,r)):(v=[p],s.current=p,l.current=v,h.selectedNodes=zP(f,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,h),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||p(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))},VP=e.forwardRef(WP);"production"!==process.env.NODE_ENV&&(VP.displayName="DirectoryTree");const KP=TP;KP.DirectoryTree=VP,KP.TreeNode=VI;const qP=t=>{const{value:n,filterSearch:o,tablePrefixCls:r,locale:i,onChange:a}=t;return o?e.createElement("div",{className:`${r}-filter-dropdown-search`},e.createElement(qk,{prefix:e.createElement(am,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:n,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},XP=e=>{const{keyCode:t}=e;t===qs.ENTER&&e.stopPropagation()},UP=e.forwardRef(((t,n)=>e.createElement("div",{className:t.className,onClick:e=>e.stopPropagation(),onKeyDown:XP,ref:n},t.children)));function GP(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat(st(t),st(GP(o))))})),t}function YP(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function QP(t){let{filters:n,prefixCls:o,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s}=t;return n.map(((t,n)=>{const l=String(t.value);if(t.children)return{key:l||n,label:t.text,popupClassName:`${o}-dropdown-submenu`,children:QP({filters:t.children,prefixCls:o,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s})};const c=i?$S:Ex,u={key:void 0!==t.value?l:n,label:e.createElement(e.Fragment,null,e.createElement(c,{checked:r.includes(l)}),e.createElement("span",null,t.text))};return a.trim()?"function"==typeof s?s(a,t)?u:null:YP(a,t.text)?u:null:u}))}function ZP(e){return e||[]}"production"!==process.env.NODE_ENV&&(UP.displayName="FilterDropdownMenuWrapper");const JP=t=>{var n,o;const{tablePrefixCls:r,prefixCls:i,column:a,dropdownPrefixCls:s,columnKey:l,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:f,triggerFilter:h,locale:g,children:m,getPopupContainer:v,rootClassName:b}=t,{filterDropdownOpen:y,onFilterDropdownOpenChange:x,filterResetToDefaultFilteredValue:C,defaultFilteredValue:w,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=a,[E,O]=e.useState(!1),$=!(!f||!(null===(n=f.filteredKeys)||void 0===n?void 0:n.length)&&!f.forceFiltered),N=e=>{O(e),null==x||x(e),null==k||k(e)};if("production"!==process.env.NODE_ENV){const e=_o("Table");[["filterDropdownVisible","filterDropdownOpen",S],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange",k]].forEach((t=>{let[n,o,r]=t;e.deprecated(null==r,n,o)}))}const M=null!==(o=null!=y?y:S)&&void 0!==o?o:E,I=null==f?void 0:f.filteredKeys,[P,L]=function(t){const n=e.useRef(t),o=hm();return[()=>n.current,e=>{n.current=e,o()}]}(ZP(I)),j=e=>{let{selectedKeys:t}=e;L(t)},D=(e,t)=>{let{node:n,checked:o}=t;j(u?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};e.useEffect((()=>{E&&j({selectedKeys:ZP(I)})}),[I]);const[T,R]=e.useState([]),_=e=>{R(e)},[z,B]=e.useState(""),H=e=>{const{value:t}=e.target;B(t)};e.useEffect((()=>{E||B("")}),[E]);const F=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||f&&f.filteredKeys?Lt(t,null==f?void 0:f.filteredKeys,!0)?null:void h({column:a,key:l,filteredKeys:t}):null},W=()=>{N(!1),F(P())},V=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&F([]),t&&N(!1),B(""),L(C?(w||[]).map((e=>String(e))):[])},K=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&N(!1),F(P())},q=A({[`${s}-menu-without-submenu`]:(X=a.filters||[],!X.some((e=>{let{children:t}=e;return t})))});var X;const U=e=>{if(e.target.checked){const e=GP(null==a?void 0:a.filters).map((e=>String(e)));L(e)}else L([])},G=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=G({filters:e.children})),o}))},Y=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Y(e))))||[]})};let Q;const{direction:Z,renderEmpty:J}=e.useContext(ii);if("function"==typeof a.filterDropdown)Q=a.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:P(),confirm:K,clearFilters:V,filters:a.filters,visible:M,close:()=>{N(!1)}});else if(a.filterDropdown)Q=a.filterDropdown;else{const t=P()||[],n=()=>{var n;const o=null!==(n=null==J?void 0:J("Table.filter"))&&void 0!==n?n:e.createElement($g,{image:$g.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(a.filters||[]).length)return o;if("tree"===d)return e.createElement(e.Fragment,null,e.createElement(qP,{filterSearch:p,value:z,onChange:H,tablePrefixCls:r,locale:g}),e.createElement("div",{className:`${r}-filter-dropdown-tree`},u?e.createElement($S,{checked:t.length===GP(a.filters).length,indeterminate:t.length>0&&t.length<GP(a.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:U},g.filterCheckall):null,e.createElement(KP,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${s}-menu`,onCheck:D,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:G({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z.trim()?e=>"function"==typeof p?p(z,Y(e)):YP(z,e.title):void 0})));const l=QP({filters:a.filters||[],filterSearch:p,prefixCls:i,filteredKeys:P(),filterMultiple:u,searchValue:z}),c=l.every((e=>null===e));return e.createElement(e.Fragment,null,e.createElement(qP,{filterSearch:p,value:z,onChange:H,tablePrefixCls:r,locale:g}),c?o:e.createElement(Fy,{selectable:!0,multiple:u,prefixCls:`${s}-menu`,className:q,onSelect:j,onDeselect:j,selectedKeys:t,getPopupContainer:v,openKeys:T,onOpenChange:_,items:l}))},o=()=>C?Lt((w||[]).map((e=>String(e))),t,!0):0===t.length;Q=e.createElement(e.Fragment,null,n(),e.createElement("div",{className:`${i}-dropdown-btns`},e.createElement(Tc,{type:"link",size:"small",disabled:o(),onClick:()=>V()},g.filterReset),e.createElement(Tc,{type:"primary",size:"small",onClick:W},g.filterConfirm)))}a.filterDropdown&&(Q=e.createElement(Oy,{selectable:void 0},Q));let ee;return ee="function"==typeof a.filterIcon?a.filterIcon($):a.filterIcon?a.filterIcon:e.createElement(RN,null),e.createElement("div",{className:`${i}-column`},e.createElement("span",{className:`${r}-column-title`},m),e.createElement(oE,{dropdownRender:()=>e.createElement(UP,{className:`${i}-dropdown`},Q),trigger:["click"],open:M,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==I&&L(ZP(I)),N(e),e||a.filterDropdown||!c||W())},getPopupContainer:v,placement:"rtl"===Z?"bottomLeft":"bottomRight",rootClassName:b},e.createElement("span",{role:"button",tabIndex:-1,className:A(`${i}-trigger`,{active:$}),onClick:e=>{e.stopPropagation()}},ee)))},eL=(e,t,n)=>{let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=cP(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:lP(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:lP(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(st(o),st(eL(e.children,t,a))))})),o};function tL(t,n,o,r,i,a,s,l,c){return o.map(((o,u)=>{const d=cP(u,l),{filterOnClose:p=!0,filterMultiple:f=!0,filterMode:h,filterSearch:g}=o;let m=o;if(m.filters||m.filterDropdown){const l=lP(m,d),u=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>e.createElement(JP,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:m,columnKey:l,filterState:u,filterOnClose:p,filterMultiple:f,filterMode:h,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:s,rootClassName:c},uP(o.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:tL(t,n,m.children,r,i,a,s,d,c)})),m}))}const nL=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:s}=r;if(s)t[i]=o||null;else if(Array.isArray(o)){const e=GP(a);t[i]=e.filter((e=>o.includes(String(e))))}else t[i]=null})),t},oL=(e,t,n)=>{const o=t.reduce(((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((o=>{const a=GP(i),s=a.findIndex((e=>String(e)===String(o))),l=-1!==s?a[s]:o;return e[n]&&(e[n]=oL(e[n],t,n)),r(l,e)})))):e}),e);return o},rL=e=>e.flatMap((e=>"children"in e?[e].concat(st(rL(e.children||[]))):[e])),iL=t=>{const{prefixCls:n,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:s,rootClassName:l}=t,c=_o("Table"),u=e.useMemo((()=>rL(r||[])),[r]),[d,p]=e.useState((()=>eL(u,!0))),f=e.useMemo((()=>{const e=eL(u,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(u||[]).map(((e,t)=>lP(e,cP(t))));return d.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=u[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return"production"!==process.env.NODE_ENV&&c(n,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),e}),[u,d]),h=e.useMemo((()=>nL(f)),[f]),g=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),p(t),i(nL(t),t)};return[e=>tL(n,o,e,f,s,g,a,void 0,l),f,h]};var aL=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 sL=10;const lL="ascend",cL="descend",uL=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,dL=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,pL=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:lP(e,t),multiplePriority:uL(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=cP(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat(st(o),st(pL(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:lP(e,a),multiplePriority:uL(e),sortOrder:e.defaultSortOrder}))})),o},fL=(t,n,o,r,i,a,s,l)=>{const c=(n||[]).map(((n,c)=>{const u=cP(c,l);let d=n;if(d.sorter){const l=d.sortDirections||i,c=void 0===d.showSorterTooltip?s:d.showSorterTooltip,p=lP(d,u),f=o.find((e=>{let{key:t}=e;return t===p})),h=f?f.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,h);let m;if(n.sortIcon)m=n.sortIcon({sortOrder:h});else{const n=l.includes(lL)&&e.createElement(wN,{className:A(`${t}-column-sorter-up`,{active:h===lL})}),o=l.includes(cL)&&e.createElement(yN,{className:A(`${t}-column-sorter-down`,{active:h===cL})});m=e.createElement("span",{className:A(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!(!n||!o)})},e.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,o))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=a||{};let x=v;g===cL?x=y:g===lL&&(x=b);const C="object"==typeof c?Object.assign({title:x},c):{title:x};d=Object.assign(Object.assign({},d),{className:A(d.className,{[`${t}-column-sort`]:h}),title:o=>{const r=`${t}-column-sorters`,i=e.createElement("span",{className:`${t}-column-title`},uP(n.title,o)),a=e.createElement("div",{className:r},i,m);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?e.createElement("div",{className:`${r} ${t}-column-sorters-tooltip-target-sorter`},i,e.createElement(Ym,Object.assign({},C),m)):e.createElement(Ym,Object.assign({},C),a):a},onHeaderCell:e=>{var o;const i=(null===(o=n.onHeaderCell)||void 0===o?void 0:o.call(n,e))||{},a=i.onClick,s=i.onKeyDown;i.onClick=e=>{r({column:n,key:p,sortOrder:g,multiplePriority:uL(n)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===qs.ENTER&&(r({column:n,key:p,sortOrder:g,multiplePriority:uL(n)}),null==s||s(e))};const l=((e,t)=>{const n=uP(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(n.title,{}),c=null==l?void 0:l.toString();return h?i["aria-sort"]="ascend"===h?"ascending":"descending":i["aria-label"]=c||"",i.className=A(i.className,`${t}-column-has-sorters`),i.tabIndex=0,n.ellipsis&&(i.title=(null!=l?l:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:fL(t,d.children,o,r,i,a,s,u)})),d}));return c},hL=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},gL=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(hL);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},hL(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t},mL=(e,t,n)=>{const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return dL(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,s=dL(r);if(s&&a){const n=s(e,t,a);if(0!==n)return a===lL?n:-n}}return 0})).map((e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:mL(o,t,n)}):e})):r},vL=(e,t)=>{const n=e.map((e=>{const n=Object.assign({},e);return n.title=uP(e.title,t),"children"in n&&(n.children=vL(n.children,t)),n}));return n},bL=SI(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),yL=TI(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),xL=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${Yt(n)} ${o} ${r}`,u=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Yt(l(o).mul(-1).equal())}\n ${Yt(l(l(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Yt(l(a).mul(-1).equal())} ${Yt(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Yt(n)} 0 ${Yt(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},CL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ki),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},wL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},SL=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:p,tableExpandedRowBg:f,paddingXXS:h,expandIconMarginTop:g,expandIconSize:m,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${Yt(r)} ${a} ${s}`,C=y(h).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Vi(e)),{position:"relative",float:"left",boxSizing:"border-box",width:m,height:m,padding:0,color:"inherit",lineHeight:Yt(m),background:l,border:x,borderRadius:u,transform:`scale(${b})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:r},"&::after":{top:C,bottom:C,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Yt(y(d).mul(-1).equal())} ${Yt(y(p).mul(-1).equal())}`,padding:`${Yt(d)} ${Yt(p)}`}}}},kL=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:p,fontSizeSM:f,tablePaddingHorizontal:h,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:w,controlItemBgHover:S,controlItemBgActive:k,boxShadowSecondary:E,filterDropdownMenuBg:O,calc:$}=e,N=`${n}-dropdown`,M=`${t}-filter-dropdown`,I=`${n}-tree`,P=`${Yt(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(a).mul(-1).equal(),marginInline:`${Yt(a)} ${Yt($(h).div(2).mul(-1).equal())}`,padding:`0 ${Yt(a)}`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},qi(e)),{minWidth:r,backgroundColor:C,borderRadius:g,boxShadow:E,overflow:"hidden",[`${N}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${Yt(s)} 0`,color:x,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${Yt(s)} 0`,paddingInline:s,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:S},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${M}-search`]:{padding:s,borderBottom:P,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Yt($(s).sub(c).equal())} ${Yt(s)}`,overflow:"hidden",borderTop:P}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},EL=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},OL=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Yt(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},$L=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Yt(n)} ${Yt(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Yt(n)} ${Yt(n)}`}}}}},NL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},ML=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:p,tablePaddingHorizontal:f,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(r).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(r).add(h(i).div(4)).add(h(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Yt(h(f).div(4).equal()),[o]:{color:s,fontSize:r,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},IL=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${Yt(r)} ${Yt(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Yt(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Yt(o(r).mul(-1).equal())} ${Yt(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Yt(o(r).mul(-1).equal()),marginInline:`${Yt(o(n).sub(i).equal())} ${Yt(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Yt(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},PL=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},LL=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,p=`${Yt(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Yt(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},jL=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${Yt(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${Yt(r(n).mul(-1).equal())} 0 ${o}`}}}},AL=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,s=`${Yt(o)} ${r} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Yt(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},DL=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:p,motionDurationMid:f,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableFooterTextColor:m,tableFooterBg:v,calc:b}=e,y=`${Yt(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},qi(e)),{fontSize:c,background:u,borderRadius:`${Yt(d)} ${Yt(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Yt(d)} ${Yt(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${Yt(o)} ${Yt(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Yt(o)} ${Yt(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:Yt(b(o).mul(-1).equal()),marginInline:`${Yt(b(i).sub(r).equal())}\n ${Yt(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${Yt(o)} ${Yt(r)}`,color:m,background:v}})}};var TL=Qi("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:p,rowExpandedBg:f,cellPaddingBlock:h,cellPaddingInline:g,cellPaddingBlockMD:m,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:w,headerBorderRadius:S,cellFontSize:k,cellFontSizeMD:E,cellFontSizeSM:O,headerSplitColor:$,fixedHeaderSortActiveBg:N,headerFilterHoverBg:M,filterDropdownBg:I,expandIconBg:P,selectionColumnWidth:L,stickyScrollBarBg:j,calc:A}=e,D=Oi(e,{tableFontSize:k,tableBg:o,tableRadius:S,tablePaddingVertical:h,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:m,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:C,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:I,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:p,zIndexTableFixed:2,zIndexTableSticky:A(2).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:O,tableSelectionColumnWidth:L,tableExpandIconBg:P,tableExpandColumnWidth:A(r).add(A(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:n});return[DL(D),OL(D),jL(D),PL(D),kL(D),xL(D),$L(D),SL(D),jL(D),wL(D),ML(D),EL(D),LL(D),CL(D),IL(D),NL(D),AL(D)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,controlHeight:f,colorTextPlaceholder:h,fontSize:g,fontSizeSM:m,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:w}=e,S=new qr(r).onBackground(n).toHexShortString(),k=new qr(i).onBackground(n).toHexShortString(),E=new qr(t).onBackground(n).toHexShortString(),O=new qr(y),$=new qr(x),N=w/2-b,M=2*N+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:S,headerSortHoverBg:k,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:E,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*m-3*b)/2),headerIconColor:O.clone().setAlpha(O.getAlpha()*C).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*C).toRgbString(),expandIconHalfInner:N,expandIconSize:M,expandIconScale:w/M}}),{unitless:{expandIconScale:!0}});const RL=[],_L=(t,n)=>{var o,r;const{prefixCls:i,className:a,rootClassName:s,style:l,size:c,bordered:u,dropdownPrefixCls:p,dataSource:f,pagination:h,rowSelection:g,rowKey:m="key",rowClassName:v,columns:b,children:y,childrenColumnName:x,onChange:C,getPopupContainer:w,loading:S,expandIcon:k,expandable:E,expandedRowRender:O,expandIconColumnIndex:$,indentSize:N,scroll:M,sortDirections:I,locale:P,showSorterTooltip:L={target:"full-header"},virtual:j}=t,D=_o("Table");"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&D(!("function"==typeof m&&m.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const T=e.useMemo((()=>b||aI(y)),[b,y]),R=gm(e.useMemo((()=>T.some((e=>e.responsive))),[T])),_=e.useMemo((()=>{const e=new Set(Object.keys(R).filter((e=>R[e])));return T.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[T,R]),z=ot(t,["className","style","columns"]),{locale:B=qo,direction:H,table:F,renderEmpty:W,getPrefixCls:V,getPopupContainer:K}=e.useContext(ii),q=jl(c),X=Object.assign(Object.assign({},B.Table),P),U=f||RL,G=V("table",i),Y=V("dropdown",p),[,Q]=Wi(),Z=Ks(G),[J,ee,te]=TL(G,Z),ne=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:$},E),{expandIcon:null!==(o=null==E?void 0:E.expandIcon)&&void 0!==o?o:null===(r=null==F?void 0:F.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:oe="children"}=ne,re=e.useMemo((()=>U.some((e=>null==e?void 0:e[oe]))?"nest":O||(null==E?void 0:E.expandedRowRender)?"row":null),[U]),ie={body:e.useRef()},ae=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(G),se=e.useRef(null),le=e.useRef(null);sP(n,(()=>Object.assign(Object.assign({},le.current),{nativeElement:se.current})));const ce=e.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[ue]=((t,n,o)=>{const r=e.useRef({});return[function(e){var i;if(!r.current||r.current.data!==t||r.current.childrenColumnName!==n||r.current.getRowKey!==o){const a=new Map;function s(e){e.forEach(((e,t)=>{const r=o(e,t);a.set(r,e),e&&"object"==typeof e&&n in e&&s(e[n]||[])}))}s(t),r.current={data:t,childrenColumnName:n,kvMap:a,getRowKey:o}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(e)}]})(U,oe,ce),de={},pe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i,a;const s=Object.assign(Object.assign({},de),e);n&&(null===(o=de.resetPagination)||void 0===o||o.call(de),(null===(r=s.pagination)||void 0===r?void 0:r.current)&&(s.pagination.current=1),h&&(null===(i=h.onChange)||void 0===i||i.call(h,1,null===(a=s.pagination)||void 0===a?void 0:a.pageSize))),M&&!1!==M.scrollToFirstRowOnChange&&ie.body.current&&Vs(0,{getContainer:()=>ie.body.current}),null==C||C(s.pagination,s.filters,s.sorter,{currentDataSource:oL(mL(U,s.sorterStates,oe),s.filterStates,oe),action:t})},[fe,he,ge,me]=(t=>{const{prefixCls:n,mergedColumns:o,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:s}=t,[l,c]=e.useState(pL(o,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,o)=>{const r=cP(o,t);if(n.push(lP(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,st(t))}})),n},d=e.useMemo((()=>{let e=!0;const t=pL(o,!1);if(!t.length){const e=u(o);return l.filter((t=>{let{key:n}=t;return e.includes(n)}))}const n=[];function r(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),n}),[o,l]),p=e.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),f=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(st(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),s(gL(t),t)};return[e=>fL(n,e,d,f,r,i,a),d,p,()=>gL(d)]})({prefixCls:G,mergedColumns:_,onSorterChange:(e,t)=>{pe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:I||["ascend","descend"],tableLocale:X,showSorterTooltip:L}),ve=e.useMemo((()=>mL(U,he,oe)),[U,he]);de.sorter=me(),de.sorterStates=he;const[be,ye,xe]=iL({prefixCls:G,locale:X,dropdownPrefixCls:Y,mergedColumns:_,onFilterChange:(e,t)=>{pe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||K,rootClassName:A(s,Z)}),Ce=oL(ve,ye,oe);de.filters=xe,de.filterStates=ye;const we=e.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,xe]),[Se]=(t=>[e.useCallback((e=>vL(e,t)),[t])])(we),[ke,Ee]=function(e,t,n){const o=n&&"object"==typeof n?n:{},{total:r=0}=o,i=aL(o,["total"]),[a,s]=d((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:sL}))),l=jO(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(e,t)=>{s({current:null!=e?e:1,pageSize:t||l.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),u(e,o),t(e,o||(null==l?void 0:l.pageSize))}}),u]}(Ce.length,((e,t)=>{pe({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")}),h);de.pagination=!1===h?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(ke,h),de.resetPagination=Ee;const Oe=e.useMemo((()=>{if(!1===h||!ke.pageSize)return Ce;const{current:e=1,total:t,pageSize:n=sL}=ke;return"production"!==process.env.NODE_ENV&&D(e>0,"usage","`current` should be positive number."),Ce.length<t?Ce.length>n?("production"!==process.env.NODE_ENV&&D(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ce.slice((e-1)*n,e*n)):Ce:Ce.slice((e-1)*n,e*n)}),[!!h,Ce,null==ke?void 0:ke.current,null==ke?void 0:ke.pageSize,null==ke?void 0:ke.total]),[$e,Ne]=aP({prefixCls:G,data:Ce,pageData:Oe,getRowKey:ce,getRecordByKey:ue,expandType:re,childrenColumnName:oe,locale:X,getPopupContainer:w||K},g);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||k||function(t){return n=>{const{prefixCls:o,onExpand:r,record:i,expanded:a,expandable:s}=n,l=`${o}-row-expand-icon`;return e.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:A(l,{[`${l}-spaced`]:!s,[`${l}-expanded`]:s&&a,[`${l}-collapsed`]:s&&!a}),"aria-label":a?t.collapse:t.expand,"aria-expanded":a})}}(X),"nest"===re&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=g?1:0:ne.expandIconColumnIndex>0&&g&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof N?N:15);const Me=e.useCallback((e=>Se($e(be(fe(e))))),[fe,be,$e]);let Ie,Pe,Le;if(!1!==h&&(null==ke?void 0:ke.total)){let t;t=ke.size?ke.size:"small"===q||"middle"===q?"small":void 0;const n=n=>e.createElement(u$,Object.assign({},ke,{className:A(`${G}-pagination ${G}-pagination-${n}`,ke.className),size:t})),o="rtl"===H?"left":"right",{position:r}=ke;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),t=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||t||i||(Pe=n(o)),e&&(Ie=n(e.toLowerCase().replace("top",""))),t&&(Pe=n(t.toLowerCase().replace("bottom","")))}else Pe=n(o)}"boolean"==typeof S?Le={spinning:S}:"object"==typeof S&&(Le=Object.assign({spinning:!0},S));const je=A(te,Z,`${G}-wrapper`,null==F?void 0:F.className,{[`${G}-wrapper-rtl`]:"rtl"===H},a,s,ee),Ae=Object.assign(Object.assign({},null==F?void 0:F.style),l),De=void 0!==(null==P?void 0:P.emptyText)?P.emptyText:(null==W?void 0:W("Table"))||e.createElement(Ng,{componentName:"Table"}),Te=j?yL:bL,Re={},_e=e.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:o,paddingSM:r}=Q,i=Math.floor(e*t);switch(q){case"large":return 2*n+i;case"small":return 2*o+i;default:return 2*r+i}}),[Q,q]);return j&&(Re.listItemHeight=_e),J(e.createElement("div",{ref:se,className:je,style:Ae},e.createElement(S$,Object.assign({spinning:!1},Le),Ie,e.createElement(Te,Object.assign({},Re,z,{ref:le,columns:_,direction:H,expandable:ne,prefixCls:G,className:A({[`${G}-middle`]:"middle"===q,[`${G}-small`]:"small"===q,[`${G}-bordered`]:u,[`${G}-empty`]:0===U.length},te,Z,ee),data:Oe,rowKey:ce,rowClassName:(e,t,n)=>{let o;return o=A("function"==typeof v?v(e,t,n):v),A({[`${G}-row-selected`]:Ne.has(ce(e,t))},o)},emptyText:De,internalHooks:hM,internalRefs:ie,transformColumns:Me,getContainerWidth:ae})),Pe)))};var zL=e.forwardRef(_L);const BL=(t,n)=>{const o=e.useRef(0);return o.current+=1,e.createElement(zL,Object.assign({},t,{ref:n,_renderTimes:o.current}))},HL=e.forwardRef(BL);HL.SELECTION_COLUMN=eP,HL.EXPAND_COLUMN=fM,HL.SELECTION_ALL=tP,HL.SELECTION_INVERT=nP,HL.SELECTION_NONE=oP,HL.Column=e=>null,HL.ColumnGroup=e=>null,HL.Summary=TM,"production"!==process.env.NODE_ENV&&(HL.displayName="Table");const FL=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return Oi(e,{tagFontSize:r,tagLineHeight:Yt(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},WL=e=>({defaultBg:new qr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var VL=Qi("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:i}=e,a=i(o).sub(n).equal(),s=i(t).sub(n).equal();return{[r]:Object.assign(Object.assign({},qi(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(FL(e))),WL),KL=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 qL=e.forwardRef(((t,n)=>{const{prefixCls:o,style:r,className:i,checked:a,onChange:s,onClick:l}=t,c=KL(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=e.useContext(ii),p=u("tag",o),[f,h,g]=VL(p),m=A(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},null==d?void 0:d.className,i,h,g);return f(e.createElement("span",Object.assign({},c,{ref:n,style:Object.assign(Object.assign({},r),null==d?void 0:d.style),className:m,onClick:e=>{null==s||s(!a),null==l||l(e)}})))}));var XL=Ji(["Tag","preset"],(e=>(e=>ea(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(FL(e))),WL);const UL=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var GL=Ji(["Tag","status"],(e=>{const t=FL(e);return[UL(t,"success","Success"),UL(t,"processing","Info"),UL(t,"error","Error"),UL(t,"warning","Warning")]}),WL),YL=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 QL=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,rootClassName:i,style:a,children:s,icon:l,color:c,onClose:u,bordered:d=!0,visible:p}=t,f=YL(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:g,tag:m}=e.useContext(ii),[v,b]=e.useState(!0),y=ot(f,["closeIcon","closable"]);if("production"!==process.env.NODE_ENV){_o("Tag").deprecated(!("visible"in t),"visible","visible && <Tag />")}e.useEffect((()=>{void 0!==p&&b(p)}),[p]);const x=qm(c),C=function(e){return Km.includes(e)}(c),w=x||C,S=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},null==m?void 0:m.style),a),k=h("tag",o),[E,O,$]=VL(k),N=A(k,null==m?void 0:m.className,{[`${k}-${c}`]:w,[`${k}-has-color`]:c&&!w,[`${k}-hidden`]:!v,[`${k}-rtl`]:"rtl"===g,[`${k}-borderless`]:!d},r,i,O,$),M=e=>{e.stopPropagation(),null==u||u(e),e.defaultPrevented||b(!1)},[,I]=Md(Ed(t),Ed(m),{closable:!1,closeIconRender:t=>Bs(t,e.createElement("span",{className:`${k}-close-icon`,onClick:M},t),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),M(t)},className:A(null==e?void 0:e.className,`${k}-close-icon`)})))}),P="function"==typeof f.onClick||s&&"a"===s.type,L=l||null,j=L?e.createElement(e.Fragment,null,L,s&&e.createElement("span",null,s)):s,D=e.createElement("span",Object.assign({},y,{ref:n,className:N,style:S}),j,I,x&&e.createElement(XL,{key:"preset",prefixCls:k}),C&&e.createElement(GL,{key:"status",prefixCls:k}));return E(P?e.createElement(Ll,{component:"Tag"},D):D)})),ZL=QL;"production"!==process.env.NODE_ENV&&(ZL.displayName="Tag"),ZL.CheckableTag=qL;var JL=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 ej={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},tj=e.forwardRef(((t,n)=>{const{style:o,noStyle:r,disabled:i,tabIndex:a=0}=t,s=JL(t,["style","noStyle","disabled","tabIndex"]);let l={};return r||(l=Object.assign({},ej)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),e.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},s,{onKeyDown:e=>{const{keyCode:t}=e;t===qs.ENTER&&e.preventDefault()},onKeyUp:e=>{const{keyCode:n}=e,{onClick:o}=t;n===qs.ENTER&&o&&o()},style:l}))})),nj=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},oj=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Vi(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"}}})}},rj=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:gr[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}}),ij=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 - ${Yt(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"}}}},aj=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),sj=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"}},nj(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}}}),rj(e)),oj(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Vi(e)),{marginInlineStart:e.marginXXS})}),ij(e)),aj(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 lj=Qi("Typography",(e=>[sj(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const cj=t=>{const{prefixCls:n,"aria-label":o,className:r,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:p,component:f,enterIcon:h=e.createElement(PN,null)}=t,g=e.useRef(null),m=e.useRef(!1),v=e.useRef(),[b,y]=e.useState(c);e.useEffect((()=>{y(c)}),[c]),e.useEffect((()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{u(b.trim())},[C,w,S]=lj(n),k=A(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${f}`]:!!f},r,w,S);return C(e.createElement("div",{className:k,style:i},e.createElement(Kk,{ref:g,maxLength:s,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||m.current||n||o||r||i||(t===qs.ENTER?(x(),null==p||p()):t===qs.ESC&&d())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{x()},"aria-label":o,rows:1,autoSize:l}),null!==h?Hs(h,{className:`${n}-edit-content-confirm`}):null))};var uj=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()}},dj={"text/plain":"Text","text/html":"Url",default:"Text"};var pj=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=uj(),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=dj[t.format]||dj.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},fj=O(pj),hj=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 gj(t,n){return e.useMemo((()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"==typeof t?t:null)]}),[t])}var mj=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 vj=e.forwardRef(((t,n)=>{const{prefixCls:o,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=t,d=mj(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:f,typography:h}=e.useContext(ii),g=null!=c?c:f,m=s?de(n,s):n,v=p("typography",o);if("production"!==process.env.NODE_ENV){_o("Typography").deprecated(!s,"setContentRef","ref")}const[b,y,x]=lj(v),C=A(v,null==h?void 0:h.className,{[`${v}-rtl`]:"rtl"===g},i,a,y,x),w=Object.assign(Object.assign({},null==h?void 0:h.style),u);return b(e.createElement(r,Object.assign({className:C,style:w,ref:m},d),l))}));function bj(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function yj(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(vj.displayName="Typography");const xj=e=>["string","number"].includes(typeof e),Cj=t=>{let{prefixCls:n,copied:o,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=t;const d=bj(a),p=bj(s),{copied:f,copy:h}=null!=r?r:{},g=o?f:h,m=yj(d[o?1:0],g),v="string"==typeof m?m:g;return e.createElement(Ym,{title:m},e.createElement(tj,{className:A(`${n}-copy`,{[`${n}-copy-success`]:o,[`${n}-copy-icon-only`]:i}),onClick:c,"aria-label":v,tabIndex:l},o?yj(p[1],e.createElement(em,null),!0):yj(p[0],u?e.createElement(Gs,null):e.createElement(EN,null),!0)))},wj=e.forwardRef(((t,n)=>{let{style:o,children:r}=t;const i=e.useRef(null);return e.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),e.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)"},o)},r)}));function Sj(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+(xj(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 kj=0,Ej=4,Oj={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function $j(t){const{enableMeasure:n,width:o,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=t,u=e.useMemo((()=>H(r)),[r]),d=e.useMemo((()=>(e=>e.reduce(((e,t)=>e+(xj(t)?String(t).length:1)),0))(u)),[r]),p=e.useMemo((()=>i(u,!1)),[r]),[f,h]=e.useState(null),g=e.useRef(null),m=e.useRef(null),v=e.useRef(null),b=e.useRef(null),y=e.useRef(null),[x,C]=e.useState(!1),[w,S]=e.useState(kj),[k,E]=e.useState(0),[O,$]=e.useState(null);nn((()=>{S(n&&o&&d?1:kj)}),[o,r,a,n,u]),nn((()=>{var e,t,n,o;if(1===w){S(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;$(e)}else if(2===w){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(r?3:Ej),h(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);E(u+1),c(r)}}),[w]);const N=f?Math.ceil((f[0]+f[1])/2):0;nn((()=>{var e;const[t,n]=f||[0,0];if(t!==n){const o=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>k;let r=N;n-t==1&&(r=o?t:n),h(o?[t,r]:[r,n])}}),[f,N]);const M=e.useMemo((()=>{if(!n)return i(u,!1);if(3!==w||!f||f[0]!==f[1]){const t=i(u,!1);return[Ej,kj].includes(w)?t:e.createElement("span",{style:Object.assign(Object.assign({},Oj),{WebkitLineClamp:a})},t)}return i(s?u:Sj(u,f[0]),x)}),[s,w,f,u].concat(st(l))),I={width:o,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return e.createElement(e.Fragment,null,M,2===w&&e.createElement(e.Fragment,null,e.createElement(wj,{style:Object.assign(Object.assign(Object.assign({},I),Oj),{WebkitLineClamp:a}),ref:v},p),e.createElement(wj,{style:Object.assign(Object.assign(Object.assign({},I),Oj),{WebkitLineClamp:a-1}),ref:b},p),e.createElement(wj,{style:Object.assign(Object.assign(Object.assign({},I),Oj),{WebkitLineClamp:1}),ref:y},i([],!0))),3===w&&f&&f[0]!==f[1]&&e.createElement(wj,{style:Object.assign(Object.assign({},I),{top:400}),ref:g},i(Sj(u,N),!0)),1===w&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const Nj=t=>{let{enableEllipsis:n,isEllipsis:o,children:r,tooltipProps:i}=t;return(null==i?void 0:i.title)&&n?e.createElement(Ym,Object.assign({open:!!o&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(Nj.displayName="EllipsisTooltip");var Mj=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 Ij=e.forwardRef(((t,n)=>{var r;const{prefixCls:i,className:s,style:c,type:d,disabled:p,children:f,ellipsis:h,editable:g,copyable:m,component:v,title:b}=t,y=Mj(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:C}=e.useContext(ii),[w]=Zo("Text"),S=e.useRef(null),k=e.useRef(null),E=x("typography",i),O=ot(y,["mark","code","delete","underline","strong","keyboard","italic"]),[$,N]=gj(g),[M,I]=wi(!1,{value:N.editing}),{triggerType:P=["icon"]}=N,L=e=>{var t;e&&(null===(t=N.onStart)||void 0===t||t.call(N)),I(e)},j=(e=>{const t=a();return l((()=>{t.current=e})),t.current})(M);nn((()=>{var e;!M&&j&&(null===(e=k.current)||void 0===e||e.focus())}),[M]);const D=e=>{null==e||e.preventDefault(),L(!0)},T=e=>{var t;null===(t=N.onChange)||void 0===t||t.call(N,e),L(!1)},R=()=>{var e;null===(e=N.onCancel)||void 0===e||e.call(N),L(!1)},[_,z]=gj(m),{copied:B,copyLoading:F,onClick:W}=(t=>{let{copyConfig:n,children:o}=t;const[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=e.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};return n.format&&(u.format=n.format),e.useEffect((()=>c),[]),{copied:r,copyLoading:a,onClick:yi((e=>hj(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),s(!0);try{const r="function"==typeof n.text?yield n.text():n.text;fj(r||String(o)||"",u),s(!1),i(!0),c(),l.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw s(!1),e}}))))}})({copyConfig:z,children:f}),[V,K]=e.useState(!1),[q,X]=e.useState(!1),[U,G]=e.useState(!1),[Y,Q]=e.useState(!1),[Z,J]=e.useState(!0),[ee,te]=gj(h,{expandable:!1,symbol:e=>e?null==w?void 0:w.collapse:null==w?void 0:w.expand}),[ne,oe]=wi(te.defaultExpanded||!1,{value:te.expanded}),re=ee&&(!ne||"collapsible"===te.expandable),{rows:ie=1}=te,ae=e.useMemo((()=>re&&(void 0!==te.suffix||te.onEllipsis||te.expandable||$||_)),[re,te,$,_]);nn((()=>{ee&&!ae&&(K(Pd("webkitLineClamp")),X(Pd("textOverflow")))}),[ae,ee]);const[se,le]=e.useState(re),ce=e.useMemo((()=>!ae&&(1===ie?q:V)),[ae,q,V]);nn((()=>{le(ce&&re)}),[ce,re]);const ue=re&&(se?Y:U),pe=re&&1===ie&&se,fe=re&&ie>1&&se,[he,ge]=e.useState(0),me=e=>{var t;G(e),U!==e&&(null===(t=te.onEllipsis)||void 0===t||t.call(te,e))};e.useEffect((()=>{const e=S.current;if(ee&&se&&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&&Q(t)}}),[ee,se,f,fe,Z,he]),e.useEffect((()=>{const e=S.current;if("undefined"==typeof IntersectionObserver||!e||!se||!re)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[se,re]);const ve=((e,t,n)=>u((()=>!0===e?{title:null!=t?t:n}:o(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(te.tooltip,N.text,f),be=e.useMemo((()=>{if(ee&&!se)return[N.text,f,b,ve.title].find(xj)}),[ee,se,b,ve.title,ue]);if(M)return e.createElement(cj,{value:null!==(r=N.text)&&void 0!==r?r:"string"==typeof f?f:"",onSave:T,onCancel:R,onEnd:N.onEnd,prefixCls:E,className:s,style:c,direction:C,component:v,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const ye=()=>{const{expandable:t,symbol:n}=te;return t?e.createElement(tj,{key:"expand",className:`${E}-${ne?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;oe(t.expanded),null===(n=te.onExpand)||void 0===n||n.call(te,e,t)})(e,{expanded:!ne}),"aria-label":ne?w.collapse:null==w?void 0:w.expand},"function"==typeof n?n(ne):n):null},xe=()=>{if(!$)return;const{icon:t,tooltip:n,tabIndex:o}=N,r=H(n)[0]||(null==w?void 0:w.edit),i="string"==typeof r?r:"";return P.includes("icon")?e.createElement(Ym,{key:"edit",title:!1===n?"":r},e.createElement(tj,{ref:k,className:`${E}-edit`,onClick:D,"aria-label":i,tabIndex:o},t||e.createElement(NN,{role:"button"}))):null},Ce=t=>[t&&ye(),xe(),_?e.createElement(Cj,Object.assign({key:"copy"},z,{prefixCls:E,copied:B,locale:w,onCopy:W,loading:F,iconOnly:null==f})):null];return e.createElement(nt,{onResize:e=>{let{offsetWidth:t}=e;ge(t)},disabled:!re},(o=>e.createElement(Nj,{tooltipProps:ve,enableEllipsis:re,isEllipsis:ue},e.createElement(vj,Object.assign({className:A({[`${E}-${d}`]:d,[`${E}-disabled`]:p,[`${E}-ellipsis`]:ee,[`${E}-ellipsis-single-line`]:pe,[`${E}-ellipsis-multiple-line`]:fe},s),prefixCls:i,style:Object.assign(Object.assign({},c),{WebkitLineClamp:fe?ie:void 0}),component:v,ref:de(o,S,n),direction:C,onClick:P.includes("text")?D:void 0,"aria-label":null==be?void 0:be.toString(),title:b},O),e.createElement($j,{enableMeasure:re&&!se,text:f,rows:ie,width:he,onEllipsis:me,expanded:ne,miscDeps:[B,ne,F,$,_]},((n,o)=>function(t,n){let{mark:o,code:r,underline:i,delete:a,strong:s,keyboard:l,italic:c}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",s),d("u",i),d("del",a),d("code",r),d("mark",o),d("kbd",l),d("i",c),u}(t,e.createElement(e.Fragment,null,n.length>0&&o&&!ne&&be?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!ne&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),te.suffix,Ce(t)])(o)))))))))}));var Pj=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 Lj=e.forwardRef(((t,n)=>{var{ellipsis:o,rel:r}=t,i=Pj(t,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=_o("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof o,"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,e.createElement(Ij,Object.assign({},a,{ref:n,ellipsis:!!o,component:"a"}))})),jj=e.forwardRef(((t,n)=>e.createElement(Ij,Object.assign({ref:n},t,{component:"div"}))));var Aj=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 Dj=(t,n)=>{var{ellipsis:o}=t,r=Aj(t,["ellipsis"]);const i=e.useMemo((()=>o&&"object"==typeof o?ot(o,["expandable","rows"]):o),[o]);if("production"!==process.env.NODE_ENV){const e=_o("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof o||!o||!("expandable"in o)&&!("rows"in o),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return e.createElement(Ij,Object.assign({ref:n},r,{ellipsis:i,component:"span"}))};var Tj=e.forwardRef(Dj),Rj=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 _j=[1,2,3,4,5],zj=e.forwardRef(((t,n)=>{const{level:o=1}=t,r=Rj(t,["level"]);if("production"!==process.env.NODE_ENV){const e=_o("Typography.Title");"production"!==process.env.NODE_ENV&&e(_j.includes(o),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=_j.includes(o)?`h${o}`:"h1";return e.createElement(Ij,Object.assign({ref:n},r,{component:i}))})),Bj=vj;function Hj(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))}}Bj.Text=Tj,Bj.Link=Lj,Bj.Title=zj,Bj.Paragraph=jj;Hj(".placeHolder {\n line-height: normal;\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n left: 11px;\n color: #000000;\n z-index: 1 !important;\n}\n.requiredText {\n opacity: 60%;\n color: #686869 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n.star {\n color: rgba(255, 40, 25, 1);\n display: inline-block;\n transform: translateX(1.5px);\n}\n\n.appInput {\n font-size: var(--font-14);\n font-weight: 500;\n position: relative;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\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.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var Fj=function(e){var t=e.className,n=e.label,o=e.name,r=e.value,i=e.dataTestId,s=e.type,c=e.id,u=e.disabled,p=e.handleChange,f=e.onClick,h=e.defaultValue,g=e.onPressEnter,m=e.isAutoFocus,v=e.triggerFocus,b=e.isOptional,y=e.errorMessage,x=e.suffixIcon,C=e.prefixIcon,w=e.required,S=E(e,["className","label","name","value","dataTestId","type","id","disabled","handleChange","onClick","defaultValue","onPressEnter","isAutoFocus","triggerFocus","isOptional","errorMessage","suffixIcon","prefixIcon","required"]),O=a(null),$=d(r||""),N=$[0],M=$[1],I=d(!1),P=I[0],j=I[1];l((function(){m&&O.current&&O.current.focus()}),[v,m]),l((function(){void 0!==r&&M(r)}),[r]);var A=b?"".concat(n," (optional)"):n;return L.jsxs("div",{className:"appInput ".concat(t),children:[w&&!P&&!N&&L.jsxs("div",{className:"placeHolder",onClick:function(){var e;return null===(e=O.current)||void 0===e?void 0:e.focus()},children:[L.jsx("label",{className:"requiredText",htmlFor:c,children:A}),L.jsx("span",{className:"star",children:"*"})]}),L.jsx(qk,k({type:s,"data-test-id":i,id:c,disabled:u,name:o,className:"input",value:N,onChange:function(e){M(e.target.value),j(e.target.value.length>0),null==p||p(e)},onClick:f,defaultValue:h,onPressEnter:g,placeholder:"".concat(w?"":A),ref:O,prefix:C&&C,suffix:x&&x},S)),y&&L.jsx("div",{className:"error",children:y})]})};Hj(".appButton {\n width: max-content;\n\n .ant-btn {\n padding: 12px;\n height: unset;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");var Wj=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 L.jsx("div",{className:"appButton ".concat(o),children:L.jsx(Tc,{disabled:s,type:t,className:["customBtn",i?"btn-icon":"","right"===l?"iconRight":""].join(" "),size:n,onClick:r,icon:i,loading:c,children:a})})};Hj('.sideBar {\n height: 100vh;\n width: max-content;\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 &::after {\n display: none;\n }\n &::before {\n display: none;\n }\n }\n }\n }\n}\n\n.sideBarHead {\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 Vj=LO.Sider,Kj=function(e){var t=e.links,n=e.sideBarHead,o=e.footerLinks,r=e.className,i=e.activeLink,a=function(e){e&&(window.location.href=e)},s=t.map((function(e){return{key:e.path||e.label,icon:e.path===i&&e.activeIcon?e.activeIcon:e.icon,className:e.path===i?"active":"",label:L.jsxs("span",{onClick:function(){return function(e,t){t?t():a(e)}(e.path,e.onClick)},children:[L.jsx("span",{children:e.label}),e.tag&&L.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==o?void 0:o.map((function(e){return{key:e.path,icon:e.path===i&&e.activeIcon?e.activeIcon:e.icon,className:e.path===i?"active":"",label:L.jsx("span",{onClick:function(){return a(e.path)},children:e.label})}}));return L.jsx("div",{className:"sideBar ".concat(r),children:L.jsxs(Vj,{className:"sider",children:[L.jsx("div",{className:"sideBarHead",children:n}),L.jsx(Fy,{mode:"inline",className:"menu",items:s}),o&&L.jsx("div",{className:"footer",children:L.jsx(Fy,{mode:"inline",items:l})})]})})};Hj(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\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");var qj=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,d=e.className,p=e.error;return L.jsxs("div",{className:"appTextArea ".concat(d),children:[L.jsx(qk.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}),p&&L.jsx("div",{className:"error",children:p})]})};Hj(".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 Xj=function(e){var t=e.className,n=e.items,o=e.handleChange,r=e.defaultActiveKey,i=e.activeKey;return L.jsx("div",{className:"appTab ".concat(t),children:L.jsx(HC,{defaultActiveKey:r,activeKey:i,items:n,onChange:o,className:"tab"})})},Uj={searchIcon:L.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),L.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:L.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.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:L.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.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:L.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),L.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:L.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),L.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"}),L.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"}),L.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:L.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.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"})}),iconHiddenIcon:L.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M23.0139 11.7722C22.982 11.6991 22.202 9.96938 20.4601 8.2275C18.8439 6.61313 16.067 4.6875 12.0001 4.6875C7.93323 4.6875 5.15636 6.61313 3.54011 8.2275C1.79823 9.96938 1.01823 11.6962 0.986357 11.7722C0.954306 11.8442 0.937744 11.9221 0.937744 12.0009C0.937744 12.0798 0.954306 12.1577 0.986357 12.2297C1.01823 12.3019 1.79823 14.0316 3.54011 15.7734C5.15636 17.3878 7.93323 19.3125 12.0001 19.3125C16.067 19.3125 18.8439 17.3878 20.4601 15.7734C22.202 14.0316 22.982 12.3047 23.0139 12.2297C23.0459 12.1577 23.0625 12.0798 23.0625 12.0009C23.0625 11.9221 23.0459 11.8442 23.0139 11.7722ZM12.0001 18.1875C9.05823 18.1875 6.48948 17.1169 4.36417 15.0066C3.47324 14.1211 2.71933 13.1078 2.12729 12C2.71916 10.8924 3.47309 9.87932 4.36417 8.99438C6.48948 6.88313 9.05823 5.8125 12.0001 5.8125C14.942 5.8125 17.5107 6.88313 19.636 8.99438C20.5271 9.87932 21.2811 10.8924 21.8729 12C21.2757 13.1447 18.2814 18.1875 12.0001 18.1875ZM12.0001 7.6875C11.1472 7.6875 10.3134 7.94042 9.60421 8.41429C8.89502 8.88815 8.34228 9.56167 8.01588 10.3497C7.68947 11.1377 7.60407 12.0048 7.77047 12.8413C7.93687 13.6779 8.3476 14.4463 8.95071 15.0494C9.55382 15.6525 10.3222 16.0632 11.1588 16.2296C11.9953 16.396 12.8624 16.3106 13.6504 15.9842C14.4384 15.6578 15.112 15.1051 15.5858 14.3959C16.0597 13.6867 16.3126 12.8529 16.3126 12C16.3111 10.8567 15.8563 9.76067 15.0479 8.95225C14.2394 8.14382 13.1434 7.68899 12.0001 7.6875ZM12.0001 15.1875C11.3697 15.1875 10.7534 15.0006 10.2292 14.6503C9.70505 14.3001 9.2965 13.8022 9.05524 13.2198C8.81399 12.6374 8.75086 11.9965 8.87385 11.3781C8.99684 10.7598 9.30042 10.1919 9.7462 9.7461C10.192 9.30032 10.7599 8.99674 11.3783 8.87375C11.9966 8.75076 12.6375 8.81388 13.2199 9.05513C13.8023 9.29639 14.3002 9.70494 14.6504 10.2291C15.0007 10.7533 15.1876 11.3696 15.1876 12C15.1876 12.8454 14.8518 13.6561 14.254 14.2539C13.6562 14.8517 12.8455 15.1875 12.0001 15.1875Z",fill:"black"}),L.jsx("path",{d:"M21 3L3 21",stroke:"black","stroke-linecap":"round"})]})};Hj(".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 Gj=function(e){var t=e.text,n=void 0===t?"Back":t,o=e.href,r=e.className,i=e.backIcon,a=e.onClick;return L.jsxs("div",{className:"backArrow ".concat(r),onClick:function(e){a?a(e):o&&(window.location.href=o)},children:[L.jsx("span",{className:"icon",children:i||Uj.backArrow}),n&&L.jsx("span",{className:"text",children:n})]})};Hj(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");var Yj=function(e){var t=e.content,n=e.children,o=e.className,r=e.ribbon,i=E(e,["content","children","className","ribbon"]);return L.jsx("div",{className:"appBadge ".concat(o),children:L.jsx(Nv,k({count:t},i,{children:r?L.jsx("div",{className:"ribbonWrapper",children:L.jsx(Nv.Ribbon,{text:r.text,color:r.color,placement:r.placement,children:n})}):n}))})};Hj(".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: normal;\n }\n}\n"),Bj.Text;var Qj=function(e){var t=e.className,n=e.text,o=e.number,r=void 0!==o?o.toString().padStart(2,"0"):"";return L.jsxs("div",{className:"overViewCard ".concat(t),children:[L.jsx("span",{className:"text",children:n}),L.jsx("span",{children:r})]})};
27
- /*!
28
- * @kurkle/color v0.3.4
29
- * https://github.com/kurkle/color#readme
30
- * (c) 2024 Jukka Kurkela
31
- * Released under the MIT License
32
- */function Zj(e){return e+.5|0}const Jj=(e,t,n)=>Math.max(Math.min(e,n),t);function eA(e){return Jj(Zj(2.55*e),0,255)}function tA(e){return Jj(Zj(255*e),0,255)}function nA(e){return Jj(Zj(e/2.55)/100,0,1)}function oA(e){return Jj(Zj(100*e),0,100)}const rA={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},iA=[..."0123456789ABCDEF"],aA=e=>iA[15&e],sA=e=>iA[(240&e)>>4]+iA[15&e],lA=e=>(240&e)>>4==(15&e);function cA(e){var t=(e=>lA(e.r)&&lA(e.g)&&lA(e.b)&&lA(e.a))(e)?aA:sA;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const uA=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function dA(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 pA(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 fA(e,t,n){const o=dA(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 hA(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 gA(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(tA)}function mA(e,t,n){return gA(dA,e,t,n)}function vA(e){return(e%360+360)%360}function bA(e){const t=uA.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?eA(+t[5]):tA(+t[5]));const r=vA(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return gA(fA,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return gA(pA,e,t,n)}(r,i,a):mA(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const yA={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"},xA={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 CA;function wA(e){CA||(CA=function(){const e={},t=Object.keys(xA),n=Object.keys(yA);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,yA[i]);i=parseInt(xA[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),CA.transparent=[0,0,0,0]);const t=CA[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const SA=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const kA=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,EA=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function OA(e,t,n){if(e){let o=hA(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=mA(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function $A(e,t){return e?Object.assign(t||{},e):e}function NA(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=tA(e[3]))):(t=$A(e,{r:0,g:0,b:0,a:1})).a=tA(t.a),t}function MA(e){return"r"===e.charAt(0)?function(e){const t=SA.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?eA(e):Jj(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?eA(n):Jj(n,0,255)),o=255&(t[4]?eA(o):Jj(o,0,255)),r=255&(t[6]?eA(r):Jj(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):bA(e)}class IA{constructor(e){if(e instanceof IA)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=NA(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*rA[o[1]],g:255&17*rA[o[2]],b:255&17*rA[o[3]],a:5===i?17*rA[o[4]]:255}:7!==i&&9!==i||(r={r:rA[o[1]]<<4|rA[o[2]],g:rA[o[3]]<<4|rA[o[4]],b:rA[o[5]]<<4|rA[o[6]],a:9===i?rA[o[7]]<<4|rA[o[8]]:255})),n=r||wA(e)||MA(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=$A(this._rgb);return e&&(e.a=nA(e.a)),e}set rgb(e){this._rgb=NA(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${nA(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?cA(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=hA(e),n=t[0],o=oA(t[1]),r=oA(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${nA(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=EA(nA(e.r)),r=EA(nA(e.g)),i=EA(nA(e.b));return{r:tA(kA(o+n*(EA(nA(t.r))-o))),g:tA(kA(r+n*(EA(nA(t.g))-r))),b:tA(kA(i+n*(EA(nA(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new IA(this.rgb)}alpha(e){return this._rgb.a=tA(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=Zj(.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 OA(this._rgb,2,e),this}darken(e){return OA(this._rgb,2,-e),this}saturate(e){return OA(this._rgb,1,e),this}desaturate(e){return OA(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=hA(e);n[0]=vA(n[0]+t),n=mA(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 PA(){}const LA=(()=>{let e=0;return()=>e++})();function jA(e){return null==e}function AA(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 DA(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function TA(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function RA(e,t){return TA(e)?e:t}function _A(e,t){return void 0===e?t:e}const zA=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function BA(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function HA(e,t,n,o){let r,i,a;if(AA(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(DA(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function FA(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 WA(e){if(AA(e))return e.map(WA);if(DA(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=WA(e[n[r]]);return t}return e}function VA(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function KA(e,t,n,o){if(!VA(e))return;const r=t[e],i=n[e];DA(r)&&DA(i)?qA(r,i,o):t[e]=WA(i)}function qA(e,t,n){const o=AA(t)?t:[t],r=o.length;if(!DA(e))return e;const i=(n=n||{}).merger||KA;let a;for(let t=0;t<r;++t){if(a=o[t],!DA(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 XA(e,t){return qA(e,t,{merger:UA})}function UA(e,t,n){if(!VA(e))return;const o=t[e],r=n[e];DA(o)&&DA(r)?XA(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=WA(r))}const GA={"":e=>e,x:e=>e.x,y:e=>e.y};function YA(e,t){const n=GA[t]||(GA[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 QA(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ZA=e=>void 0!==e,JA=e=>"function"==typeof e,eD=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const tD=Math.PI,nD=2*tD,oD=nD+tD,rD=Number.POSITIVE_INFINITY,iD=tD/180,aD=tD/2,sD=tD/4,lD=2*tD/3,cD=Math.log10,uD=Math.sign;function dD(e,t,n){return Math.abs(e-t)<n}function pD(e){const t=Math.round(e);e=dD(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(cD(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function fD(e){return!isNaN(parseFloat(e))&&isFinite(e)}function hD(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 gD(e){return e*(tD/180)}function mD(e){return e*(180/tD)}function vD(e){if(!TA(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function bD(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*tD&&(i+=nD),{angle:i,distance:r}}function yD(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function xD(e,t){return(e-t+oD)%nD-tD}function CD(e){return(e%nD+nD)%nD}function wD(e,t,n,o){const r=CD(e),i=CD(t),a=CD(n),s=CD(i-r),l=CD(a-r),c=CD(r-i),u=CD(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function SD(e,t,n){return Math.max(t,Math.min(n,e))}function kD(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function ED(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 OD=(e,t,n,o)=>ED(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),$D=(e,t,n)=>ED(e,n,(o=>e[o][t]>=n));const ND=["push","pop","shift","splice","unshift"];function MD(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||(ND.forEach((t=>{delete e[t]})),delete e._chartjs)}function ID(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const PD="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function LD(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,PD.call(window,(()=>{o=!1,e.apply(t,n)})))}}const jD=e=>"start"===e?"left":"end"===e?"right":"center",AD=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const DD=e=>0===e||1===e,TD=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*nD/n),RD=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*nD/n)+1,_D={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*aD),easeOutSine:e=>Math.sin(e*aD),easeInOutSine:e=>-.5*(Math.cos(tD*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=>DD(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=>DD(e)?e:TD(e,.075,.3),easeOutElastic:e=>DD(e)?e:RD(e,.075,.3),easeInOutElastic(e){const t=.1125;return DD(e)?e:e<.5?.5*TD(2*e,t,.45):.5+.5*RD(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-_D.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*_D.easeInBounce(2*e):.5*_D.easeOutBounce(2*e-1)+.5};function zD(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function BD(e){return zD(e)?e:new IA(e)}function HD(e){return zD(e)?e:new IA(e).saturate(.5).darken(.1).hexString()}const FD=["x","y","borderWidth","radius","tension"],WD=["color","borderColor","backgroundColor"];const VD=new Map;function KD(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=VD.get(n);return o||(o=new Intl.NumberFormat(e,t),VD.set(n,o)),o}(t,n).format(e)}const qD={values:e=>AA(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=cD(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),KD(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(cD(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?qD.numeric.call(this,e,t,n):""}};var XD={formatters:qD};const UD=Object.create(null),GD=Object.create(null);function YD(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 QD(e,t,n){return"string"==typeof t?qA(YD(e,t),n):qA(YD(e,""),t)}class ZD{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)=>HD(t.backgroundColor),this.hoverBorderColor=(e,t)=>HD(t.borderColor),this.hoverColor=(e,t)=>HD(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 QD(this,e,t)}get(e){return YD(this,e)}describe(e,t){return QD(GD,e,t)}override(e,t){return QD(UD,e,t)}route(e,t,n,o){const r=YD(this,e),i=YD(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 DA(e)?Object.assign({},t,e):_A(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var JD=new ZD({_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:WD},numbers:{type:"number",properties:FD}}),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:XD.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 eT(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 tT(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 nT(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function oT(e,t,n,o){rT(e,t,n,o,null)}function rT(e,t,n,o,r){let i,a,s,l,c,u,d,p;const f=t.pointStyle,h=t.rotation,g=t.radius;let m=(h||0)*iD;if(f&&"object"==typeof f&&(i=f.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(m),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,o,r/2,g,0,0,nD):e.arc(n,o,g,0,nD),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=lD,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=lD,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+sD)*l,d=Math.cos(m+sD)*(r?r/2-c:l),s=Math.sin(m+sD)*l,p=Math.sin(m+sD)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-tD,m-aD),e.arc(n+p,o-a,c,m-aD,m),e.arc(n+d,o+s,c,m,m+aD),e.arc(n-p,o+a,c,m+aD,m+tD),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*g,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}m+=sD;case"rectRot":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+p,o-a),e.lineTo(n+d,o+s),e.lineTo(n-p,o+a),e.closePath();break;case"crossRot":m+=sD;case"cross":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"star":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a),m+=sD,d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,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 iT(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 aT(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function sT(e){e.restore()}function lT(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 cT(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 uT(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 dT(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function pT(e,t,n,o,r,i={}){const a=AA(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]),jA(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&&dT(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),jA(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),uT(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function fT(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*tD,tD,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,tD,aD,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,aD,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-aD,!0),e.lineTo(n+a.topLeft,o)}const hT=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,gT=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function mT(e,t){const n=(""+e).match(hT);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}function vT(e,t){const n={},o=DA(t),r=o?Object.keys(t):t,i=DA(e)?o?n=>_A(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=+i(e)||0;return n}function bT(e){return vT(e,{top:"y",right:"x",bottom:"y",left:"x"})}function yT(e){return vT(e,["topLeft","topRight","bottomLeft","bottomRight"])}function xT(e){const t=bT(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function CT(e,t){e=e||{},t=t||JD.font;let n=_A(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=_A(e.style,t.style);o&&!(""+o).match(gT)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:_A(e.family,t.family),lineHeight:mT(_A(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:_A(e.weight,t.weight),string:""};return r.string=function(e){return!e||jA(e.size)||jA(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function wT(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 ST(e,t){return Object.assign(Object.create(e),t)}function kT(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=DT("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>kT([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)=>MT(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=DT($T(i,e),n),void 0!==r)return NT(e,r)?jT(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)=>TT(e).includes(t),ownKeys:e=>TT(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function ET(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:OT(e,o),setContext:t=>ET(e,t,n,o),override:r=>ET(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>MT(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];JA(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),NT(e,l)&&(l=jT(r._scopes,r,e,l));return l}(t,s,e,n));AA(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(DA(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=jT(o,r,e,l);t.push(ET(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));NT(t,s)&&(s=ET(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 OT(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:JA(n)?n:()=>n,isIndexable:JA(o)?o:()=>o}}const $T=(e,t)=>e?e+QA(t):t,NT=(e,t)=>DA(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function MT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function IT(e,t,n){return JA(e)?e(t,n):e}const PT=(e,t)=>!0===e?t:"string"==typeof e?YA(t,e):void 0;function LT(e,t,n,o,r){for(const i of t){const t=PT(n,i);if(t){e.add(t);const i=IT(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 jT(e,t,n,o){const r=t._rootScopes,i=IT(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=AT(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=AT(s,a,i,l,o),null!==l))&&kT(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(AA(r)&&DA(n))return n;return r||{}}(t,n,o))))}function AT(e,t,n,o,r){for(;n;)n=LT(e,t,n,o,r);return n}function DT(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function TT(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 RT=Number.EPSILON||1e-14,_T=(e,t)=>t<e.length&&!e[t].skip&&e[t],zT=e=>"x"===e?"y":"x";function BT(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=yD(i,r),l=yD(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,p=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+p*(a.x-r.x),y:i.y+p*(a.y-r.y)}}}function HT(e,t="x"){const n=zT(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=_T(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=_T(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?uD(r[a-1])!==uD(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=_T(e,0);for(let u=0;u<o-1;++u)l=c,c=_T(e,u+1),l&&c&&(dD(t[u],0,RT)?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=zT(n),r=e.length;let i,a,s,l=_T(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=_T(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 FT(e,t,n){return Math.max(Math.min(e,n),t)}function WT(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)HT(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=BT(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=iT(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&iT(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=FT(r.cp1x,t.left,t.right),r.cp1y=FT(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=FT(r.cp2x,t.left,t.right),r.cp2y=FT(r.cp2y,t.top,t.bottom)))}(e,n)}function VT(){return"undefined"!=typeof window&&"undefined"!=typeof document}function KT(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function qT(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 XT=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const UT=["top","right","bottom","left"];function GT(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=UT[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function YT(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=XT(n),i="border-box"===r.boxSizing,a=GT(r,"padding"),s=GT(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(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(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),p=a.top+(u&&s.top);let{width:f,height:h}=t;return i&&(f-=a.width+s.width,h-=a.height+s.height),{x:Math.round((l-d)/f*n.width/o),y:Math.round((c-p)/h*n.height/o)}}const QT=e=>Math.round(10*e)/10;function ZT(e,t,n,o){const r=XT(e),i=GT(r,"margin"),a=qT(r.maxWidth,e,"clientWidth")||rD,s=qT(r.maxHeight,e,"clientHeight")||rD,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&KT(e);if(i){const e=i.getBoundingClientRect(),a=XT(i),s=GT(a,"border","width"),l=GT(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=qT(a.maxWidth,i,"clientWidth"),r=qT(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||rD,maxHeight:r||rD}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=GT(r,"border","width"),t=GT(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=QT(Math.min(c,a,l.maxWidth)),u=QT(Math.min(u,s,l.maxHeight)),c&&!u&&(u=QT(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=QT(Math.floor(u*o))),{width:c,height:u}}function JT(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 eR=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};VT()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function tR(e,t){const n=function(e,t){return XT(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function nR(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function oR(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 rR(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=nR(e,r,n),s=nR(r,i,n),l=nR(i,t,n),c=nR(a,s,n),u=nR(s,l,n);return nR(c,u,n)}function iR(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 aR(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 sR(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function lR(e){return"angle"===e?{between:wD,compare:xD,normalize:CD}:{between:kD,compare:(e,t)=>e-t,normalize:e=>e}}function cR({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 uR(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=lR(o),{start:u,end:d,loop:p,style:f}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=lR(o),l=t.length;let c,u,{start:d,end:p,loop:f}=e;if(f){for(d+=l,p+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:f,style:e.style}}(e,t,n),h=[];let g,m,v,b=!1,y=null;const x=()=>b||l(r,v,g)&&0!==s(r,v),C=()=>!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&&C()&&(h.push(cR({start:y,end:e,loop:p,count:a,style:f})),y=null),n=e,v=g));return null!==y&&h.push(cR({start:y,end:d,loop:p,count:a,style:f})),h}function dR(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=pR(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,p=d;function f(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(p=d+1;p<=e.end;p++){const s=n[p%l];t=pR(o.setContext(ST(r,{type:"segment",p0:i,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),fR(t,u)&&f(d,p-1,e.loop,u),i=s,u=t}d<p-1&&f(d,p-1,e.loop,u)}return c}(e,t,n,o):t}function pR(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function fR(e,t){if(!t)return!1;const n=[],o=function(e,t){return zD(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 hR{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=PD.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 gR=new hR;const mR="transparent",vR={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=BD(e||mR),r=o.valid&&BD(t||mR);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class bR{constructor(e,t,n,o){const r=t[n];o=wT([e.to,o,r,e.from]);const i=wT([e.from,r,o]);this._active=!0,this._fn=e.fn||vR[e.type||typeof i],this._easing=_D[e.easing]||_D.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=wT([e.to,t,o,e.from]),this._from=wT([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 yR{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!DA(e))return;const t=Object.keys(JD.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!DA(r))return;const i={};for(const e of t)i[e]=r[e];(AA(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 bR(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?(gR.add(this._chart,n),!0):void 0}}function xR(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 CR(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 wR(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],TA(c)&&(i||0===t||uD(t)===uD(c))&&(t+=c)}return t}}function SR(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function kR(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function ER(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 OR(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 p;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;p=(n._stacks||(n._stacks={}))[c]=kR(r,u,i),p[s]=d,p._top=ER(p,a,!0,o.type),p._bottom=ER(p,a,!1,o.type);(p._visualValues||(p._visualValues={}))[s]=d}}function $R(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function NR(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 MR=e=>"reset"===e||"none"===e,IR=(e,t)=>t?e:Object.assign({},e);class PR{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=SR(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&&NR(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=_A(n.xAxisID,$R(e,"x")),i=t.yAxisID=_A(n.yAxisID,$R(e,"y")),a=t.rAxisID=_A(n.rAxisID,$R(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&&MD(this._data,this),e._stacked&&NR(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(DA(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){MD(n,this);const e=this._cachedMeta;NR(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]}}),ND.forEach((t=>{const n="_onData"+QA(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=SR(t.vScale,t),t.stack!==n.stack&&(o=!0,NR(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&OR(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=AA(o[e])?this.parseArrayData(n,o,e,t):DA(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&&OR(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,p,f;for(d=0,p=o;d<p;++d)f=d+n,u[d]={[a]:c||r.parse(l[f],f),[s]:i.parse(t[f],f)};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,p;for(c=0,u=o;c<u;++c)d=c+n,p=t[d],l[c]={x:r.parse(YA(p,a),d),y:i.parse(YA(p,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 wR({keys:CR(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=wR(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:CR(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,p;function f(){p=o[d];const t=p[a.axis];return!TA(p[e.axis])||c>t||u<t}for(d=0;d<i&&(f()||(this.updateRangeFromParsed(l,e,p,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,e,p,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],TA(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 DA(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}}(_A(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=xR(e,n),r=xR(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 ST(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 ST(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&&ZA(n);if(a)return IR(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),p=Object.keys(JD.elements[e]),f=l.resolveNamedOptions(d,p,(()=>this.getContext(n,o,t)),u);return f.$shared&&(f.$shared=s,r[i]=Object.freeze(IR(f,s))),f}_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 yR(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||MR(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){MR(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!MR(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&&NR(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 LR(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=ID(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&&(ZA(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 jR(e,t,n,o){return AA(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 AR(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,p;for(c=n,u=n+o;c<u;++c)p=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(jR(p,d,i,c));return l}function DR(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function TR(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[RR(u,a,s,l)]=!0,r=c)),i[RR(r,a,s,l)]=!0,e.borderSkipped=i}function RR(e,t,n,o){var r,i,a;return o?(a=n,e=_R(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=_R(e,t,n),e}function _R(e,t,n){return"start"===e?t:"end"===e?n:e}function zR(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class BR extends PR{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 AR(e,t,n,o)}parseArrayData(e,t,n,o){return AR(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,p,f,h;for(d=n,p=n+o;d<p;++d)h=t[d],f={},f[r.axis]=r.parse(YA(h,l),d),u.push(jR(YA(h,c),f,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=DR(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 p=t;p<t+n;p++){const t=this.getParsed(p),n=r||jA(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,c),h=(t._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!h||DR(t._custom)||i===h._top||i===h._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(g.options=u||this.resolveDataElementOptions(p,e[p].active?"active":o));const m=g.options||e[p].options;TR(g,m,h,i),zR(g,m,c.ratio),this.updateElement(e[p],p,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(jA(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||LR(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=DR(l);let u,d,p=s[t.axis],f=0,h=n?this.applyStack(t,s,n):p;h!==p&&(f=h-p,h=p),c&&(p=l.barStart,h=l.barEnd-l.barStart,0!==p&&uD(p)!==uD(l.barEnd)&&(f=0),f+=p);const g=jA(r)||c?f:r;let m=t.getPixelForValue(g);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(f+h):m,d=u-m,Math.abs(d)<i){d=function(e,t,n){return 0!==e?uD(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,p===a&&(m-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),f=Math.max(e,r);m=Math.max(Math.min(m,f),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=uD(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=_A(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 jA(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 HR extends PR{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(DA(n[e])){const{key:e="value"}=this._parsing;a=t=>+YA(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return gD(this.options.rotation-90)}_getCircumference(){return gD(this.options.circumference)}_getRotationExtents(){let e=nD,t=-nD;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:p}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=function(e,t,n){let o=1,r=1,i=0,a=0;if(t<nD){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),f=(e,t,o)=>wD(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),h=(e,t,o)=>wD(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=f(0,c,d),m=f(aD,u,p),v=h(tD,c,d),b=h(tD+aD,u,p);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}}(p,d,s),v=(n.width-i)/f,b=(n.height-i)/h,y=Math.max(Math.min(v,b)/2,0),x=zA(this.options.radius,y),C=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,o.total=this.calculateTotal(),this.outerRadius=x-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*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/nD)}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,p=u?0:this.outerRadius,{sharedOptions:f,includeOptions:h}=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:p,innerRadius:d};h&&(i.options=f||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)?nD*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=KD(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(_A(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class FR extends PR{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:p}=a.getUserBounds();d&&(r=SD(Math.min(OD(s,l,c).lo,n?o:OD(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=p?SD(Math.max(OD(s,a.axis,u,!0).hi+1,n?0:OD(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,p=a.axis,{spanGaps:f,segment:h}=this.options,g=fD(f)?f: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 f=e[n],b=m?f:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),C=jA(x[p]),w=b[d]=i.getPixelForValue(x[d],n),S=b[p]=r||C?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[p],n);b.skip=isNaN(w)||isNaN(S)||C,b.stop=n>0&&Math.abs(x[d]-y[d])>g,h&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,f.active?"active":o)),m||this.updateElement(f,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 WR extends HR{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function VR(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?$D:OD;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 KR(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}=VR(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function qR(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return KR(e,n,t,(function(n,a,s){(r||iT(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function XR(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 KR(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const p=n.getCenterPoint(r);if(!(!!i||e.isPointInArea(p))&&!d)return;const f=s(t,p);f<l?(a=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function UR(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?XR(e,t,n,o,r,i):function(e,t,n,o){let r=[];return KR(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=bD(e,{x:t.x,y:t.y});wD(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function GR(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return KR(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 YR={evaluateInteractionItems:KR,modes:{index(e,t,n,o){const r=YT(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?qR(e,r,i,o,a):UR(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=YT(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?qR(e,r,i,o,a):UR(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)=>qR(e,YT(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=YT(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return UR(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>GR(e,YT(t,e),"x",n.intersect,o),y:(e,t,n,o)=>GR(e,YT(t,e),"y",n.intersect,o)}};const QR=["left","top","right","bottom"];function ZR(e,t){return e.filter((e=>e.pos===t))}function JR(e,t){return e.filter((e=>-1===QR.indexOf(e.pos)&&e.box.axis===t))}function e_(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 t_(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!QR.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 n_(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function o_(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 r_(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!DA(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&&o_(a,i.getPadding());const s=Math.max(0,t.outerWidth-n_(a,e,"left","right")),l=Math.max(0,t.outerHeight-n_(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 i_(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 a_(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,i_(s.horizontal,t));const{same:a,other:d}=r_(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&a_(r,t,n,o)||u}function s_(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 l_(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;ZA(l.start)&&(a=l.start),e.fullSize?s_(e,r.left,a,n.outerWidth-r.right-r.left,i):s_(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;ZA(l.start)&&(i=l.start),e.fullSize?s_(e,i,r.top,a,n.outerHeight-r.bottom-r.top):s_(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var c_={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=xT(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=e_(t.filter((e=>e.box.fullSize)),!0),o=e_(ZR(t,"left"),!0),r=e_(ZR(t,"right")),i=e_(ZR(t,"top"),!0),a=e_(ZR(t,"bottom")),s=JR(t,"x"),l=JR(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:ZR(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;HA(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}),p=Object.assign({},r);o_(p,xT(o));const f=Object.assign({maxPadding:p,w:i,h:a,x:r.left,y:r.top},r),h=t_(l.concat(c),d);a_(s.fullSize,f,d,h),a_(l,f,d,h),a_(c,f,d,h)&&a_(l,f,d,h),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")}(f),l_(s.leftAndTop,f,d,h),f.x+=f.w,f.y+=f.h,l_(s.rightAndBottom,f,d,h),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},HA(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class u_{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 d_ extends u_{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const p_="$chartjs",f_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},h_=e=>null===e||""===e;const g_=!!eR&&{passive:!0};function m_(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,g_)}function v_(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function b_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||v_(n.addedNodes,o),t=t&&!v_(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function y_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||v_(n.removedNodes,o),t=t&&!v_(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const x_=new Map;let C_=0;function w_(){const e=window.devicePixelRatio;e!==C_&&(C_=e,x_.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function S_(e,t,n){const o=e.canvas,r=o&&KT(o);if(!r)return;const i=LD(((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){x_.size||window.addEventListener("resize",w_),x_.set(e,t)}(e,i),a}function k_(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){x_.delete(e),x_.size||window.removeEventListener("resize",w_)}(e)}function E_(e,t,n){const o=e.canvas,r=LD((t=>{null!==e.ctx&&n(function(e,t){const n=f_[e.type]||e.type,{x:o,y:r}=YT(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,g_)}(o,t,r),r}class O_ extends u_{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[p_]={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",h_(r)){const t=tR(e,"width");void 0!==t&&(e.width=t)}if(h_(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=tR(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[p_])return!1;const n=t[p_].initial;["height","width"].forEach((e=>{const o=n[e];jA(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[p_],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:b_,detach:y_,resize:S_}[t]||E_;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:k_,detach:k_,resize:k_}[t]||m_)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return ZT(e,t,n,o)}isAttached(e){const t=e&&KT(e);return!(!t||!t.isConnected)}}let $_=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 fD(this.x)&&fD(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 N_(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(M_(t,c,u,jA(o)?0:s-o,s),e=0,n=a-1;e<n;e++)M_(t,c,u,i[e],i[e+1]);return M_(t,c,u,l,jA(o)?t.length:l+o),c}return M_(t,c,u),c}function M_(e,t,n,o,r){const i=_A(o,0),a=Math.min(_A(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 I_=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,P_=(e,t)=>Math.min(t||e,e);function L_(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 j_(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 A_(e){return e.drawTicks?e.tickLength:0}function D_(e,t){if(!e.display)return 0;const n=CT(e.font,t),o=xT(e.padding);return(AA(e.text)?e.text.length:1)*n.lineHeight+o.height}function T_(e,t,n){let o=jD(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class R_ extends $_{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=RA(e,Number.POSITIVE_INFINITY),t=RA(t,Number.NEGATIVE_INFINITY),n=RA(n,Number.POSITIVE_INFINITY),o=RA(o,Number.NEGATIVE_INFINITY),{min:RA(e,n),max:RA(t,o),minDefined:TA(e),maxDefined:TA(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:RA(n,RA(o,n)),max:RA(o,RA(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(){BA(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=zA(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?L_(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=N_(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(){BA(this.options.afterUpdate,[this])}beforeSetDimensions(){BA(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(){BA(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),BA(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){BA(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=BA(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){BA(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){BA(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=P_(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,p=SD(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:p/(n-1),u+6>i&&(i=p/(n-(e.offset?.5:1)),a=this.maxHeight-A_(e.grid)-t.padding-D_(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=mD(Math.min(Math.asin(SD((c.highest.height+6)/i,-1,1)),Math.asin(SD(a/s,-1,1))-Math.asin(SD(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){BA(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){BA(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=D_(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=A_(r)+i):(e.height=this.maxHeight,e.width=A_(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=gD(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(){BA(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++)jA(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=L_(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/P_(t,n));let l,c,u,d,p,f,h,g,m,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,p=this._resolveTickFontOptions(l),o.font=f=p.string,h=r[f]=r[f]||{data:{},gc:[]},g=p.lineHeight,m=v=0,jA(d)||AA(d)){if(AA(d))for(c=0,u=d.length;c<u;++c)b=d[c],jA(b)||AA(b)||(m=eT(o,h.data,h.gc,m,b),v+=g)}else m=eT(o,h.data,h.gc,m,d),v=g;i.push(m),a.push(v),y=Math.max(m,y),x=Math.max(v,x)}!function(e,t){HA(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 C=i.indexOf(y),w=a.indexOf(x),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(C),highest:S(w),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 SD(this._alignToPixels?tT(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 ST(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=ST(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=gD(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=A_(r),d=[],p=a.setContext(this.getContext()),f=p.display?p.width:0,h=f/2,g=function(e){return tT(n,e,f)};let m,v,b,y,x,C,w,S,k,E,O,$;if("top"===i)m=g(this.bottom),C=this.bottom-u,S=m-h,E=g(e.top)+h,$=e.bottom;else if("bottom"===i)m=g(this.top),E=e.top,$=g(e.bottom)-h,C=m+h,S=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,w=m-h,k=g(e.left)+h,O=e.right;else if("right"===i)m=g(this.left),k=e.left,O=g(e.right)-h,x=m+h,w=this.left+u;else if("x"===t){if("center"===i)m=g((e.top+e.bottom)/2+.5);else if(DA(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}E=e.top,$=e.bottom,C=m+h,S=C+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(DA(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-h,w=x-u,k=e.left,O=e.right}const N=_A(o.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/N));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||[],p=o.dashOffset,f=t.tickWidth,h=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=j_(this,v,s),void 0!==b&&(y=tT(n,b,i),l?x=w=k=O=y:C=S=E=$=y,d.push({tx1:x,ty1:C,tx2:w,ty2:S,x1:k,y1:E,x2:O,y2:$,width:i,color:c,borderDash:u,borderDashOffset:p,tickWidth:f,tickColor:h,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=A_(n.grid),p=d+c,f=u?-c:p,h=-gD(this.labelRotation),g=[];let m,v,b,y,x,C,w,S,k,E,O,$,N="middle";if("top"===o)C=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===o)C=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("x"===t){if("center"===o)C=(e.top+e.bottom)/2+p;else if(DA(o)){const e=Object.keys(o)[0],t=o[e];C=this.chart.scales[e].getPixelForValue(t)+p}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-p;else if(DA(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?N="top":"end"===s&&(N="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));S=this.getPixelForTick(m)+r.labelOffset,k=this._resolveTickFontOptions(m),E=k.lineHeight,O=AA(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=w;if(i?(x=S,"inner"===w&&(p=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),$="top"===o?"near"===l||0!==h?-O*E+E/2:"center"===l?-M.highest.height/2-t*E+E:-M.highest.height+E/2:"near"===l||0!==h?E/2:"center"===l?M.highest.height/2-t*E:M.highest.height-O*E,u&&($*=-1),0===h||e.showLabelBackdrop||(x+=E/2*Math.sin(h))):(C=S,$=(1-O)*E/2),e.showLabelBackdrop){const t=xT(e.backdropPadding),n=M.heights[m],o=M.widths[m];let r=$-t.top,i=0-t.left;switch(N){case"middle":r-=n/2;break;case"bottom":r-=n}switch(w){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:k,textOffset:$,options:{rotation:h,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:N,translation:[x,C],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-gD(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=tT(e,this.left,i)-i/2,c=tT(e,this.right,a)+a/2,u=d=s):(u=tT(e,this.top,i)-i/2,d=tT(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&&aT(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;pT(t,e.label,0,e.textOffset,o,n)}n&&sT(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=CT(n.font),i=xT(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||DA(t)?(s+=i.bottom,AA(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,p,f,h=0;const g=a-r,m=s-i;if(e.isHorizontal()){if(p=AD(o,i,s),DA(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)+g-t}else f="center"===n?(c.bottom+c.top)/2+g-t:I_(e,n,t);d=s-i}else{if(DA(n)){const e=Object.keys(n)[0],o=n[e];p=u[e].getPixelForValue(o)-m+t}else p="center"===n?(c.left+c.right)/2-m+t:I_(e,n,t);f=AD(o,a,r),h="left"===n?-aD:aD}return{titleX:p,titleY:f,maxWidth:d,rotation:h}}(this,s,t,a);pT(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:T_(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=_A(e.grid&&e.grid.z,-1),o=_A(e.border&&e.border.z,0);return this._isVisible()&&this.draw===R_.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 CT(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class __{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=qA(Object.create(null),[n?JD.get(n):{},JD.get(t),e.defaults]);JD.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(".");JD.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&JD.describe(t,e.descriptors)}(e,i,n),this.override&&JD.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 JD[o]&&(delete JD[o][n],this.override&&delete UD[n])}}class z_{constructor(){this.controllers=new __(PR,"datasets",!0),this.elements=new __($_,"elements"),this.plugins=new __(Object,"plugins"),this.scales=new __(R_,"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):HA(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=QA(e);BA(n["before"+o],[],n),t[e](n),BA(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 B_=new z_;class H_{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===BA(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){jA(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=_A(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(B_.plugins.items);for(let e=0;e<o.length;e++)n.push(B_.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=F_(o[t],r);null!==l&&i.push({plugin:s,options:W_(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 F_(e,t){return t||!1!==e?!0===e?{}:e:null}function W_(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 V_(e,t){const n=JD.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function K_(e){if("x"===e||"y"===e||"r"===e)return e}function q_(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function X_(e,...t){if(K_(e))return e;for(const n of t){const t=n.axis||q_(n.position)||e.length>1&&K_(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function U_(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function G_(e,t){const n=UD[e.type]||{scales:{}},o=t.scales||{},r=V_(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!DA(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=X_(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 U_(e,"x",n[0])||U_(e,"y",n[0])}return{}}(t,e),JD.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=XA(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||V_(r,t),s=(UD[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),XA(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];XA(t,[JD.scales[t.type],JD.scale])})),i}function Y_(e){const t=e.options||(e.options={});t.plugins=_A(t.plugins,{}),t.scales=G_(e,t)}function Q_(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Z_=new Map,J_=new Set;function ez(e,t){let n=Z_.get(e);return n||(n=t(),Z_.set(e,n),J_.add(n)),n}const tz=(e,t,n)=>{const o=YA(t,n);void 0!==o&&e.add(o)};class nz{constructor(e){this._config=function(e){return(e=e||{}).data=Q_(e.data),Y_(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=Q_(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(),Y_(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ez(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return ez(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return ez(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return ez(`${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=>tz(s,e,t)))),t.forEach((e=>tz(s,o,e))),t.forEach((e=>tz(s,UD[r]||{},e))),t.forEach((e=>tz(s,JD,e))),t.forEach((e=>tz(s,GD,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),J_.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,UD[t]||{},JD.datasets[t]||{},{type:t},JD,GD]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=oz(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=OT(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(JA(a)||rz(a))||i&&AA(a))return!0}return!1}(i,t)){r.$shared=!1;s=ET(i,n=JA(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}=oz(this._resolverCache,e,n);return DA(t)?ET(r,t,void 0,o):r}}function oz(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:kT(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const rz=e=>DA(e)&&Object.getOwnPropertyNames(e).some((t=>JA(e[t])));const iz=["top","bottom","left","right","chartArea"];function az(e,t){return"top"===e||"bottom"===e||-1===iz.indexOf(e)&&"x"===t}function sz(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function lz(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),BA(n&&n.onComplete,[e],t)}function cz(e){const t=e.chart,n=t.options.animation;BA(n&&n.onProgress,[e],t)}function uz(e){return VT()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const dz={},pz=e=>{const t=uz(e);return Object.values(dz).filter((e=>e.canvas===t)).pop()};function fz(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 hz(e,t,n){return e.options.clip?e[n]:t[n]}let gz=class{static defaults=JD;static instances=dz;static overrides=UD;static registry=B_;static version="4.4.4";static getChart=pz;static register(...e){B_.add(...e),mz()}static unregister(...e){B_.remove(...e),mz()}constructor(e,t){const n=this.config=new nz(t),o=uz(e),r=pz(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!VT()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?d_:O_}(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=LA(),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 H_,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=[],dz[this.id]=this,a&&s?(gR.listen(this,"complete",lz),gR.listen(this,"progress",cz),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 jA(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 B_}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():JT(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return nT(this.canvas,this.ctx),this}stop(){return gR.stop(this),this}resize(e,t){gR.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,JT(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),BA(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){HA(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=X_(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),HA(r,(t=>{const r=t.options,i=r.id,a=X_(i,r),s=_A(r.type,t.dtype);void 0!==r.position&&az(r.position,a)===az(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(B_.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),HA(o,((e,t)=>{e||delete n[t]})),HA(n,(e=>{c_.configure(this,e,e.options),c_.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(sz("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||V_(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=B_.getController(i),{datasetElementType:o,dataElementType:a}=JD.datasets[i];Object.assign(t,{dataElementType:B_.getElement(a),datasetElementType:o&&B_.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){HA(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||HA(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(sz("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){HA(this.scales,(e=>{c_.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);eD(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){fz(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(!eD(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;c_.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],HA(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,JA(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})&&(gR.has(this)?this.attached&&!gR.running(this)&&gR.start(this):(this.draw(),lz({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:hz(n,t,"left"),right:hz(n,t,"right"),top:hz(o,t,"top"),bottom:hz(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&aT(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&&sT(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return iT(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=YR.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=ST(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);ZA(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(),gR.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(),nT(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete dz[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)};HA(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(){HA(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},HA(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}}));!FA(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,BA(r.onHover,[e,a,this],this),s&&BA(r.onClick,[e,a,this],this));const c=!FA(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 mz(){return HA(gz.instances,(e=>e._plugins.invalidate()))}function vz(e,t,n,o){const r=vT(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 SD(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:SD(r.innerStart,0,a),innerEnd:SD(r.innerEnd,0,a)}}function bz(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function yz(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),p=u>0?u+o+n+c:0;let f=0;const h=r-l;if(o){const e=((u>0?u-o:0)+(d>0?d-o:0))/2;f=(h-(0!==e?h*e/(e+o):h))/2}const g=(h-Math.max(.001,h*d-n/tD)/d)/2,m=l+g+f,v=r-g-f,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:C}=vz(t,p,d,v-m),w=d-b,S=d-y,k=m+b/w,E=v-y/S,O=p+x,$=p+C,N=m+x/O,M=v-C/$;if(e.beginPath(),i){const t=(k+E)/2;if(e.arc(a,s,d,k,t),e.arc(a,s,d,t,E),y>0){const t=bz(S,E,a,s);e.arc(t.x,t.y,y,E,v+aD)}const n=bz($,v,a,s);if(e.lineTo(n.x,n.y),C>0){const t=bz($,M,a,s);e.arc(t.x,t.y,C,v+aD,M+Math.PI)}const o=(v-C/p+(m+x/p))/2;if(e.arc(a,s,p,v-C/p,o,!0),e.arc(a,s,p,o,m+x/p,!0),x>0){const t=bz(O,N,a,s);e.arc(t.x,t.y,x,N+Math.PI,m-aD)}const r=bz(w,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=bz(w,k,a,s);e.arc(t.x,t.y,b,m-aD,k)}}else{e.moveTo(a,s);const t=Math.cos(k)*d+a,n=Math.sin(k)*d+s;e.lineTo(t,n);const o=Math.cos(E)*d+a,r=Math.sin(E)*d+s;e.lineTo(o,r)}e.closePath()}function xz(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,f?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let h=t.endAngle;if(i){yz(e,t,n,o,h,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(h=a+(s%nD||nD))}f&&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+aD,o-aD),e.closePath(),e.clip()}(e,t,h),i||(yz(e,t,n,o,h,r),e.stroke())}function Cz(e,t,n=t){e.lineCap=_A(n.borderCapStyle,t.borderCapStyle),e.setLineDash(_A(n.borderDash,t.borderDash)),e.lineDashOffset=_A(n.borderDashOffset,t.borderDashOffset),e.lineJoin=_A(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=_A(n.borderWidth,t.borderWidth),e.strokeStyle=_A(n.borderColor,t.borderColor)}function wz(e,t,n){e.lineTo(n.x,n.y)}function Sz(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 kz(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=Sz(r,n,o),u=function(e){return e.stepped?lT:e.tension||"monotone"===e.cubicInterpolationMode?cT:wz}(i);let d,p,f,{move:h=!0,reverse:g}=o||{};for(d=0;d<=c;++d)p=r[(s+(g?c-d:d))%a],p.skip||(h?(e.moveTo(p.x,p.y),h=!1):u(e,f,p,g,i.stepped),f=p);return l&&(p=r[(s+(g?c:0))%a],u(e,f,p,g,i.stepped)),!!l}function Ez(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=Sz(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,p,f,h,g,m=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{f!==h&&(e.lineTo(m,h),e.lineTo(m,f),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===p?(n<f?f=n:n>h&&(h=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),p=o,v=0,f=h=n),g=n}y()}function Oz(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?Ez:kz}const $z="function"==typeof Path2D;function Nz(e,t,n,o){$z&&!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()),Cz(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=Oz(t);for(const s of r)Cz(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 Mz(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function Iz(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 Pz(e,t,n,o){return e?0:SD(t,n,o)}function Lz(e){const t=Iz(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=bT(o);return{t:Pz(r.top,i.top,0,n),r:Pz(r.right,i.right,0,t),b:Pz(r.bottom,i.bottom,0,n),l:Pz(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=yT(r),a=Math.min(t,n),s=e.borderSkipped,l=o||DA(r);return{topLeft:Pz(!l||s.top||s.left,i.topLeft,0,a),topRight:Pz(!l||s.top||s.right,i.topRight,0,a),bottomLeft:Pz(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:Pz(!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 jz(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&Iz(e,o);return a&&(r||kD(t,a.left,a.right))&&(i||kD(n,a.top,a.bottom))}function Az(e,t){e.rect(t.x,t.y,t.w,t.h)}function Dz(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 Tz=(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 Rz extends $_{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=BA(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=CT(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Tz(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,p=-c;return this.legendItems.forEach(((e,f)=>{const h=n+t/2+r.measureText(e.text).width;(0===f||l[l.length-1]+h+2*a>i)&&(u+=c,l[l.length-(f>0?0:1)]=0,p+=c,d++),s[f]={left:0,top:p,row:d,width:h,height:o},l[l.length-1]+=h+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,p=0,f=0,h=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=_z(t,n));return o}(r,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,r,e,o);i>0&&p+m+2*a>c&&(u+=d+a,l.push({width:d,height:p}),f+=d+a,h++,d=p=0),s[i]={left:f,top:p,col:h,width:g,height:m},d=Math.max(d,g),p+=m+a})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,i=iR(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=AD(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=AD(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=AD(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=AD(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;aT(e,this),this._draw(),sT(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=JD.color,s=iR(e.rtl,this.left,this.width),l=CT(i.font),{padding:c}=i,u=l.size,d=u/2;let p;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:f,boxHeight:h,itemHeight:g}=Tz(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();p=m?{x:AD(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:AD(r,this.top+v+c,this.bottom-t[0].height),line:0},aR(this.ctx,e.textDirection);const b=g+c;this.legendItems.forEach(((y,x)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const C=o.measureText(y.text).width,w=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),S=f+d+C;let k=p.x,E=p.y;s.setWidth(this.width),m?x>0&&k+S+c>this.right&&(E=p.y+=b,p.line++,k=p.x=AD(r,this.left+c,this.right-n[p.line])):x>0&&E+b>this.bottom&&(k=p.x=k+t[p.line].width+c,p.line++,E=p.y=AD(r,this.top+v+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(f)||f<=0||isNaN(h)||h<0)return;o.save();const r=_A(n.lineWidth,1);if(o.fillStyle=_A(n.fillStyle,a),o.lineCap=_A(n.lineCap,"butt"),o.lineDashOffset=_A(n.lineDashOffset,0),o.lineJoin=_A(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=_A(n.strokeStyle,a),o.setLineDash(_A(n.lineDash,[])),i.usePointStyle){const a={radius:h*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,f/2);rT(o,a,l,t+d,i.pointStyleWidth&&f)}else{const i=t+Math.max((u-h)/2,0),a=s.leftForLtr(e,f),l=yT(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?fT(o,{x:a,y:i,w:f,h:h,radius:l}):o.rect(a,i,f,h),o.fill(),0!==r&&o.stroke()}o.restore()}(s.x(k),E,y),k=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(w,k+f+d,m?k+S:this.right,e.rtl),function(e,t,n){pT(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),E,y),m)p.x+=S+c;else if("string"!=typeof y.text){const e=l.lineHeight;p.y+=_z(y,e)+c}else p.y+=b})),sR(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=CT(t.font),o=xT(t.padding);if(!t.display)return;const r=iR(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=AD(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+AD(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=AD(a,u,u+d);i.textAlign=r.textAlign(jD(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,pT(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=CT(e.font),n=xT(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(kD(e,this.left,this.right)&&kD(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],kD(e,o.left,o.left+o.width)&&kD(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&&BA(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&BA(t.onHover,[e,n,this],this)}else n&&BA(t.onClick,[e,n,this],this);var o,r}}function _z(e,t){return t*(e.text?e.text.length:0)}var zz={id:"legend",_element:Rz,start(e,t,n){const o=e.legend=new Rz({ctx:e.ctx,options:n,chart:e});c_.configure(e,o,n),c_.addBox(e,o)},stop(e){c_.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;c_.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=xT(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)}}};let Bz=class extends $_{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=AA(n.text)?n.text.length:1;this._padding=xT(n.padding);const r=o*CT(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=AD(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=AD(a,o,t),u=-.5*tD):(l=r-e,c=AD(a,t,o),u=.5*tD),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=CT(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);pT(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:jD(t.align),textBaseline:"middle",translation:[r,i]})}};var Hz={id:"title",_element:Bz,start(e,t,n){!function(e,t){const n=new Bz({ctx:e.ctx,options:t,chart:e});c_.configure(e,n,t),c_.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;c_.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;c_.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 Fz={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=yD(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 Wz(e,t){return t&&(AA(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Vz(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Kz(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 qz(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=CT(t.bodyFont),c=CT(t.titleFont),u=CT(t.footerFont),d=i.length,p=r.length,f=o.length,h=xT(t.padding);let g=h.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+=f*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}p&&(g+=t.footerMarginTop+p*u.lineHeight+(p-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,HA(e.title,y),n.font=l.string,HA(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,HA(o,(e=>{HA(e.before,y),HA(e.lines,y),HA(e.after,y)})),b=0,n.font=u.string,HA(e.footer,y),n.restore(),m+=h.width,{width:m,height:g}}function Xz(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 Uz(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||Xz(e,t,n,o),yAlign:o}}function Gz(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:p,bottomRight:f}=yT(a);let h=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?h+=c:"right"===s&&(h-=c):"left"===s?h-=Math.max(u,p)+r:"right"===s&&(h+=Math.max(d,f)+r),{x:SD(h,0,o.width-t.width),y:SD(g,0,o.height-t.height)}}function Yz(e,t,n){const o=xT(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function Qz(e){return Wz([],Vz(e))}function Zz(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Jz={beforeTitle:PA,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:PA,beforeBody:PA,beforeLabel:PA,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 jA(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:PA,afterBody:PA,beforeFooter:PA,footer:PA,afterFooter:PA};function eB(e,t,n,o){const r=e[t].call(n,o);return void 0===r?Jz[t].call(n,o):r}class tB extends $_{static positioners=Fz;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 yR(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,ST(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=eB(n,"beforeTitle",this,e),r=eB(n,"title",this,e),i=eB(n,"afterTitle",this,e);let a=[];return a=Wz(a,Vz(o)),a=Wz(a,Vz(r)),a=Wz(a,Vz(i)),a}getBeforeBody(e,t){return Qz(eB(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return HA(e,(e=>{const t={before:[],lines:[],after:[]},r=Zz(n,e);Wz(t.before,Vz(eB(r,"beforeLabel",this,e))),Wz(t.lines,eB(r,"label",this,e)),Wz(t.after,Vz(eB(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return Qz(eB(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=eB(n,"beforeFooter",this,e),r=eB(n,"footer",this,e),i=eB(n,"afterFooter",this,e);let a=[];return a=Wz(a,Vz(o)),a=Wz(a,Vz(r)),a=Wz(a,Vz(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(Kz(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)))),HA(l,(t=>{const n=Zz(e.callbacks,t);o.push(eB(n,"labelColor",this,t)),r.push(eB(n,"labelPointStyle",this,t)),i.push(eB(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=Fz[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=qz(this,n),a=Object.assign({},e,t),s=Uz(this.chart,n,a),l=Gz(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}=yT(a),{x:d,y:p}=e,{width:f,height:h}=t;let g,m,v,b,y,x;return"center"===r?(y=p+h/2,"left"===o?(g=d,m=g-i,b=y+i,x=y-i):(g=d+f,m=g+i,b=y-i,x=y+i),v=g):(m="left"===o?d+Math.max(s,c)+i:"right"===o?d+f-Math.max(l,u)-i:this.caretX,"top"===r?(b=p,y=b-i,g=m-i,v=m+i):(b=p+h,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=iR(n.rtl,this.x,this.width);for(e.x=Yz(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=CT(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=CT(r.bodyFont),u=Yz(this,"left",r),d=o.x(u),p=s<c.lineHeight?(c.lineHeight-s)/2:0,f=t.y+p;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=f+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,oT(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,oT(e,t,n,c)}else{e.lineWidth=DA(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=yT(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,fT(e,{x:t,y:f,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),fT(e,{x:n,y:f+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,f,l,s),e.strokeRect(t,f,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,f+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=CT(n.bodyFont);let d=u.lineHeight,p=0;const f=iR(n.rtl,this.x,this.width),h=function(n){t.fillText(n,f.x(e.x+p),e.y+d/2),e.y+=d+r},g=f.textAlign(i);let m,v,b,y,x,C,w;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=Yz(this,g,n),t.fillStyle=n.bodyColor,HA(this.beforeBody,h),p=a&&"right"!==g?"center"===i?l/2+c:l+2+c:0,y=0,C=o.length;y<C;++y){for(m=o[y],v=this.labelTextColors[y],t.fillStyle=v,HA(m.before,h),b=m.lines,a&&b.length&&(this._drawColorBox(t,e,y,f,n),d=Math.max(u.lineHeight,s)),x=0,w=b.length;x<w;++x)h(b[x]),d=u.lineHeight;HA(m.after,h)}p=0,d=u.lineHeight,HA(this.afterBody,h),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=iR(n.rtl,this.x,this.width);for(e.x=Yz(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=CT(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:p,bottomRight:f}=yT(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-f),t.quadraticCurveTo(a+l,s+c,a+l-f,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+p,s+c),t.quadraticCurveTo(a,s+c,a,s+c-p),"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=Fz[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=qz(this,e),a=Object.assign({},n,this._size),s=Uz(t,e,a),l=Gz(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=xT(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),aR(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),sR(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=!FA(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||!FA(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=Fz[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var nB={id:"tooltip",_element:tB,positioners:Fz,afterInit(e,t,n){n&&(e.tooltip=new tB({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:Jz},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 oB(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 rB(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function iB(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=r||1,f=c-1,{min:h,max:g}=t,m=!jA(i),v=!jA(a),b=!jA(l),y=(g-h)/(u+1);let x,C,w,S,k=pD((g-h)/f/p)*p;if(k<1e-14&&!m&&!v)return[{value:h},{value:g}];S=Math.ceil(g/k)-Math.floor(h/k),S>f&&(k=pD(S*k/f/p)*p),jA(s)||(x=Math.pow(10,s),k=Math.ceil(k*x)/x),"ticks"===o?(C=Math.floor(h/k)*k,w=Math.ceil(g/k)*k):(C=h,w=g),m&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,k/1e3)?(S=Math.round(Math.min((a-i)/k,c)),k=(a-i)/S,C=i,w=a):b?(C=m?i:C,w=v?a:w,S=l-1,k=(w-C)/S):(S=(w-C)/k,S=dD(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const E=Math.max(vD(k),vD(C));x=Math.pow(10,jA(s)?E:s),C=Math.round(C*x)/x,w=Math.round(w*x)/x;let O=0;for(m&&(d&&C!==i?(n.push({value:i}),C<i&&O++,dD(Math.round((C+O*k)*x)/x,i,aB(i,y,e))&&O++):C<i&&O++);O<S;++O){const e=Math.round((C+O*k)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&w!==a?n.length&&dD(n[n.length-1].value,a,aB(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&w!==a||n.push({value:w}),n}function aB(e,t,{horizontal:n,minRotation:o}){const r=gD(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class sB extends R_{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 jA(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=uD(o),t=uD(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=iB({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&&hD(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 KD(e,this.chart.options.locale,this.options.ticks.format)}}class lB extends sB{static id="linear";static defaults={ticks:{callback:XD.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=TA(e)?e:0,this.max=TA(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=gD(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}}XD.formatters.logarithmic;XD.formatters.numeric;const cB="label";function uB(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function dB(e,t){e.labels=t}function pB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cB;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 fB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cB;const n={labels:[],datasets:[]};return dB(n,e.labels),pB(n,e.datasets,t),n}function hB(e,n){const{height:o=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:c,data:u,options:d,plugins:p=[],fallbackContent:f,updateMode:h,...g}=e,m=a(null),v=a(),b=()=>{m.current&&(v.current=new gz(m.current,{type:c,data:fB(u,s),options:d&&{...d},plugins:p}),uB(n,v.current))},y=()=>{uB(n,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&dB(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&pB(v.current.config.data,u.datasets,s)}),[i,u.datasets]),l((()=>{v.current&&(i?(y(),setTimeout(b)):v.current.update(h))}),[i,d,u.labels,u.datasets,h]),l((()=>{v.current&&(y(),setTimeout(b))}),[c]),l((()=>(b(),()=>y())),[]),t.createElement("canvas",Object.assign({ref:m,role:"img",height:o,width:r},g),f)}const gB=c(hB);function mB(e,n){return gz.register(n),c(((n,o)=>t.createElement(gB,Object.assign({},n,{ref:o,type:e}))))}const vB=mB("line",FR),bB=mB("bar",BR),yB=mB("doughnut",HR),xB=mB("pie",WR);Hj(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),gz.register(class extends R_{static id="category";static defaults={ticks:{callback:rB}};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(jA(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:SD(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:oB(n,e,_A(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 rB.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}},lB,class extends $_{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}=Lz(this),a=function(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(i.radius)?fT:Az;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,Dz(i,t,r)),e.clip(),a(e,Dz(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,Dz(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return jz(this,e,t,n)}inXRange(e,t){return jz(this,e,null,t)}inYRange(e,t){return jz(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 $_{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;WT(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 dR(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=uR(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?oR:e.tension||"monotone"===e.cubicInterpolationMode?rR:nR}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],p=r[u];if(d===p){a.push(d);continue}const f=s(d,p,Math.abs((o-d[t])/(p[t]-d[t])),n.stepped);f[t]=e[t],a.push(f)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return Oz(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=Oz(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(),Nz(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends $_{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 Mz(this,e,"x",t)}inYRange(e,t){return Mz(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||!iT(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,oT(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},class extends $_{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}=bD(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,p=_A(u,s-a),f=wD(r,a,s)&&a!==s,h=p>=nD||f,g=kD(i,l+d,c+d);return h&&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>nD?Math.floor(n/nD):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(tD,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){yz(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%nD||nD))}yz(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),xz(e,this,s,r,i),e.restore()}},Hz,nB,zz);var CB=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;E(e,["type","data","options","className","height","width"]);return L.jsx("div",{style:{height:a,width:l},className:"appChart ".concat(r),children:function(){switch(t){case"bar":return L.jsx(bB,{data:n,options:o,className:r});case"line":return L.jsx(vB,{data:n,options:o,className:r});case"pie":return L.jsx(xB,{data:n,options:o,className:r});case"doughnut":return L.jsx(yB,{data:n,options:o,className:r});default:return null}}()})};Hj(".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: normal;\n color: #000000;\n }\n}\n");var wB=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=e.image,s=e.className,l=e.handleClick;return L.jsxs("div",{className:"appImageBox ".concat(s),onClick:l,children:[L.jsx(xO,{preview:!1,width:n,height:r,src:a.src,alt:i}),i&&L.jsx("span",{className:"text",dangerouslySetInnerHTML:{__html:i}})]})},SB=function(e){var t=e.src,n=e.fallbackIcon,o=void 0===n?L.jsx(tM,{}):n,r=e.className,i=E(e,["src","fallbackIcon","className"]);return L.jsx("div",{className:r,children:L.jsx(av,k({src:t,icon:t?void 0:o},i))})};Hj(".appCheckboxText {\n .checkboxText {\n & > span:last-child {\n line-height: unset;\n & > span {\n font-size: 15px;\n font-weight: 500;\n text-align: left;\n }\n }\n }\n}\n");var kB=function(e){var t=e.text,n=e.checked,o=e.handleChange,r=e.className;return L.jsx("div",{className:"appCheckboxText ".concat(r),children:L.jsx($S,{className:"checkboxText",checked:n,onChange:o,children:L.jsx("span",{dangerouslySetInnerHTML:{__html:t}})})})};tk.Panel;var EB=function(e){var t=e.panels,n=void 0===t?[]:t,o=e.defaultActiveKey,r=e.onChange,i=e.expandIconPosition,a=e.ghost,s=e.accordion,l=e.expandIcon,c=e.size,u=e.bordered,d=e.activeKey,p=e.className,f=E(e,["panels","defaultActiveKey","onChange","expandIconPosition","ghost","accordion","expandIcon","size","bordered","activeKey","className"]),h=n.map((function(e){return{key:e.key,label:e.header,children:e.content,collapsible:e.collapsible}}));return L.jsx("div",{className:p,children:L.jsx(tk,k({defaultActiveKey:o,onChange:r,expandIconPosition:i,ghost:a,accordion:s,expandIcon:l,size:c,bordered:u,activeKey:d,items:h},f))})};Hj('.wrapper {\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n background-color: (0, 0, 0, 0.3);\n backdrop-filter: blur(10px);\n display: flex;\n z-index: 99;\n}\n\n/*code for custom loading icon*/\n\n.loader {\n position: relative;\n width: 80px;\n margin-left: 45%;\n margin-top: 25%;\n}\n\n.loader span {\n display: block;\n transform-origin: 40px 40px;\n animation: ding 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n}\n\n.loader span::before {\n content: "";\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: rgb(0, 0, 0);\n margin: -4px 0 0 -4px;\n}\n\n.loader span:nth-child(1) {\n animation-delay: -0.36s;\n}\n\n.loader span:nth-child(1):before {\n top: 63px;\n left: 63px;\n}\n\n.loader span:nth-child(2) {\n animation-delay: -0.72s;\n}\n\n.loader span:nth-child(2):before {\n top: 68px;\n left: 56px;\n}\n\n.loader span:nth-child(3) {\n animation-delay: -0.108s;\n}\n\n.loader span:nth-child(3):before {\n top: 71px;\n left: 48px;\n}\n.loader span:nth-child(4) {\n animation-delay: -0.144s;\n}\n\n.loader span:nth-child(4):before {\n top: 72px;\n left: 40px;\n}\n\n.loader span:nth-child(5) {\n animation-delay: -0.18;\n}\n\n.loader span:nth-child(5):before {\n top: 71px;\n left: 32px;\n}\n\n.loader span:nth-child(6) {\n animation-delay: -0.216s;\n}\n\n.loader span:nth-child(6):before {\n top: 68px;\n left: 24px;\n}\n\n.loader span:nth-child(7) {\n animation-delay: -0.252s;\n}\n\n.loader span:nth-child(7):before {\n top: 63px;\n left: 17px;\n}\n\n.loader span:nth-child(8) {\n animation-delay: -0.288s;\n}\n\n.loader span:nth-child(8):before {\n top: 56px;\n left: 12px;\n}\n\n@keyframes ding {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n');var OB=function(e){var t=e.className;return L.jsx("div",{className:"wrapper ".concat(t),children:L.jsxs("div",{className:"loader",children:[L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{})]})})},$B=function(e,t){return $B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},$B(e,t)};
45
- /*! *****************************************************************************
46
- Copyright (c) Microsoft Corporation.
47
-
48
- Permission to use, copy, modify, and/or distribute this software for any
49
- purpose with or without fee is hereby granted.
50
-
51
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
52
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
53
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
54
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
55
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
56
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
57
- PERFORMANCE OF THIS SOFTWARE.
58
- ***************************************************************************** */function NB(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}$B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var MB=function(){return MB=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},MB.apply(this,arguments)};function IB(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 PB(e,t,n,o){return new(n||(n=Promise))((function(t,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(i,a)}s((o=o.apply(e,[])).next())}))}function LB(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function jB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var AB=process.env.NODE_ENV,DB=function(e,t,n,o,r,i,a,s){if("production"!==AB&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},TB=jB(DB),RB=i(null);function _B(e,t,n,o){var r,i,a={};return r=e,i=function(e,r){var i=n[r];i!==t[r]&&(a[r]=i,e(o,i))},Object.keys(r).forEach((function(e){return i(r[e],e)})),a}function zB(e,t,n){var o,r,i,a=(o=n,r=function(n,o,r){return"function"==typeof e[r]&&n.push(google.maps.event.addListener(t,o,e[r])),n},i=[],Object.keys(o).reduce((function(e,t){return r(e,o[t],t)}),i));return a}function BB(e){google.maps.event.removeListener(e)}function HB(e){void 0===e&&(e=[]),e.forEach(BB)}function FB(e){var t=e.updaterMap,n=e.eventMap,o=e.prevProps,r=e.nextProps,i=e.instance,a=zB(r,i,n);return _B(t,o,r,i),a}var WB={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},VB={extraMapTypes:function(e,t){t.forEach((function(t,n){e.mapTypes.set(String(n),t)}))},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}};v((function(e){var t=e.children,n=e.options,o=e.id,r=e.mapContainerStyle,i=e.mapContainerClassName,s=e.center,c=e.onClick,u=e.onDblClick,p=e.onDrag,f=e.onDragEnd,h=e.onDragStart,g=e.onMouseMove,m=e.onMouseOut,v=e.onMouseOver,b=e.onMouseDown,y=e.onMouseUp,x=e.onRightClick,C=e.onCenterChanged,w=e.onLoad,S=e.onUnmount,k=d(null),E=k[0],O=k[1],$=a(null),N=d(null),M=N[0],I=N[1],P=d(null),j=P[0],A=P[1],D=d(null),T=D[0],R=D[1],_=d(null),z=_[0],B=_[1],H=d(null),F=H[0],W=H[1],V=d(null),K=V[0],q=V[1],X=d(null),U=X[0],G=X[1],Y=d(null),Q=Y[0],Z=Y[1],J=d(null),ee=J[0],te=J[1],ne=d(null),oe=ne[0],re=ne[1],ie=d(null),ae=ie[0],se=ie[1],le=d(null),ce=le[0],ue=le[1];return l((function(){n&&null!==E&&E.setOptions(n)}),[E,n]),l((function(){null!==E&&void 0!==s&&E.setCenter(s)}),[E,s]),l((function(){E&&u&&(null!==j&&google.maps.event.removeListener(j),A(google.maps.event.addListener(E,"dblclick",u)))}),[u]),l((function(){E&&f&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(E,"dragend",f)))}),[f]),l((function(){E&&h&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(E,"dragstart",h)))}),[h]),l((function(){E&&b&&(null!==F&&google.maps.event.removeListener(F),W(google.maps.event.addListener(E,"mousedown",b)))}),[b]),l((function(){E&&g&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(E,"mousemove",g)))}),[g]),l((function(){E&&m&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener(E,"mouseout",m)))}),[m]),l((function(){E&&v&&(null!==Q&&google.maps.event.removeListener(Q),Z(google.maps.event.addListener(E,"mouseover",v)))}),[v]),l((function(){E&&y&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(E,"mouseup",y)))}),[y]),l((function(){E&&x&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(E,"rightclick",x)))}),[x]),l((function(){E&&c&&(null!==ae&&google.maps.event.removeListener(ae),se(google.maps.event.addListener(E,"click",c)))}),[c]),l((function(){E&&p&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener(E,"drag",p)))}),[p]),l((function(){E&&C&&(null!==M&&google.maps.event.removeListener(M),I(google.maps.event.addListener(E,"center_changed",C)))}),[c]),l((function(){var e=null===$.current?null:new google.maps.Map($.current,n);return O(e),null!==e&&w&&w(e),function(){null!==e&&S&&S(e)}}),[]),L.jsx("div",{id:o,ref:$,style:r,className:i,children:L.jsx(RB.Provider,{value:E,children:null!==E?t:null})})}));var KB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={map:null},t.registeredEvents=[],t.mapRef=null,t.getInstance=function(){return null===t.mapRef?null:new google.maps.Map(t.mapRef,t.props.options)},t.panTo=function(e){var n=t.getInstance();n&&n.panTo(e)},t.setMapCallback=function(){null!==t.state.map&&t.props.onLoad&&t.props.onLoad(t.state.map)},t.getRef=function(e){t.mapRef=e},t}return NB(t,e),t.prototype.componentDidMount=function(){var e=this.getInstance();this.registeredEvents=FB({updaterMap:VB,eventMap:WB,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.map&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:VB,eventMap:WB,prevProps:e,nextProps:this.props,instance:this.state.map}))},t.prototype.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),HB(this.registeredEvents))},t.prototype.render=function(){return L.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:L.jsx(RB.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})},t}(b),qB="undefined"!=typeof document;function XB(e){var t=e.url,n=e.id,o=e.nonce;return qB?new Promise((function(e,r){var i=document.getElementById(n),a=window;if(i){var s=i.getAttribute("data-state");if(i.src===t&&"error"!==s){if("ready"===s)return e(n);var l=a.initMap,c=i.onerror;return a.initMap=function(){l&&l(),e(n)},void(i.onerror=function(e){c&&c(e),r(e)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=t,u.id=n,u.async=!0,u.nonce=o||"",u.onerror=function(e){u.setAttribute("data-state","error"),r(e)},a.initMap=function(){u.setAttribute("data-state","ready"),e(n)},document.head.appendChild(u)})).catch((function(e){throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))}function UB(e){var t=e.href;return!(!t||0!==t.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)}function GB(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,o){return UB(n)||Reflect.apply(t,e,[n,o]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return UB(t)||Reflect.apply(n,e,[t]),t}}}function YB(e){var t=e.googleMapsApiKey,n=e.googleMapsClientId,o=e.version,r=void 0===o?"weekly":o,i=e.language,a=e.region,s=e.libraries,l=e.channel,c=e.mapIds,u=e.authReferrerPolicy,d=[];return TB(t&&n||!(t&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?d.push("key=".concat(t)):n&&d.push("client=".concat(n)),r&&d.push("v=".concat(r)),i&&d.push("language=".concat(i)),a&&d.push("region=".concat(a)),s&&s.length&&d.push("libraries=".concat(s.sort().join(","))),l&&d.push("channel=".concat(l)),c&&c.length&&d.push("map_ids=".concat(c.join(","))),u&&d.push("auth_referrer_policy=".concat(u)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var QB=!1;function ZB(){return L.jsx("div",{children:"Loading..."})}var JB,eH={id:"script-loader",version:"weekly"},tH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.check=f(),t.state={loaded:!1},t.cleanupCallback=function(){delete window.google.maps,t.injectScript()},t.isCleaningUp=function(){return PB(t,0,void 0,(function(){function e(e){if(QB){if(qB)var t=window.setInterval((function(){QB||(window.clearInterval(t),e())}),1)}else e()}return LB(this,(function(t){return[2,new Promise(e)]}))}))},t.cleanup=function(){QB=!0;var e=document.getElementById(t.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"==typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},t.injectScript=function(){t.props.preventGoogleFontsLoading&&GB(),TB(!!t.props.id,'LoadScript requires "id" prop to be a string: %s',t.props.id),XB({id:t.props.id,nonce:t.props.nonce,url:YB(t.props)}).then((function(){t.props.onLoad&&t.props.onLoad(),t.setState((function(){return{loaded:!0}}))})).catch((function(e){t.props.onError&&t.props.onError(e),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(t.props.googleMapsApiKey||"-",") or Client ID (").concat(t.props.googleMapsClientId||"-",") to <LoadScript />\n Otherwise it is a Network issue.\n "))}))},t}return NB(t,e),t.prototype.componentDidMount=function(){if(qB){if(window.google&&window.google.maps&&!QB)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}},t.prototype.componentDidUpdate=function(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),qB&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},t.prototype.componentWillUnmount=function(){var e=this;if(qB){this.cleanup();window.setTimeout((function(){e.check.current||(delete window.google,QB=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}},t.prototype.render=function(){return L.jsxs(L.Fragment,{children:[L.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||L.jsx(ZB,{})]})},t.defaultProps=eH,t}(b);var nH,oH=L.jsx(ZB,{});v((function(e){var t=e.loadingElement,n=e.onLoad,o=e.onError,r=e.onUnmount,i=e.children,s=function(e){var t=e.id,n=void 0===t?eH.id:t,o=e.version,r=void 0===o?eH.version:o,i=e.nonce,s=e.googleMapsApiKey,c=e.googleMapsClientId,u=e.language,p=e.region,f=e.libraries,h=e.preventGoogleFontsLoading,g=e.channel,m=e.mapIds,v=e.authReferrerPolicy,b=a(!1),y=d(!1),x=y[0],C=y[1],w=d(void 0),S=w[0],k=w[1];l((function(){return b.current=!0,function(){b.current=!1}}),[]),l((function(){qB&&h&&GB()}),[h]),l((function(){x&&TB(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[x]);var E=YB({version:r,googleMapsApiKey:s,googleMapsClientId:c,language:u,region:p,libraries:f,channel:g,mapIds:m,authReferrerPolicy:v});l((function(){function e(){b.current&&(C(!0),JB=E)}qB&&(window.google&&window.google.maps&&JB===E?e():XB({id:n,url:E,nonce:i}).then(e).catch((function(e){b.current&&k(e),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(s||"-",") or Client ID (").concat(c||"-",")\n Otherwise it is a Network issue.\n ")),console.error(e)})))}),[n,E,i]);var O=a();return l((function(){O.current&&f!==O.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),O.current=f}),[f]),{isLoaded:x,loadError:S,url:E}}(IB(e,["loadingElement","onLoad","onError","onUnmount","children"])),c=s.isLoaded,u=s.loadError;return l((function(){c&&"function"==typeof n&&n()}),[c,n]),l((function(){u&&"function"==typeof o&&o(u)}),[u,o]),l((function(){return function(){r&&r()}}),[r]),c?i:t||oH})),function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(nH||(nH={}));var rH={},iH={options:function(e,t){e.setOptions(t)}};v((function(e){var t=e.options,n=e.onLoad,o=e.onUnmount,i=r(RB),a=d(null),s=a[0],c=a[1];return l((function(){null!==s&&s.setMap(i)}),[i]),l((function(){t&&null!==s&&s.setOptions(t)}),[s,t]),l((function(){var e=new google.maps.TrafficLayer(MB(MB({},t||{}),{map:i}));return c(e),n&&n(e),function(){null!==s&&(o&&o(s),s.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={trafficLayer:null},t.setTrafficLayerCallback=function(){null!==t.state.trafficLayer&&t.props.onLoad&&t.props.onLoad(t.state.trafficLayer)},t.registeredEvents=[],t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TrafficLayer(MB(MB({},this.props.options||{}),{map:this.context}));this.registeredEvents=FB({updaterMap:iH,eventMap:rH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.trafficLayer&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:iH,eventMap:rH,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),HB(this.registeredEvents),this.state.trafficLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b),v((function(e){var t=e.onLoad,n=e.onUnmount,o=r(RB),i=d(null),a=i[0],s=i[1];return l((function(){null!==a&&a.setMap(o)}),[o]),l((function(){var e=new google.maps.BicyclingLayer;return s(e),e.setMap(o),t&&t(e),function(){null!==e&&(n&&n(e),e.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={bicyclingLayer:null},t.setBicyclingLayerCallback=function(){null!==t.state.bicyclingLayer&&(t.state.bicyclingLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.bicyclingLayer))},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:e}}),this.setBicyclingLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b),v((function(e){var t=e.onLoad,n=e.onUnmount,o=r(RB),i=d(null),a=i[0],s=i[1];return l((function(){null!==a&&a.setMap(o)}),[o]),l((function(){var e=new google.maps.TransitLayer;return s(e),e.setMap(o),t&&t(e),function(){null!==a&&(n&&n(a),a.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={transitLayer:null},t.setTransitLayerCallback=function(){null!==t.state.transitLayer&&(t.state.transitLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.transitLayer))},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var aH={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},sH={drawingMode:function(e,t){e.setDrawingMode(t)},options:function(e,t){e.setOptions(t)}};v((function(e){var t=e.options,n=e.drawingMode,o=e.onCircleComplete,i=e.onMarkerComplete,a=e.onOverlayComplete,s=e.onPolygonComplete,c=e.onPolylineComplete,u=e.onRectangleComplete,p=e.onLoad,f=e.onUnmount,h=r(RB),g=d(null),m=g[0],v=g[1],b=d(null),y=b[0],x=b[1],C=d(null),w=C[0],S=C[1],k=d(null),E=k[0],O=k[1],$=d(null),N=$[0],M=$[1],I=d(null),P=I[0],L=I[1],j=d(null),A=j[0],D=j[1];return l((function(){null!==m&&m.setMap(h)}),[h]),l((function(){t&&null!==m&&m.setOptions(t)}),[m,t]),l((function(){null!==m&&m.setDrawingMode(null!=n?n:null)}),[m,n]),l((function(){m&&o&&(null!==y&&google.maps.event.removeListener(y),x(google.maps.event.addListener(m,"circlecomplete",o)))}),[m,o]),l((function(){m&&i&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(m,"markercomplete",i)))}),[m,i]),l((function(){m&&a&&(null!==E&&google.maps.event.removeListener(E),O(google.maps.event.addListener(m,"overlaycomplete",a)))}),[m,a]),l((function(){m&&s&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(m,"polygoncomplete",s)))}),[m,s]),l((function(){m&&c&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(m,"polylinecomplete",c)))}),[m,c]),l((function(){m&&u&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(m,"rectanglecomplete",u)))}),[m,u]),l((function(){TB(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(MB(MB({},t||{}),{map:h}));return n&&e.setDrawingMode(n),o&&x(google.maps.event.addListener(e,"circlecomplete",o)),i&&S(google.maps.event.addListener(e,"markercomplete",i)),a&&O(google.maps.event.addListener(e,"overlaycomplete",a)),s&&M(google.maps.event.addListener(e,"polygoncomplete",s)),c&&L(google.maps.event.addListener(e,"polylinecomplete",c)),u&&D(google.maps.event.addListener(e,"rectanglecomplete",u)),v(e),p&&p(e),function(){null!==m&&(y&&google.maps.event.removeListener(y),w&&google.maps.event.removeListener(w),E&&google.maps.event.removeListener(E),N&&google.maps.event.removeListener(N),P&&google.maps.event.removeListener(P),A&&google.maps.event.removeListener(A),f&&f(m),m.setMap(null))}}),[]),null})),function(e){function t(t){var n=e.call(this,t)||this;return n.registeredEvents=[],n.state={drawingManager:null},n.setDrawingManagerCallback=function(){null!==n.state.drawingManager&&n.props.onLoad&&n.props.onLoad(n.state.drawingManager)},TB(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),n}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.drawing.DrawingManager(MB(MB({},this.props.options||{}),{map:this.context}));this.registeredEvents=FB({updaterMap:sH,eventMap:aH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.drawingManager&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:sH,eventMap:aH,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))},t.prototype.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),HB(this.registeredEvents),this.state.drawingManager.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var lH={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},cH={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},map:function(e,t){e.setMap(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},uH={};v((function(e){var t=e.position,n=e.options,i=e.clusterer,a=e.noClustererRedraw,s=e.children,c=e.draggable,f=e.visible,h=e.animation,g=e.clickable,v=e.cursor,b=e.icon,y=e.label,x=e.opacity,C=e.shape,w=e.title,S=e.zIndex,k=e.onClick,E=e.onDblClick,O=e.onDrag,$=e.onDragEnd,N=e.onDragStart,M=e.onMouseOut,I=e.onMouseOver,P=e.onMouseUp,j=e.onMouseDown,A=e.onRightClick,D=e.onClickableChanged,T=e.onCursorChanged,R=e.onAnimationChanged,_=e.onDraggableChanged,z=e.onFlatChanged,B=e.onIconChanged,H=e.onPositionChanged,F=e.onShapeChanged,W=e.onTitleChanged,V=e.onVisibleChanged,K=e.onZindexChanged,q=e.onLoad,X=e.onUnmount,U=r(RB),G=d(null),Y=G[0],Q=G[1],Z=d(null),J=Z[0],ee=Z[1],te=d(null),ne=te[0],oe=te[1],re=d(null),ie=re[0],ae=re[1],se=d(null),le=se[0],ce=se[1],ue=d(null),de=ue[0],pe=ue[1],fe=d(null),he=fe[0],ge=fe[1],me=d(null),ve=me[0],be=me[1],ye=d(null),xe=ye[0],Ce=ye[1],we=d(null),Se=we[0],ke=we[1],Ee=d(null),Oe=Ee[0],$e=Ee[1],Ne=d(null),Me=Ne[0],Ie=Ne[1],Pe=d(null),Le=Pe[0],je=Pe[1],Ae=d(null),De=Ae[0],Te=Ae[1],Re=d(null),_e=Re[0],ze=Re[1],Be=d(null),He=Be[0],Fe=Be[1],We=d(null),Ve=We[0],Ke=We[1],qe=d(null),Xe=qe[0],Ue=qe[1],Ge=d(null),Ye=Ge[0],Qe=Ge[1],Ze=d(null),Je=Ze[0],et=Ze[1],tt=d(null),nt=tt[0],ot=tt[1],rt=d(null),it=rt[0],at=rt[1];l((function(){null!==Y&&Y.setMap(U)}),[U]),l((function(){void 0!==n&&null!==Y&&Y.setOptions(n)}),[Y,n]),l((function(){void 0!==c&&null!==Y&&Y.setDraggable(c)}),[Y,c]),l((function(){t&&null!==Y&&Y.setPosition(t)}),[Y,t]),l((function(){void 0!==f&&null!==Y&&Y.setVisible(f)}),[Y,f]),l((function(){null==Y||Y.setAnimation(h)}),[Y,h]),l((function(){Y&&void 0!==g&&Y.setClickable(g)}),[Y,g]),l((function(){Y&&void 0!==v&&Y.setCursor(v)}),[Y,v]),l((function(){Y&&void 0!==b&&Y.setIcon(b)}),[Y,b]),l((function(){Y&&void 0!==y&&Y.setLabel(y)}),[Y,y]),l((function(){Y&&void 0!==x&&Y.setOpacity(x)}),[Y,x]),l((function(){Y&&void 0!==C&&Y.setShape(C)}),[Y,C]),l((function(){Y&&void 0!==w&&Y.setTitle(w)}),[Y,w]),l((function(){Y&&void 0!==S&&Y.setZIndex(S)}),[Y,S]),l((function(){Y&&E&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(Y,"dblclick",E)))}),[E]),l((function(){Y&&$&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(Y,"dragend",$)))}),[$]),l((function(){Y&&N&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(Y,"dragstart",N)))}),[N]),l((function(){Y&&j&&(null!==le&&google.maps.event.removeListener(le),ce(google.maps.event.addListener(Y,"mousedown",j)))}),[j]),l((function(){Y&&M&&(null!==de&&google.maps.event.removeListener(de),pe(google.maps.event.addListener(Y,"mouseout",M)))}),[M]),l((function(){Y&&I&&(null!==he&&google.maps.event.removeListener(he),ge(google.maps.event.addListener(Y,"mouseover",I)))}),[I]),l((function(){Y&&P&&(null!==ve&&google.maps.event.removeListener(ve),be(google.maps.event.addListener(Y,"mouseup",P)))}),[P]),l((function(){Y&&A&&(null!==xe&&google.maps.event.removeListener(xe),Ce(google.maps.event.addListener(Y,"rightclick",A)))}),[A]),l((function(){Y&&k&&(null!==Se&&google.maps.event.removeListener(Se),ke(google.maps.event.addListener(Y,"click",k)))}),[k]),l((function(){Y&&O&&(null!==Oe&&google.maps.event.removeListener(Oe),$e(google.maps.event.addListener(Y,"drag",O)))}),[O]),l((function(){Y&&D&&(null!==Me&&google.maps.event.removeListener(Me),Ie(google.maps.event.addListener(Y,"clickable_changed",D)))}),[D]),l((function(){Y&&T&&(null!==Le&&google.maps.event.removeListener(Le),je(google.maps.event.addListener(Y,"cursor_changed",T)))}),[T]),l((function(){Y&&R&&(null!==De&&google.maps.event.removeListener(De),Te(google.maps.event.addListener(Y,"animation_changed",R)))}),[R]),l((function(){Y&&_&&(null!==_e&&google.maps.event.removeListener(_e),ze(google.maps.event.addListener(Y,"draggable_changed",_)))}),[_]),l((function(){Y&&z&&(null!==He&&google.maps.event.removeListener(He),Fe(google.maps.event.addListener(Y,"flat_changed",z)))}),[z]),l((function(){Y&&B&&(null!==Ve&&google.maps.event.removeListener(Ve),Ke(google.maps.event.addListener(Y,"icon_changed",B)))}),[B]),l((function(){Y&&H&&(null!==Xe&&google.maps.event.removeListener(Xe),Ue(google.maps.event.addListener(Y,"position_changed",H)))}),[H]),l((function(){Y&&F&&(null!==Ye&&google.maps.event.removeListener(Ye),Qe(google.maps.event.addListener(Y,"shape_changed",F)))}),[F]),l((function(){Y&&W&&(null!==Je&&google.maps.event.removeListener(Je),et(google.maps.event.addListener(Y,"title_changed",W)))}),[W]),l((function(){Y&&V&&(null!==nt&&google.maps.event.removeListener(nt),ot(google.maps.event.addListener(Y,"visible_changed",V)))}),[V]),l((function(){Y&&K&&(null!==it&&google.maps.event.removeListener(it),at(google.maps.event.addListener(Y,"zindex_changed",K)))}),[K]),l((function(){var e=MB(MB(MB({},n||uH),i?uH:{map:U}),{position:t}),o=new google.maps.Marker(e);return i?i.addMarker(o,!!a):o.setMap(U),t&&o.setPosition(t),void 0!==f&&o.setVisible(f),void 0!==c&&o.setDraggable(c),void 0!==g&&o.setClickable(g),"string"==typeof v&&o.setCursor(v),b&&o.setIcon(b),void 0!==y&&o.setLabel(y),void 0!==x&&o.setOpacity(x),C&&o.setShape(C),"string"==typeof w&&o.setTitle(w),"number"==typeof S&&o.setZIndex(S),E&&ee(google.maps.event.addListener(o,"dblclick",E)),$&&oe(google.maps.event.addListener(o,"dragend",$)),N&&ae(google.maps.event.addListener(o,"dragstart",N)),j&&ce(google.maps.event.addListener(o,"mousedown",j)),M&&pe(google.maps.event.addListener(o,"mouseout",M)),I&&ge(google.maps.event.addListener(o,"mouseover",I)),P&&be(google.maps.event.addListener(o,"mouseup",P)),A&&Ce(google.maps.event.addListener(o,"rightclick",A)),k&&ke(google.maps.event.addListener(o,"click",k)),O&&$e(google.maps.event.addListener(o,"drag",O)),D&&Ie(google.maps.event.addListener(o,"clickable_changed",D)),T&&je(google.maps.event.addListener(o,"cursor_changed",T)),R&&Te(google.maps.event.addListener(o,"animation_changed",R)),_&&ze(google.maps.event.addListener(o,"draggable_changed",_)),z&&Fe(google.maps.event.addListener(o,"flat_changed",z)),B&&Ke(google.maps.event.addListener(o,"icon_changed",B)),H&&Ue(google.maps.event.addListener(o,"position_changed",H)),F&&Qe(google.maps.event.addListener(o,"shape_changed",F)),W&&et(google.maps.event.addListener(o,"title_changed",W)),V&&ot(google.maps.event.addListener(o,"visible_changed",V)),K&&at(google.maps.event.addListener(o,"zindex_changed",K)),Q(o),q&&q(o),function(){null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),null!==ie&&google.maps.event.removeListener(ie),null!==le&&google.maps.event.removeListener(le),null!==de&&google.maps.event.removeListener(de),null!==he&&google.maps.event.removeListener(he),null!==ve&&google.maps.event.removeListener(ve),null!==xe&&google.maps.event.removeListener(xe),null!==Se&&google.maps.event.removeListener(Se),null!==Me&&google.maps.event.removeListener(Me),null!==Le&&google.maps.event.removeListener(Le),null!==De&&google.maps.event.removeListener(De),null!==_e&&google.maps.event.removeListener(_e),null!==He&&google.maps.event.removeListener(He),null!==Ve&&google.maps.event.removeListener(Ve),null!==Xe&&google.maps.event.removeListener(Xe),null!==Je&&google.maps.event.removeListener(Je),null!==nt&&google.maps.event.removeListener(nt),null!==it&&google.maps.event.removeListener(it),X&&X(o),i?i.removeMarker(o,!!a):o&&o.setMap(null)}}),[]);var st=u((function(){return s?p.map(s,(function(e){return o(e)?m(e,{anchor:Y}):e})):null}),[s,Y]);return L.jsx(L.Fragment,{children:st})||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t}NB(t,e),t.prototype.componentDidMount=function(){var e=MB(MB(MB({},this.props.options||uH),this.props.clusterer?uH:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(e),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=FB({updaterMap:cH,eventMap:lH,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},t.prototype.componentDidUpdate=function(e){this.marker&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:cH,eventMap:lH,prevProps:e,nextProps:this.props,instance:this.marker}))},t.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),HB(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},t.prototype.render=function(){var e=this,t=null;return this.props.children&&(t=p.map(this.props.children,(function(t){return o(t)?m(t,{anchor:e.marker}):t}))),t||null},t.contextType=RB}(b);var dH=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var t=this.cluster.getClusterer();if(google.maps.event.trigger(t,"click",this.cluster),google.maps.event.trigger(t,"clusterclick",this.cluster),t.getZoomOnClick()){var n=t.getMaxZoom(),o=this.cluster.getBounds(),r=t.getMap();null!==r&&"fitBounds"in r&&r.fitBounds(o),this.timeOut=window.setTimeout((function(){var e=t.getMap();if(null!==e){"fitBounds"in e&&e.fitBounds(o);var r=e.getZoom()||0;null!==n&&r>n&&e.setZoom(n+1)}}),100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(e=this.getPanes())||void 0===e||e.overlayMouseTarget.appendChild(this.div);var t=this.getMap();null!==t&&(this.boundsChangedListener=google.maps.event.addListener(t,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=null!==e?"".concat(e.y,"px"):"0",this.div.style.left=null!==e?"".concat(e.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e,t,n,o,r,i;if(this.div&&this.center){var a=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,s=this.backgroundPosition.split(" "),l=parseInt((null===(e=s[0])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),c=parseInt((null===(t=s[1])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),u=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==u?"".concat(u.y,"px"):"0","; left: ").concat(null!==u?"".concat(u.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var d=document.createElement("img");d.alt=a,d.src=this.url,d.width=this.width,d.height=this.height,d.setAttribute("style","position: absolute; top: ".concat(c,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(d.style.clip="rect(-".concat(c,"px, -").concat(l+this.width,"px, -").concat(c+this.height,", -").concat(l,")"));var p=document.createElement("div");p.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(p.innerText="".concat(null===(o=this.sums)||void 0===o?void 0:o.text)),(null===(r=this.sums)||void 0===r?void 0:r.html)&&(p.innerHTML="".concat(null===(i=this.sums)||void 0===i?void 0:i.html)),this.div.innerHTML="",this.div.appendChild(d),this.div.appendChild(p),this.div.title=a,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),n=t[Math.min(t.length-1,Math.max(0,e.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return null!==t&&(t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0]),t},e}(),pH=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new dH(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=0,n=this.getMarkers();t<n.length;t++){var o=n[t].getPosition();o&&e.extend(o)}return e},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(e){var t,n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter&&(n=e.getPosition())){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+n.lat())/o,(this.center.lng()*(o-1)+n.lng())/o),this.calculateBounds()}}else(n=e.getPosition())&&(this.center=n,this.calculateBounds());e.isAdded=!0,this.markers.push(e);var r=this.markers.length,i=this.markerClusterer.getMaxZoom(),a=null===(t=this.map)||void 0===t?void 0:t.getZoom();if(null!==i&&void 0!==a&&a>i)e.getMap()!==this.map&&e.setMap(this.map);else if(r<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(r===this.minClusterSize)for(var s=0,l=this.markers;s<l.length;s++){l[s].setMap(null)}else e.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var e,t=this.markers.length,n=this.markerClusterer.getMaxZoom(),o=null===(e=this.map)||void 0===e?void 0:e.getZoom();null!==n&&void 0!==o&&o>n||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},e.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}();function fH(e,t){var n=e.length,o=n.toString().length,r=Math.min(o,t);return{text:n.toString(),index:r,title:""}}var hH=[53,56,66,78,90],gH=function(){function e(t,n,o){void 0===n&&(n=[]),void 0===o&&(o={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=o.gridSize||60,this.minClusterSize=o.minimumClusterSize||2,this.maxZoom=o.maxZoom||null,this.styles=o.styles||[],this.title=o.title||"",this.zoomOnClick=!0,void 0!==o.zoomOnClick&&(this.zoomOnClick=o.zoomOnClick),this.averageCenter=!1,void 0!==o.averageCenter&&(this.averageCenter=o.averageCenter),this.ignoreHidden=!1,void 0!==o.ignoreHidden&&(this.ignoreHidden=o.ignoreHidden),this.enableRetinaIcons=!1,void 0!==o.enableRetinaIcons&&(this.enableRetinaIcons=o.enableRetinaIcons),this.imagePath=o.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=o.imageExtension||"png",this.imageSizes=o.imageSizes||hH,this.calculator=o.calculator||fH,this.batchSize=o.batchSize||2e3,this.batchSizeIE=o.batchSizeIE||500,this.clusterClass=o.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var e,t;this.resetViewport(!1),(null===(e=this.getMap())||void 0===e?void 0:e.getZoom())!==(this.get("minZoom")||0)&&(null===(t=this.getMap())||void 0===t?void 0:t.getZoom())!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),null!==e&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var e=0,t=this.markers;e<t.length;e++){var n=t[e];n.getMap()!==this.activeMap&&n.setMap(this.activeMap)}for(var o=0,r=this.clusters;o<r.length;o++){r[o].remove()}this.clusters=[];for(var i=0,a=this.listeners;i<a.length;i++){var s=a[i];google.maps.event.removeListener(s)}this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.getMap=function(){return null},e.prototype.getPanes=function(){return null},e.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},e.prototype.setMap=function(){},e.prototype.addListener=function(){return{remove:function(){}}},e.prototype.bindTo=function(){},e.prototype.get=function(){},e.prototype.notify=function(){},e.prototype.set=function(){},e.prototype.setValues=function(){},e.prototype.unbind=function(){},e.prototype.unbindAll=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},e.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0,o=e;n<o.length;n++){var r=o[n].getPosition();r&&t.extend(r)}var i=this.getMap();null!==i&&"fitBounds"in i&&i.fitBounds(t)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(e){this.gridSize=e},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(e){this.maxZoom=e},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(e){this.styles=e},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(e){this.title=e},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(e){this.averageCenter=e},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(e){this.imageExtension=e},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(e){this.imagePath=e},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(e){this.imageSizes=e},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(e){this.calculator=e},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(e){this.clusterClass=e},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},e.prototype.addMarkers=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];o&&this.pushMarkerTo(o)}t||this.redraw()},e.prototype.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers.push(e)},e.prototype.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var n=0;n<this.markers.length;n++)if(e===this.markers[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},e.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},e.prototype.removeMarkers=function(e,t){for(var n=!1,o=0,r=e;o<r.length;o++){var i=r[o];n=n||this.removeMarker_(i)}return!t&&n&&this.repaint(),n},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var t=0,n=e;t<n.length;t++){n[t].remove()}}),0)},e.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));null!==n&&(n.x+=this.gridSize,n.y-=this.gridSize);var o=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(null!==o&&(o.x-=this.gridSize,o.y+=this.gridSize),null!==n){var r=t.fromDivPixelToLatLng(n);null!==r&&e.extend(r)}if(null!==o){var i=t.fromDivPixelToLatLng(o);null!==i&&e.extend(i)}return e},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(e){for(var t=0,n=this.clusters;t<n.length;t++){n[t].remove()}this.clusters=[];for(var o=0,r=this.markers;o<r.length;o++){var i=r[o];i.isAdded=!1,e&&i.setMap(null)}},e.prototype.distanceBetweenPoints=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,o=(t.lng()-e.lng())*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},e.prototype.isMarkerInBounds=function(e,t){var n=e.getPosition();return!!n&&t.contains(n)},e.prototype.addToClosestCluster=function(e){for(var t,n=4e4,o=null,r=0,i=this.clusters;r<i.length;r++){var a=(t=i[r]).getCenter(),s=e.getPosition();if(a&&s){var l=this.distanceBetweenPoints(a,s);l<n&&(n=l,o=t)}}o&&o.isMarkerInClusterBounds(e)?o.addMarker(e):((t=new pH(this)).addMarker(e),this.clusters.push(t))},e.prototype.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap(),o=(null!==n&&"getBounds"in n?n.getBounds():null),r=((null==n?void 0:n.getZoom())||0)>3?new google.maps.LatLngBounds(null==o?void 0:o.getSouthWest(),null==o?void 0:o.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),i=this.getExtendedBounds(r),a=Math.min(e+this.batchSize,this.markers.length),s=e;s<a;s++){var l=this.markers[s];l&&!l.isAdded&&this.isMarkerInBounds(l,i)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(a<this.markers.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters(a)}),0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var c=0,u=this.clusters;c<u.length;c++){u[c].updateIcon()}}}},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype){var n=t;this.prototype[n]=e.prototype[n]}return this}.apply(e,[t])},e}(),mH={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},vH={averageCenter:function(e,t){e.setAverageCenter(t)},batchSizeIE:function(e,t){e.setBatchSizeIE(t)},calculator:function(e,t){e.setCalculator(t)},clusterClass:function(e,t){e.setClusterClass(t)},enableRetinaIcons:function(e,t){e.setEnableRetinaIcons(t)},gridSize:function(e,t){e.setGridSize(t)},ignoreHidden:function(e,t){e.setIgnoreHidden(t)},imageExtension:function(e,t){e.setImageExtension(t)},imagePath:function(e,t){e.setImagePath(t)},imageSizes:function(e,t){e.setImageSizes(t)},maxZoom:function(e,t){e.setMaxZoom(t)},minimumClusterSize:function(e,t){e.setMinimumClusterSize(t)},styles:function(e,t){e.setStyles(t)},title:function(e,t){e.setTitle(t)},zoomOnClick:function(e,t){e.setZoomOnClick(t)}},bH={};function yH(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}v((function(e){var t=e.children,n=e.options,o=e.averageCenter,i=e.batchSizeIE,a=e.calculator,s=e.clusterClass,c=e.enableRetinaIcons,u=e.gridSize,p=e.ignoreHidden,f=e.imageExtension,h=e.imagePath,g=e.imageSizes,m=e.maxZoom,v=e.minimumClusterSize,b=e.styles,y=e.title,x=e.zoomOnClick,C=e.onClick,w=e.onClusteringBegin,S=e.onClusteringEnd,k=e.onMouseOver,E=e.onMouseOut,O=e.onLoad,$=e.onUnmount,N=d(null),M=N[0],I=N[1],P=r(RB),L=d(null),j=L[0],A=L[1],D=d(null),T=D[0],R=D[1],_=d(null),z=_[0],B=_[1],H=d(null),F=H[0],W=H[1],V=d(null),K=V[0],q=V[1];return l((function(){M&&E&&(null!==F&&google.maps.event.removeListener(F),W(google.maps.event.addListener(M,mH.onMouseOut,E)))}),[E]),l((function(){M&&k&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(M,mH.onMouseOver,k)))}),[k]),l((function(){M&&C&&(null!==j&&google.maps.event.removeListener(j),A(google.maps.event.addListener(M,mH.onClick,C)))}),[C]),l((function(){M&&w&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(M,mH.onClusteringBegin,w)))}),[w]),l((function(){M&&S&&(null!==z&&google.maps.event.removeListener(z),R(google.maps.event.addListener(M,mH.onClusteringEnd,S)))}),[S]),l((function(){void 0!==o&&null!==M&&vH.averageCenter(M,o)}),[M,o]),l((function(){void 0!==i&&null!==M&&vH.batchSizeIE(M,i)}),[M,i]),l((function(){void 0!==a&&null!==M&&vH.calculator(M,a)}),[M,a]),l((function(){void 0!==s&&null!==M&&vH.clusterClass(M,s)}),[M,s]),l((function(){void 0!==c&&null!==M&&vH.enableRetinaIcons(M,c)}),[M,c]),l((function(){void 0!==u&&null!==M&&vH.gridSize(M,u)}),[M,u]),l((function(){void 0!==p&&null!==M&&vH.ignoreHidden(M,p)}),[M,p]),l((function(){void 0!==f&&null!==M&&vH.imageExtension(M,f)}),[M,f]),l((function(){void 0!==h&&null!==M&&vH.imagePath(M,h)}),[M,h]),l((function(){void 0!==g&&null!==M&&vH.imageSizes(M,g)}),[M,g]),l((function(){void 0!==m&&null!==M&&vH.maxZoom(M,m)}),[M,m]),l((function(){void 0!==v&&null!==M&&vH.minimumClusterSize(M,v)}),[M,v]),l((function(){void 0!==b&&null!==M&&vH.styles(M,b)}),[M,b]),l((function(){void 0!==y&&null!==M&&vH.title(M,y)}),[M,y]),l((function(){void 0!==x&&null!==M&&vH.zoomOnClick(M,x)}),[M,x]),l((function(){if(P){var e=MB({},n||bH),t=new gH(P,[],e);return o&&vH.averageCenter(t,o),i&&vH.batchSizeIE(t,i),a&&vH.calculator(t,a),s&&vH.clusterClass(t,s),c&&vH.enableRetinaIcons(t,c),u&&vH.gridSize(t,u),p&&vH.ignoreHidden(t,p),f&&vH.imageExtension(t,f),h&&vH.imagePath(t,h),g&&vH.imageSizes(t,g),m&&vH.maxZoom(t,m),v&&vH.minimumClusterSize(t,v),b&&vH.styles(t,b),y&&vH.title(t,y),x&&vH.zoomOnClick(t,x),E&&W(google.maps.event.addListener(t,mH.onMouseOut,E)),k&&q(google.maps.event.addListener(t,mH.onMouseOver,k)),C&&A(google.maps.event.addListener(t,mH.onClick,C)),w&&R(google.maps.event.addListener(t,mH.onClusteringBegin,w)),S&&B(google.maps.event.addListener(t,mH.onClusteringEnd,S)),I(t),O&&O(t),function(){null!==F&&google.maps.event.removeListener(F),null!==K&&google.maps.event.removeListener(K),null!==j&&google.maps.event.removeListener(j),null!==T&&google.maps.event.removeListener(T),null!==z&&google.maps.event.removeListener(z),$&&$(t)}}}),[]),null!==M&&t(M)||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={markerClusterer:null},t.setClustererCallback=function(){null!==t.state.markerClusterer&&t.props.onLoad&&t.props.onLoad(t.state.markerClusterer)},t}NB(t,e),t.prototype.componentDidMount=function(){if(this.context){var e=new gH(this.context,[],this.props.options);this.registeredEvents=FB({updaterMap:vH,eventMap:mH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{markerClusterer:e}}),this.setClustererCallback)}},t.prototype.componentDidUpdate=function(e){this.state.markerClusterer&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:vH,eventMap:mH,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))},t.prototype.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),HB(this.registeredEvents),this.state.markerClusterer.setMap(null))},t.prototype.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},t.contextType=RB}(b);var xH=function(){function e(t){void 0===t&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var t=this.getPanes();if(null!==t&&t[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var o=0,r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];o<r.length;o++){var i=r[o];this.eventListeners.push(google.maps.event.addListener(this.div,i,yH))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",(function(){e.div&&(e.div.style.cursor="default")})))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",(function(t){t.returnValue=!1,t.preventDefault&&t.preventDefault(),e.enableEventPropagation||yH(t)})),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var n=0,o=0,r=t.getBounds();r&&!r.contains(this.position)&&t.setCenter(this.position);var i=t.getDiv(),a=i.offsetWidth,s=i.offsetHeight,l=this.pixelOffset.width,c=this.pixelOffset.height,u=this.div.offsetWidth,d=this.div.offsetHeight,p=this.infoBoxClearance.width,f=this.infoBoxClearance.height,h=this.getProjection().fromLatLngToContainerPixel(this.position);null!==h&&(h.x<-l+p?n=h.x+l-p:h.x+u+l+p>a&&(n=h.x+u+l+p-a),this.alignBottom?h.y<-c+f+d?o=h.y+c-f-d:h.y+c+f>s&&(o=h.y+c+f-s):h.y<-c+f?o=h.y+c-f:h.y+d+c+f>s&&(o=h.y+d+c+f-s)),0===n&&0===o||t.panBy(n,o)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var o=this.div.currentStyle;o&&(e.top=parseInt(o.borderTopWidth||"",10)||0,e.bottom=parseInt(o.borderBottomWidth||"",10)||0,e.left=parseInt(o.borderLeftWidth||"",10)||0,e.right=parseInt(o.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),void 0!==e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),void 0!==e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),void 0!==e.content&&this.setContent(e.content),void 0!==e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),void 0!==e.maxWidth&&(this.maxWidth=e.maxWidth),void 0!==e.pixelOffset&&(this.pixelOffset=e.pixelOffset),void 0!==e.alignBottom&&(this.alignBottom=e.alignBottom),void 0!==e.position&&this.setPosition(e.position),void 0!==e.zIndex&&this.setZIndex(e.zIndex),void 0!==e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),void 0!==e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),void 0!==e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),void 0!==e.isHidden&&(this.isHidden=e.isHidden),void 0!==e.visible&&(this.isHidden=!e.visible),void 0!==e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var e=this.getMap();return null!=e&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();n.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){n.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,t=this.eventListeners;e<t.length;e++){var n=t[e];google.maps.event.removeListener(n)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)Object.prototype.hasOwnProperty.call(this,t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}(),CH={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},wH={options:function(e,t){e.setOptions(t)},position:function(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},SH={};v((function(e){var t=e.children,n=e.anchor,o=e.options,i=e.position,s=e.zIndex,c=e.onCloseClick,u=e.onDomReady,f=e.onContentChanged,h=e.onPositionChanged,g=e.onZindexChanged,m=e.onLoad,v=e.onUnmount,b=r(RB),y=d(null),x=y[0],w=y[1],S=d(null),k=S[0],E=S[1],O=d(null),$=O[0],N=O[1],M=d(null),I=M[0],P=M[1],L=d(null),j=L[0],A=L[1],D=d(null),T=D[0],R=D[1],_=a(null);return l((function(){b&&null!==x&&(x.close(),n?x.open(b,n):x.getPosition()&&x.open(b))}),[b,x,n]),l((function(){o&&null!==x&&x.setOptions(o)}),[x,o]),l((function(){if(i&&null!==x){var e=i instanceof google.maps.LatLng?i:new google.maps.LatLng(i.lat,i.lng);x.setPosition(e)}}),[i]),l((function(){"number"==typeof s&&null!==x&&x.setZIndex(s)}),[s]),l((function(){x&&c&&(null!==k&&google.maps.event.removeListener(k),E(google.maps.event.addListener(x,"closeclick",c)))}),[c]),l((function(){x&&u&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(x,"domready",u)))}),[u]),l((function(){x&&f&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(x,"content_changed",f)))}),[f]),l((function(){x&&h&&(null!==j&&google.maps.event.removeListener(j),A(google.maps.event.addListener(x,"position_changed",h)))}),[h]),l((function(){x&&g&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(x,"zindex_changed",g)))}),[g]),l((function(){if(b){var e=o||SH,t=e.position,r=IB(e,["position"]),i=void 0;!t||t instanceof google.maps.LatLng||(i=new google.maps.LatLng(t.lat,t.lng));var a=new xH(MB(MB({},r),i?{position:i}:{}));_.current=document.createElement("div"),w(a),c&&E(google.maps.event.addListener(a,"closeclick",c)),u&&N(google.maps.event.addListener(a,"domready",u)),f&&P(google.maps.event.addListener(a,"content_changed",f)),h&&A(google.maps.event.addListener(a,"position_changed",h)),g&&R(google.maps.event.addListener(a,"zindex_changed",g)),a.setContent(_.current),n?a.open(b,n):a.getPosition()?a.open(b):TB(!1,"You must provide either an anchor or a position prop for <InfoBox>."),m&&m(a)}return function(){null!==x&&(k&&google.maps.event.removeListener(k),I&&google.maps.event.removeListener(I),$&&google.maps.event.removeListener($),j&&google.maps.event.removeListener(j),T&&google.maps.event.removeListener(T),v&&v(x),x.close())}}),[]),_.current?C(p.only(t),_.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoBox:null},t.open=function(e,n){n?null!==t.context&&e.open(t.context,n):e.getPosition()?null!==t.context&&e.open(t.context):TB(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},t.setInfoBoxCallback=function(){null!==t.state.infoBox&&null!==t.containerElement&&(t.state.infoBox.setContent(t.containerElement),t.open(t.state.infoBox,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoBox))},t}NB(t,e),t.prototype.componentDidMount=function(){var e,t=this.props.options||{},n=t.position,o=IB(t,["position"]);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var r=new xH(MB(MB({},o),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=FB({updaterMap:wH,eventMap:CH,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},t.prototype.componentDidUpdate=function(e){var t=this.state.infoBox;null!==t&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:wH,eventMap:CH,prevProps:e,nextProps:this.props,instance:t}))},t.prototype.componentWillUnmount=function(){var e=this.props.onUnmount,t=this.state.infoBox;null!==t&&(e&&e(t),HB(this.registeredEvents),t.close())},t.prototype.render=function(){return this.containerElement?C(p.only(this.props.children),this.containerElement):null},t.contextType=RB}(b);var kH=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},EH=jB(kH);const OH=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class $H{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const o=n>>4;if(1!==o)throw new Error(`Got v${o} data when expected v1.`);const r=OH[15&n];if(!r)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new $H(a,i,r,e)}constructor(e,t=64,n=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const r=OH.indexOf(this.ArrayType),i=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${n}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return NH(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,s=[0,r.length-1,0],l=[];for(;s.length;){const c=s.pop()||0,u=s.pop()||0,d=s.pop()||0;if(u-d<=a){for(let a=d;a<=u;a++){const s=i[2*a],c=i[2*a+1];s>=e&&s<=n&&c>=t&&c<=o&&l.push(r[a])}continue}const p=d+u>>1,f=i[2*p],h=i[2*p+1];f>=e&&f<=n&&h>=t&&h<=o&&l.push(r[p]),(0===c?e<=f:t<=h)&&(s.push(d),s.push(p-1),s.push(1-c)),(0===c?n>=f:o>=h)&&(s.push(p+1),s.push(u),s.push(1-c))}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:r,nodeSize:i}=this,a=[0,o.length-1,0],s=[],l=n*n;for(;a.length;){const c=a.pop()||0,u=a.pop()||0,d=a.pop()||0;if(u-d<=i){for(let n=d;n<=u;n++)LH(r[2*n],r[2*n+1],e,t)<=l&&s.push(o[n]);continue}const p=d+u>>1,f=r[2*p],h=r[2*p+1];LH(f,h,e,t)<=l&&s.push(o[p]),(0===c?e-n<=f:t-n<=h)&&(a.push(d),a.push(p-1),a.push(1-c)),(0===c?e+n>=f:t+n>=h)&&(a.push(p+1),a.push(u),a.push(1-c))}return s}}function NH(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;MH(e,t,a,o,r,i),NH(e,t,n,o,a-1,1-i),NH(e,t,n,a+1,r,1-i)}function MH(e,t,n,o,r,i){for(;r>o;){if(r-o>600){const a=r-o+1,s=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1);MH(e,t,n,Math.max(o,Math.floor(n-s*c/a+u)),Math.min(r,Math.floor(n+(a-s)*c/a+u)),i)}const a=t[2*n+i];let s=o,l=r;for(IH(e,t,o,n),t[2*r+i]>a&&IH(e,t,o,r);s<l;){for(IH(e,t,s,l),s++,l--;t[2*s+i]<a;)s++;for(;t[2*l+i]>a;)l--}t[2*o+i]===a?IH(e,t,o,l):(l++,IH(e,t,l,r)),l<=n&&(o=l+1),n<=l&&(r=l-1)}}function IH(e,t,n,o){PH(e,n,o),PH(t,2*n,2*o),PH(t,2*n+1,2*o+1)}function PH(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function LH(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const jH={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},AH=Math.fround||(DH=new Float32Array(1),e=>(DH[0]=+e,DH[0]));var DH;class TH{constructor(e){this.options=Object.assign(Object.create(jH),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:o}=this.options;t&&console.time("total time");const r=`prepare ${e.length} points`;t&&console.time(r),this.points=e;const i=[];for(let t=0;t<e.length;t++){const n=e[t];if(!n.geometry)continue;const[o,r]=n.geometry.coordinates,a=AH(zH(o)),s=AH(BH(r));i.push(a,s,1/0,t,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[o+1]=this._createTree(i);t&&console.timeEnd(r);for(let e=o;e>=n;e--){const n=+Date.now();a=this.trees[e]=this._createTree(this._cluster(a,e)),t&&console.log("z%d: %d clusters in %dms",e,a.numItems,+Date.now()-n)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,r=180;else if(n>r){const e=this.getClusters([n,o,180,i],t),a=this.getClusters([-180,o,r,i],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(zH(n),BH(i),zH(r),BH(o)),l=a.data,c=[];for(const e of s){const t=this.stride*e;c.push(l[t+5]>1?RH(l,t,this.clusterProps):this.points[l[t+3]])}return c}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),o="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(o);const i=r.data;if(t*this.stride>=i.length)throw new Error(o);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i[t*this.stride],l=i[t*this.stride+1],c=r.within(s,l,a),u=[];for(const t of c){const n=t*this.stride;i[n+4]===e&&u.push(i[n+5]>1?RH(i,n,this.clusterProps):this.points[i[n+3]])}if(0===u.length)throw new Error(o);return u}getLeaves(e,t,n){t=t||10,n=n||0;const o=[];return this._appendLeaves(o,e,t,n,0),o}getTile(e,t,n){const o=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:i,radius:a}=this.options,s=a/i,l=(n-s)/r,c=(n+1+s)/r,u={features:[]};return this._addTileFeatures(o.range((t-s)/r,l,(t+1+s)/r,c),o.data,t,n,r,u),0===t&&this._addTileFeatures(o.range(1-s/r,l,1,c),o.data,r,n,r,u),t===r-1&&this._addTileFeatures(o.range(0,l,s/r,c),o.data,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,o,r){const i=this.getChildren(t);for(const t of i){const i=t.properties;if(i&&i.cluster?r+i.point_count<=o?r+=i.point_count:r=this._appendLeaves(e,i.cluster_id,n,o,r):r<o?r++:e.push(t),e.length===n)break}return r}_createTree(e){const t=new $H(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,o,r,i){for(const a of e){const e=a*this.stride,s=t[e+5]>1;let l,c,u;if(s)l=_H(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const n=this.points[t[e+3]];l=n.properties;const[o,r]=n.geometry.coordinates;c=zH(o),u=BH(r)}const d={type:1,geometry:[[Math.round(this.options.extent*(c*r-n)),Math.round(this.options.extent*(u*r-o))]],tags:l};let p;p=s||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==p&&(d.id=p),i.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:o,reduce:r,minPoints:i}=this.options,a=n/(o*Math.pow(2,t)),s=e.data,l=[],c=this.stride;for(let n=0;n<s.length;n+=c){if(s[n+2]<=t)continue;s[n+2]=t;const o=s[n],u=s[n+1],d=e.within(s[n],s[n+1],a),p=s[n+5];let f=p;for(const e of d){const n=e*c;s[n+2]>t&&(f+=s[n+5])}if(f>p&&f>=i){let e,i=o*p,a=u*p,h=-1;const g=(n/c<<5)+(t+1)+this.points.length;for(const o of d){const l=o*c;if(s[l+2]<=t)continue;s[l+2]=t;const u=s[l+5];i+=s[l]*u,a+=s[l+1]*u,s[l+4]=g,r&&(e||(e=this._map(s,n,!0),h=this.clusterProps.length,this.clusterProps.push(e)),r(e,this._map(s,l)))}s[n+4]=g,l.push(i/f,a/f,1/0,g,-1,f),r&&l.push(h)}else{for(let e=0;e<c;e++)l.push(s[n+e]);if(f>1)for(const e of d){const n=e*c;if(!(s[n+2]<=t)){s[n+2]=t;for(let e=0;e<c;e++)l.push(s[n+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+5]>1){const o=this.clusterProps[e[t+6]];return n?Object.assign({},o):o}const o=this.points[e[t+3]].properties,r=this.options.map(o);return n&&r===o?Object.assign({},r):r}}function RH(e,t,n){return{type:"Feature",id:e[t+3],properties:_H(e,t,n),geometry:{type:"Point",coordinates:[(o=e[t],360*(o-.5)),HH(e[t+1])]}};var o}function _H(e,t,n){const o=e[t+5],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?Math.round(o/100)/10+"k":o,i=e[t+6],a=-1===i?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+3],point_count:o,point_count_abbreviated:r})}function zH(e){return e/360+.5}function BH(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function HH(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}
59
- /*! *****************************************************************************
60
- Copyright (c) Microsoft Corporation.
61
-
62
- Permission to use, copy, modify, and/or distribute this software for any
63
- purpose with or without fee is hereby granted.
64
-
65
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
66
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
67
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
68
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
69
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
70
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
71
- PERFORMANCE OF THIS SOFTWARE.
72
- ***************************************************************************** */class FH{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class WH{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0===this.markers.length&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(FH.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>FH.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(FH.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class VH{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return KH(e)}}const KH=e=>e.map((e=>new WH({position:FH.getPosition(e),markers:[e]})));class qH extends VH{constructor(e){var{maxZoom:t,radius:n=60}=e,o=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,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new TH(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(e){let t=!1;const n={zoom:e.map.getZoom()};if(!EH(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>{const t=FH.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!EH(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map((e=>this.transformCluster(e)))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new WH({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:t,lng:e}});const o=n.marker;return new WH({markers:[o],position:FH.getPosition(o)})}}class XH{constructor(e,t){this.markers={sum:e.length};const n=t.map((e=>e.count)),o=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:o/t.length,sum:o,min:Math.min(...n),max:Math.max(...n)}}}}class UH{render({count:e,position:t},n,o){const r=`<svg fill="${e>Math.max(10,n.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>\n</svg>`,i=`Cluster of ${e} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+e;if(FH.isAdvancedMarkerAvailable(o)){const e=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const n={map:o,position:t,zIndex:a,title:i,content:e};return new google.maps.marker.AdvancedMarkerElement(n)}const s={position:t,zIndex:a,title:i,icon:{url:`data:image/svg+xml;base64,${btoa(r)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(s)}}class GH{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(GH,google.maps.OverlayView)}}var YH;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(YH||(YH={}));const QH=(e,t,n)=>{n.fitBounds(t.bounds)};class ZH extends GH{constructor({map:e,markers:t=[],algorithmOptions:n={},algorithm:o=new qH(n),renderer:r=new UH,onClusterClick:i=QH}){super(),this.markers=[...t],this.clusters=[],this.algorithm=o,this.renderer=r,this.onClusterClick=i,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(FH.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,YH.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||null==n){const e=new Set;for(const n of t)1==n.markers.length&&e.add(n.markers[0]);const n=[];for(const t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||FH.setMap(t.marker,null):n.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>n.forEach((e=>FH.setMap(e,null)))))}google.maps.event.trigger(this,YH.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>FH.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new XH(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach((e=>FH.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,YH.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),FH.setMap(n.marker,t)}))}}function JH(e){var t=function(){TB(!!r,"useGoogleMap is React hook and requires React version 16.8+");var e=r(RB);return TB(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}(),n=d(null),o=n[0],i=n[1];return l((function(){if(t&&null===o){var n=new ZH(MB(MB({},e),{map:t}));i(n)}}),[t]),o}v((function(e){var t=e.children,n=JH(e.options);return null!==n?t(n):null}));var eF={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},tF={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}};v((function(e){var t=e.children,n=e.anchor,o=e.options,i=e.position,s=e.zIndex,c=e.onCloseClick,u=e.onDomReady,f=e.onContentChanged,h=e.onPositionChanged,g=e.onZindexChanged,m=e.onLoad,v=e.onUnmount,b=r(RB),y=d(null),x=y[0],w=y[1],S=d(null),k=S[0],E=S[1],O=d(null),$=O[0],N=O[1],M=d(null),I=M[0],P=M[1],L=d(null),j=L[0],A=L[1],D=d(null),T=D[0],R=D[1],_=a(null);return l((function(){null!==x&&(x.close(),n?x.open(b,n):x.getPosition()&&x.open(b))}),[b,x,n]),l((function(){o&&null!==x&&x.setOptions(o)}),[x,o]),l((function(){i&&null!==x&&x.setPosition(i)}),[i]),l((function(){"number"==typeof s&&null!==x&&x.setZIndex(s)}),[s]),l((function(){x&&c&&(null!==k&&google.maps.event.removeListener(k),E(google.maps.event.addListener(x,"closeclick",c)))}),[c]),l((function(){x&&u&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(x,"domready",u)))}),[u]),l((function(){x&&f&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(x,"content_changed",f)))}),[f]),l((function(){x&&h&&(null!==j&&google.maps.event.removeListener(j),A(google.maps.event.addListener(x,"position_changed",h)))}),[h]),l((function(){x&&g&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(x,"zindex_changed",g)))}),[g]),l((function(){var e=new google.maps.InfoWindow(MB({},o||{}));return w(e),_.current=document.createElement("div"),c&&E(google.maps.event.addListener(e,"closeclick",c)),u&&N(google.maps.event.addListener(e,"domready",u)),f&&P(google.maps.event.addListener(e,"content_changed",f)),h&&A(google.maps.event.addListener(e,"position_changed",h)),g&&R(google.maps.event.addListener(e,"zindex_changed",g)),e.setContent(_.current),i&&e.setPosition(i),s&&e.setZIndex(s),n?e.open(b,n):e.getPosition()?e.open(b):TB(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),m&&m(e),function(){k&&google.maps.event.removeListener(k),I&&google.maps.event.removeListener(I),$&&google.maps.event.removeListener($),j&&google.maps.event.removeListener(j),T&&google.maps.event.removeListener(T),v&&v(e),e.close()}}),[]),_.current?C(p.only(t),_.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoWindow:null},t.open=function(e,n){n?e.open(t.context,n):e.getPosition()?e.open(t.context):TB(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},t.setInfoWindowCallback=function(){null!==t.state.infoWindow&&null!==t.containerElement&&(t.state.infoWindow.setContent(t.containerElement),t.open(t.state.infoWindow,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoWindow))},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.InfoWindow(MB({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=FB({updaterMap:tF,eventMap:eF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{infoWindow:e}}),this.setInfoWindowCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.infoWindow&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:tF,eventMap:eF,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))},t.prototype.componentWillUnmount=function(){null!==this.state.infoWindow&&(HB(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},t.prototype.render=function(){return this.containerElement?C(p.only(this.props.children),this.containerElement):null},t.contextType=RB}(b);var nF={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},oF={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}},rF={};v((function(e){var t=e.options,n=e.draggable,o=e.editable,i=e.visible,a=e.path,s=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,p=e.onMouseDown,f=e.onMouseMove,h=e.onMouseOut,g=e.onMouseOver,m=e.onMouseUp,v=e.onRightClick,b=e.onClick,y=e.onDrag,x=e.onLoad,C=e.onUnmount,w=r(RB),S=d(null),k=S[0],E=S[1],O=d(null),$=O[0],N=O[1],M=d(null),I=M[0],P=M[1],L=d(null),j=L[0],A=L[1],D=d(null),T=D[0],R=D[1],_=d(null),z=_[0],B=_[1],H=d(null),F=H[0],W=H[1],V=d(null),K=V[0],q=V[1],X=d(null),U=X[0],G=X[1],Y=d(null),Q=Y[0],Z=Y[1],J=d(null),ee=J[0],te=J[1],ne=d(null),oe=ne[0],re=ne[1];return l((function(){null!==k&&k.setMap(w)}),[w]),l((function(){void 0!==t&&null!==k&&k.setOptions(t)}),[k,t]),l((function(){void 0!==n&&null!==k&&k.setDraggable(n)}),[k,n]),l((function(){void 0!==o&&null!==k&&k.setEditable(o)}),[k,o]),l((function(){void 0!==i&&null!==k&&k.setVisible(i)}),[k,i]),l((function(){void 0!==a&&null!==k&&k.setPath(a)}),[k,a]),l((function(){k&&s&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(k,"dblclick",s)))}),[s]),l((function(){k&&c&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(k,"dragend",c)))}),[c]),l((function(){k&&u&&(null!==j&&google.maps.event.removeListener(j),A(google.maps.event.addListener(k,"dragstart",u)))}),[u]),l((function(){k&&p&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(k,"mousedown",p)))}),[p]),l((function(){k&&f&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(k,"mousemove",f)))}),[f]),l((function(){k&&h&&(null!==F&&google.maps.event.removeListener(F),W(google.maps.event.addListener(k,"mouseout",h)))}),[h]),l((function(){k&&g&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(k,"mouseover",g)))}),[g]),l((function(){k&&m&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener(k,"mouseup",m)))}),[m]),l((function(){k&&v&&(null!==Q&&google.maps.event.removeListener(Q),Z(google.maps.event.addListener(k,"rightclick",v)))}),[v]),l((function(){k&&b&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(k,"click",b)))}),[b]),l((function(){k&&y&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(k,"drag",y)))}),[y]),l((function(){var e=new google.maps.Polyline(MB(MB({},t||rF),{map:w}));return a&&e.setPath(a),void 0!==i&&e.setVisible(i),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),s&&N(google.maps.event.addListener(e,"dblclick",s)),c&&P(google.maps.event.addListener(e,"dragend",c)),u&&A(google.maps.event.addListener(e,"dragstart",u)),p&&R(google.maps.event.addListener(e,"mousedown",p)),f&&B(google.maps.event.addListener(e,"mousemove",f)),h&&W(google.maps.event.addListener(e,"mouseout",h)),g&&q(google.maps.event.addListener(e,"mouseover",g)),m&&G(google.maps.event.addListener(e,"mouseup",m)),v&&Z(google.maps.event.addListener(e,"rightclick",v)),b&&te(google.maps.event.addListener(e,"click",b)),y&&re(google.maps.event.addListener(e,"drag",y)),E(e),x&&x(e),function(){null!==$&&google.maps.event.removeListener($),null!==I&&google.maps.event.removeListener(I),null!==j&&google.maps.event.removeListener(j),null!==T&&google.maps.event.removeListener(T),null!==z&&google.maps.event.removeListener(z),null!==F&&google.maps.event.removeListener(F),null!==K&&google.maps.event.removeListener(K),null!==U&&google.maps.event.removeListener(U),null!==Q&&google.maps.event.removeListener(Q),null!==ee&&google.maps.event.removeListener(ee),C&&C(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polyline:null},t.setPolylineCallback=function(){null!==t.state.polyline&&t.props.onLoad&&t.props.onLoad(t.state.polyline)},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polyline(MB(MB({},this.props.options||{}),{map:this.context}));this.registeredEvents=FB({updaterMap:oF,eventMap:nF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polyline&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:oF,eventMap:nF,prevProps:e,nextProps:this.props,instance:this.state.polyline}))},t.prototype.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),HB(this.registeredEvents),this.state.polyline.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var iF={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},aF={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}};v((function(e){var t=e.options,n=e.draggable,o=e.editable,i=e.visible,a=e.path,s=e.paths,c=e.onDblClick,u=e.onDragEnd,p=e.onDragStart,f=e.onMouseDown,h=e.onMouseMove,g=e.onMouseOut,m=e.onMouseOver,v=e.onMouseUp,b=e.onRightClick,y=e.onClick,x=e.onDrag,C=e.onLoad,w=e.onUnmount,S=e.onEdit,k=r(RB),E=d(null),O=E[0],$=E[1],N=d(null),M=N[0],I=N[1],P=d(null),L=P[0],j=P[1],A=d(null),D=A[0],T=A[1],R=d(null),_=R[0],z=R[1],B=d(null),H=B[0],F=B[1],W=d(null),V=W[0],K=W[1],q=d(null),X=q[0],U=q[1],G=d(null),Y=G[0],Q=G[1],Z=d(null),J=Z[0],ee=Z[1],te=d(null),ne=te[0],oe=te[1],re=d(null),ie=re[0],ae=re[1];return l((function(){null!==O&&O.setMap(k)}),[k]),l((function(){void 0!==t&&null!==O&&O.setOptions(t)}),[O,t]),l((function(){void 0!==n&&null!==O&&O.setDraggable(n)}),[O,n]),l((function(){void 0!==o&&null!==O&&O.setEditable(o)}),[O,o]),l((function(){void 0!==i&&null!==O&&O.setVisible(i)}),[O,i]),l((function(){void 0!==a&&null!==O&&O.setPath(a)}),[O,a]),l((function(){void 0!==s&&null!==O&&O.setPaths(s)}),[O,s]),l((function(){O&&c&&(null!==M&&google.maps.event.removeListener(M),I(google.maps.event.addListener(O,"dblclick",c)))}),[c]),l((function(){O&&(google.maps.event.addListener(O.getPath(),"insert_at",(function(){null==S||S(O)})),google.maps.event.addListener(O.getPath(),"set_at",(function(){null==S||S(O)})))}),[O,S]),l((function(){O&&u&&(null!==L&&google.maps.event.removeListener(L),j(google.maps.event.addListener(O,"dragend",u)))}),[u]),l((function(){O&&p&&(null!==D&&google.maps.event.removeListener(D),T(google.maps.event.addListener(O,"dragstart",p)))}),[p]),l((function(){O&&f&&(null!==_&&google.maps.event.removeListener(_),z(google.maps.event.addListener(O,"mousedown",f)))}),[f]),l((function(){O&&h&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(O,"mousemove",h)))}),[h]),l((function(){O&&g&&(null!==V&&google.maps.event.removeListener(V),K(google.maps.event.addListener(O,"mouseout",g)))}),[g]),l((function(){O&&m&&(null!==X&&google.maps.event.removeListener(X),U(google.maps.event.addListener(O,"mouseover",m)))}),[m]),l((function(){O&&v&&(null!==Y&&google.maps.event.removeListener(Y),Q(google.maps.event.addListener(O,"mouseup",v)))}),[v]),l((function(){O&&b&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(O,"rightclick",b)))}),[b]),l((function(){O&&y&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(O,"click",y)))}),[y]),l((function(){O&&x&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(O,"drag",x)))}),[x]),l((function(){var e=new google.maps.Polygon(MB(MB({},t||{}),{map:k}));return a&&e.setPath(a),s&&e.setPaths(s),void 0!==i&&e.setVisible(i),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),c&&I(google.maps.event.addListener(e,"dblclick",c)),u&&j(google.maps.event.addListener(e,"dragend",u)),p&&T(google.maps.event.addListener(e,"dragstart",p)),f&&z(google.maps.event.addListener(e,"mousedown",f)),h&&F(google.maps.event.addListener(e,"mousemove",h)),g&&K(google.maps.event.addListener(e,"mouseout",g)),m&&U(google.maps.event.addListener(e,"mouseover",m)),v&&Q(google.maps.event.addListener(e,"mouseup",v)),b&&ee(google.maps.event.addListener(e,"rightclick",b)),y&&oe(google.maps.event.addListener(e,"click",y)),x&&ae(google.maps.event.addListener(e,"drag",x)),$(e),C&&C(e),function(){null!==M&&google.maps.event.removeListener(M),null!==L&&google.maps.event.removeListener(L),null!==D&&google.maps.event.removeListener(D),null!==_&&google.maps.event.removeListener(_),null!==H&&google.maps.event.removeListener(H),null!==V&&google.maps.event.removeListener(V),null!==X&&google.maps.event.removeListener(X),null!==Y&&google.maps.event.removeListener(Y),null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),w&&w(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polygon:null},t.setPolygonCallback=function(){null!==t.state.polygon&&t.props.onLoad&&t.props.onLoad(t.state.polygon)},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polygon(MB(MB({},this.props.options||{}),{map:this.context}));this.registeredEvents=FB({updaterMap:aF,eventMap:iF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polygon:e}}),this.setPolygonCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polygon&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:aF,eventMap:iF,prevProps:e,nextProps:this.props,instance:this.state.polygon}))},t.prototype.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),HB(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var sF={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},lF={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}};v((function(e){var t=e.options,n=e.bounds,o=e.draggable,i=e.editable,a=e.visible,s=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,p=e.onMouseDown,f=e.onMouseMove,h=e.onMouseOut,g=e.onMouseOver,m=e.onMouseUp,v=e.onRightClick,b=e.onClick,y=e.onDrag,x=e.onBoundsChanged,C=e.onLoad,w=e.onUnmount,S=r(RB),k=d(null),E=k[0],O=k[1],$=d(null),N=$[0],M=$[1],I=d(null),P=I[0],L=I[1],j=d(null),A=j[0],D=j[1],T=d(null),R=T[0],_=T[1],z=d(null),B=z[0],H=z[1],F=d(null),W=F[0],V=F[1],K=d(null),q=K[0],X=K[1],U=d(null),G=U[0],Y=U[1],Q=d(null),Z=Q[0],J=Q[1],ee=d(null),te=ee[0],ne=ee[1],oe=d(null),re=oe[0],ie=oe[1],ae=d(null),se=ae[0],le=ae[1];return l((function(){null!==E&&E.setMap(S)}),[S]),l((function(){void 0!==t&&null!==E&&E.setOptions(t)}),[E,t]),l((function(){void 0!==o&&null!==E&&E.setDraggable(o)}),[E,o]),l((function(){void 0!==i&&null!==E&&E.setEditable(i)}),[E,i]),l((function(){void 0!==a&&null!==E&&E.setVisible(a)}),[E,a]),l((function(){void 0!==n&&null!==E&&E.setBounds(n)}),[E,n]),l((function(){E&&s&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(E,"dblclick",s)))}),[s]),l((function(){E&&c&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(E,"dragend",c)))}),[c]),l((function(){E&&u&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(E,"dragstart",u)))}),[u]),l((function(){E&&p&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(E,"mousedown",p)))}),[p]),l((function(){E&&f&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(E,"mousemove",f)))}),[f]),l((function(){E&&h&&(null!==W&&google.maps.event.removeListener(W),V(google.maps.event.addListener(E,"mouseout",h)))}),[h]),l((function(){E&&g&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(E,"mouseover",g)))}),[g]),l((function(){E&&m&&(null!==G&&google.maps.event.removeListener(G),Y(google.maps.event.addListener(E,"mouseup",m)))}),[m]),l((function(){E&&v&&(null!==Z&&google.maps.event.removeListener(Z),J(google.maps.event.addListener(E,"rightclick",v)))}),[v]),l((function(){E&&b&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(E,"click",b)))}),[b]),l((function(){E&&y&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(E,"drag",y)))}),[y]),l((function(){E&&x&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(E,"bounds_changed",x)))}),[x]),l((function(){var e=new google.maps.Rectangle(MB(MB({},t||{}),{map:S}));return void 0!==a&&e.setVisible(a),void 0!==i&&e.setEditable(i),void 0!==o&&e.setDraggable(o),void 0!==n&&e.setBounds(n),s&&M(google.maps.event.addListener(e,"dblclick",s)),c&&L(google.maps.event.addListener(e,"dragend",c)),u&&D(google.maps.event.addListener(e,"dragstart",u)),p&&_(google.maps.event.addListener(e,"mousedown",p)),f&&H(google.maps.event.addListener(e,"mousemove",f)),h&&V(google.maps.event.addListener(e,"mouseout",h)),g&&X(google.maps.event.addListener(e,"mouseover",g)),m&&Y(google.maps.event.addListener(e,"mouseup",m)),v&&J(google.maps.event.addListener(e,"rightclick",v)),b&&ne(google.maps.event.addListener(e,"click",b)),y&&ie(google.maps.event.addListener(e,"drag",y)),x&&le(google.maps.event.addListener(e,"bounds_changed",x)),O(e),C&&C(e),function(){null!==N&&google.maps.event.removeListener(N),null!==P&&google.maps.event.removeListener(P),null!==A&&google.maps.event.removeListener(A),null!==R&&google.maps.event.removeListener(R),null!==B&&google.maps.event.removeListener(B),null!==W&&google.maps.event.removeListener(W),null!==q&&google.maps.event.removeListener(q),null!==G&&google.maps.event.removeListener(G),null!==Z&&google.maps.event.removeListener(Z),null!==te&&google.maps.event.removeListener(te),null!==re&&google.maps.event.removeListener(re),null!==se&&google.maps.event.removeListener(se),w&&w(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={rectangle:null},t.setRectangleCallback=function(){null!==t.state.rectangle&&t.props.onLoad&&t.props.onLoad(t.state.rectangle)},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Rectangle(MB(MB({},this.props.options||{}),{map:this.context}));this.registeredEvents=FB({updaterMap:lF,eventMap:sF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.rectangle&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:lF,eventMap:sF,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))},t.prototype.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),HB(this.registeredEvents),this.state.rectangle.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var cF={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},uF={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}},dF={};v((function(e){var t=e.options,n=e.center,o=e.radius,i=e.draggable,a=e.editable,s=e.visible,c=e.onDblClick,u=e.onDragEnd,p=e.onDragStart,f=e.onMouseDown,h=e.onMouseMove,g=e.onMouseOut,m=e.onMouseOver,v=e.onMouseUp,b=e.onRightClick,y=e.onClick,x=e.onDrag,C=e.onCenterChanged,w=e.onRadiusChanged,S=e.onLoad,k=e.onUnmount,E=r(RB),O=d(null),$=O[0],N=O[1],M=d(null),I=M[0],P=M[1],L=d(null),j=L[0],A=L[1],D=d(null),T=D[0],R=D[1],_=d(null),z=_[0],B=_[1],H=d(null),F=H[0],W=H[1],V=d(null),K=V[0],q=V[1],X=d(null),U=X[0],G=X[1],Y=d(null),Q=Y[0],Z=Y[1],J=d(null),ee=J[0],te=J[1],ne=d(null),oe=ne[0],re=ne[1],ie=d(null),ae=ie[0],se=ie[1],le=d(null),ce=le[0],ue=le[1],de=d(null),pe=de[0],fe=de[1];return l((function(){null!==$&&$.setMap(E)}),[E]),l((function(){void 0!==t&&null!==$&&$.setOptions(t)}),[$,t]),l((function(){void 0!==i&&null!==$&&$.setDraggable(i)}),[$,i]),l((function(){void 0!==a&&null!==$&&$.setEditable(a)}),[$,a]),l((function(){void 0!==s&&null!==$&&$.setVisible(s)}),[$,s]),l((function(){"number"==typeof o&&null!==$&&$.setRadius(o)}),[$,o]),l((function(){void 0!==n&&null!==$&&$.setCenter(n)}),[$,n]),l((function(){$&&c&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener($,"dblclick",c)))}),[c]),l((function(){$&&u&&(null!==j&&google.maps.event.removeListener(j),A(google.maps.event.addListener($,"dragend",u)))}),[u]),l((function(){$&&p&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener($,"dragstart",p)))}),[p]),l((function(){$&&f&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener($,"mousedown",f)))}),[f]),l((function(){$&&h&&(null!==F&&google.maps.event.removeListener(F),W(google.maps.event.addListener($,"mousemove",h)))}),[h]),l((function(){$&&g&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener($,"mouseout",g)))}),[g]),l((function(){$&&m&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener($,"mouseover",m)))}),[m]),l((function(){$&&v&&(null!==Q&&google.maps.event.removeListener(Q),Z(google.maps.event.addListener($,"mouseup",v)))}),[v]),l((function(){$&&b&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener($,"rightclick",b)))}),[b]),l((function(){$&&y&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener($,"click",y)))}),[y]),l((function(){$&&x&&(null!==ae&&google.maps.event.removeListener(ae),se(google.maps.event.addListener($,"drag",x)))}),[x]),l((function(){$&&C&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener($,"center_changed",C)))}),[y]),l((function(){$&&w&&(null!==pe&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener($,"radius_changed",w)))}),[w]),l((function(){var e=new google.maps.Circle(MB(MB({},t||dF),{map:E}));return"number"==typeof o&&e.setRadius(o),void 0!==n&&e.setCenter(n),"number"==typeof o&&e.setRadius(o),void 0!==s&&e.setVisible(s),void 0!==a&&e.setEditable(a),void 0!==i&&e.setDraggable(i),c&&P(google.maps.event.addListener(e,"dblclick",c)),u&&A(google.maps.event.addListener(e,"dragend",u)),p&&R(google.maps.event.addListener(e,"dragstart",p)),f&&B(google.maps.event.addListener(e,"mousedown",f)),h&&W(google.maps.event.addListener(e,"mousemove",h)),g&&q(google.maps.event.addListener(e,"mouseout",g)),m&&G(google.maps.event.addListener(e,"mouseover",m)),v&&Z(google.maps.event.addListener(e,"mouseup",v)),b&&te(google.maps.event.addListener(e,"rightclick",b)),y&&re(google.maps.event.addListener(e,"click",y)),x&&se(google.maps.event.addListener(e,"drag",x)),C&&ue(google.maps.event.addListener(e,"center_changed",C)),w&&fe(google.maps.event.addListener(e,"radius_changed",w)),N(e),S&&S(e),function(){null!==I&&google.maps.event.removeListener(I),null!==j&&google.maps.event.removeListener(j),null!==T&&google.maps.event.removeListener(T),null!==z&&google.maps.event.removeListener(z),null!==F&&google.maps.event.removeListener(F),null!==K&&google.maps.event.removeListener(K),null!==U&&google.maps.event.removeListener(U),null!==Q&&google.maps.event.removeListener(Q),null!==ee&&google.maps.event.removeListener(ee),null!==oe&&google.maps.event.removeListener(oe),null!==ce&&google.maps.event.removeListener(ce),null!==pe&&google.maps.event.removeListener(pe),k&&k(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={circle:null},t.setCircleCallback=function(){null!==t.state.circle&&t.props.onLoad&&t.props.onLoad(t.state.circle)},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Circle(MB(MB({},this.props.options||{}),{map:this.context}));this.registeredEvents=FB({updaterMap:uF,eventMap:cF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.circle&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:uF,eventMap:cF,prevProps:e,nextProps:this.props,instance:this.state.circle}))},t.prototype.componentWillUnmount=function(){var e;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),HB(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var pF={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},fF={add:function(e,t){e.add(t)},addgeojson:function(e,t,n){e.addGeoJson(t,n)},contains:function(e,t){e.contains(t)},foreach:function(e,t){e.forEach(t)},loadgeojson:function(e,t,n,o){e.loadGeoJson(t,n,o)},overridestyle:function(e,t,n){e.overrideStyle(t,n)},remove:function(e,t){e.remove(t)},revertstyle:function(e,t){e.revertStyle(t)},controlposition:function(e,t){e.setControlPosition(t)},controls:function(e,t){e.setControls(t)},drawingmode:function(e,t){e.setDrawingMode(t)},map:function(e,t){e.setMap(t)},style:function(e,t){e.setStyle(t)},togeojson:function(e,t){e.toGeoJson(t)}};v((function(e){var t=e.options,n=e.onClick,o=e.onDblClick,i=e.onMouseDown,a=e.onMouseMove,s=e.onMouseOut,c=e.onMouseOver,u=e.onMouseUp,p=e.onRightClick,f=e.onAddFeature,h=e.onRemoveFeature,g=e.onRemoveProperty,m=e.onSetGeometry,v=e.onSetProperty,b=e.onLoad,y=e.onUnmount,x=r(RB),C=d(null),w=C[0],S=C[1],k=d(null),E=k[0],O=k[1],$=d(null),N=$[0],M=$[1],I=d(null),P=I[0],L=I[1],j=d(null),A=j[0],D=j[1],T=d(null),R=T[0],_=T[1],z=d(null),B=z[0],H=z[1],F=d(null),W=F[0],V=F[1],K=d(null),q=K[0],X=K[1],U=d(null),G=U[0],Y=U[1],Q=d(null),Z=Q[0],J=Q[1],ee=d(null),te=ee[0],ne=ee[1],oe=d(null),re=oe[0],ie=oe[1],ae=d(null),se=ae[0],le=ae[1];return l((function(){null!==w&&w.setMap(x)}),[x]),l((function(){w&&o&&(null!==E&&google.maps.event.removeListener(E),O(google.maps.event.addListener(w,"dblclick",o)))}),[o]),l((function(){w&&i&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(w,"mousedown",i)))}),[i]),l((function(){w&&a&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(w,"mousemove",a)))}),[a]),l((function(){w&&s&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(w,"mouseout",s)))}),[s]),l((function(){w&&c&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(w,"mouseover",c)))}),[c]),l((function(){w&&u&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(w,"mouseup",u)))}),[u]),l((function(){w&&p&&(null!==W&&google.maps.event.removeListener(W),V(google.maps.event.addListener(w,"rightclick",p)))}),[p]),l((function(){w&&n&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(w,"click",n)))}),[n]),l((function(){w&&f&&(null!==G&&google.maps.event.removeListener(G),Y(google.maps.event.addListener(w,"addfeature",f)))}),[f]),l((function(){w&&h&&(null!==Z&&google.maps.event.removeListener(Z),J(google.maps.event.addListener(w,"removefeature",h)))}),[h]),l((function(){w&&g&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(w,"removeproperty",g)))}),[g]),l((function(){w&&m&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(w,"setgeometry",m)))}),[m]),l((function(){w&&v&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(w,"setproperty",v)))}),[v]),l((function(){if(null!==x){var e=new google.maps.Data(MB(MB({},t||{}),{map:x}));o&&O(google.maps.event.addListener(e,"dblclick",o)),i&&M(google.maps.event.addListener(e,"mousedown",i)),a&&L(google.maps.event.addListener(e,"mousemove",a)),s&&D(google.maps.event.addListener(e,"mouseout",s)),c&&_(google.maps.event.addListener(e,"mouseover",c)),u&&H(google.maps.event.addListener(e,"mouseup",u)),p&&V(google.maps.event.addListener(e,"rightclick",p)),n&&X(google.maps.event.addListener(e,"click",n)),f&&Y(google.maps.event.addListener(e,"addfeature",f)),h&&J(google.maps.event.addListener(e,"removefeature",h)),g&&ne(google.maps.event.addListener(e,"removeproperty",g)),m&&ie(google.maps.event.addListener(e,"setgeometry",m)),v&&le(google.maps.event.addListener(e,"setproperty",v)),S(e),b&&b(e)}return function(){w&&(null!==E&&google.maps.event.removeListener(E),null!==N&&google.maps.event.removeListener(N),null!==P&&google.maps.event.removeListener(P),null!==A&&google.maps.event.removeListener(A),null!==R&&google.maps.event.removeListener(R),null!==B&&google.maps.event.removeListener(B),null!==W&&google.maps.event.removeListener(W),null!==q&&google.maps.event.removeListener(q),null!==G&&google.maps.event.removeListener(G),null!==Z&&google.maps.event.removeListener(Z),null!==te&&google.maps.event.removeListener(te),null!==re&&google.maps.event.removeListener(re),null!==se&&google.maps.event.removeListener(se),y&&y(w),w.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={data:null},t.setDataCallback=function(){null!==t.state.data&&t.props.onLoad&&t.props.onLoad(t.state.data)},t}NB(t,e),t.prototype.componentDidMount=function(){if(null!==this.context){var e=new google.maps.Data(MB(MB({},this.props.options||{}),{map:this.context}));this.registeredEvents=FB({updaterMap:fF,eventMap:pF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{data:e}}),this.setDataCallback)}},t.prototype.componentDidUpdate=function(e){null!==this.state.data&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:fF,eventMap:pF,prevProps:e,nextProps:this.props,instance:this.state.data}))},t.prototype.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),HB(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var hF={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},gF={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}};function mF(e,t){return"function"==typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function vF(e,t){return new t(e.lat,e.lng)}function bF(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function yF(e,t,n,o){return void 0!==n?function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n.getNorthEast()),r=e&&e.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:"".concat(r.x+t.x,"px"),top:"".concat(o.y+t.y,"px"),width:"".concat(o.x-r.x-t.x,"px"),height:"".concat(r.y-o.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(n,google.maps.LatLngBounds,bF)):function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n);if(o){var r=o.x,i=o.y;return{left:"".concat(r+t.x,"px"),top:"".concat(i+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(o,google.maps.LatLng,vF))}function xF(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function CF(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}function wF(){}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={kmlLayer:null},t.setKmlLayerCallback=function(){null!==t.state.kmlLayer&&t.props.onLoad&&t.props.onLoad(t.state.kmlLayer)},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.KmlLayer(MB(MB({},this.props.options),{map:this.context}));this.registeredEvents=FB({updaterMap:gF,eventMap:hF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.kmlLayer&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:gF,eventMap:hF,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),HB(this.registeredEvents),this.state.kmlLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b),v((function(e){var t=e.position,n=e.bounds,o=e.mapPaneName,i=e.zIndex,a=e.onLoad,s=e.onUnmount,c=e.getPixelPositionOffset,d=e.children,p=r(RB),f=u((function(){var e=document.createElement("div");return e.style.position="absolute",e}),[]),h=u((function(){return function(e,t,n,o,r){var i=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.container=t,i.pane=n,i.position=o,i.bounds=r,i}return NB(t,e),t.prototype.onAdd=function(){var e,t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null==t||t.appendChild(this.container)},t.prototype.draw=function(){for(var e=yF(this.getProjection(),MB({},this.container?mF(this.container,r):{x:0,y:0}),this.bounds,this.position),t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],i=o[0],a=o[1];this.container.style[i]=a}},t.prototype.onRemove=function(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)},t}(google.maps.OverlayView);return new i(e,t,n,o)}(f,o,t,n,c)}),[f,o,t,n]);return l((function(){return null==a||a(h),null==h||h.setMap(p),function(){null==s||s(h),null==h||h.setMap(null)}}),[p,h]),l((function(){f.style.zIndex="".concat(i)}),[i,f]),y.createPortal(d,f)})),function(e){function t(t){var n=e.call(this,t)||this;n.state={paneEl:null,containerStyle:{position:"absolute"}},n.updatePane=function(){var e=n.props.mapPaneName,t=n.overlayView.getPanes();TB(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?n.setState({paneEl:t[e]}):n.setState({paneEl:null})},n.onAdd=function(){var e,t;n.updatePane(),null===(t=(e=n.props).onLoad)||void 0===t||t.call(e,n.overlayView)},n.onPositionElement=function(){var e,t,o=yF(n.overlayView.getProjection(),MB({x:0,y:0},n.containerRef.current?mF(n.containerRef.current,n.props.getPixelPositionOffset):{}),n.props.bounds,n.props.position),r=n.state.containerStyle,i=r.left,a=r.top,s=r.width,l=r.height;t={left:i,top:a,width:s,height:l},((e=o).left!==t.left||e.top!==t.top||e.width!==t.height||e.height!==t.height)&&n.setState({containerStyle:{top:o.top||0,left:o.left||0,width:o.width||0,height:o.height||0,position:"absolute"}})},n.draw=function(){n.onPositionElement()},n.onRemove=function(){var e,t;n.setState((function(){return{paneEl:null}})),null===(t=(e=n.props).onUnmount)||void 0===t||t.call(e,n.overlayView)},n.containerRef=f();var o=new google.maps.OverlayView;return o.onAdd=n.onAdd,o.draw=n.draw,o.onRemove=n.onRemove,n.overlayView=o,n}NB(t,e),t.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},t.prototype.componentDidUpdate=function(e){var t=xF(e.position),n=xF(this.props.position),o=CF(e.bounds),r=CF(this.props.bounds);t===n&&o===r||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()},t.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},t.prototype.render=function(){var e=this.state.paneEl;return e?y.createPortal(L.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:p.only(this.props.children)}),e):null},t.FLOAT_PANE="floatPane",t.MAP_PANE="mapPane",t.MARKER_LAYER="markerLayer",t.OVERLAY_LAYER="overlayLayer",t.OVERLAY_MOUSE_TARGET="overlayMouseTarget",t.contextType=RB}(b);var SF={onDblClick:"dblclick",onClick:"click"},kF={opacity:function(e,t){e.setOpacity(t)}};v((function(e){var t=e.url,n=e.bounds,o=e.options,i=e.visible,a=r(RB),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),c=u((function(){return new google.maps.GroundOverlay(t,s,MB({},o))}),[]);return l((function(){null!==c&&c.setMap(a)}),[a]),l((function(){void 0!==t&&null!==c&&(c.set("url",t),c.setMap(a))}),[c,t]),l((function(){void 0!==i&&null!==c&&c.setOpacity(i?1:0)}),[c,i]),l((function(){var e=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));void 0!==n&&null!==c&&(c.set("bounds",e),c.setMap(a))}),[c,n]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={groundOverlay:null},t.setGroundOverlayCallback=function(){null!==t.state.groundOverlay&&t.props.onLoad&&t.props.onLoad(t.state.groundOverlay)},t}NB(t,e),t.prototype.componentDidMount=function(){TB(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,MB(MB({},this.props.options),{map:this.context}));this.registeredEvents=FB({updaterMap:kF,eventMap:SF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.groundOverlay&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:kF,eventMap:SF,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))},t.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},t.prototype.render=function(){return null},t.defaultProps={onLoad:wF},t.contextType=RB}(b);var EF={},OF={data:function(e,t){e.setData(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)}};v((function(e){var t=e.data,n=e.onLoad,o=e.onUnmount,i=e.options,a=r(RB),s=d(null),c=s[0],u=s[1];return l((function(){google.maps.visualization||TB(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)}),[]),l((function(){TB(!!t,"data property is required in HeatmapLayer %s",t)}),[t]),l((function(){null!==c&&c.setMap(a)}),[a]),l((function(){i&&null!==c&&c.setOptions(i)}),[c,i]),l((function(){var e=new google.maps.visualization.HeatmapLayer(MB(MB({},i||{}),{data:t,map:a}));return u(e),n&&n(e),function(){null!==c&&(o&&o(c),c.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={heatmapLayer:null},t.setHeatmapLayerCallback=function(){null!==t.state.heatmapLayer&&t.props.onLoad&&t.props.onLoad(t.state.heatmapLayer)},t}NB(t,e),t.prototype.componentDidMount=function(){TB(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),TB(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(MB(MB({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=FB({updaterMap:OF,eventMap:EF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)},t.prototype.componentDidUpdate=function(e){HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:OF,eventMap:EF,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})},t.prototype.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),HB(this.registeredEvents),this.state.heatmapLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=RB}(b);var $F={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},NF={register:function(e,t,n){e.registerPanoProvider(t,n)},links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={streetViewPanorama:null},t.setStreetViewPanoramaCallback=function(){null!==t.state.streetViewPanorama&&t.props.onLoad&&t.props.onLoad(t.state.streetViewPanorama)},t}NB(t,e),t.prototype.componentDidMount=function(){var e,t,n=null!==(t=null===(e=this.context)||void 0===e?void 0:e.getStreetView())&&void 0!==t?t:null;this.registeredEvents=FB({updaterMap:NF,eventMap:$F,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{streetViewPanorama:n}}),this.setStreetViewPanoramaCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.streetViewPanorama&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:NF,eventMap:$F,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),HB(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},t.prototype.render=function(){return null},t.contextType=RB}(b),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={streetViewService:null},t.setStreetViewServiceCallback=function(){null!==t.state.streetViewService&&t.props.onLoad&&t.props.onLoad(t.state.streetViewService)},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},t.prototype.render=function(){return null},t.contextType=RB}(b),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={directionsService:null},t.setDirectionsServiceCallback=function(){null!==t.state.directionsService&&t.props.onLoad&&t.props.onLoad(t.state.directionsService)},t}NB(t,e),t.prototype.componentDidMount=function(){TB(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var e=new google.maps.DirectionsService;this.setState((function(){return{directionsService:e}}),this.setDirectionsServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},t.prototype.render=function(){return null}}(b);var MF={onDirectionsChanged:"directions_changed"},IF={directions:function(e,t){e.setDirections(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={directionsRenderer:null},t.setDirectionsRendererCallback=function(){null!==t.state.directionsRenderer&&(t.state.directionsRenderer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.directionsRenderer))},t}NB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=FB({updaterMap:IF,eventMap:MF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.directionsRenderer&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:IF,eventMap:MF,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))},t.prototype.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),HB(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},t.prototype.render=function(){return L.jsx(L.Fragment,{})},t.contextType=RB}(b),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={distanceMatrixService:null},t.setDistanceMatrixServiceCallback=function(){null!==t.state.distanceMatrixService&&t.props.onLoad&&t.props.onLoad(t.state.distanceMatrixService)},t}NB(t,e),t.prototype.componentDidMount=function(){TB(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var e=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:e}}),this.setDistanceMatrixServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},t.prototype.render=function(){return null}}(b);var PF={onPlacesChanged:"places_changed"},LF={bounds:function(e,t){e.setBounds(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=f(),t.state={searchBox:null},t.setSearchBoxCallback=function(){null!==t.state.searchBox&&t.props.onLoad&&t.props.onLoad(t.state.searchBox)},t}NB(t,e),t.prototype.componentDidMount=function(){if(TB(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=FB({updaterMap:LF,eventMap:PF,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}},t.prototype.componentDidUpdate=function(e){null!==this.state.searchBox&&(HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:LF,eventMap:PF,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))},t.prototype.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),HB(this.registeredEvents))},t.prototype.render=function(){return L.jsx("div",{ref:this.containerElement,children:p.only(this.props.children)})},t.contextType=RB}(b);var jF={onPlaceChanged:"place_changed"},AF={bounds:function(e,t){e.setBounds(t)},restrictions:function(e,t){e.setComponentRestrictions(t)},fields:function(e,t){e.setFields(t)},options:function(e,t){e.setOptions(t)},types:function(e,t){e.setTypes(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=f(),t.state={autocomplete:null},t.setAutocompleteCallback=function(){null!==t.state.autocomplete&&t.props.onLoad&&t.props.onLoad(t.state.autocomplete)},t}NB(t,e),t.prototype.componentDidMount=function(){var e;TB(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var t=null===(e=this.containerElement.current)||void 0===e?void 0:e.querySelector("input");if(t){var n=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=FB({updaterMap:AF,eventMap:jF,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{autocomplete:n}}),this.setAutocompleteCallback)}},t.prototype.componentDidUpdate=function(e){HB(this.registeredEvents),this.registeredEvents=FB({updaterMap:AF,eventMap:jF,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})},t.prototype.componentWillUnmount=function(){null!==this.state.autocomplete&&HB(this.registeredEvents)},t.prototype.render=function(){return L.jsx("div",{ref:this.containerElement,className:this.props.className,children:p.only(this.props.children)})},t.defaultProps={className:""},t.contextType=RB}(b);Hj(".appLocationMap {\n width: max-content;\n height: max-content;\n}\n");var DF=function(e){var t=e.cityId,n=e.className,o=e.containerStyle,r=e.clickableIcons,i=e.zoom,a=void 0===i?10:i,s=e.mapKey,c=d(null),u=c[0],p=c[1];return l((function(){t?p(t):navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){p({lat:e.coords.latitude,lng:e.coords.longitude})}))}),[t]),L.jsx("div",{className:"appLocationMap ".concat(n),children:L.jsx(tH,{googleMapsApiKey:s,children:L.jsx("div",{style:o,children:u&&L.jsx(KB,{mapContainerStyle:o,center:u,clickableIcons:r,zoom:a})})})})};Hj(".header {\n width: 100%;\n}\n\n.title,\n.titleLeft {\n font-size: 1rem;\n font-weight: 500;\n text-align: center;\n flex-grow: 1;\n}\n\n.titleLeft {\n text-align: left;\n}\n\n.descriptionLeft {\n text-align: left;\n}\n\n.closeButton {\n align-self: flex-end;\n}\n\n.body {\n text-align: center;\n}\n\n.footer {\n margin-top: 16px;\n display: flex;\n justify-content: center;\n width: 100%;\n}\n");var TF=function(e){var t=e.visible,n=e.onClose,o=e.title,r=e.description,i=e.children,a=e.footerButtons,s=e.alignTitleLeft,l=void 0!==s&&s,c=e.className,u=e.closeIcon,d=e.width;return L.jsx("div",{children:L.jsxs(T$,{open:t,width:d,onCancel:n,footer:null,closeIcon:u||L.jsx(Ms,{}),className:c,children:[L.jsxs("div",{className:"header",children:[o&&L.jsx("div",{className:l?"titleLeft":"title",children:o}),r&&L.jsx("div",{className:l?"descriptionLeft":"description",children:r})]}),L.jsx("div",{className:"body",children:i}),a&&L.jsx("div",{className:"footer",children:a})]})})},RF=function(e){return"object"==typeof e&&null!==e},_F=function(e){var n=e.value,o=void 0===n?"":n,r=e.numInputs,i=void 0===r?4:r,a=e.onChange,s=e.onPaste,l=e.renderInput,c=e.shouldAutoFocus,u=void 0!==c&&c,d=e.inputType,p=void 0===d?"text":d,f=e.renderSeparator,h=e.placeholder,g=e.containerStyle,m=e.inputStyle,v=e.skipDefaultStyles,b=void 0!==v&&v,y=t.useState(0),x=y[0],C=y[1],w=t.useRef([]),S=function(){return o?o.toString().split(""):[]},k="number"===p||"tel"===p;t.useEffect((function(){w.current=w.current.slice(0,i)}),[i]),t.useEffect((function(){var e;u&&(null===(e=w.current[0])||void 0===e||e.focus())}),[u]);var E=function(){if("string"==typeof h){if(h.length===i)return h;h.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}},O=function(e){return(k?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},$=function(e){var t=e.target.value;O(t)&&(L(t),P(x+1))},N=function(e){var t=e.nativeEvent,n=e.target.value;if(!O(n)){if(n.length===i)n.split("").some((function(e){return!O(e)}))||(j(n.split("")),P(i-1));null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),L(""),P(x-1)),e.target.value=""}},M=function(){C(x-1)},I=function(e){var t=S();[e.code,e.key].includes("Backspace")?(e.preventDefault(),L(""),P(x-1)):"Delete"===e.code?(e.preventDefault(),L("")):"ArrowLeft"===e.code?(e.preventDefault(),P(x-1)):"ArrowRight"===e.code||e.key===t[x]?(e.preventDefault(),P(x+1)):"Spacebar"!==e.code&&"Space"!==e.code&&"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},P=function(e){var t,n,o=Math.max(Math.min(i-1,e),0);w.current[o]&&(null===(t=w.current[o])||void 0===t||t.focus(),null===(n=w.current[o])||void 0===n||n.select(),C(o))},L=function(e){var t=S();t[x]=e[0],j(t)},j=function(e){var t=e.join("");a(t)},A=function(e){var t;e.preventDefault();var n=S(),o=x,r=e.clipboardData.getData("text/plain").slice(0,i-x).split("");if(!k||!r.some((function(e){return isNaN(Number(e))}))){for(var a=0;a<i;++a)a>=x&&r.length>0&&(n[a]=null!==(t=r.shift())&&void 0!==t?t:"",o++);P(o),j(n)}};return t.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},RF(g)&&g),className:"string"==typeof g?g:void 0,onPaste:s},Array.from({length:i},(function(e,t){return t})).map((function(e){var n,o,r;return t.createElement(t.Fragment,{key:e},l({value:null!==(n=S()[e])&&void 0!==n?n:"",placeholder:null!==(r=null===(o=E())||void 0===o?void 0:o[e])&&void 0!==r?r:void 0,ref:function(t){return w.current[e]=t},onChange:$,onFocus:function(t){return function(e){return function(t){C(t),e.target.select()}}(t)(e)},onBlur:M,onKeyDown:I,onPaste:A,autoComplete:"off","aria-label":"Please enter OTP character ".concat(e+1),style:Object.assign(b?{}:{width:"1em",textAlign:"center"},RF(m)?m:{}),className:"string"==typeof m?m:void 0,type:p,inputMode:k?"numeric":"text",onInput:N},e),e<i-1&&("function"==typeof f?f(e):f))})))};Hj(".appOtpField {\n .otpInputStyle {\n gap: 0.5rem;\n & input {\n margin: 0 5px;\n font-size: 24px;\n border-radius: 10px;\n border-color: #f6f7f9;\n }\n }\n .resendWrap {\n margin-top: 1rem;\n & .forgotPassword {\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 500;\n line-height: 150%;\n letter-spacing: -0.0175rem;\n cursor: pointer;\n .resendTimer {\n color: rgb(255, 0, 0);\n }\n .resendBtn {\n color: #009046;\n }\n }\n }\n}\n");var zF=function(e){var t=e.otp,n=e.onChange,o=e.numInputs,r=void 0===o?4:o,i=e.otpError,a=e.resendTimeout,s=e.onResendOtp,c=e.setResendTimeout,u=e.className,d=e.resendTxt,p=e.resendTime;return l((function(){if(a&&a>0){var e=setTimeout((function(){c(a-1)}),1e3);return function(){return clearTimeout(e)}}}),[a,c]),L.jsxs("div",{className:"appOtpField ".concat(u),children:[L.jsx(_F,{value:t,onChange:n,numInputs:r,containerStyle:"otpInputStyle",renderSeparator:L.jsx("span",{children:"-"}),renderInput:function(e){return L.jsx("input",k({},e))}}),i&&L.jsx("p",{className:"error",children:i})," ",L.jsx("div",{className:"resendWrap",children:void 0!==a&&L.jsx("span",{className:"forgotPassword",children:a>0?L.jsx("span",{className:"resendTimer",children:p}):s&&L.jsx("span",{className:"resendBtn",onClick:function(){return s()},children:d})})})]})},BF=function(e){var t=e.total,n=e.currentPage,o=e.pageSize,r=void 0===o?10:o,i=e.onPageChange,a=e.showGotoBox,s=void 0!==a&&a,l=e.sizeChanger,c=void 0===l||l,u=e.className,d=E(e,["total","currentPage","pageSize","onPageChange","showGotoBox","sizeChanger","className"]);return L.jsx("div",{className:u,children:L.jsx(u$,k({current:n,pageSize:r,total:t,onChange:i,showSizeChanger:c,showQuickJumper:s},d))})};Hj(".appPasswordInput {\n font-size: var(--font-14);\n font-weight: 500;\n border: none;\n position: relative;\n\n .icon {\n position: absolute;\n right: 1rem;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #bfbebe !important;\n }\n &::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n \n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var HF=function(e){var t=e.label,n=e.name,o=e.value,r=e.dataTestId,i=e.id,a=e.disabled,s=e.handleChange,l=e.onClick,c=e.defaultValue,u=e.onPressEnter,p=e.className,f=e.errorMessage,h=e.isAutoFocus;e.triggerFocus;var g=e.autoComplete,m=void 0===g?"new-password":g,v=e.icon,b=e.hiddenIcon,y=e.showIcon,x=void 0===y||y,C=d(!1),w=C[0],S=C[1];return L.jsxs("div",{className:"appPasswordInput ".concat(p),children:[L.jsxs("div",{className:"position-relative w-100",children:[L.jsx(qk,{type:w?"text":"password",className:"inputPassword","data-test-id":r,id:i,disabled:a,name:n,value:o,onChange:s,onClick:l,defaultValue:c,onPressEnter:u,placeholder:t,autoFocus:h,autoComplete:m}),x&&L.jsx("span",{className:"icon",onClick:function(){S(!w)},children:w?b||Uj.eyePassword:v||Uj.iconHiddenIcon})]}),f&&L.jsx("div",{className:"error",children:f})]})};Hj(".titleComponent {\n span {\n color: #000;\n text-align: center;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n }\n .subText {\n font-size: 1rem !important;\n }\n}\n");var FF=Bj.Title,WF=Bj.Text,VF=function(e){var t=e.mainText,n=e.className,o=void 0===n?"":n,r=e.subText,i=e.level,a=void 0===i?1:i;return L.jsxs("div",{className:"titleComponent ".concat(o),children:[L.jsx(FF,{level:a,children:t}),r&&L.jsx(WF,{className:"subText",children:r})]})};Hj(".toggleContainer {\n display: flex;\n align-items: center;\n .ant-switch {\n height: 16px;\n position: relative;\n .ant-switch-handle {\n top: 50%;\n bottom: 50%;\n transform: translateY(-50%);\n }\n }\n &:not(.ant-switch.ant-switch-checked .ant-switch-handle) {\n inset-inline-start: 0px;\n }\n & .ant-switch.ant-switch-checked .ant-switch-handle {\n inset-inline-start: calc(100% - 18px);\n }\n}\n\n.switch {\n margin-right: 0.5rem;\n}\n\n.label {\n font-size: 1rem;\n}\n");var KF=function(e){var t=e.initialChecked,n=void 0!==t&&t,o=e.onChange,r=e.checkedLabel,i=e.uncheckedLabel,a=e.className,s=d(n),l=s[0],c=s[1];return L.jsxs("div",{className:"toggleContainer ".concat(a),children:[L.jsx(pM,{checked:l,onChange:function(e){c(e),o&&o(e)},className:"switch"}),L.jsx("span",{className:"label",children:l?r:i})]})};Hj(".profileImageContainer {\n display: flex;\n align-items: center;\n gap: 2rem;\n}\n\n.altTextWrapper {\n font-size: 0.8rem;\n text-align: center;\n img {\n border-radius: 0;\n }\n}\n\n.profileImage {\n width: 100px;\n height: 100px;\n border-radius: 50%;\n object-fit: cover;\n position: relative;\n font-size: 0.8rem;\n}\n\n.fileInput {\n display: none;\n}\n");var qF=function(e){var t=e.className,n=e.uploadIcon,o=e.value,r=void 0===o?"":o,i=e.text,s=void 0===i?"Upload Image":i,l=e.onFileChange,c=e.alertMessages,u=void 0===c?{invalidType:"You can only upload JPG/PNG/SVG file!",sizeExceed:"Image must be smaller than 2MB!"}:c,p=e.acceptedFormats,f=void 0===p?["image/jpeg","image/png","image/svg+xml"]:p,h=e.maxSizeMb,g=void 0===h?2:h,m=e.altText,v=void 0===m?"Profile Image":m,b=d(r),y=b[0],x=b[1],C=a(null);return L.jsxs("div",{className:"profileImageContainer ".concat(t),children:[L.jsx("div",{className:""===y?"altTextWrapper":"",children:L.jsx("img",{className:"profileImage",src:y,alt:v})}),L.jsxs("button",{className:"uploadButton",onClick:function(){var e;null===(e=C.current)||void 0===e||e.click()},children:[L.jsx("span",{children:n||Uj.uploadIcon}),s]}),L.jsx("input",{type:"file",accept:f.join(","),className:"fileInput",ref:C,onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){var o=f.includes(n.type),r=n.size/1024/1024<g;if(!o)return void alert(u.invalidType);if(!r)return void alert(u.sizeExceed);var i=new FileReader;i.onloadend=function(){x(i.result),l&&l(n)},i.readAsDataURL(n)}else l&&l(null)}})]})};Hj(".appRadioGroup {\n .radioGroup {\n display: flex;\n align-items: center;\n }\n}\n");var XF=function(e){var t=e.options,n=e.selectedValue,o=e.onChange,r=e.className;return L.jsx("div",{className:"appRadioGroup ".concat(r),children:L.jsx(Ex.Group,{className:"radioGroup",onChange:function(e){o(e.target.value)},value:n,children:t.map((function(e){return L.jsx(Ex,{value:e.value,children:e.text},e.value)}))})})};Hj(".appselect {\n font-weight: 500;\n font-size: var(--font-14);\n position: relative;\n *:focus,\n *:active,\n *:focus-within {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-select {\n width: 100%;\n height: 40px;\n .ant-select-selector {\n .ant-select-selection-placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n }\n }\n &:hover {\n .ant-select-selector {\n border-color: #d9d9d9 !important;\n }\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n\n.placeHolder {\n line-height: normal;\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n left: 11px;\n z-index: 1 !important;\n}\n.requiredText {\n opacity: 60%;\n color: #686869 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n.star {\n color: rgba(255, 40, 25, 1);\n display: inline-block;\n transform: translateX(1.5px);\n}\n");var UF=function(e){var t=e.value,n=e.handleChange,o=e.options,r=e.disabled,i=e.placeholder,s=e.className,c=e.errorMessage,u=e.showSearch,p=e.required,f=E(e,["value","handleChange","options","disabled","placeholder","className","errorMessage","showSearch","required"]),h=a(null),g=d(t||null),m=g[0],v=g[1];l((function(){void 0!==t&&v(t)}),[t]);return L.jsxs("div",{className:"appselect ".concat(s),ref:h,children:[p&&!m&&L.jsxs("div",{className:"placeHolder",onClick:function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.querySelector(".ant-select-selector");t&&(t.click(),setTimeout((function(){t.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0}))}),0))},children:[L.jsx("label",{className:"requiredText",htmlFor:f.id,children:i}),L.jsx("span",{className:"star",children:"*"})]}),L.jsx(um,k({className:"select",showSearch:u,disabled:r,value:m||null,placeholder:"".concat(p?"":i),onChange:function(e){v(e?String(e):null),null==n||n(e)},filterOption:function(e,t){return((null==t?void 0:t.label)||"").toString().toLowerCase().includes(e.toLowerCase())},options:null==o?void 0:o.map((function(e){var t=e.value,n=e.label,o=e.flag;return{label:L.jsx(L.Fragment,{children:o?L.jsxs("div",{style:{display:"grid",alignItems:"center",gridTemplateColumns:"0.2fr 1fr",gap:12},children:[L.jsx("img",{src:o,alt:n,style:{width:32,height:20}}),L.jsx("span",{children:n})]}):L.jsx("span",{children:n})}),value:t}}))},f)),c&&L.jsx("div",{className:"error",children:c})]})};Hj(".appSelectAdd {\n *:focus,\n *:active,\n *:focus-within {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-select {\n &:hover {\n .ant-select-selector {\n border-color: #d9d9d9 !important;\n }\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var GF=function(e){var t=e.options,n=void 0===t?[]:t,o=e.placeholder,r=void 0===o?"Tags Mode":o,i=e.onChange,a=e.className,s=E(e,["options","placeholder","onChange","className"]);return L.jsx("div",{className:"appSelectAdd ".concat(a),children:L.jsx(um,k({mode:"tags",style:{width:"100%"},placeholder:r,onChange:i,options:n},s))})};Hj(".appTab {\n width: max-content;\n .ant-tag {\n display: flex;\n align-items: center;\n margin: 0;\n border-radius: 8px;\n padding: 4px 8px;\n line-height: normal;\n }\n}\n");var YF=function(e){var t=e.color,n=e.closable,o=void 0!==n&&n,r=e.onClick,i=e.style,a=e.className,s=e.children,l=e.closeIcon,c=d(!0),u=c[0],p=c[1];return u?L.jsx("div",{className:"appTab ".concat(a),children:L.jsx(ZL,{color:t,closable:o,onClose:function(){p(!1)},onClick:r,style:i,closeIcon:l,children:s})}):null},QF=function(e){var t=e.renderItem,n=e.dataSource,o=e.className,r=E(e,["renderItem","dataSource","className"]);return L.jsx("div",{className:o,children:L.jsx(L$,k({dataSource:n,renderItem:function(e,n){return t(e,n)}},r))})};Hj(".loader {\n width: 100vw;\n height: 100vh;\n display: grid;\n place-items: center;\n\n position: fixed;\n top: 0;\n left: 0;\n background-color: (0, 0, 0, 0.3);\n backdrop-filter: blur(10px);\n z-index: 99;\n * {\n transform: scale(1.5);\n }\n}\n");var ZF=function(e){var t=e.type,n=e.customLoader,o=e.className;switch(n?"custom":t||"spinner"){case"spinner":default:return L.jsx(S$,{className:"loader ".concat(o)});case"skeleton":return L.jsx(ep,{active:!0,className:"loader ".concat(o)});case"custom":return n||L.jsx(S$,{className:"loader ".concat(o)})}},JF=function(e){var t=e.className,n=E(e,["className"]);return L.jsx("div",{className:t,children:L.jsx(ik,k({},n))})};Hj(".label {\n display: inline-block;\n font-weight: 500;\n margin-bottom: 0.5rem;\n}\n");var eW=function(e){var t=e.text,n=e.htmlFor,o=e.color,r=void 0===o?"inherit":o,i=e.fontSize,a=void 0===i?"inherit":i,s=e.className,l={color:r,fontSize:a};return L.jsx("label",{htmlFor:n,className:"label ".concat(s),style:l,children:t})},tW=function(e){var t=e.className,n=E(e,["className"]);return L.jsx("div",{className:t,children:L.jsx(ax,k({},n))})};Hj(".borderless {\n border: none !important;\n box-shadow: none !important;\n & * {\n border: none !important;\n box-shadow: none !important;\n }\n}\n");var nW=function(e){var t=e.title,n=e.extra,o=e.cover,r=e.hoverable,i=void 0!==r&&r,a=e.actions,s=e.className,l=e.borderless,c=E(e,["title","extra","cover","hoverable","actions","className","borderless"]);return L.jsx("div",{className:"appCard ".concat(s),children:L.jsx(ow,k({title:t,extra:n,cover:o,hoverable:i,className:"".concat(l?"borderless":""),actions:a},c,{children:c.children}))})};Hj(".appCarousel {\n position: relative;\n width: 100%;\n\n .ant-carousel .slick-slide {\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n\n .slick-dots {\n gap: 0.5rem;\n align-items: center;\n li {\n width: 6px !important;\n border-radius: 50%;\n margin: 0;\n button {\n height: 6px;\n }\n }\n }\n}\n\n.carouselItem {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n img {\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n }\n}\n\n.prevArrow,\n.nextArrow {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n border: none;\n color: rgb(0, 0, 0);\n font-size: 1.5rem;\n cursor: pointer;\n z-index: 1;\n display: flex;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\n.prevArrow {\n left: 10px;\n}\n\n.nextArrow {\n right: 10px;\n}\n\n.carouselLines {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 10px;\n}\n");var oW=function(e){var t=e.items,n=e.className,o=e.nxtIcon,r=e.prevIcon,i=e.showIcon,s=e.showDots,l=void 0===s||s,c=e.autoplay,u=E(e,["items","className","nxtIcon","prevIcon","showIcon","showDots","autoplay"]),d=a(null);return L.jsxs("div",{className:"appCarousel ".concat(n),children:[i&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"prevArrow",onClick:function(){var e;null===(e=d.current)||void 0===e||e.prev()},children:r||L.jsx(uy,{})}),L.jsx("span",{className:"nextArrow",onClick:function(){var e;null===(e=d.current)||void 0===e||e.next()},children:o||L.jsx(Pv,{})})]}),L.jsx(rS,k({autoplay:c,ref:d,dots:l},u,{children:t.map((function(e,t){return L.jsx("div",{className:"carouselItem",children:e},t)}))}))]})},rW=function(e){var t=e.columns,n=e.dataSource,o=e.rowKey,r=e.bordered,i=void 0!==r&&r,a=e.pagination,s=void 0===a?{pageSize:10}:a,l=e.size,c=void 0===l?"middle":l,u=e.scroll,d=e.className,p=E(e,["columns","dataSource","rowKey","bordered","pagination","size","scroll","className"]);return L.jsx("div",{className:d,children:L.jsx(HL,k({columns:t,dataSource:n,rowKey:o,bordered:i,pagination:s,size:c,scroll:u},p))})},iW=function(e){var t=e.percent,n=e.type,o=void 0===n?"line":n,r=e.strokeColor,i=e.trailColor,a=e.size,s=void 0===a?"default":a,l=e.status,c=e.showInfo,u=void 0===c||c,d=e.className;return L.jsx("div",{className:d,children:L.jsx(fN,{percent:t,type:o,strokeColor:r,trailColor:i,size:s,status:l,showInfo:u})})};Hj(".appPopover {\n .popoverComponent {\n width: max-content;\n }\n}\n");var aW=function(e){var t=e.content,n=e.title,o=e.children,r=e.bgColor,i=e.color,a=e.triggerType,s=void 0===a?"hover":a,l=e.className,c=E(e,["content","title","children","bgColor","color","triggerType","className"]),u={color:null!=i?i:"inherit"};return L.jsx("div",{className:"appPopover ".concat(l),children:L.jsx(rv,k({color:r,content:L.jsx("div",{style:u,children:t}),title:n?L.jsx("div",{style:u,children:n}):null,trigger:s,overlayClassName:l},c,{children:L.jsx("div",{className:"popoverComponent",children:o})}))})},sW=function(e){var t=e.className,n=e.onClick,o=e.onMouseEnter,r=E(e,["className","onClick","onMouseEnter"]);return L.jsx("div",{className:t,children:L.jsx(bE,k({},r,{onClick:n,onMouseEnter:o}))})};Hj(".react-tel-input{font-family:'Roboto',sans-serif;font-size:15px;position:relative;width:100%}.react-tel-input :disabled{cursor:not-allowed}.react-tel-input .flag{width:16px;height:11px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAACmCAMAAAACnqETAAADAFBMVEUAAAD30gQCKn0GJJ4MP4kMlD43WGf9/f329vcBAQHhAADx8vHvAwL8AQL7UlL4RUUzqDP2MjLp6un2Jyj0Ghn2PTr9fHvi5OJYuln7Xl75+UPpNzXUAQH29jH6cXC+AAIAJwBNtE/23Ff5aGdDr0TJAQHsZV3qR0IAOQB3x3fdRD/Z2NvuWFLkcG7fVlH4kI4AAlXO0M8BATsdS6MCagIBfQEASgPoKSc4VKL442q4xeQAigD46eetAABYd9jvf3nZMiwAAoD30zz55X5ng9tPbKZnwGXz8x77+lY7OTjzzikABGsenh72pKNPldEAWgHgGBgAACH88/Gqt95JR0OWAwP3uLd/qdr53kMBBJJ3d3XMPTpWer8NnAwABKPH1O1VVFIuLSz13NtZnlf2kEh9keLn7vfZ4vNkZGHzvwJIXZRfZLuDwfv4y8tvk79LlUblzsxorGcCBusFKuYCCcdmfq5jqvlxt/tzktEABLb8/HL2tlTAw8SLlMFpj/ZlpNhBZ81BYbQcGxuToN9SYdjXY2Lz7lD0dCQ6S9Dm0EUCYPdDlvWWvd2AnviXqc11eMZTqPc3cPMCRev16ZrRUE0Hf/tNT7HIJyTptDVTffSsTkvhtgQ0T4jigoFUx/g+hsX9/QUHzQY1dbJ7sHV02Pduvd0leiK1XmaTrfpCQPgELrrdsrY1NamgyPrh03iPxosvX92ysbCgoZzk5kP1YD7t6AILnu+45LykNS40qvXDdHnR6tBennz6u3TSxU1Or9Swz6wqzCsPZKzglJbIqEY8hDhyAgFzbJxuOC+Li4d9sJLFsnhwbvH2d1A3kzAqPZQITsN76nq2dzaZdKJf4F6RJkb078YFiM+tnWZGh2F+dDibykYoMcsnekdI1UhCAwWb25qVkEq43km9yBrclQMGwfyZ3/zZ2QK9gJxsJWCBUk32QwqOSYKRxh6Xdm3B4oMW22EPZzawnR72kgZltCqPxrdH1dkBkqDdWwwMwMO9O2sqKXHvipPGJkzlRVLhJjVIs9KrAAAAB3RSTlMA/v3+/Pn9Fk05qAAAUU9JREFUeNp0nAlYVNcVxzHazoroGBkXhAgCCjMsroDoKIgKdFABBwQUnSAoCqLRFBfcCBIM4kbqShO1hlSrCJqQQmNssVFqjBarsdjFJWlMTOLXJDZt8/X7+j/n3pk3vNq/bb8+3nbP79137/+dd954qTVt8uTJL73OMhqNer03ady4cWOhWbNmjV+0FfKGjMb36Y9/1fXUst9cb2y8/lpb797z5k2dOjXVD9Ljn59fcHBwQEDAgGch3l9on6feeeedn0r9kvT222+/sErRgvcDArwV8f5tN/rcvPnMZ22pqVFRSVGjR38k9Rsp9fLql/MXLj20VGjt2rVeak2Og/auI/kHBQ3We/tCo0ZNhwYNGj58/NaWlpbOyMhIX1//2/jTrICvckhXruQsWbJw4cL3tzhPORynSk5lZWVtglL9IkmdDQ05NqvVGhLwbKSUL+Tvb9yH/2sj+eN0IZZ3fvq3Hnp71ZtCOyofdnTYSzq9xX7UtsF9+/Y1FpeZT54sc2aUlq6Jy89YM/qj2oZaoeOkMR8dV/Tee++NWb04rrA5MRYKDAyc/NKCpwDIyKhE9LEzZ/r4DLQAAE6EyEeM6AcNH7m1pTMnB+fHX7tG9Bs0Xt+GwM/frqm5tz950aKDk6rsiA0xbUrbRAii/BDeV9bGhQsPRlyOCAuZ9GykZwT++n2RHPnVYQU+oaFDPQD8jEQAPiDdaLPaHGVXbn/O7YHQuIH9B/gYgzts1iqrtSopKWlNRkzS6I8arFaOFvTfew8AfiYil/rN6sWTKwtbArOzExISUl7+vwCuQNt8Bg71AQCcTwNpWeFbW3IIQEmJr08XgIzX2xDcvZrs7Jru5EWXwwKSwh2RkQ77w7Q0bXp6YRoDaKO+kZl8MCwsYpJ3pEf8liAAoPhDhqUMQ/wAkF+oqKiosJYA7HxotdnTtVe6Pr/S0h+AI90QffU3T9obGuwdD5PqkmJiMtbM+ajWI/60TX0COhoarAAE1dfXV80FgMmLi1oSKP7/B6ASAGyBV4YM7D/Bx8/bF7g5fgmgEwCCSiJtJQRgxEi9zZqVdYUu9pW0tLCIgOvxdR0dpxx5aWl7EzV7CYDV+tXnCzMzkzMvE4AFlTuhZaSf/OQny1L32RC+JcHikzJ06NAJoe+YNKRbsbG3xPlWZTxssNmdOP/J27ffudLJ60V7DAaT1lxRVvfwYe3Jlrq4uJiKjAwAcIWP+BkAhV/i7HA0uAG8BAIUf8qfzvwvgJcQf+XMK4GWi8OGTpgQ6uftzwC0LIM2WgcASwaXOBwlA7v6/YgAhFRt2pRGeu0/UyImbal77eHDo2kVAJAeKwE0fl6P63/5nSlTAKBCiR8AovbZEL9lf8I5AMD5booAE7OzY8X5fhGJi0/nTzTcMh+80iIBaF0APqvIu3EjqfRGcV3S4aSKYk8AaW4ADU4gOFlfn8sAXnoJBDpTCMDL87zU2kwATl+x1Nw+P2HChKHBBMDHFT8DwGjX11FSYu/f/aMf9XtOjwAacf2hmxRg7ywXDrr30kb7NVhDquo/z0y+nJs7ZUoYA5DxM4BFmcnJyV93PzjbvQhK3urqAYF7xflWVT5ssDaU4Ox7T9+6Ei4BaN0AUkvXJEExMTGHD9cdFgA2yfgZQAP1f0dJw0lrfS4BmIb4z5yZBgL/H8DibbehGROenQ0AQRhvZPwQAGDQ8wlqsFkmdP9ofr/n/OgK2ml1xxQECAAy/tdee++91wCA1mfWJy/KXUTr536T+O67764X2r9//T+3JkPdDx50f7qItDXfff+zeAxY1lYV0VCmPV1Ts5fGAGUYDbHpo0qT6vKTignAtWvXiuf0StwGZZPQybMPAYC8/xF/bj0AUPwvvzytKCdl6dMAvJxRuXjxkCHnL86YMXs2A8B4m4yWQTrdIp0uByMajcATJrwzXwCIiIjAFSrbJwGI+FlH00YH8/rQy5enQPsYgBK/BLCI1c0Afonhn/XjH8MNLP9o1Y4Pfg795N9hYQ23bt1q4fb07z+A/ITR2J8AFJnqOP7iuj7Fc35TK+9/bkPaM+NGiSnsB6wRIwGA4n/5T5Pzc5aeeAqAP1VCM4niWRqVgr1p1sEYlskNJQC4BQZbLJi0MAgCgBUKqYo3VEVEhIWFTZqXtYmVxiIAtB4QeDUAvMuSFBgAJCkwAKHlLAKw4wMIFG5URVgdLdwedEq6BuCgj1qzpi4uiVScYa6I0fWKJQVC2aRDY0eNWrlyECwMMIDDc2vZ6UF0F7z8tB5w4kTvtZ+ygklGkk4lvZ6sne45SDg8aJIQ2z+4Mmg0qcfauXPnfvPNN9XV/1S0VSWyf1Ls4FZ5aIHu/blGKb2UOM0ckq4PmsZ2b8yYMb2l4FbhX8ePHwmhuSPXkhaQ5q0tXzBvntdUUq9eSyFu9njXxpA74Leg198yktRWVI4OkAkymw2Q3WO90+nnN3u2H0QkHI6JpHHj2GvTYdsupd68GfVZ4yTJqJeUaNKhQ+rzCUvOMXEr//4vD3333XdLe+rRJx4iqumDnT2O5zW1HII1hPLy8pJGjz9GWgk9D61Al4fWkWay9VRbUa1GEVCYDRoonu0dr++n0ZQ0dMCNdDRYHVrtuImjWHQ80lvfl4WfhJetw1CFm6h+rkazd28iJHvyIe/IHt7ZOBY7o4GPH4smPqf7nRwz/sH6bmmi2HtvYiBUYPxEcZakt701PdsPAIhb3DBbYmIIAOK+F9HXJ6z7t799AwDI48+cOQRi66m2ogoAYVwIQEkQb8DrJza1azRWq9NpjUjXtg+aNXHU9EEQHW/YsGFD3toHMFZbgzUsDNPkPgAgpScG1vA4TgB8PZATAAoc6IasWPHhhwCQkyNCdwMIJCVqDabA8+cAAJFLYVD92dvpjvQe7ZcA7p0/350dEzNmy+iRAHBPrO9+AwB41Of4h2HoFdZYhsfL7ej7QmbSBdED/GkDXv+ju9Pv4i9mM+g09Rs1duKoQSQR/4whb7msbFhufHy8M2xup6AZ3sHzWOChaveIWQCtn00A7s/84MDuD4bd+fBDcYEukrVna5fwMQPAsqnQZOqqLtBzezysvHd6z/YLANndUELMGAmgXqzPfeON3+IE8PHbuL2YegYCAO+/fz/io2VMM+5HpR/BGXIPGCzix3oAaBo13aApK9Mahg8fNAo9ANsPGi7iB4BLZRUPH9advJGb6zx+3Jk7FwFtCNekNzQUabW3cAv0Ek9uUA0U+PGsY4NmzrxQVBS3e82wGQDA7bvI8SsAsgNP7y26HV4GALyeJzGaY5J18fZ4GT+3DwBK8/K2ZF/s7v46ZYwEsMJHrJ/gApBJ8QPAs9gh2BYBnT077OwUnvcBwB0/nCEAQPFBdADefv5dPEu3p2u18e39Bg2aPou2h9wNmP3wi7bGL9qsuVOcizoBgM/X0BBtamggK2wGABn+WSLw8awm9P4Du3ecys+aMWPGt6J9medF/EsBIBbxJxSFm4vM5moJAOGL+AHAO90jfglgy5bshO7uFAIQM2fkyhUr6sX6fW+MJQDYX1wvWI/+uOIc79mziJec4ESxDPGy6AF9RfzYHgBw02s7yswNhf1GDJ8+lvcfPgKrxfoAa0S9uP9HTV95LHdur8TzuF7W5OSqDdEGAFiaiIjk9U8hAMdw+1Ts3r37VPOMGR/K9l3k+CUA9P9b4c6y8LKC6upqAiDj3wpxD1Dix/m9Uku3KAD6xMx5DgC6xfrLYwnAEuw/jOJnAMHjpnvECwA8aK5YseK3EA2aogf0pQNIAIOaXI8S0/sBAPaHaLUEIOJHPmjUsWACACN7/qLVmoz2Zjabv3x8X+oBdP/DWeih94d9sHv3BzO+fOOND6l9C93xL00BgOy97dHo/ZHm6EcAwM8OHlZ+YLpFtF9eQAGA9+81pg8DQCzdU3D9Ef/YN3AC8OP4Z5D1DBg7XYmfAKitqYl7AA8AvDxxVLtGW1VVVhYRZjC0jhg/Tuzv3j6gCuEjfghGYd/cXrFk5BNqai4K633k938h/Zp15C8Tx68E7X7Dtm2b8QZEAH743j8gYQQwC8TGlp08Z7ZWC+k/4eFf6pc//Sje3+TZ/pFeqXkQ7hoIhhoAnve8ogRgCQZBMQsgTgBgXykpAoDKmpoIuJP/wMvzwaOKHkisVfUnDYZZ2J/k3n4ST/94UiHt2/d+Lx7yttFAXnP+60W6+X9ggQFzGDdeOJT791fQNAgAv/qHFFMAAJou7AWQBCAkKXzknW71bD96APnWQ4c+hthRsv1Ty2WNA4InwYYpzhJSW1MT+lmkxx9awyfNhQVmvf9+c9M4kVt1by8tsmuLub3I/in6er7URGkh1SZ1znfk/xR9o2oP7F8Pax1vbO8RgJcwhYp8BvpMcD1t+0GffPJ7xUo+CA54Yc+DPXv2vGA0vkBavfqIW+xeH3kr8iJ9QxJegQNpu/TMzZupnzXOkQ7+OkumeCCOU+Si2Sr7kR6RkQZ/iA0y62PWVKlUiLy8fsz1MSd6s+YhLz1vu0t7ILS4T1Rqn2cU9fF6YQdpMZIAG6dNmzZ5bX+7PZKGsXi0CM9xwZ+0DmuVnejxsHMDJu3Zu24vkrT+QTtYq4/8nvWHPzyeCa2HUySRbzMKAO9CGhZ15Pku67uGlaS7frzoeFat26uY2CpzijiIrbKfLdH2buy7eKLkR8oAaXWhQNLH8+qEKirKy0tLS6O8bXVZQpvg8dPmbV/O+jH0IvRClLY06hkPAcBGqLa19ckBzC0HVg+0R9rQFpqFtWER1oBPhr3+eutPocevPzIaBwTseTORAu/rQ7sd2AgA4g69T1PlfmGVsX9fn8ESALk4ER5Gsb/Mny2tbzGkPQwASH1s2iTDBwC2yhYeVdgq+yXODAwpCCzAozT7Dml12fqR8VGcOMtk9A0pkUvsI7YvR+DQrl2vQLtWpdbFPAVAq8lgMrcygKEEoKQsJKTMYQgLDQn4ZN3r60T43ngSrH5g1rBcWaINAoCMX1plXq8GoBUAXNYX4RcfPqzVXa8tqk3bpATAVtnCVpytsp8tsCBifcJVil8BoFhfu7OE5RCyGn0HWxweQLYvf/HF2tp1T568IgD0Gf2MJilKBSCrPf5Cc3h76e4zuwmAv8ZqQ5cLMwwNA4DWn+IfwoeqX3/8kQvAQC2rGQCU+NkqywuiAqAVACa6rO/hYsR/uBi3wKZd7wGA1gPAcEvfhAQAmEEA4DwLEgo4/tmzwyYdYqurWF+9zWKxhCKlTjnV2WEBxkhHX5/G8jSZEZoKALWJWbuyYgWBVRgA6vqk9hgDNh54YtI2t2jbn5wBgAl2m1XTYAmxhFoNU5DG/uRnHuG/d/yjEa0X7kID+99tgu6OxTytxK8A0KoAaCGexz+rWHPpUtKaG4e1hwnAhhNZlLtMhwyG+HhDGVvl0PXZ2fv7w3oMe8vPijuf4of2AQCyutDmzWdI1zcv0Psr8SOFF2As0Th8Qr84CiEzcjSKni09b4l5C+al4r9uAcCBA1nthuYKc3spA4i0hWgNdFazgbK8n3iEjzct380S1rd/f+mkAECJH87O21/2v76eALQM4MiRX0+MKqXsFXSYAei8/d3WXLHaoQNTUga4AYSGiesPTSEASvwEwCrin4D4GYAv4m9MS5M5yalGX1uixccntCDwKqf5n5FSboGNBw4caG03m1tbz5zZs3v1bAAAKvtJDAuzAeD1c0r4DEBY4f4DKH4C8AclfgYQxFl0etRWAAj+RwjA6DUyfuoC3xt02F6JnwDQ8UNpeQAB+DTY6op/HxJLU+au3jj5JYRPwvR5ZoFN3v12oVxjkE+oXbG+4o71WH5dJa9VALD7wBPMArvP7AEAfaTVgm3NZkzcszHoBCvhM4BvhTcfMOCB8OZH/sDxp0hrCwA8PvKjNqkaAPaL80sAyvU3fF+sU1tptspDaRkA3gKAEIoforwaAPhZ3f2de4RWeUvAARqDKH65ZDKE7/nxriexm17ZtO0JxvhXX1n1Q5UAYCMQTCsvn7ybEuYL9JE2q9jfZJoSBgADEP5xt757MJM0xMcHUUOfzr9Pywlua+vtThhJAOvdPYDc/LjRayC+CxiDTm2l2SpbeJmPHywzyhLDXH1ICI96wEAcAlIr4ABKSThuXt4c75ByyJ2Zj9qDWbD2SSJmAdaqBSp5CdPoB5frx9LDdEVDG6C5cKnB/xz1kdB3rAcP2Bb7+X0q9GtOXirWU7HGEgBSwI/CoehosrIT2f7pFKmtNFvlYF4W/jvAI6kMoX2y1kBIZKBHu1PDwfNI7A1ZbP+UIgPMAn08hFnAIOROal3P6pnlzSQlK8pHf4F2s+AwjSRNvDsCadl76bQif9tbqDBdNvzPfxcy8+nCw1OULDDrOukEi7PXnngo+IDLY8UZZMmGOmsMn09yPTI8VwjhWEUkXIY4mYVu2/7qq9tJXuqsLoxJj+XMZqEWUmdnskabf8olWOI9Rl9Ik07vqeh1id/EpqZRUGKOhksqxveuZGm0Idx3g//+BPrd734n793wXnuFEoUOXc+ClJcrC4wiI8rv0On4GNUbbh8TBRtwDOPVWerxv2P9SuiPukKcBwd0xRPusuLSH+/xUmd1r9dm5XsuZzZ35kBLxCt+ANBoihA5CY6YAODEmnS8KRpIr7cBgJp2uyDkahcmi+EAUE7SpvPQFRrw9yfcvk5nPHUyApDokQWPBQCOXN7DafPo+ABH1RN8fL0t6OrVq1X3eC7C8dVZ6vHu2P/4xz//WQDAQ44rnmhXFlrYYxeAW+mJ6bcSEyUAEFCyqJdPfkX6HLp8+fJXBEBTyAR2uAD0tWjSfbh9BGAUxX/1zi8HVXcpAHZq03m9BNBptXY4ET8DUOKXANJk/AxAFETYbO/ayJ3aACAwcH3gep/Qru4PUZ8w/nW8X9gWOMSdZR7bRG81jkOU1XjeDUArFOey4i++WFW1vr4NAMTLaFjLvekuAJvylYKIXIcvFcQItzLB9o5G44CzylcA+Pe1+GjS+fojwGDO4hbcOfuXX35bnZ0deIgB7Nyp1QqrygB+1Wb9lbOBAUQTAOV1XuwhdRZXI7Q3UVplfSKS45aEc0MH9p/yTveKkQCw7WrIXneWmYDMrD3++Mnx47x8Iqt8GiTs4+bJ8y6V3Xj4sOLkjV27qjA9AYCBvGJsQkLgXraKBAAEOsCdZPfLdbjjRwQAUOJvxy7t/BK+NKuPhqVYTX6PEHJ101+qq8MWLcrUqdf/ne5Pa+OvMLPRPB3dBw+ychaDSkers7gaFiAliv31sSHr14euv0o8n322XoeAHXhwOyuydsMYwJDax0+ePD5OywCA8NM4fAIwdWfdtIqKvKyMXbuKDPWFRS8wAG3r3lvtF0RBAveANuqv7K2Dc+3K9Z/g7gGtlKRja9sjPjSQF6/eqc7+9ttztKz3Z6uarl22BcqL+jvdo1URvyqzGbSUpOTX6XlkW0mvpaqzuBLA6dOxOD4DKMA7koRzaMyUf3+xczUCvlVgic+m+CWAIUNqjz95vEkBwJdfAniVhj6+/xuRjGyTAO42XRjVxJMfACjxE4CuveRlC2SO7d13NJD59yJFSQD0QRj+tPHu7flhpqv6y+pv/9lF7wn0QexZ4g1bBIBZBCAnIsJaEm+QAJT4f/Naqrmndd2wCFMPhuHTp3OWQDk6vS1hfcL+6v6I/iU8vgPAkAs1+5vPIn62zt6+56AsdNChjx49OqcvwsEQPx2OjwcAIv5d+YW5hfkSgNZ814wNGADHP0HEo58Q8PXe2Fjx/JkCxd7T8uXn+CUA3P4AILcPFu8NuqrDziF+lND4hfCjigAQsywKozQN0Esc8eJ89LTHLk8+7ZmV+LnBnJX2KNAA8KvVQ//9xWTYkDNnJq9VW2m5XF8vl2lSx/X3AMDhU35kee7yXS94mfh8St78RNZDOetAEwBAmaRjoS6t4a7M0TKFcWxNtfE+cvvgsWKCjs3U8jwFAGxd0w150DIAkHO0QSjaSPM3Pa6BI+RnVtojAPAErBRo6AeHtN1YDP8uRra1aiutXgYALTZ1H287pn+SxAAA0pFB0aQT7wuzKbOQwV93kfC/Qt13j/TI0k5kg2Yqox1YY0VBwlKdWXgx6VvLzKlRrPEjRU53Q7QQdpenE/bW7G7JBpZOpUmfLVi9arXQWkhtpdXLZP8WzFsQFx3Hh2vm/CjrBZaX9UbvmzenotZWWmpZ3AOJUgvCtkq/2u2Vy0lmbiOfZhxLqSWuyC/FpS5qbCyiW/6LUm/om2rv6mrvR9VGyCRkNErs6uOprS2bcpaZ91Bbd0CTmsTiPd/i8gtuzxGVPpoIebTY61qJ+aT9pJOytEnQ6NfiSBlxcbWsMTRG7LBtdFvJ8nxI9FAyKEhgkJRa4jqHpigjQxMZqamry/fV1Hk3eWRx198zmjTpmEZovSbe7tRGq4+ntraGnlY9nJfT47Wu5YAGVIKSZIEF7y8KOrg9R5C++r2iI6/W9myvF2p3/YNwyqQYcl/Fc14TkcNAk+r60AkPhBzg0wkA4GNi2fyDCMAg5VURKkfz4uwOzWJN0GBNuR0Qrnk3jTrrqlh68O1wvDlyNCBp6R+k0Tqq7ACgOp7K2koA6b7xSgFGeuTgvkElWBYAEDgidxVY8P5c0DGMrbLTgx908tVTPdo73uumw+4baW94WByTlp+fFuMCkJGhBqD1ACCeFP2pTg/WVzkgTpiXUV6GtCCeD4Li82N29vYGoDs1/Lrvy379ngcADaWtg0JwMAe8ufp46gIM+brdYnEKL4/lSF5fItqjFE6ms6/g/UVBB18Qb1xgeno4x7qqf/XUKdr81i2ZIfJaU1LR0YEsbUxMWmnFUQEgP5/sYFxceXlWn1XIGR6w0JzDWosGZ2SIBgeFwJvDeBBvtxWVz5Ior2Xle486i4KIO1fP3aEXkiv0QQ47pa9CQoTTnP304227d08ejwMsszRaylwAZIGDvwCw/RQ8ObRRaBUXcIiCDpwPAN6NvQoN5vgHngOA5XT7NDVJa+31WUXSjRsxa27EXEuLawGAo3HU/+OysnBjlpdmPeNnExkYV16+HO3NEKMQJjgrGizjl1a0MTLI4xL2vek9KrBg+IiuhBRUFhMAfrojiae74Kcf715m8j0+ngDgj/vBR9QOAyArUmj2njc5cJmkOLCKa5u5PTO4YMM7cR0REPELAMtxxA0bpDX3SsXYFwNdu5bWmZN0bc7RjNraOMSPHpBRCgCrKWcYKq//njNrp4kGmyCQCQlGg5X40WDZA3z6u3vAnUEjRtw5d+5LAJi/Qm9xcOstFht9JxHp9/TjDeteKJyd7AFhuVPKhFX39vcXXd4hssjbuQO4IGxkAD6iPZy1Rg9Yj/g5/IGPAGD58kJ42Q0bwnE8AUDG39mZl5eToyMAiL62Fok2AkD34O7QM26jlIcG14oui6sYEjymrpxeyuUJlaZuqViWnz5Y0x8AQpt7J6V6Hxs+4k4N2chD386f/6EeRseB9lso89oBY6I+3lhVAQYDSHfud5qEkUEWGftj574ii2xWUqJyPTqfKOjg/WlQ5P7v4wJwSguhoJEV7hW1huOHKO1xDQD45aJWWyoAUAPOhBEAgwtAbZ2YhC2haDA/bbkfNvKmxmRobJF5mgEDNL/Q2EPKU72nD7rPPhq5rwf9CIDdageAUK2hod4GAKrj/U8BRiQ/ju8/R/7UJ4Ssbl9HutbpL63uUws2RH/k5bKe1vrKq8td1nsflDsXAES5OXQY9da639SS6uQswAC0ByyTlR6QAQkbEgIBQNbicggY8qCpdRpb3M6dNAguS4rTWC4ZjwVCXIABCitgdZ2RGNBDMAs4bSUAoDre/xRgsCFYvx5hkbkVVjfIv6/L6j61YIMLOs7ysuvttdSRV+vcnqEecycAiFpbFtUbiEpbzpiy6NKsDlhL/pS1ZQuq6TZwkjCYJOtuSVNJpZ8nIQeaf/NmPlKyz9R+b4T++cj46JF+9iM9JK2un5+0uurjkX2T5Qsso5Df/7O6smCj5/a93oI+5eUjKu0JVpLMJK/r18PDZRaWq4i3k0ykcHbLKmcqaoVlCvcQtGjEjyZ6emF1Fre3CpDa6vKZhbHn8wdLueytnqU8n7CTFSllugeMik0WaJd6CrUZDTfmwep/cY3S5M/hmqjP73V9Mj0uKjnA7ZQtFebiRWiVt8x/yrHW6GE1SYf8Hraa2psUa2m0QWRlQ0QWd8FiUrkrL5XK+ytm13iiUog3mzZtQbANsrpL7CfpySCz+G8BXEChYRVAxj1vSsmCDVUBxTfFTq3zpDO+Li5/Q9OFlrg6tdX2MovZCn6MtXM7PS8LAPQ+HQA48IcPeardqFesJtf6HvL2bby97tat9unCCQIAz/ORkWKeBwB3PgafKWxOFVYXCYvjwuqe4NAlnpcIgIhcFkQAAAfOfwwNIwAALR4IkKEpMJp6ZrWj1QUUgx2Yde32G/hIB+VVx6LUVlsCcF2Dyt4MQBzvFQgAKP62pvA2CUBaTZmF/RjLEV+dn7nuVvuo4fQRFQBYoHRH31DKAgdX5EMSb0ZGXIy0uiU+JcLqEoBprvgZgBK/BKDEHxYBAIMEAG16NQDoJYAdO7QCQAKnL043N5+mbpB4qNEZ77CXlFRk5FMJfFOd/OyOxJ/deZ1A99+8Weue5gjALphFLL+yezcB2AhZmy5Y2Wnh9feSCGE1ET8DAM2D3WeHDKFuMGi80R/hl+CjqvgSBsBlc5V0vMpCqigRF4viN7AVXV252B3+S8jaKtdTZoH5q7IIaUUjJnEBhYHWxysA3ty4482Nb2r5+KyMuvw64fQqnBknT2aU7aQe0PX8MqoXaKUsaCvivWvQmiQA7qHQ5t7bkSt5RctWYzcD2MEAwsNDJICvFi7sewf6knRnIltPn8vdxGNYvGkcAPj42OPt9hJfTqpyAws1GRnaImRBXQAQf4mBG7i2snwnaxlp51R1FjnEYRfqgBo69nHO0YD1ngAKNxbiP7S9BFAXV1EhnN7D8KLw5riiirq4lXUHK47VIf6mC63tTU3trU3T78IJilJSpQcAwK5XeLlQAXCg6oMbVYife8DCep8RSqkpACD+e0hL70UPGD5S70/pLXQ6pyhY4BzfYi20uNDgBoD4Bxi4gQyQZnVZPK3OMquXOecIdgQA0vMGuPwbD+yg9RIA4o8T20+tAFvxlV59Te6y0Vh5wWQytLYaTOgBAFCp3KNiEPzxrldUADD8VV06/wUWfw4AZDUVqzoSy2GXHwyZiTGgHwGhLHGoj7Mk0jmUAVS4D54BxcVcr90E5fUfkJTGb36ox4gSDwg9hkthP4RQCDtu3Ic6dYEDF1CYPAHweowBwgqPbVoJyXJXfFCxrCgjDv8Jr4urO51bk1GBLDOUQ+IssxesKKlSqveeH7+iBnAAqo/YTTogsq49rOfB7m23brUOp2UGQNH4DJ1gEVnledP47pKvfLdEqd/9occo8TMAJX4CoFXilwBg+lQA5HoFAIcvviiZWsHXH4q5nVDzk9HqLLNXUaFLJlORqahuz4uQOCDPAkblUYvkx1bTw3oGt3Xi4ivLsoDBnVWeygNc3mYSsoQA4PnyFwDIMCglD8EjXc3/kAQAPbPE4Wx9PW6BF6RDkW1ci2+K+JsngQE9AB2QOwEudGNdRoU6y+zl/ohMmjWyf6uiyfduWEVSnJ0wZLw4UvkMTaebCCuqLOtVFQxKGasQdwSYZdcZPWweSykFFuKwlZxoOBdQXIiGmvUkVxJ5g5TaSivnHs3SqeQ1UZUl7Q1p9Bp3kQWvFicXNvvQfGX7cR8fmqs6oPozOp1KAqgClSyw1AKSnqVA/PbTXj3E7RWnn/81jrcb4loHme7+n/Pz5krWuu3GM5+hVnmOfAICAFVWtzdVE9g05VApHvNTPawnW8fLiYmPeXvofmCNztv2lRxRuG/p1AUXOl6rrDd6WFGyyqsXQ4oXnKe3sRIT2f5YAsY2PV4nNJPUS2nv/a9wQJ3yewPiW2OcP3wDN8LQvIHP3zO+7/kXJ8IvrYGuJBUDgEhqyruaAJSXa0I0eaSjRwGA1otw2DrqOs8HBt6hzb+tSbi4RAdn17jE/UI7UwJw+Po6xLOFjmsroj//fEMmr+eCCovl6lUfeqHu47d2scsG0WA5eSqMj1AovM/QiAB8JXZnnRvBul6u9k4/v9Ccmbzwn8ZIgROwwDPET6sxdeaEa5xOTfiSnHA+//OeWetce0cDVAzl5BwGgNb29lb570L73fZ+AFCqsWg4fgCIYuspLidbVxzwNgggzZOQ0o2AyNpG2JWHKQZgJ6sdycvR3CGdDbYyE6kFABD/+uyEgoFcUBHQEAHVV1XxZyNhcwUAy/r1FP+UiIBZo0zmY+2etcQc//3uzE5T54P1evSokvj4SB/w7I/jAUB4Z3N6ZF8f3/TmJRsYwMILraQLUOvwz8ocHR2ODlSo5V65sg8ANKx0B7IsJGGtLaraXXF+Nir0/r77fPb58wkXM1HAAACUpbZjvQJAfJY00EnLRt8gdPXPIyIuiwoRLqi4mlBQkFI9gQFQUWpDhNNZbwWAXADg+AMD9w8dOmVKaMAsg2FQ+3BYFs/2TL+/EIN4Z8qjgXqjf4kdpoP7kwCgMWkdMGNDI03hOD+11+xhrWWt8uHiwyfbGk+6AdjtjkhhPV3Fx2F0/tnyszixP9cCy8/UshP2y8/Q7Brg9sHeImvLX42JlLADy+E4HrxxZlhY8gSuEGGrjOrnagAg4wMA9RH4lCu+w5lLADpQ+mlxxm8LvFUytKTEcnCWofV5fOVzzAmVlDk7yAneP4/4M79GcSoBcJb4l8SHIH4+Hj8oNoeGLtv8kNojASjWGlnwS5eK16BMM6eidMlhFwBtpK/Bw3qGqqyn2J+SkASAPtM6fz7l62QG4O8RvwQQL95qOGnZDeCyLGaGVeYesL8ayxKANl6Lt125+/DV2CVTZZGzcrHZPDmvbPLm8O/RA4a39+uux+WQF2T6/ZZMxJ/yDbcHPcBGPYDjFwBM2lPL8jafyTCF4/zUXrOHlY7iStXDEDlUAPCNdzgdeHqz8z9Hwzx8SQoAR4/S6/yYo1FsPbUKADipewnZeMvxZcrS7q2LuNY3TMYPAQAUSfHbeDma/1xmtdIYYMYYQE5yYEFKyjdoLwMIC4sHAPzHSQAqKovi8L5w2uT8yrz8uPLiWStN7Su60COnkADg8fkWU2dmZkr/ZwWAoCCMAUEU/7M4np9BE57TrM3avLm8sHnhBkM0ffbX4S4mdoSNXiPiv3b7ypIlt2/rvNjaYnwXFQb99QRAO5QB4Fvio6PZeor4OAury7mYXfMtWeFvD/X6OpNqfbtkXpYLIkTBhX1w30gDA6D9Mfp2d/cTn6kZg7gQoLpaFlQsKH/J9Sj6p1/8Yktq76LFIDAtP39yXn5dXv4zs5DFqFB06Us8jYZn7v/GVRCBW4qrC4aKMQA9wJyzJFqbn2+IXrgkmgHkDqRV8nwE4DDU53DO7dt0C6gLCqZi+tdatHlyGhjN1lPL4vVbAwPvu2aVOyn7dd4h92ReVhREqAsuxk6XqyFplT0LMILXyklQUpiaVJlfWRkXt7g8P6M8I2Na1KyVpTt2vPjiRgjO/MAq3RKopsDd3lNFbuVDWTj/hmYTj3ctzQYCEIFRVzkfirUheRdcAwB1lpXsnyHAFOVyj2w9hdPk9UsPjVM+Oxv/9cdzx49VliF1wcVY1S84eBg9JavMLlyqeOrhw6mpl4qjooqfiSruM+sErLmHYP7++sijvduVYgfa7gX1+XV6Y48TzoF6WOFPDilfxZHUWWB1VlY+Fe12qTe0wCOIQKkE+SaAQcp6E1JvlZRSYaH+AyCPn1sTnxMqmq2SOsurXl5L6vUWnYFb4KXWJ3v39viFBXXWVFpT/EFY0wOiSjg//03Wmd5ZdRcSL9SJdyN4MRK4cuX69bHvtjWyLn4claHNqFCssfN/ACSSlF+MGKC8+fSFjHPbWOJ4Bw/+1VsldXvVy2sXQ+ug2Fgy108DwIHXPr4gfmHhs4fQDegL0g2dPhI20/2ISwA4B52fv5EeQncAwGk0/HReHj/u5qUGrny+oCBWNPhg48GuKK3GcMkKcR2DddI8IfQYIffvA8hfjEDBBklG4A8AHDj0DnTwr656mAApdZZXvcxWe+bM27e3bQujn/J6CoDH/FFkQs1dBnCiklL4izERbebSUmEMTE3HzOIzOQaw42+dnX/bCBGAFjS/heNXADQ27u+6eLHrIABkGOouKVmdsgyhiooMoU/58/ga1vnzNV/j9beUqB94v02JnwDopFxPzOqCCvUyAZi8rQa/d5f9fwAkcg/APXteApgGFWq0hZM9ANx9fkWTJ4CizOQiAWDBYnR8cf1BYHNq4PMAEAgACfsPgkBXVMWlS+gBso6lapJGqKVFI6T+BQpTz6ywuSzeKVVG6tCxtrZsdQPgeLu65C9W8LLyCxEAgFlm2+2IiHsAMOWpAKgHXKAe8AQE3j5BxMrp/NO4tJQBtFOKpp2sJAPYsTwuOTnuRQbwfcWNG5eEMLdc0kkABxMu7t+f0nWzK75nlrdMxpe8SAGgxA8fYVJlhf+nFpkVvUSn6RQAOCtd39WVi3gJQKS4f0R9bxAATAaAewUFADDlqQD+W9y1hkVRRmGyy+6ygrYleMVCM4sQoRvQKiFSBlG56CZiYYigEIgFlcJWhIJ0YUuUCLMbT1mhS4ClaRJPEQRElhbhpRD1qSyhInvq6f6e832zMzta/arebm4zOzvnnW9n3j3fOe9H8f/gev6HH57vpPZyMAbK0pESpAfz/YKA5YuWvb9skdnMBGCq6PO2lpbMz6l19pWhUZdg8h1ljvLHSOCiZUxASxyw/eM9F7Cbn1LHNGWugYHyv3pJgIcDhSRAla5B/zQCZNvdnj2y7U73/lAiYFVJ3/33980jJXkqAsDA84e+aaorq5MEYCaLlBjiVwgw73z//eadZgAEIAV3O6YB9qN4CASQ1t/KMkP82BEE4Mu/5+ieoyDA6pnVzd3G6Ni3r0P8aVqwNA94nJDcetfnWyRuB7Z80rqDvv8MPA+36y1M9W13escIEACVNW9eX9+8vyIghr0Fnq/r/IEdFnq/xP1fwbHjprFqZyYCvHDaYzRXGBkHJAoCArby5qtJa4KAGctAwIzqTR9/vP3j7Xu20whQ69gwAs7UgbPIfGyRRUYxs1LMCzy6tnWTGj8R8CkDnUfyDyc5WOiyxCtmQmTOGxcXd20cm7mdTIALI4DwvHBYGOopjceO9czaggDcA0TBA+4BIGCSsp1mr8YIAgKrqqs/BrbvOWr1lMa5egJ0WWQQAIhqXgAEqE9BQu+3OuilvL7W+FZKOAmHvYuBkwl4rV81WCB4CmNtgncag+XfKyr0bWyiq7kK2MDQdb2dPALUtzPWywznWolWoFcD/fv1Ul6pE1DKjVmkiloGPgMvPTh/qpGOWjsGoPeZUlF9+ypv//pVTspyLe5S3n/paR5YynvfweDt+qzzEAn5CWhkdySGR2NKMD4+1oH/c5WAsv9lO9qSqJZ5k5LbNgukKuerrxUmKrSXzyTQ2moSuJEgiiouIKBfAPBTpWO0IzJS9rAsWNAWPLR0ZQw9VyIisH1UQcnXnJVdSYjg/U/Twcdvl5/fewzejv0ZSlZ2SDmhsLs7t5w+I2yIozwjwwGxjFcZkflh+iz1L7VBtW+jzc3pzM8CwoyGUM7hBcjz5YIKqTSBaWrWWbTxcVZ6IHhgYNMAZ6Vv7ADEk4J9jgUBE1TpiConQzls5WJji2IHStN+8vErCEzzpSqlEVtnVG0dylnZEioQmMf7y7jnzXMTEDjBF/aHAG/n/YHD54us8xDE7WjurLVXuPDDlAjIiUzPyTcY8ImRKSBAZH0PHJAFF4+/jfDwd2wl5c5jw8xB9cSAzVeeL0tleZ8gpYik6yRlQp0KMSkrXb3uq2EXvpv8LmWluWNFEIAqBDcBqnSMTiQCEH7R/D2lu1ItkJZdBWm+aWkj0qq2YjtnZbkKawbvf4TQ39/d3d/Pf/TZFVjg+xID22l/jv6aiyYOP4DECBNQX9HgKMx3VRAB0Q5k9nNiiYCUICaA4p84ejTCp/25zQ21zCCgvHxmJUZAoYEJkOcLLzQMDE5fsRcaLDQ+BA5to8IwImCA4qcn7cePX6cSAG8zI0nj8WJ6fJQqHeMdiZH5dPk3IXyjOf/rkC5fhF9QUFp69jkoNOSsLBdIzOD9ScGcf+gio/GiQ+dfjxcYMV2SAN6O/YGJzcaJQuoSARXfFDkiwztiYjPzw8opNZcSaTBGRpYnwhwT+59/WEijfux/heI4URk+8+aamZWzzTKNPUyebxKZwRURwskLbSqatCj+nTsPCQJ8/Dyn35kAY27nV7VaAiZdDAjT03gUfdLl79rVbcxw5M+mvjykMEePSyutikPpKkvXEtkxzwQA2wzANv6jT0RBYJcggLfT/ofroKK2NSOi4ZOHOEBAaE650VEUkwkC+LGNf5SkJRFwzWiaGm08QbW+xxxZe/dWOvdmhs901EzP1BAgpO9UR74U4sBZbSYm4KNtOz8iIAlLSlGVSgoB/vUDQWb+bSAIGMnnTlL0ivgcXP62Tbu6zZE54bDW+toPI6CrNC6utPQcGgEsXRE/CGDlxe1Tt8Ay8NAtz9KffWBmtpXCv/NO1RFip9G80+hfh+MTAfmFFbGO0AUdMZnhsbPLUzLSMQjQ05kY5J8YGUv7L2scfaB/XOMLtH+8MysWU9tAT0tfX7gkwGgdIaWvvlZZEPAhj4DPQIDOoYIJ2GdsQFkiDDLcBJyvFjzE5+Dmtys7qDwW1ZIgAFJza0HaCIRf+v3XisMD1+IKAoRIsaRmp2/nP/pEzPAkgM3TcAecOFwc35Gf73C5CuubY9rDQQCMkVPgCms04kVkfvhs3v/9/nHj+hE/E1CE+LmYt69vtyQAOWSY1UkCZPyybQ7KkupCP9yG+ImAG2vUyXYyiLyCCfBvaPDXEGA8Xy14iM9v67Tj4u++dPduJiCgYF7p2WdXVZ177tenfT9CODzw58Wx9OQMlq/9ppvsvufSn/EVmAECKEGnOkIMP7TN/9A1fHwiIL+jor4+ph7FuUxAeUo+EwBvcBDA+7//Pp8PEyDiZ4AAPl8iQErfE4cPc8GSBNr4hDK/Wrb9ieOp8YGAffvEF078NmDpeI1a4DC1vjYxJ5YQDuArMCuwC4MItjaY7Kq6lmtz5VOApScr2DE3QcvjP4APPZ9fYpyyljdetMkWFnJ2lghIsVgc+UYjnoL+QeGz9ftP5cd/bCxYIJhk1tn6F7XC+qzzeP32K94ABAEXAyCApOONkwGRtT1rSLxaPQzAP4qwdKk34wvOEn/xKnDUmzBGB9477w4gj7frfX01hg8MvMbfYRZLmHAX4/35DfyOydjbo5pZJn1zvSXUUmEBVb4L6D+f/yMKQKYRvPKSBgeTUKp7gdT0c3XSNSlaZqzjo4upse0DAVFcDHytgmt3rwDqLNQXbekwAaLAwky1x3w8ofRVua/P4iImwwcGNQ198OBBLy2mMlQSnQGLF/vOnD5scyCjTPEpVnZhFjRtdkrbHX8U4JVUUVFfUeF4z2wjWHN9NtZ5SNFop8PBZXzF6dmjID0/ePjh4vLyYsXn4davd0mI/uKh8CWm2Wwz5uN2ki8xS1tRsMDHQy2ytnfzTn3tMLLQhocNAcETpOPEwaHeBz0IQLM5Q5ixzX4iIzVjZUZ2yr0ls8gQvEw6RNCdZm8+vmLjbXZjsGfbnTGdunBEgYa31/6KehdKS9dMkVlfH79JfdousCSnK7ANPviRlgBIz4TmDx7+xlUyq6T+vpkzUeM0EwSkKSil2l2y2AQBNTWoxiSLTZa2ggA+HipRAf65DxABOBN3HpMImGS42cClc+w4sXmoNfVlDwI4cDm7Ezt7UmpMQkRIRMLqEkYZHCJYOmeGH99xfDcISDWkTvHwPU7npplhskADBDhcaE5fY7EycimrmqvxCU5yBoIAZ0YqbEKH5W678VgFcsz7R4/u3MsIy7ZZFaQCtZMFAYsWGY3bXmACRgoCjGaWtg8h06Ma3N3+4Dlau/xRAd6CAJmCIQJsqanW0zUE5GjihxvdsOyYkEC/iLensB98SZl0iNiLG+bx3cczZ4832g1TZPxyBKRsYTM04XiBr0CM0+VyrrmYSwKmjB+6o2CS77qFC5WSl2hnW1tloiUE99yQoIuoDW3WrP19eAYMGwY16uuN2IDsXbtkSQwREGrYtuydDiLgHZNa22tmKawYQsRUiIIFs2cWOMgA3Ky+tuy2W63eY4d4jgCKX5qxPZFhD5oVaX9xeiPiBwGKQ0T4pszdxzcdnz0+WG2rpPoD5fMofiYgz4HLDygjYKhrfqDvsGTFwQEEVGbh8o84e5h950RuQ5vVtx8MjEP8RIA4YEJX6S7hQEG+xKGGmnfeWW5sJgLU2l4LZX0VApo3SkcIszZ+aeCw+D5gJq8Qcesv3t6bdyN9oBCwocKloKmpyTW4KmHx4mGLnVOyED9QdmxvZlvbk20gYNPu3cfDmQAZPxOwfosYfTTbRZ4kXhdQ/z6AEUfCYLz3QGDwsGS+/A8IAootCfh2+gUdIqlMI2B0H+KfQfFTZ6c6AjgLS77Eoc3L33lnUUcz+RKrtb0Wer86AmKE9jfrsrj06j5NQcMvYzdu5OsvQStKuGd3z8g0Bc7CzY/RyASobYAQckPCTdK3mJukqP6A70G4Aymf52W1EZRvsTWXtHM20hUSndEZVrQt4vKPFFJ58jdNfXPm9I07wZnJfaZt8maxU6D5PCKgbhkufkcz+RKTtJUE8PvlPeD55/kxcPfa0++RM/EA2d9ByRnuY8cV4RU2NSo1dcpULQHlhoxYEf4ZggAZ/jyE31g1NV+N/9iQ3aZp5Fs8nCDOn9sBRDl0SBSyxl5jgy/RZnWnQfunwdWcgPRG3NEgKviZkNs8XErJyW8coJo4jh+pWZNH29pVw88jX2I00eBGENRMvsQsRQUB/H4qxmasB2BuFp0jg+dmrefCxk4iAjhLTO5x08JgTD9pWpibAHiRWSIRvyDgSRDA8SN8ip8IcMdfXX0MBJBvscZHGN5iiJ8IyL5wTDYISLUB6n28FtpftrkxC0d98JCy+9e5peR57FEk8SkI0ElN8iVGaVxNjdFcCF9isV0QwNvXqklvgAjIkUOAAQImGW82KlVaIOACOKmOBwMqATnKUwA8yBEgKWACshQdn3kcbYDsW6w5v7UYeQSaqU6lEUBunLUCbxOGfr90A5qtjiqAYuqsu0yVkqjj9YBeatLmGmRlC4NCF7m3hwbR/zmPtq8FtPZm0bpaXsg/88sWNcuJ/81QGFCW01DA8k+iCsD+HrtwOhonqIh9pZgCYpghfIXF1RcNegLu1rVeb0+p2pDkmTcmWenO4QI2BXJIXRYVdUWS5h1508aqWXZAX2sszNDUz1uvgvXzKZf40MwX6R0puCXvVeC009T0uSZGL5aimlrgsbq2NdPARqFSAgp4++juYqdmsawwesRrpbPNs1Y4NcpiycbuLqcLv7OzKqfe8d6XG0UWF4Djg77WGFIaULPU6kQJpm0efXTtqZf4GFD8vkx6RwquRdYsEeI9aRSyppw2JYwHATiQphZ4rK5tDVnV6kt8gbQZcVuxHQEmInBgMyAIuIZqd6Ujg00bPhPgb8/KaiqrbGrLbNkNApAvp/dI5OprjSGllx9oKiiQWV8QgMB/+OabH14ngIBTLfGB0IXXGQjQOVLk0WSvcJTg/b1HjRmT3NWVfDWDCcDxNLXAcqkrV0y3UGKUVv4KS06k4a5IvsFGg82W4pTxny4IQPzI+E1sngil5yZABvhCtr2msrKsrL2sJbNpSWwYCHjpvQx1u77WGAQ0lXVtLaiSWV8i4BCmYcYJBtby8ckugn1ozf5iBHD8TIDekSKPJns1S4SMRU3pxStXagkAnZpaYNGuHjElLcIqCVhY2DCnetjWrajuRUbI2L1ypc3s3Mzxn75ZElDnP3L4yJ3NUHoKAcoVDsKZVFa2tcMvP65lScvUOx5JwdpRe1ezozwmS30CRslaY5WArtTcLrmEBxMw7hmgkVYgen2tCDg1JCRVU5w9wPEzAXpHCnah1SwRMgQP3ITkZDseusBz8V6cNVVrgQUBFYGrdwRWSHO0woVz6ue8m3z2OaVLUZxs6541q9uwsuH4McJxk5l+506sI9P+kcNJKofILyjPWI7CXB0IaI/tmUEE7G8JuyPSkIFs0XEpTVuJAG2tsSAgI7iKs54gAN/9ZwjjBAHpQnnWObOF9BZKEvFLAvSOFAoBSOLheIIAFDFnX6olQK4mp86vm8v37i2HYwET0DBnznx8P7efc24ptmMEVNhsIe4sKxFw/sSLzIdkgYM+CxtKBLS0NM3vw11uMBNfgUhaNkuugLYaI0CNX0rpAy1dUWVx4v0g4NFHrxUj4DUQcKcgIDUqCgSYFQIGZPyt75r0jhRUIHF/ibpECBEA45mNl3KPPAgQq8npCDBmwARItKlRre2cBvpl0Ps4B2zrtmVPkPFJApBTbTbX1TWPBAH6goWhWI+wMhMFUC0tRwaXbAYBuP4Z6nS5rtaYf0scaKqqKsX7FQLoHnBtx2uCAGVPbvNKZwKMRhl+77smvSPFipmo9OD4BQFGIDk7N5mPgQssaoU1tcB6H18QUN9O8QNzh3LACcPUggQmgB4AdTv9rxl+1clLbnh3pq3bvHl+S8sgsGTzbBCwyuJu6zHX6muNJ9MSH+/jAPx+IgC3vh8OH0b8TADf1QFaLg1marcyAQNMQG8rCNA7UqygUieO/1U+Ht+YduzINQv4i1phtRYYBEzx8PFFbW77EqXN7N2rva/tDtEvqWH+uyU3QMDqrErG5vDNRMBe7ZoarfpaY7HEh/r+9fT4B15nEAGA6LYGmACcungMAia9IwXXInMWex4fz6wWTwgChhJyGd6EC7QqDTB5ojVNV5BAVN+od3AANJP0c8NUeTo7r3U8jqsuqaGrNZZaW33/ep37WR5B02amb03TO1LQXis2cIGEPF8mxw0vo4TSO6lRngycm8f6c3mL895Tz2D7IGRuUvQR8i6Tvr46qXoGgAINLomYCgz19qw/GeMMv2l8uPNxxQhZ3/ZmtCkwQ1pbLM+6cQvDKODuHLuccBrjlFL6KkDbR6f3Fc5YzwVaAi7X3WshTRmyE9NUbFxsSHwPwJewweXaHw2dW78SSBPS9Ko6T6l6BrLHqATOEXg6zDvbZseyvAEy6zu2MiElISTFnuh0kt1g1lSeKFXPx6Jvw4MpitYW5Rb9+bO5GytfIX3VeISPsFqwIXyJ9b7C/kgZKVnrzrIyFwhwNyPj7rTMlFecQrGvATrLmpYhY5SV5YLUTGNpSgURNVqpCgJycvCDTVr0gQCbPcAOF6ULpZMUChsnTAAdYoa/CATgt4Z6PhabgWtm+bUgQLPuDlas0J0/CEBgmtXx1HiEj7BnBsq80+slt0cwrW35yB14g7L/fU1N5SBgUd225prmZvzT8QIIWJyBq4/w9zaVHXiBCWgX8Z+tFEQs12QYckHADcgv5CN+SUDqJVi2WcQPAi5IwHjxi9pRVNQCFE2FoUIGtxKuIkxPeiUxalSq36jixYziFZ9tOwQoo+DDZyUBLpdRIQAXViN9RTx3bdnyKKUh7lrrE8J1pAUFUqh54bHEEBO6L92xXsaP3ekNdxIBzc11zXUdy5mANcZVxmJx+V9A3osIcLnjv8SeS1ng5WrbSOhS/ZIYdlsCHtDSIv/C8UUJiVEbEzc6isKZgLAVM+1m+xrCQWBNdN4jAci8+zqJEJTu3qp+PTRSuK4C+dHl/BoE0Fp2Bw4I6QsCEM2WlIwMUPDoQyCACyZm4IRYamsJoCzFS3dgvh1QZpxLvkCWt3lnc0dH3aLlNcsQcF7kquJVuPxNB16QBLTL+M+eYIew4CzwIqVSDwREqPETAUNxBTTl9xfMjSzescNZviM8fMCR4ggHAZhtUOJ/GQQsDh6VGuI7cxURsMZNgHL8IL5gD3f+8ENPA7JMd93Jnz8aNSaHxep44oLiB3IK4gcBomAibdy4UsSvJ+AOEKAvOJisLqbGAa/A+HfSt5/iv4wIcHH8IwKy3W12y/3l+TEBFL+6GpzNMwucixHEX38QMLBsERGAG4wHAaHOmc7a6Rw/E6B9vyRgeWddTc+yh4gAWcDR3y+lr/ARvj09/faHeLuQ3jNQyS1Xm5u28WfCbwI/t+oLDkiaNjMKmwUBaxo6cfk5fiKggeIfRj/OcEtpvhxZ4EWaR23hkJynn0b80qP0uTAmQOMHEO1E/JVU4VS0bFlReNjcL38W+Jjwc+/4jW/nTg/FuuF8fuvmHpSOQwC7zrBP8H03d7bcdwNPtbEZm0b6Ch9h3Ai2KFNxbqXGaX0vvXRFAB7L0REBYt21ukV0xfPqcfkXyfiR9Y12pQ3zTbCiBubQRcOx/+XXLJqjdWgAAc/h+iN+JmC2TY2fgBGgVHjtxlK54WGn8AkOsEepr1es4tEB5AEHo0Wef0ts7O0iQM5Sq6vjgQB1KpK2mw3ysy2M0JPa5k7K8roNKd4hmOZ0lnVqV6ML2+Vn99/ZXDdyotj/suWeDg1UEIG7AB4CjNlmXe1wvJPL3ABRkPFPPsG3riIo3xEQIGcZRZhEgPoUoP312y93t/HJ1eZOMifTFRwAJi2ODr7g8frdd9+/6jLs7y5AMHmC5B+yzO4SB5Jz0gwil0ACkHPCEv/kE6zvslOFsgCXVyAHitU5dFJabscO2iy211kmT4zXFUioApyxoiF4UrCKKVfrs7TwRvFwJt7Rdvqxj4cc26Skvrm0gl0hNrAWlu+9SpGm+uONB7T11nkEFvj4B2jV7T958uPT5k4+7zvluumPZxZQzdSefEVncRHlKRXvhLXMI8WPKHeeFfWpU66+2I2bxuuztDeopjkPA2+dIWt9xSIwsWFsniYW1SA5PFYWSLg/T18wofcN5l+D5JPlqidtkGTq3OXx+ZM7MLkB++7QDp7BMZ3sU5zqB6td5TUIeH29RyelT9QkjfEuCPDw+gIBWEYZi2lLPL5dn6X9vkK7uvqun0St78bg2KL89vZYIgB5e9EoCCFABCRkB4waFSgelWVy9ThVCut9gykfkJ7TiQVPmnqK1tyfZJrfE9ilfj4I2LFxdce+jn3+b/ASG3x+2Zj/svtJn+JRtByesj8IwK+kyFSLgoU+fl1pJcDoRrqTNvanpKutuUBxvXVXdwgYUAjQL2xMxcvrqhcutNqruc3tmFzSIraoKbCqpWg2ETBTNEqyEPLB9Ugd5et2f6tkSyMH4AQc0eK5H1NREWHj43OOL316J9DUfpAIWNJXUqDWOk/uwFjZV7gv1PLGp5IAX7vdzzfAHjJB+BRnj4Kxsbrw8hkPbXvo0ewQBe9CKnaljR5dMoj4B68dfcTgqbUt9fVL2g3Z5yhfKzYsMDaT+dghiyQgrQWPgVBrbkvuu9W9+bLWt6ioottNADu9BUIOEwF2q93X94QEapI4feLOOhs5/u6KCmuMQkBDw/T0+9e0d7b3HLw/2tQQtHB/ybw0WTsMAlZvWr3vDf+gjn1MAElfu1+C1c8vdQJtlxdMXXj5jIefKXxw/c8+Er1QSl1bYex73eC4/bcNjpMEpNTUpIiChvr65x21BssxBXRArK6N+M+/iKRv647OzoUNDXMKl7TX7tmDEeBYwKvLhYe3NLWAAG7MdHG36BgmIISywr7utrloJ8evpt0pfuSpkaN2kfSFUnQ1dC5Ys6aop70FvxVMFqyEg4qVNFkLfB4TsG/fGxQ/pu9J+dl9rX7D7NZRtF1XOwwCHq149MEv8UoABPAIaBwcd+2rg9cyAXyNm2XBQkPnlztiUqBZBIbwCGCLjzp/MxPgKK+GCij0r9/elrO9N56qLlnptBw4MBg+m5e8cFH8IECt5j7BGH7iininev1PT9osa4PxiypGSGsQ0NlQ1g4CsEY6pDKPgMZ5aUoW+rw3Vg+sw7y1nL4XBASEWBP8Un1puz5r7XXWaw8+mNJtVbDQZ8LWNEUJv/pqY3+k+v0X94DumApHtLpiob5NjdvcPr7utsJaavOSBIQTAZktLWeFzz6dZmpcFH8ZF0EtjaCeYVmQgIWTk4o1M4+VWVPNuuODgPbOpibcAfct20cEzJ+zv0TMoigEVK/m+CUByDonJEwYAWfJS2i7LmsNAh5c/60GV/gEY4EkjVsc33SgvbDEHdTXqlvxFFgQPUSF3pzse9z+GVWEgp9AgIj/0ieBcNPp90xfsMDF/cJXEgEbIsoA8l0mxA3qzdN4Ieh3VOmNLG9WT1N7T0/PvmUvEwFL+maUqtIZBLy9eqMIXxKAeO2pVmvCKN6ul9pev6z/9lktAd471BwtcF6e6vIEHkBAyu54TfzxenMyOFMzygWGTOXHP0HU+t56j3ITdF0IoJbX8/N88MiWE0sEb/1C0LfiPJwNrsCypvY3yHHC1FMwSiOVQQAeg7J8AzD9g7TGCPiOcYWCabqCB9XxVqAt3mPR1l9MOkD+aZ2Jz9CW+tL205OAQV43mBPQemmql776haClFI6Pjxbo1e1vMs31qDn4J2ntpZeKVgzkB6y+7tetEr2M7b0vM2B6JrerWdbLTxzBB+qzynqCshT4BfAMvX7JjPjElKypUxMdiZI3xV3CIrPEdDlOkyDmXj1yhMsfFOxou/XYx0mQ3sBUQH98fbxeeql4jq1h/vwGm1153bpDwaZO16ae3pdp4QG4aSvb3W1uFzWW9KHAAQUNgFrQYFINHAmmLMMW+sv4ovimN5htFVjj62HCzcDp8UYkiOm2K+6Cs3k1OpRVKlnhvPe43oHTvlSQ8X7UykPyNWFpkpDexe4CjgqrrbvCUIG/u7u7K1z6eEWBREKC6sBgt7UvXDjfliBf66XpyzcXw4UX5dlyu2JudrgR1lq37R+k6WwOXRY0cIpN9SF+NWuLdCDBrDD8xqZYUHpbwfe8dEJkfEa6IyMyIzIofDM1SIAAIRttstY3773pq5TjkTna+4unf6M5/lLZZrfaXcBRERGD6CNKbLaIwLLGTindu7oUKcxS0Wq1qw4MCWBgznxriHgNy1as2vQmgMLNuI4hgoDp0y9Us8Bk7tXYuB/3wMHGfhCgncpae5pYKFlK3XlHs7YYHzM+Zn5sPY3LWeZCEFCyEi1jW7bwyh5vtX6ptAF+DFSblMXYbObuzs5uKwhYtQrF2qNJqpOP8WlEsOpzvEFI7417Kzcvwn0QBEBDlJQsdux9zzXuSFl3EMULFMxQpDCEiJ/Nb1jACOswxYEhwTZ/DjHAr/F+Q4qM/+mON0EA1ieFR+aFQkoyAbj8TXPQlHek8dAHTMBTMn5MZgqhk91gtIv9s7Y8Rlj/li8oP8dvndkaE2M1SpdReIzqsr6FICCCYMzo6Ww6UiEIOHzg8OETh6+l2uM8nqVIxwDiLHJSFknv4tq9mzfvq2letjnMaQx1BZY4sVNZo6sisZDPZ96M0aPj4s5mKQxlZLdhPCOppUhFMICCgCXWEHptaG7GIBDxPx3XEX36zewRugBnL9vi6PL34RnY19j45utrP3n4ecKbEpdCGAHGhiVGaoDfjnsALr/lQf8P+L6UXm+hiSCcvkShrna4cKkwWcFPIXNPj9koCDgwsbFxeP+1JJ3xGvEXrzlYnIEs2ZqkY85KVHdnEQF1ze+AgIxIgyHCFpy7uqy5OAMEsI0vjZcROH8mAPEGQCj5ZZ/rlooh1iW33bbEGoXXMRUx3Rkcf08cLWV98kLJB+jyX4fLX0fT16d5ZpVp/UASxsaL68XqcTwCHnzrg5eZQb/qG1J4+Ct4K10bv4YAY4WrtrY+NHSFGAEnTvQfuZZylnjN8R8EA5QjjHZL6X3LQMDs4sgUw7JAIqAx0uEPAvj8S5EWl1KYpKEd9Xw0Ia9KRTDwwAMLU6PO9jZ0d3P4lOmJewME6KTkVa6SPmigvsbDb74mCFDjJwIGXU3AEQX70Umi+qQGpba/fLNqsksE97KUdsO0IUa47GCuqbbWbAmlgFHwcWI4jk6lt71uvwdRshOfpfyU6Ozra9rMXWaNByqaWppccUGQ0uL8x20dgaSxJIDiDaH4tVIxxLrwgQfmpIZ466WpXkp+4VooLj8qWCQBavyvjtvwjOfrL/yy/ahVW3yDfAKqM/j+z4Crr6VQ5yvMBAQCZloMGgFQVrgEXYX9OBoRoD8fECB/SvUAggBzs6UszlVcaGYCeK0KavbD/kzAqaUixsB1ty1J9e5Vbsp7qvYgw3GStCQp3NdY8vzrDBCgPvUIG3y6BLYKeAepbFrS/f27XlZshm9gRF/h6SsMAuRTgN7DBOArII7feKqCjHihH+QwYAL487qRpmMC9FL4r6Virgmo7WVAYP7Ue0ppif+1/4sTH7izrm5jsA0C+v2nELhEpJrhr1teTilEUCCOcvRortxpxYqkJOXopyrI0LflWdxrTwicJIUf2GCaq5WGSTC4nzZtndvyIgzgo2G7B2SNw1VXjQw9R/N+/epzQZM1OWZgnhszGJfq8MckTbGtbdIfXv82TD0xAzs00jDJiaxncIIsY1s3Nyy/PMgRCTsouR0ODVF+qpPt2P66ukOWBPX9l9cp6CkoaEk7z2io+YaADlfCVaNHqEBKqErGHa4QkD3l92xeZZWqAX+fku31b8M0vy8QpbCKFGYCVq97e906tvYhAiLb2spRmy+2gwBEfoni4njJ2MGYi5ZftDNhgnw/CLhIunuPXJ6WVjMZN9FOrRSeN8LdIgkwAUVFOQtynAvuKSrCC4Ph1z9+tRm6ugw2/MFg8Pq3QVnVsq+q3VlSImAdCEhel2tMTU5uRYNCZnkbehPk9pBsuwLy6LzQ1BlxzfKROy3yfweDAMR/jSwrWT7ZuDLBMCBvgj/9tHU8CKDoq6q8CRczAU6MAAyBBQvwgi/879lRUfRvw39BgCuwqa9MWeh4jkkSkJycm1yLv0BAZmI59WZI6asvUKC8PFWLi6zGyCtAgDR3H3PObQ+keUfFzAqJql5XnZzMbnCt80Yg/LRzq6puSsPEEAgQGOjJFH8wEH4dExx8MS7/f0JA55KyOftlv8WGsj3JYi2L5GRj7eNvm0FAW2Ybxf+LlL46qUq+vX2B15xPFilw9Zl43uV1irm9IMAeMmuW3Sj5hRIUBFS99VZV2lg3AZkopJQMSJ/jm25KMPxHBPS0NO0vk+eHE5wWLK29UpPffhwjQC999W1uuIeU1cD1REwlnT8ZBMjhf+W5D4AAc8isAnM1H5L79ogA79KqHxdV/aQSgPjBQLgkgG8D+Ps/ImAJrv+c990LKU9bLU82udZci2puvfRtL9Sux19/namzERUFO/3FdGBklljiYqRKAHyWv8Is4k8//cQNGCDAG6iqajmGphVJQHgPCBhQRkAqf/v/s3vAEjV+QQDHT0DG7vFWvdTEkFduGDxiBiOoXWLxGqVgQV3i4qZzHzCVggBzzziNFJ43huMvrfqpCk07IICR2TMwHwNAfQoA/9VToM+15HzNQspz8fgHkiUNraeQvu48MGDqp6fgYnfFQrS6xMWFY667rdTbaK45wBBGF5fNGKN1uU0GAYz5bh1wCS484T/TAUdNk7ULKSuFvK0SJ0lfHS677MzyFZrV1NQlLi6Aj9dYb3+T55IXM9CxogAcV/3vSvC/Bj1utPD6n/EnnaQbrf6BCX0AAAAASUVORK5CYII=)}.react-tel-input .ad{background-position:-16px 0}.react-tel-input .ae{background-position:-32px 0}.react-tel-input .af{background-position:-48px 0}.react-tel-input .ag{background-position:-64px 0}.react-tel-input .ai{background-position:-80px 0}.react-tel-input .al{background-position:-96px 0}.react-tel-input .am{background-position:-112px 0}.react-tel-input .ao{background-position:-128px 0}.react-tel-input .ar{background-position:-144px 0}.react-tel-input .as{background-position:-160px 0}.react-tel-input .at{background-position:-176px 0}.react-tel-input .au{background-position:-192px 0}.react-tel-input .aw{background-position:-208px 0}.react-tel-input .az{background-position:-224px 0}.react-tel-input .ba{background-position:-240px 0}.react-tel-input .bb{background-position:0 -11px}.react-tel-input .bd{background-position:-16px -11px}.react-tel-input .be{background-position:-32px -11px}.react-tel-input .bf{background-position:-48px -11px}.react-tel-input .bg{background-position:-64px -11px}.react-tel-input .bh{background-position:-80px -11px}.react-tel-input .bi{background-position:-96px -11px}.react-tel-input .bj{background-position:-112px -11px}.react-tel-input .bm{background-position:-128px -11px}.react-tel-input .bn{background-position:-144px -11px}.react-tel-input .bo{background-position:-160px -11px}.react-tel-input .br{background-position:-176px -11px}.react-tel-input .bs{background-position:-192px -11px}.react-tel-input .bt{background-position:-208px -11px}.react-tel-input .bw{background-position:-224px -11px}.react-tel-input .by{background-position:-240px -11px}.react-tel-input .bz{background-position:0 -22px}.react-tel-input .ca{background-position:-16px -22px}.react-tel-input .cd{background-position:-32px -22px}.react-tel-input .cf{background-position:-48px -22px}.react-tel-input .cg{background-position:-64px -22px}.react-tel-input .ch{background-position:-80px -22px}.react-tel-input .ci{background-position:-96px -22px}.react-tel-input .ck{background-position:-112px -22px}.react-tel-input .cl{background-position:-128px -22px}.react-tel-input .cm{background-position:-144px -22px}.react-tel-input .cn{background-position:-160px -22px}.react-tel-input .co{background-position:-176px -22px}.react-tel-input .cr{background-position:-192px -22px}.react-tel-input .cu{background-position:-208px -22px}.react-tel-input .cv{background-position:-224px -22px}.react-tel-input .cw{background-position:-240px -22px}.react-tel-input .cy{background-position:0 -33px}.react-tel-input .cz{background-position:-16px -33px}.react-tel-input .de{background-position:-32px -33px}.react-tel-input .dj{background-position:-48px -33px}.react-tel-input .dk{background-position:-64px -33px}.react-tel-input .dm{background-position:-80px -33px}.react-tel-input .do{background-position:-96px -33px}.react-tel-input .dz{background-position:-112px -33px}.react-tel-input .ec{background-position:-128px -33px}.react-tel-input .ee{background-position:-144px -33px}.react-tel-input .eg{background-position:-160px -33px}.react-tel-input .er{background-position:-176px -33px}.react-tel-input .es{background-position:-192px -33px}.react-tel-input .et{background-position:-208px -33px}.react-tel-input .fi{background-position:-224px -33px}.react-tel-input .fj{background-position:-240px -33px}.react-tel-input .fk{background-position:0 -44px}.react-tel-input .fm{background-position:-16px -44px}.react-tel-input .fo{background-position:-32px -44px}.react-tel-input .fr,.react-tel-input .bl,.react-tel-input .mf{background-position:-48px -44px}.react-tel-input .ga{background-position:-64px -44px}.react-tel-input .gb{background-position:-80px -44px}.react-tel-input .gd{background-position:-96px -44px}.react-tel-input .ge{background-position:-112px -44px}.react-tel-input .gf{background-position:-128px -44px}.react-tel-input .gh{background-position:-144px -44px}.react-tel-input .gi{background-position:-160px -44px}.react-tel-input .gl{background-position:-176px -44px}.react-tel-input .gm{background-position:-192px -44px}.react-tel-input .gn{background-position:-208px -44px}.react-tel-input .gp{background-position:-224px -44px}.react-tel-input .gq{background-position:-240px -44px}.react-tel-input .gr{background-position:0 -55px}.react-tel-input .gt{background-position:-16px -55px}.react-tel-input .gu{background-position:-32px -55px}.react-tel-input .gw{background-position:-48px -55px}.react-tel-input .gy{background-position:-64px -55px}.react-tel-input .hk{background-position:-80px -55px}.react-tel-input .hn{background-position:-96px -55px}.react-tel-input .hr{background-position:-112px -55px}.react-tel-input .ht{background-position:-128px -55px}.react-tel-input .hu{background-position:-144px -55px}.react-tel-input .id{background-position:-160px -55px}.react-tel-input .ie{background-position:-176px -55px}.react-tel-input .il{background-position:-192px -55px}.react-tel-input .in{background-position:-208px -55px}.react-tel-input .io{background-position:-224px -55px}.react-tel-input .iq{background-position:-240px -55px}.react-tel-input .ir{background-position:0 -66px}.react-tel-input .is{background-position:-16px -66px}.react-tel-input .it{background-position:-32px -66px}.react-tel-input .je{background-position:-144px -154px}.react-tel-input .jm{background-position:-48px -66px}.react-tel-input .jo{background-position:-64px -66px}.react-tel-input .jp{background-position:-80px -66px}.react-tel-input .ke{background-position:-96px -66px}.react-tel-input .kg{background-position:-112px -66px}.react-tel-input .kh{background-position:-128px -66px}.react-tel-input .ki{background-position:-144px -66px}.react-tel-input .xk{background-position:-128px -154px}.react-tel-input .km{background-position:-160px -66px}.react-tel-input .kn{background-position:-176px -66px}.react-tel-input .kp{background-position:-192px -66px}.react-tel-input .kr{background-position:-208px -66px}.react-tel-input .kw{background-position:-224px -66px}.react-tel-input .ky{background-position:-240px -66px}.react-tel-input .kz{background-position:0 -77px}.react-tel-input .la{background-position:-16px -77px}.react-tel-input .lb{background-position:-32px -77px}.react-tel-input .lc{background-position:-48px -77px}.react-tel-input .li{background-position:-64px -77px}.react-tel-input .lk{background-position:-80px -77px}.react-tel-input .lr{background-position:-96px -77px}.react-tel-input .ls{background-position:-112px -77px}.react-tel-input .lt{background-position:-128px -77px}.react-tel-input .lu{background-position:-144px -77px}.react-tel-input .lv{background-position:-160px -77px}.react-tel-input .ly{background-position:-176px -77px}.react-tel-input .ma{background-position:-192px -77px}.react-tel-input .mc{background-position:-208px -77px}.react-tel-input .md{background-position:-224px -77px}.react-tel-input .me{background-position:-112px -154px;height:12px}.react-tel-input .mg{background-position:0 -88px}.react-tel-input .mh{background-position:-16px -88px}.react-tel-input .mk{background-position:-32px -88px}.react-tel-input .ml{background-position:-48px -88px}.react-tel-input .mm{background-position:-64px -88px}.react-tel-input .mn{background-position:-80px -88px}.react-tel-input .mo{background-position:-96px -88px}.react-tel-input .mp{background-position:-112px -88px}.react-tel-input .mq{background-position:-128px -88px}.react-tel-input .mr{background-position:-144px -88px}.react-tel-input .ms{background-position:-160px -88px}.react-tel-input .mt{background-position:-176px -88px}.react-tel-input .mu{background-position:-192px -88px}.react-tel-input .mv{background-position:-208px -88px}.react-tel-input .mw{background-position:-224px -88px}.react-tel-input .mx{background-position:-240px -88px}.react-tel-input .my{background-position:0 -99px}.react-tel-input .mz{background-position:-16px -99px}.react-tel-input .na{background-position:-32px -99px}.react-tel-input .nc{background-position:-48px -99px}.react-tel-input .ne{background-position:-64px -99px}.react-tel-input .nf{background-position:-80px -99px}.react-tel-input .ng{background-position:-96px -99px}.react-tel-input .ni{background-position:-112px -99px}.react-tel-input .nl,.react-tel-input .bq{background-position:-128px -99px}.react-tel-input .no{background-position:-144px -99px}.react-tel-input .np{background-position:-160px -99px}.react-tel-input .nr{background-position:-176px -99px}.react-tel-input .nu{background-position:-192px -99px}.react-tel-input .nz{background-position:-208px -99px}.react-tel-input .om{background-position:-224px -99px}.react-tel-input .pa{background-position:-240px -99px}.react-tel-input .pe{background-position:0 -110px}.react-tel-input .pf{background-position:-16px -110px}.react-tel-input .pg{background-position:-32px -110px}.react-tel-input .ph{background-position:-48px -110px}.react-tel-input .pk{background-position:-64px -110px}.react-tel-input .pl{background-position:-80px -110px}.react-tel-input .pm{background-position:-96px -110px}.react-tel-input .pr{background-position:-112px -110px}.react-tel-input .ps{background-position:-128px -110px}.react-tel-input .pt{background-position:-144px -110px}.react-tel-input .pw{background-position:-160px -110px}.react-tel-input .py{background-position:-176px -110px}.react-tel-input .qa{background-position:-192px -110px}.react-tel-input .re{background-position:-208px -110px}.react-tel-input .ro{background-position:-224px -110px}.react-tel-input .rs{background-position:-240px -110px}.react-tel-input .ru{background-position:0 -121px}.react-tel-input .rw{background-position:-16px -121px}.react-tel-input .sa{background-position:-32px -121px}.react-tel-input .sb{background-position:-48px -121px}.react-tel-input .sc{background-position:-64px -121px}.react-tel-input .sd{background-position:-80px -121px}.react-tel-input .se{background-position:-96px -121px}.react-tel-input .sg{background-position:-112px -121px}.react-tel-input .sh{background-position:-128px -121px}.react-tel-input .si{background-position:-144px -121px}.react-tel-input .sk{background-position:-160px -121px}.react-tel-input .sl{background-position:-176px -121px}.react-tel-input .sm{background-position:-192px -121px}.react-tel-input .sn{background-position:-208px -121px}.react-tel-input .so{background-position:-224px -121px}.react-tel-input .sr{background-position:-240px -121px}.react-tel-input .ss{background-position:0 -132px}.react-tel-input .st{background-position:-16px -132px}.react-tel-input .sv{background-position:-32px -132px}.react-tel-input .sx{background-position:-48px -132px}.react-tel-input .sy{background-position:-64px -132px}.react-tel-input .sz{background-position:-80px -132px}.react-tel-input .tc{background-position:-96px -132px}.react-tel-input .td{background-position:-112px -132px}.react-tel-input .tg{background-position:-128px -132px}.react-tel-input .th{background-position:-144px -132px}.react-tel-input .tj{background-position:-160px -132px}.react-tel-input .tk{background-position:-176px -132px}.react-tel-input .tl{background-position:-192px -132px}.react-tel-input .tm{background-position:-208px -132px}.react-tel-input .tn{background-position:-224px -132px}.react-tel-input .to{background-position:-240px -132px}.react-tel-input .tr{background-position:0 -143px}.react-tel-input .tt{background-position:-16px -143px}.react-tel-input .tv{background-position:-32px -143px}.react-tel-input .tw{background-position:-48px -143px}.react-tel-input .tz{background-position:-64px -143px}.react-tel-input .ua{background-position:-80px -143px}.react-tel-input .ug{background-position:-96px -143px}.react-tel-input .us{background-position:-112px -143px}.react-tel-input .uy{background-position:-128px -143px}.react-tel-input .uz{background-position:-144px -143px}.react-tel-input .va{background-position:-160px -143px}.react-tel-input .vc{background-position:-176px -143px}.react-tel-input .ve{background-position:-192px -143px}.react-tel-input .vg{background-position:-208px -143px}.react-tel-input .vi{background-position:-224px -143px}.react-tel-input .vn{background-position:-240px -143px}.react-tel-input .vu{background-position:0 -154px}.react-tel-input .wf{background-position:-16px -154px}.react-tel-input .ws{background-position:-32px -154px}.react-tel-input .ye{background-position:-48px -154px}.react-tel-input .za{background-position:-64px -154px}.react-tel-input .zm{background-position:-80px -154px}.react-tel-input .zw{background-position:-96px -154px}.react-tel-input *{box-sizing:border-box;-moz-box-sizing:border-box}.react-tel-input .hide{display:none}.react-tel-input .v-hide{visibility:hidden}.react-tel-input .form-control{position:relative;font-size:14px;letter-spacing:.01rem;margin-top:0 !important;margin-bottom:0 !important;padding-left:48px;margin-left:0;background:#FFFFFF;border:1px solid #CACACA;border-radius:5px;line-height:25px;height:35px;width:300px;outline:none}.react-tel-input .form-control.invalid-number{border:1px solid #d79f9f;background-color:#FAF0F0;border-left-color:#cacaca}.react-tel-input .form-control.invalid-number:focus{border:1px solid #d79f9f;border-left-color:#cacaca;background-color:#FAF0F0}.react-tel-input .flag-dropdown{position:absolute;top:0;bottom:0;padding:0;background-color:#f5f5f5;border:1px solid #cacaca;border-radius:3px 0 0 3px}.react-tel-input .flag-dropdown:hover,.react-tel-input .flag-dropdown:focus{cursor:pointer}.react-tel-input .flag-dropdown.invalid-number{border-color:#d79f9f}.react-tel-input .flag-dropdown.open{z-index:2;background:#fff;border-radius:3px 0 0 0}.react-tel-input .flag-dropdown.open .selected-flag{background:#fff;border-radius:3px 0 0 0}.react-tel-input input[disabled]+.flag-dropdown:hover{cursor:default}.react-tel-input input[disabled]+.flag-dropdown:hover .selected-flag{background-color:transparent}.react-tel-input .selected-flag{outline:none;position:relative;width:38px;height:100%;padding:0 0 0 8px;border-radius:3px 0 0 3px}.react-tel-input .selected-flag:hover,.react-tel-input .selected-flag:focus{background-color:#fff}.react-tel-input .selected-flag .flag{position:absolute;top:50%;margin-top:-5px}.react-tel-input .selected-flag .arrow{position:relative;top:50%;margin-top:-2px;left:20px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #555}.react-tel-input .selected-flag .arrow.up{border-top:none;border-bottom:4px solid #555}.react-tel-input .country-list{outline:none;z-index:1;list-style:none;position:absolute;padding:0;margin:10px 0 10px -1px;box-shadow:1px 2px 10px rgba(0,0,0,0.35);background-color:white;width:300px;max-height:200px;overflow-y:scroll;border-radius:0 0 3px 3px}.react-tel-input .country-list .flag{display:inline-block}.react-tel-input .country-list .divider{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #ccc}.react-tel-input .country-list .country{padding:7px 9px}.react-tel-input .country-list .country .dial-code{color:#6b6b6b}.react-tel-input .country-list .country:hover{background-color:#f1f1f1}.react-tel-input .country-list .country.highlight{background-color:#f1f1f1}.react-tel-input .country-list .flag{margin-right:7px;margin-top:2px}.react-tel-input .country-list .country-name{margin-right:6px}.react-tel-input .country-list .search{position:sticky;top:0;background-color:#fff;padding:10px 0 6px 10px}.react-tel-input .country-list .search-emoji{font-size:15px}.react-tel-input .country-list .search-box{border:1px solid #cacaca;border-radius:3px;font-size:15px;line-height:15px;margin-left:6px;padding:3px 8px 5px;outline:none}.react-tel-input .country-list .no-entries-message{padding:7px 10px 11px;opacity:.7}.react-tel-input .invalid-number-message{position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;color:#de0000}.react-tel-input .special-label{display:none;position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;white-space:nowrap}");var lW=O(function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,n){e.exports=t},function(e,t,n){var o;
73
- /*!
74
- Copyright (c) 2017 Jed Watson.
75
- Licensed under the MIT License (MIT), see
76
- http://jedwatson.github.io/classnames
77
- */!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=c.Symbol,p=d?d.prototype:void 0,f=p?p.toString:void 0;function h(e){if("string"==typeof e)return e;if(m(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}function v(e){return e?(e=function(e){if("number"==typeof e)return e;if(m(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=r.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):o.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var o,r,i;return e=null==(o=e)?"":h(o),r=function(e){var t=v(e),n=t%1;return t==t?n?t-n:t:0}(n),i=e.length,r==r&&(void 0!==i&&(r=r<=i?r:i),r=r>=0?r:0),n=r,t=h(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,o=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")(),s=Array.prototype,l=Function.prototype,c=Object.prototype,u=a["__core-js_shared__"],d=(n=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",p=l.toString,f=c.hasOwnProperty,h=c.toString,g=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,v=E(a,"Map"),b=E(Object,"create");function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function w(e,t){for(var n,o,r=e.length;r--;)if((n=e[r][0])===(o=t)||n!=n&&o!=o)return r;return-1}function S(e){return!(!$(e)||(t=e,d&&d in t))&&(function(e){var t=$(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?g:o).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function k(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function E(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return S(n)?n:void 0}function O(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a),a};return n.cache=new(O.Cache||C),n}function $(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}y.prototype.clear=function(){this.__data__=b?b(null):{}},y.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(b){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return f.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return b?void 0!==t[e]:f.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=b&&void 0===t?"__lodash_hash_undefined__":t,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__,n=w(t,e);return!(n<0||(n==t.length-1?t.pop():m.call(t,n,1),0))},x.prototype.get=function(e){var t=this.__data__,n=w(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return w(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,o=w(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new y,map:new(v||x),string:new y}},C.prototype.delete=function(e){return k(this,e).delete(e)},C.prototype.get=function(e){return k(this,e).get(e)},C.prototype.has=function(e){return k(this,e).has(e)},C.prototype.set=function(e,t){return k(this,e).set(e,t),this},O.Cache=C,e.exports=O}).call(this,n(3))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=r.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var o,r,i,a,s,l,c=0,u=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||m&&e-c>=i}function x(){var e=f();if(y(e))return C(e);s=setTimeout(x,function(e){var n=t-(e-l);return m?p(n,i-(e-c)):n}(e))}function C(e){return s=void 0,v&&o?b(e):(o=r=void 0,a)}function w(){var e=f(),n=y(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),u?b(e):a}(l);if(m)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=g(t)||0,h(n)&&(u=!!n.leading,i=(m="maxWait"in n)?d(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},w.flush=function(){return void 0===s?a:C(f())},w}}).call(this,n(3))},function(e,t,n){(function(e,n){var o="[object Arguments]",r="[object Map]",i="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[o]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[r]=h["[object Number]"]=h[i]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object WeakMap]"]=!1;var g="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&"object"==typeof n&&n&&!n.nodeType&&n,x=y&&y.exports===b&&g.process,C=function(){try{return x&&x.binding("util")}catch(e){}}(),w=C&&C.isTypedArray;function S(e,t,n,o){var r=-1,i=e?e.length:0;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function k(e,t){for(var n=-1,o=e?e.length:0;++n<o;)if(t(e[n],n,e))return!0;return!1}function E(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function O(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var M,I,P,L=Array.prototype,j=Function.prototype,A=Object.prototype,D=v["__core-js_shared__"],T=(M=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",R=j.toString,_=A.hasOwnProperty,z=A.toString,B=RegExp("^"+R.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=v.Symbol,F=v.Uint8Array,W=A.propertyIsEnumerable,V=L.splice,K=(I=Object.keys,P=Object,function(e){return I(P(e))}),q=Ce(v,"DataView"),X=Ce(v,"Map"),U=Ce(v,"Promise"),G=Ce(v,"Set"),Y=Ce(v,"WeakMap"),Q=Ce(Object,"create"),Z=Me(q),J=Me(X),ee=Me(U),te=Me(G),ne=Me(Y),oe=H?H.prototype:void 0,re=oe?oe.valueOf:void 0,ie=oe?oe.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new le;++t<n;)this.add(e[t])}function ue(e){this.__data__=new se(e)}function de(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}ae.prototype.clear=function(){this.__data__=Q?Q(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:_.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,n=de(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),0))},se.prototype.get=function(e){var t=this.__data__,n=de(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return de(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,o=de(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},le.prototype.clear=function(){this.__data__={hash:new ae,map:new(X||se),string:new ae}},le.prototype.delete=function(e){return xe(this,e).delete(e)},le.prototype.get=function(e){return xe(this,e).get(e)},le.prototype.has=function(e){return xe(this,e).has(e)},le.prototype.set=function(e,t){return xe(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.clear=function(){this.__data__=new se},ue.prototype.delete=function(e){return this.__data__.delete(e)},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var o=n.__data__;if(!X||o.length<199)return o.push([e,t]),this;n=this.__data__=new le(o)}return n.set(e,t),this};var pe,fe=(pe=function(e,t){return e&&he(e,t,He)},function(e,t){if(null==e)return e;if(!Ae(e))return pe(e,t);for(var n=e.length,o=-1,r=Object(e);++o<n&&!1!==t(r[o],o,r););return e}),he=function(e,t,n){for(var o=-1,r=Object(e),i=n(e),a=i.length;a--;){var s=i[++o];if(!1===t(r[s],s,r))break}return e};function ge(e,t){for(var n=0,o=(t=ke(t,e)?[t]:be(t)).length;null!=e&&n<o;)e=e[Ne(t[n++])];return n&&n==o?e:void 0}function me(e,t){return null!=e&&t in Object(e)}function ve(e,t,n,s,l){return e===t||(null==e||null==t||!Re(e)&&!_e(t)?e!=e&&t!=t:function(e,t,n,s,l,c){var u=je(e),d=je(t),p="[object Array]",f="[object Array]";u||(p=(p=we(e))==o?i:p),d||(f=(f=we(t))==o?i:f);var h=p==i&&!O(e),g=f==i&&!O(t),m=p==f;if(m&&!h)return c||(c=new ue),u||Be(e)?ye(e,t,n,s,l,c):function(e,t,n,o,i,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new F(e),new F(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Pe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var c=$;case a:var u=2&s;if(c||(c=N),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;s|=1,l.set(e,t);var p=ye(c(e),c(t),o,i,s,l);return l.delete(e),p;case"[object Symbol]":if(re)return re.call(e)==re.call(t)}return!1}(e,t,p,n,s,l,c);if(!(2&l)){var v=h&&_.call(e,"__wrapped__"),b=g&&_.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,x=b?t.value():t;return c||(c=new ue),n(y,x,s,l,c)}}return!!m&&(c||(c=new ue),function(e,t,n,o,r,i){var a=2&r,s=He(e),l=s.length;if(l!=He(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:_.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var f=a;++c<l;){var h=e[u=s[c]],g=t[u];if(o)var m=a?o(g,h,u,t,e,i):o(h,g,u,e,t,i);if(!(void 0===m?h===g||n(h,g,o,r,i):m)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,s,l,c))}(e,t,ve,n,s,l))}function be(e){return je(e)?e:$e(e)}function ye(e,t,n,o,r,i){var a=2&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=1&r?new ce:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var f=e[u],h=t[u];if(o)var g=a?o(h,f,u,t,e,i):o(f,h,u,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!k(t,(function(e,t){if(!p.has(t)&&(f===e||n(f,e,o,r,i)))return p.add(t)}))){d=!1;break}}else if(f!==h&&!n(f,h,o,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function xe(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Re(e)||function(e){return!!T&&T in e}(e))&&(De(e)||O(e)?B:p).test(Me(e))}(n)?n:void 0}var we=function(e){return z.call(e)};function Se(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){if(je(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ze(e))||l.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Ee(e){return e==e&&!Re(e)}function Oe(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(q&&"[object DataView]"!=we(new q(new ArrayBuffer(1)))||X&&we(new X)!=r||U&&"[object Promise]"!=we(U.resolve())||G&&we(new G)!=a||Y&&"[object WeakMap]"!=we(new Y))&&(we=function(e){var t=z.call(e),n=t==i?e.constructor:void 0,o=n?Me(n):void 0;if(o)switch(o){case Z:return"[object DataView]";case J:return r;case ee:return"[object Promise]";case te:return a;case ne:return"[object WeakMap]"}return t});var $e=Ie((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ze(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(u,(function(e,t,o,r){n.push(o?r.replace(d,"$1"):t||e)})),n}));function Ne(e){if("string"==typeof e||ze(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Me(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ie(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a),a};return n.cache=new(Ie.Cache||le),n}function Pe(e,t){return e===t||e!=e&&t!=t}function Le(e){return function(e){return _e(e)&&Ae(e)}(e)&&_.call(e,"callee")&&(!W.call(e,"callee")||z.call(e)==o)}Ie.Cache=le;var je=Array.isArray;function Ae(e){return null!=e&&Te(e.length)&&!De(e)}function De(e){var t=Re(e)?z.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Re(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _e(e){return!!e&&"object"==typeof e}function ze(e){return"symbol"==typeof e||_e(e)&&"[object Symbol]"==z.call(e)}var Be=w?function(e){return function(t){return e(t)}}(w):function(e){return _e(e)&&Te(e.length)&&!!h[z.call(e)]};function He(e){return Ae(e)?function(e){var t=je(e)||Le(e)?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],n=t.length,o=!!n;for(var r in e)!_.call(e,r)||o&&("length"==r||Se(r,n))||t.push(r);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||A))return K(e);var t,n,o=[];for(var r in Object(e))_.call(e,r)&&"constructor"!=r&&o.push(r);return o}(e)}function Fe(e){return e}n.exports=function(e,t,n){var o=je(e)?S:E,r=arguments.length<3;return o(e,function(e){return"function"==typeof e?e:null==e?Fe:"object"==typeof e?je(e)?function(e,t){return ke(e)&&Ee(t)?Oe(Ne(e),t):function(n){var o=function(e,t){var n=null==e?void 0:ge(e,t);return void 0===n?void 0:n}(n,e);return void 0===o&&o===t?function(e,t){return null!=e&&function(e,t,n){for(var o,r=-1,i=(t=ke(t,e)?[t]:be(t)).length;++r<i;){var a=Ne(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||!!(i=e?e.length:0)&&Te(i)&&Se(a,i)&&(je(e)||Le(e))}(e,t,me)}(n,e):ve(t,o,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=He(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,Ee(r)]}return t}(e);return 1==t.length&&t[0][2]?Oe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n){var o=n.length,r=o;if(null==e)return!r;for(e=Object(e);o--;){var i=n[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<r;){var a=(i=n[o])[0],s=e[a],l=i[1];if(i[2]){if(void 0===s&&!(a in e))return!1}else if(!ve(l,s,void 0,3,new ue))return!1}return!0}(n,0,t)}}(e):ke(t=e)?(n=Ne(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ge(t,e)}}(t);var t,n}(t),n,r,fe)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,n){function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){if(Array.isArray(e))return e}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return(c="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})(e)}function u(e){return(u="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var h=n(0),g=n.n(h),m=n(5),v=n.n(m),b=n(4),y=n.n(b),x=n(6),C=n.n(x),w=n(2),S=n.n(w),k=n(1),E=n.n(k);function O(e,t){return a(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||s()}n(8);var $=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],N=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function M(e,t,n,o,r){return!n||r?e+"".padEnd(t.length,".")+" "+o:e+"".padEnd(t.length,".")+" "+n}function I(e,t,n,r,a){var s,l,c=[];return l=!0===t,[(s=[]).concat.apply(s,i(e.map((function(e){var i={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:M(n,e[3],e[4],r,a),priority:e[5]||0},s=[];return e[6]&&e[6].map((function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},i);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,s.push(n)})),s.length>0?(i.mainCode=!0,l||"Array"===t.constructor.name&&t.includes(e[2])?(i.hasAreaCodes=!0,[i].concat(s)):(c=c.concat(s),[i])):[i]})))),c]}function P(e,t,n,o){if(null!==n){var r=Object.keys(n),i=Object.values(n);r.forEach((function(n,r){if(o)return e.push([n,i[r]]);var a=e.findIndex((function(e){return e[0]===n}));if(-1===a){var s=[n];s[t]=i[r],e.push(s)}else e[a][t]=i[r]}))}}function L(e,t){return 0===t.length?e:e.map((function(e){var n=t.findIndex((function(t){return t[0]===e[2]}));if(-1===n)return e;var o=t[n];return o[1]&&(e[4]=o[1]),o[3]&&(e[5]=o[3]),o[2]&&(e[6]=o[2]),e}))}var j=function e(t,n,o,r,a,s,c,u,d,p,f,h,g,m){l(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter((function(e){return e.regions.some((function(e){return e===n}))}))}return t.filter((function(t){return e.map((function(e){return t.regions.some((function(t){return t===e}))})).some((function(e){return e}))}))},this.sortTerritories=function(e,t){var n=[].concat(i(e),i(t));return n.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map((function(e){var n=t.find((function(t){return t.iso2===e}));if(n)return n})).filter((function(e){return e})):t.filter((function(t){return e.some((function(e){return e===t.iso2}))}))},this.localizeCountries=function(e,t,n){for(var o=0;o<e.length;o++)void 0!==t[e[o].iso2]?e[o].localName=t[e[o].iso2]:void 0!==t[e[o].name]&&(e[o].localName=t[e[o].name]);return n||e.sort((function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0})),e},this.getCustomAreas=function(e,t){for(var n=[],o=0;o<t.length;o++){var r=JSON.parse(JSON.stringify(e));r.dialCode+=t[o],n.push(r)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter((function(e){return!t.includes(e.iso2)}))};var v=function(e,t,n){var o=[];return P(o,1,e,!0),P(o,3,t),P(o,2,n),o}(u,d,p),b=L(JSON.parse(JSON.stringify($)),v),y=L(JSON.parse(JSON.stringify(N)),v),x=O(I(b,t,h,g,m),2),C=x[0],w=x[1];if(n){var S=O(I(y,t,h,g,m),2),k=S[0];S[1],C=this.sortTerritories(k,C)}o&&(C=this.filterRegions(o,C)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(r,C,c.includes("onlyCountries")),s),f,c.includes("onlyCountries")),this.preferredCountries=0===a.length?[]:this.localizeCountries(this.getFilteredCountryList(a,C,c.includes("preferredCountries")),f,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(r,w),s)},A=function(e){function t(e){var n;l(this,t),(n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}(this,p(t).call(this,e))).getProbableCandidate=y()((function(e){return e&&0!==e.length?n.state.onlyCountries.filter((function(t){return S()(t.name.toLowerCase(),e.toLowerCase())}),d(d(n)))[0]:null})),n.guessSelectedCountry=y()((function(e,t,o,r){var i;if(!1===n.props.enableAreaCodes&&(r.some((function(t){if(S()(e,t.dialCode))return o.some((function(e){if(t.iso2===e.iso2&&e.mainCode)return i=e,!0})),!0})),i))return i;var a=o.find((function(e){return e.iso2==t}));if(""===e.trim())return a;var s=o.reduce((function(t,n){if(S()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t}),{dialCode:"",priority:10001},d(d(n)));return s.name?s:a})),n.updateCountry=function(e){var t,o=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?o.find((function(t){return t.dialCode==+e})):o.find((function(t){return t.iso2==e})))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var o=n.dropdownRef;if(o&&document.body){var r=o.offsetHeight,i=o.getBoundingClientRect().top+document.body.scrollTop,a=i+r,s=e,l=s.getBoundingClientRect(),c=s.offsetHeight,u=l.top+document.body.scrollTop,d=u+c,p=u-i+o.scrollTop,f=r/2-c/2;if(n.props.enableSearch?u<i+32:u<i)t&&(p-=f),o.scrollTop=p;else if(d>a){t&&(p+=f);var h=r-c;o.scrollTop=p-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var o,i=t.format,l=n.props,c=l.disableCountryCode,u=l.enableAreaCodeStretch,d=l.enableLongNumbers,p=l.autoFormat;if(c?((o=i.split(" ")).shift(),o=o.join(" ")):u&&t.isAreaCode?((o=i.split(" "))[1]=o[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),o=o.join(" ")):o=i,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!o||!p)return c?e:n.props.prefix+e;var f,h=C()(o,(function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,o=a(n=e.remainingText)||r(n)||s(),i=o[0],l=o.slice(1);return{formattedText:e.formattedText+i,remainingText:l}}),{formattedText:"",remainingText:e.split("")});return(f=d?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!f.includes(")")&&(f+=")"),f},n.cursorToEnd=function(){var e=n.numberInputRef;if(document.activeElement===e){e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)}},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,o=t.preferredCountries,r=t.onlyCountries,i=t.selectedCountry,a=n.concatPreferredCountries(o,r).findIndex((function(e){return e.dialCode===i.dialCode&&e.iso2===i.iso2}));n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},(function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))}))}},n.handleInput=function(e){var t=e.target.value,o=n.props,r=o.prefix,i=o.onChange,a=n.props.disableCountryCode?"":r,s=n.state.selectedCountry,l=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=r+(s.hasAreaCodes?n.state.onlyCountries.find((function(e){return e.iso2===s.iso2&&e.mainCode})).dialCode:s.dialCode);if(t.slice(0,c.length)!==c)return}if(t===r)return i&&i("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var u=n.props.country,d=n.state,p=d.onlyCountries,f=d.selectedCountry,h=d.hiddenAreaCodes;if(i&&e.persist(),t.length>0){var g=t.replace(/\D/g,"");(!n.state.freezeSelection||f&&f.dialCode.length>g.length)&&(s=n.props.disableCountryGuess?f:n.guessSelectedCountry(g.substring(0,6),u,p,h)||f,l=!1),a=n.formatNumber(g,s),s=s.dialCode?s:f}var m=e.target.selectionStart,v=e.target.selectionStart,b=n.state.formattedNumber,y=a.length-b.length;n.setState({formattedNumber:a,freezeSelection:l,selectedCountry:s},(function(){y>0&&(v-=y),")"==a.charAt(a.length-1)?n.numberInputRef.setSelectionRange(a.length-1,a.length-1):v>0&&b.length>=a.length?n.numberInputRef.setSelectionRange(v,v):m<b.length&&n.numberInputRef.setSelectionRange(m,m),i&&i(a.replace(/[^0-9]+/g,""),n.getCountryData(),e,a)}))}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var o=n.state.selectedCountry,r=n.state.onlyCountries.find((function(t){return t==e}));if(r){var i=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),a=i.length>1?i.replace(o.dialCode,r.dialCode):r.dialCode,s=n.formatNumber(a.replace(/\D/g,""),r);n.setState({showDropdown:!1,selectedCountry:r,freezeSelection:!0,formattedNumber:s,searchValue:""},(function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(s.replace(/[^0-9]+/g,""),n.getCountryData(),t,s)}))}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},(function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)})),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex((function(t){return t==e}))+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,o=e.target.className;if(o.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(o.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!o.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var r=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},(function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)}))};switch(e.which){case t.DOWN:r(1);break;case t.UP:r(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(i(n.state.preferredCountries),i(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,o=t.keys,r=t.onEnterKeyPress,i=t.onKeyDown;e.which===o.ENTER&&r&&r(e),i&&i(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,o=n.state,r=o.preferredCountries,i=o.selectedCountry,a=0;if(""===t&&i){var s=n.state.onlyCountries;a=n.concatPreferredCountries(r,s).findIndex((function(e){return e==i})),setTimeout((function(){return n.scrollTo(n.getElement(a))}),100)}n.setState({searchValue:t,highlightCountryIndex:a})},n.concatPreferredCountries=function(e,t){return e.length>0?i(new Set(e.concat(t))):t},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,o=e.onlyCountries,r=e.searchValue,a=n.props.enableSearch,s=n.concatPreferredCountries(t,o),l=r.trim().toLowerCase().replace("+","");if(a&&l){if(/^\d+$/.test(l))return s.filter((function(e){var t=e.dialCode;return["".concat(t)].some((function(e){return e.toLowerCase().includes(l)}))}));var c=s.filter((function(e){var t=e.iso2;return["".concat(t)].some((function(e){return e.toLowerCase().includes(l)}))})),u=s.filter((function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some((function(e){return e.toLowerCase().includes(l)}))}));return n.scrollToTop(),i(new Set([].concat(c,u)))}return s},n.getCountryDropdownList=function(){var e=n.state,t=e.preferredCountries,r=e.highlightCountryIndex,i=e.showDropdown,a=e.searchValue,s=n.props,l=s.disableDropdown,c=s.prefix,u=n.props,d=u.enableSearch,p=u.searchNotFound,f=u.disableSearchIcon,h=u.searchClass,m=u.searchStyle,v=u.searchPlaceholder,b=u.autocompleteSearch,y=n.getSearchFilteredCountries().map((function(e,t){var o=r===t,i=E()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:o}),a="flag ".concat(e.iso2);return g.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:i,"data-dial-code":"1",tabIndex:l?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},o?{"aria-selected":!0}:{}),g.a.createElement("div",{className:a}),g.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),g.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):c+e.dialCode))})),x=g.a.createElement("li",{key:"dashes",className:"divider"});t.length>0&&(!d||d&&!a.trim())&&y.splice(t.length,0,x);var C=E()(o({"country-list":!0,hide:!i},n.props.dropdownClass,!0));return g.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),n.dropdownRef=e},className:C,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&g.a.createElement("li",{className:E()(o({search:!0},h,h))},!f&&g.a.createElement("span",{className:E()(o({"search-emoji":!0},"".concat(h,"-emoji"),h)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:E()(o({"search-box":!0},"".concat(h,"-box"),h)),style:m,type:"search",placeholder:v,autoFocus:!0,autoComplete:b?"on":"off",value:a,onChange:n.handleSearchChange})),y.length>0?y:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,p)))};var c,f=new j(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=f.onlyCountries,m=f.preferredCountries,b=f.hiddenAreaCodes,x=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:x.length>1?n.guessSelectedCountry(x.substring(0,6),e.country,h,b)||0:e.country&&h.find((function(t){return t.iso2==e.country}))||0;var w,k=x.length<2&&c&&!S()(x,c.dialCode)?c.dialCode:"";w=""===x&&0===c?"":n.formatNumber((e.disableCountryCode?"":k)+x,c.name?c:void 0);var O=h.findIndex((function(e){return e==c}));return n.state={showDropdown:e.showDropdown,formattedNumber:w,onlyCountries:h,preferredCountries:m,hiddenAreaCodes:b,selectedCountry:c,highlightCountryIndex:O,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:v()(n.searchCountry,250),searchValue:""},n}var n;return function(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}}),t&&f(e,t)}(t,e),(n=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,o=t.selectedCountry,r=t.hiddenAreaCodes,i=this.props,a=i.country,s=i.prefix;if(""===e)return this.setState({selectedCountry:o,formattedNumber:""});var l,c,u=e.replace(/\D/g,"");if(o&&S()(e,s+o.dialCode))c=this.formatNumber(u,o),this.setState({formattedNumber:c});else{var d=(l=this.props.disableCountryGuess?o:this.guessSelectedCountry(u.substring(0,6),a,n,r)||o)&&S()(u,s+l.dialCode)?l.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":d)+u,l||void 0),this.setState({selectedCountry:l,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,r=this,i=this.state,a=i.onlyCountries,s=i.selectedCountry,l=i.showDropdown,c=i.formattedNumber,u=i.hiddenAreaCodes,d=this.props,p=d.disableDropdown,f=d.renderStringAsFlag,h=d.isValid,m=d.defaultErrorMessage,v=d.specialLabel;if("boolean"==typeof h)t=h;else{var b=h(c.replace(/\D/g,""),s,a,u);"boolean"==typeof b?!1===(t=b)&&(n=m):(t=!1,n=b)}var y=E()((o(e={},this.props.containerClass,!0),o(e,"react-tel-input",!0),e)),x=E()({arrow:!0,up:l}),C=E()(o({"form-control":!0,"invalid-number":!t,open:l},this.props.inputClass,!0)),w=E()({"selected-flag":!0,open:l}),S=E()(o({"flag-dropdown":!0,"invalid-number":!t,open:l},this.props.buttonClass,!0)),k="flag ".concat(s&&s.iso2);return g.a.createElement("div",{className:"".concat(y," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},v&&g.a.createElement("div",{className:"special-label"},v),n&&g.a.createElement("div",{className:"invalid-number-message"},n),g.a.createElement("input",Object.assign({className:C,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(e){r.numberInputRef=e,"function"==typeof r.props.inputProps.ref?r.props.inputProps.ref(e):"object"==typeof r.props.inputProps.ref&&(r.props.inputProps.ref.current=e)}})),g.a.createElement("div",{className:S,style:this.props.buttonStyle,ref:function(e){return r.dropdownContainerRef=e}},f?g.a.createElement("div",{className:w},f):g.a.createElement("div",{onClick:p?void 0:this.handleFlagDropdownClick,className:w,title:s?"".concat(s.localName||s.name,": + ").concat(s.dialCode):"",tabIndex:p?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},g.a.createElement("div",{className:k},!p&&g.a.createElement("div",{className:x}))),l&&this.getCountryDropdownList()))}}])&&function(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,o.key,o)}}(t.prototype,n),t}(g.a.Component);A.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=A}]));Hj(".inputContainer {\n .react-tel-input .flag-dropdown {\n height: 40px !important;\n background-color: unset;\n border: unset;\n }\n .react-tel-input .form-control {\n height: 40px !important;\n width: 100%;\n padding-left: 40px;\n }\n}\n");var cW=function(e){var t=e.handleChange,n=e.countryCode,o=e.phone,r=e.className,i=e.id,s=a(null);return l((function(){if(s.current){var e=s.current.querySelector("input");e&&(e.id=i)}}),[i]),L.jsx("div",{className:r,children:L.jsx("div",{className:"inputContainer",ref:s,children:L.jsx(lW,{value:"+".concat(n).concat(o),country:n&&o||""!=n&&""!=o?"":"us",countryCodeEditable:!1,onChange:function(e,n){t(e.replace(n.dialCode,""),n.dialCode,n.countryCode)},enableSearch:!0,inputProps:{required:!0}})})})};export{SB as AppAvatar,Gj as AppBackArrow,Yj as AppBadge,tW as AppBreadcrumb,Wj as AppButton,nW as AppCard,oW as AppCarousel,CB as AppChart,kB as AppCheckboxText,EB as AppCollapse,OB as AppCustomLoader,JF as AppDivider,sW as AppFloatButton,wB as AppImageBox,Fj as AppInput,eW as AppLabel,QF as AppList,ZF as AppLoader,DF as AppLocationMap,TF as AppModal,zF as AppOtpField,BF as AppPagination,HF as AppPasswordInput,cW as AppPhoneInput,aW as AppPopover,iW as AppProgress,XF as AppRadioGroup,UF as AppSelect,GF as AppSelectAdd,Kj as AppSidebar,Xj as AppTab,rW as AppTable,YF as AppTag,qj as AppTextarea,VF as AppTitle,KF as AppToggleButton,qF as AppUploadImage,Qj as OverViewCard};
78
- //# sourceMappingURL=index.mjs.map