gf-components 0.0.7 → 0.1.2

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.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),Pn=require("react-dom");function xu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=xu(P),Rv=xu(Pn);function wu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ji={exports:{}},Zn={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),Gn=require("react-dom");function Zd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=Zd(P),$m=Zd(Gn);function Qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ts={exports:{}},xa={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var wl;function Pv(){if(wl)return Zn;wl=1;var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,u){var d,f={},v=null,b=null;u!==void 0&&(v=""+u),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(b=l.ref);for(d in l)n.call(l,d)&&!o.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:v,ref:b,props:f,_owner:a.current}}return Zn.Fragment=r,Zn.jsx=i,Zn.jsxs=i,Zn}var Jn={};/**
9
+ */var Ac;function Om(){if(Ac)return xa;Ac=1;var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,c){var d,f={},v=null,b=null;c!==void 0&&(v=""+c),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(b=l.ref);for(d in l)n.call(l,d)&&!o.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:v,ref:b,props:f,_owner:a.current}}return xa.Fragment=r,xa.jsx=i,xa.jsxs=i,xa}var wa={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,24 +14,24 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $l;function _v(){return $l||($l=1,process.env.NODE_ENV!=="production"&&function(){var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=Symbol.iterator,p="@@iterator";function m(_){if(_===null||typeof _!="object")return null;var G=h&&_[h]||_[p];return typeof G=="function"?G:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(_){{for(var G=arguments.length,X=new Array(G>1?G-1:0),ie=1;ie<G;ie++)X[ie-1]=arguments[ie];y("error",_,X)}}function y(_,G,X){{var ie=S.ReactDebugCurrentFrame,Pe=ie.getStackAddendum();Pe!==""&&(G+="%s",X=X.concat([Pe]));var $e=X.map(function(_e){return String(_e)});$e.unshift("Warning: "+G),Function.prototype.apply.call(console[_],console,$e)}}var E=!1,C=!1,x=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function T(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||w||_===a||_===u||_===d||R||_===b||E||C||x||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===f||_.$$typeof===i||_.$$typeof===s||_.$$typeof===l||_.$$typeof===$||_.getModuleId!==void 0))}function F(_,G,X){var ie=_.displayName;if(ie)return ie;var Pe=G.displayName||G.name||"";return Pe!==""?X+"("+Pe+")":X}function j(_){return _.displayName||"Context"}function A(_){if(_==null)return null;if(typeof _.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var G=_;return j(G)+".Consumer";case i:var X=_;return j(X._context)+".Provider";case l:return F(_,_.render,"ForwardRef");case f:var ie=_.displayName||null;return ie!==null?ie:A(_.type)||"Memo";case v:{var Pe=_,$e=Pe._payload,_e=Pe._init;try{return A(_e($e))}catch{return null}}}return null}var M=Object.assign,H=0,N,O,I,D,V,k,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(H===0){N=console.log,O=console.info,I=console.warn,D=console.error,V=console.group,k=console.groupCollapsed,K=console.groupEnd;var _={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}H++}}function Q(){{if(H--,H===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},_,{value:N}),info:M({},_,{value:O}),warn:M({},_,{value:I}),error:M({},_,{value:D}),group:M({},_,{value:V}),groupCollapsed:M({},_,{value:k}),groupEnd:M({},_,{value:K})})}H<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=S.ReactCurrentDispatcher,J;function te(_,G,X){{if(J===void 0)try{throw Error()}catch(Pe){var ie=Pe.stack.trim().match(/\n( *(at )?)/);J=ie&&ie[1]||""}return`
18
- `+J+_}}var ae=!1,fe;{var de=typeof WeakMap=="function"?WeakMap:Map;fe=new de}function ve(_,G){if(!_||ae)return"";{var X=fe.get(_);if(X!==void 0)return X}var ie;ae=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Z.current,Z.current=null,q();try{if(G){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(mt){ie=mt}Reflect.construct(_,[],_e)}else{try{_e.call()}catch(mt){ie=mt}_.call(_e.prototype)}}else{try{throw Error()}catch(mt){ie=mt}_()}}catch(mt){if(mt&&ie&&typeof mt.stack=="string"){for(var Ie=mt.stack.split(`
19
- `),vt=ie.stack.split(`
20
- `),et=Ie.length-1,ze=vt.length-1;et>=1&&ze>=0&&Ie[et]!==vt[ze];)ze--;for(;et>=1&&ze>=0;et--,ze--)if(Ie[et]!==vt[ze]){if(et!==1||ze!==1)do if(et--,ze--,ze<0||Ie[et]!==vt[ze]){var Et=`
21
- `+Ie[et].replace(" at new "," at ");return _.displayName&&Et.includes("<anonymous>")&&(Et=Et.replace("<anonymous>",_.displayName)),typeof _=="function"&&fe.set(_,Et),Et}while(et>=1&&ze>=0);break}}}finally{ae=!1,Z.current=$e,Q(),Error.prepareStackTrace=Pe}var Ht=_?_.displayName||_.name:"",zt=Ht?te(Ht):"";return typeof _=="function"&&fe.set(_,zt),zt}function we(_,G,X){return ve(_,!1)}function B(_){var G=_.prototype;return!!(G&&G.isReactComponent)}function ce(_,G,X){if(_==null)return"";if(typeof _=="function")return ve(_,B(_));if(typeof _=="string")return te(_);switch(_){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case l:return we(_.render);case f:return ce(_.type,G,X);case v:{var ie=_,Pe=ie._payload,$e=ie._init;try{return ce($e(Pe),G,X)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,Ce={},pe=S.ReactDebugCurrentFrame;function ne(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);pe.setExtraStackFrame(X)}else pe.setExtraStackFrame(null)}function me(_,G,X,ie,Pe){{var $e=Function.call.bind(se);for(var _e in _)if($e(_,_e)){var Ie=void 0;try{if(typeof _[_e]!="function"){var vt=Error((ie||"React class")+": "+X+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ie=_[_e](G,_e,ie,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(et){Ie=et}Ie&&!(Ie instanceof Error)&&(ne(Pe),g("%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).",ie||"React class",X,_e,typeof Ie),ne(null)),Ie instanceof Error&&!(Ie.message in Ce)&&(Ce[Ie.message]=!0,ne(Pe),g("Failed %s type: %s",X,Ie.message),ne(null))}}}var xe=Array.isArray;function Me(_){return xe(_)}function oe(_){{var G=typeof Symbol=="function"&&Symbol.toStringTag,X=G&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X}}function re(_){try{return ge(_),!1}catch{return!0}}function ge(_){return""+_}function he(_){if(re(_))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(_)),ge(_)}var tt=S.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ue,Xe;Xe={};function Ze(_){if(se.call(_,"ref")){var G=Object.getOwnPropertyDescriptor(_,"ref").get;if(G&&G.isReactWarning)return!1}return _.ref!==void 0}function Fe(_){if(se.call(_,"key")){var G=Object.getOwnPropertyDescriptor(_,"key").get;if(G&&G.isReactWarning)return!1}return _.key!==void 0}function Ne(_,G){if(typeof _.ref=="string"&&tt.current&&G&&tt.current.stateNode!==G){var X=A(tt.current.type);Xe[X]||(g('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',A(tt.current.type),_.ref),Xe[X]=!0)}}function it(_,G){{var X=function(){Ae||(Ae=!0,g("%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)",G))};X.isReactWarning=!0,Object.defineProperty(_,"key",{get:X,configurable:!0})}}function Ye(_,G){{var X=function(){Ue||(Ue=!0,g("%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)",G))};X.isReactWarning=!0,Object.defineProperty(_,"ref",{get:X,configurable:!0})}}var Le=function(_,G,X,ie,Pe,$e,_e){var Ie={$$typeof:t,type:_,key:G,ref:X,props:_e,_owner:$e};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function ue(_,G,X,ie,Pe){{var $e,_e={},Ie=null,vt=null;X!==void 0&&(he(X),Ie=""+X),Fe(G)&&(he(G.key),Ie=""+G.key),Ze(G)&&(vt=G.ref,Ne(G,Pe));for($e in G)se.call(G,$e)&&!qe.hasOwnProperty($e)&&(_e[$e]=G[$e]);if(_&&_.defaultProps){var et=_.defaultProps;for($e in et)_e[$e]===void 0&&(_e[$e]=et[$e])}if(Ie||vt){var ze=typeof _=="function"?_.displayName||_.name||"Unknown":_;Ie&&it(_e,ze),vt&&Ye(_e,ze)}return Le(_,Ie,vt,Pe,ie,tt.current,_e)}}var Ee=S.ReactCurrentOwner,Ke=S.ReactDebugCurrentFrame;function rt(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);Ke.setExtraStackFrame(X)}else Ke.setExtraStackFrame(null)}var bt;bt=!1;function ut(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Be(){{if(Ee.current){var _=A(Ee.current.type);if(_)return`
17
+ */var jc;function Rm(){return jc||(jc=1,process.env.NODE_ENV!=="production"&&function(){var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=Symbol.iterator,g="@@iterator";function p(_){if(_===null||typeof _!="object")return null;var U=h&&_[h]||_[g];return typeof U=="function"?U:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(_){{for(var U=arguments.length,X=new Array(U>1?U-1:0),ie=1;ie<U;ie++)X[ie-1]=arguments[ie];y("error",_,X)}}function y(_,U,X){{var ie=S.ReactDebugCurrentFrame,Pe=ie.getStackAddendum();Pe!==""&&(U+="%s",X=X.concat([Pe]));var $e=X.map(function(_e){return String(_e)});$e.unshift("Warning: "+U),Function.prototype.apply.call(console[_],console,$e)}}var E=!1,C=!1,x=!1,w=!1,$=!1,O;O=Symbol.for("react.module.reference");function T(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||$||_===a||_===c||_===d||w||_===b||E||C||x||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===f||_.$$typeof===i||_.$$typeof===s||_.$$typeof===l||_.$$typeof===O||_.getModuleId!==void 0))}function F(_,U,X){var ie=_.displayName;if(ie)return ie;var Pe=U.displayName||U.name||"";return Pe!==""?X+"("+Pe+")":X}function j(_){return _.displayName||"Context"}function M(_){if(_==null)return null;if(typeof _.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var U=_;return j(U)+".Consumer";case i:var X=_;return j(X._context)+".Provider";case l:return F(_,_.render,"ForwardRef");case f:var ie=_.displayName||null;return ie!==null?ie:M(_.type)||"Memo";case v:{var Pe=_,$e=Pe._payload,_e=Pe._init;try{return M(_e($e))}catch{return null}}}return null}var A=Object.assign,H=0,N,R,I,D,k,V,G;function W(){}W.__reactDisabledLog=!0;function q(){{if(H===0){N=console.log,R=console.info,I=console.warn,D=console.error,k=console.group,V=console.groupCollapsed,G=console.groupEnd;var _={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}H++}}function Y(){{if(H--,H===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},_,{value:N}),info:A({},_,{value:R}),warn:A({},_,{value:I}),error:A({},_,{value:D}),group:A({},_,{value:k}),groupCollapsed:A({},_,{value:V}),groupEnd:A({},_,{value:G})})}H<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=S.ReactCurrentDispatcher,J;function ee(_,U,X){{if(J===void 0)try{throw Error()}catch(Pe){var ie=Pe.stack.trim().match(/\n( *(at )?)/);J=ie&&ie[1]||""}return`
18
+ `+J+_}}var re=!1,de;{var se=typeof WeakMap=="function"?WeakMap:Map;de=new se}function le(_,U){if(!_||re)return"";{var X=de.get(_);if(X!==void 0)return X}var ie;re=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Q.current,Q.current=null,q();try{if(U){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(gt){ie=gt}Reflect.construct(_,[],_e)}else{try{_e.call()}catch(gt){ie=gt}_.call(_e.prototype)}}else{try{throw Error()}catch(gt){ie=gt}_()}}catch(gt){if(gt&&ie&&typeof gt.stack=="string"){for(var Ie=gt.stack.split(`
19
+ `),mt=ie.stack.split(`
20
+ `),tt=Ie.length-1,ze=mt.length-1;tt>=1&&ze>=0&&Ie[tt]!==mt[ze];)ze--;for(;tt>=1&&ze>=0;tt--,ze--)if(Ie[tt]!==mt[ze]){if(tt!==1||ze!==1)do if(tt--,ze--,ze<0||Ie[tt]!==mt[ze]){var $t=`
21
+ `+Ie[tt].replace(" at new "," at ");return _.displayName&&$t.includes("<anonymous>")&&($t=$t.replace("<anonymous>",_.displayName)),typeof _=="function"&&de.set(_,$t),$t}while(tt>=1&&ze>=0);break}}}finally{re=!1,Q.current=$e,Y(),Error.prepareStackTrace=Pe}var qt=_?_.displayName||_.name:"",Wt=qt?ee(qt):"";return typeof _=="function"&&de.set(_,Wt),Wt}function we(_,U,X){return le(_,!1)}function B(_){var U=_.prototype;return!!(U&&U.isReactComponent)}function fe(_,U,X){if(_==null)return"";if(typeof _=="function")return le(_,B(_));if(typeof _=="string")return ee(_);switch(_){case c:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case l:return we(_.render);case f:return fe(_.type,U,X);case v:{var ie=_,Pe=ie._payload,$e=ie._init;try{return fe($e(Pe),U,X)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,Ce={},ge=S.ReactDebugCurrentFrame;function ae(_){if(_){var U=_._owner,X=fe(_.type,_._source,U?U.type:null);ge.setExtraStackFrame(X)}else ge.setExtraStackFrame(null)}function pe(_,U,X,ie,Pe){{var $e=Function.call.bind(ce);for(var _e in _)if($e(_,_e)){var Ie=void 0;try{if(typeof _[_e]!="function"){var mt=Error((ie||"React class")+": "+X+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw mt.name="Invariant Violation",mt}Ie=_[_e](U,_e,ie,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(tt){Ie=tt}Ie&&!(Ie instanceof Error)&&(ae(Pe),m("%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).",ie||"React class",X,_e,typeof Ie),ae(null)),Ie instanceof Error&&!(Ie.message in Ce)&&(Ce[Ie.message]=!0,ae(Pe),m("Failed %s type: %s",X,Ie.message),ae(null))}}}var xe=Array.isArray;function Me(_){return xe(_)}function oe(_){{var U=typeof Symbol=="function"&&Symbol.toStringTag,X=U&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X}}function ne(_){try{return me(_),!1}catch{return!0}}function me(_){return""+_}function he(_){if(ne(_))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(_)),me(_)}var rt=S.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ke,Ye;Ye={};function Je(_){if(ce.call(_,"ref")){var U=Object.getOwnPropertyDescriptor(_,"ref").get;if(U&&U.isReactWarning)return!1}return _.ref!==void 0}function Fe(_){if(ce.call(_,"key")){var U=Object.getOwnPropertyDescriptor(_,"key").get;if(U&&U.isReactWarning)return!1}return _.key!==void 0}function Ne(_,U){if(typeof _.ref=="string"&&rt.current&&U&&rt.current.stateNode!==U){var X=M(rt.current.type);Ye[X]||(m('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',M(rt.current.type),_.ref),Ye[X]=!0)}}function st(_,U){{var X=function(){Ae||(Ae=!0,m("%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)",U))};X.isReactWarning=!0,Object.defineProperty(_,"key",{get:X,configurable:!0})}}function Ze(_,U){{var X=function(){Ke||(Ke=!0,m("%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)",U))};X.isReactWarning=!0,Object.defineProperty(_,"ref",{get:X,configurable:!0})}}var Le=function(_,U,X,ie,Pe,$e,_e){var Ie={$$typeof:t,type:_,key:U,ref:X,props:_e,_owner:$e};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function ve(_,U,X,ie,Pe){{var $e,_e={},Ie=null,mt=null;X!==void 0&&(he(X),Ie=""+X),Fe(U)&&(he(U.key),Ie=""+U.key),Je(U)&&(mt=U.ref,Ne(U,Pe));for($e in U)ce.call(U,$e)&&!Xe.hasOwnProperty($e)&&(_e[$e]=U[$e]);if(_&&_.defaultProps){var tt=_.defaultProps;for($e in tt)_e[$e]===void 0&&(_e[$e]=tt[$e])}if(Ie||mt){var ze=typeof _=="function"?_.displayName||_.name||"Unknown":_;Ie&&st(_e,ze),mt&&Ze(_e,ze)}return Le(_,Ie,mt,Pe,ie,rt.current,_e)}}var Ee=S.ReactCurrentOwner,qe=S.ReactDebugCurrentFrame;function nt(_){if(_){var U=_._owner,X=fe(_.type,_._source,U?U.type:null);qe.setExtraStackFrame(X)}else qe.setExtraStackFrame(null)}var Ct;Ct=!1;function ft(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Be(){{if(Ee.current){var _=M(Ee.current.type);if(_)return`
22
22
 
23
- Check the render method of \``+_+"`."}return""}}function Ve(_){return""}var De={};function Re(_){{var G=Be();if(!G){var X=typeof _=="string"?_:_.displayName||_.name;X&&(G=`
23
+ Check the render method of \``+_+"`."}return""}}function ke(_){return""}var De={};function Re(_){{var U=Be();if(!U){var X=typeof _=="string"?_:_.displayName||_.name;X&&(U=`
24
24
 
25
- Check the top-level render call using <`+X+">.")}return G}}function be(_,G){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var X=Re(G);if(De[X])return;De[X]=!0;var ie="";_&&_._owner&&_._owner!==Ee.current&&(ie=" It was passed a child from "+A(_._owner.type)+"."),rt(_),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,ie),rt(null)}}function Ge(_,G){{if(typeof _!="object")return;if(Me(_))for(var X=0;X<_.length;X++){var ie=_[X];ut(ie)&&be(ie,G)}else if(ut(_))_._store&&(_._store.validated=!0);else if(_){var Pe=m(_);if(typeof Pe=="function"&&Pe!==_.entries)for(var $e=Pe.call(_),_e;!(_e=$e.next()).done;)ut(_e.value)&&be(_e.value,G)}}}function pt(_){{var G=_.type;if(G==null||typeof G=="string")return;var X;if(typeof G=="function")X=G.propTypes;else if(typeof G=="object"&&(G.$$typeof===l||G.$$typeof===f))X=G.propTypes;else return;if(X){var ie=A(G);me(X,_.props,"prop",ie,_)}else if(G.PropTypes!==void 0&&!bt){bt=!0;var Pe=A(G);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ke(_){{for(var G=Object.keys(_.props),X=0;X<G.length;X++){var ie=G[X];if(ie!=="children"&&ie!=="key"){rt(_),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),rt(null);break}}_.ref!==null&&(rt(_),g("Invalid attribute `ref` supplied to `React.Fragment`."),rt(null))}}var He={};function st(_,G,X,ie,Pe,$e){{var _e=T(_);if(!_e){var Ie="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(Ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var vt=Ve();vt?Ie+=vt:Ie+=Be();var et;_===null?et="null":Me(_)?et="array":_!==void 0&&_.$$typeof===t?(et="<"+(A(_.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):et=typeof _,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,Ie)}var ze=ue(_,G,X,Pe,$e);if(ze==null)return ze;if(_e){var Et=G.children;if(Et!==void 0)if(ie)if(Me(Et)){for(var Ht=0;Ht<Et.length;Ht++)Ge(Et[Ht],_);Object.freeze&&Object.freeze(Et)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(Et,_)}if(se.call(G,"key")){var zt=A(_),mt=Object.keys(G).filter(function(Wt){return Wt!=="key"}),yr=mt.length>0?"{key: someKey, "+mt.join(": ..., ")+": ...}":"{key: someKey}";if(!He[zt+yr]){var Dr=mt.length>0?"{"+mt.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+X+">.")}return U}}function be(_,U){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var X=Re(U);if(De[X])return;De[X]=!0;var ie="";_&&_._owner&&_._owner!==Ee.current&&(ie=" It was passed a child from "+M(_._owner.type)+"."),nt(_),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,ie),nt(null)}}function Ue(_,U){{if(typeof _!="object")return;if(Me(_))for(var X=0;X<_.length;X++){var ie=_[X];ft(ie)&&be(ie,U)}else if(ft(_))_._store&&(_._store.validated=!0);else if(_){var Pe=p(_);if(typeof Pe=="function"&&Pe!==_.entries)for(var $e=Pe.call(_),_e;!(_e=$e.next()).done;)ft(_e.value)&&be(_e.value,U)}}}function bt(_){{var U=_.type;if(U==null||typeof U=="string")return;var X;if(typeof U=="function")X=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===l||U.$$typeof===f))X=U.propTypes;else return;if(X){var ie=M(U);pe(X,_.props,"prop",ie,_)}else if(U.PropTypes!==void 0&&!Ct){Ct=!0;var Pe=M(U);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(_){{for(var U=Object.keys(_.props),X=0;X<U.length;X++){var ie=U[X];if(ie!=="children"&&ie!=="key"){nt(_),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),nt(null);break}}_.ref!==null&&(nt(_),m("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}}var We={};function lt(_,U,X,ie,Pe,$e){{var _e=T(_);if(!_e){var Ie="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(Ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mt=ke();mt?Ie+=mt:Ie+=Be();var tt;_===null?tt="null":Me(_)?tt="array":_!==void 0&&_.$$typeof===t?(tt="<"+(M(_.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):tt=typeof _,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",tt,Ie)}var ze=ve(_,U,X,Pe,$e);if(ze==null)return ze;if(_e){var $t=U.children;if($t!==void 0)if(ie)if(Me($t)){for(var qt=0;qt<$t.length;qt++)Ue($t[qt],_);Object.freeze&&Object.freeze($t)}else m("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 Ue($t,_)}if(ce.call(U,"key")){var Wt=M(_),gt=Object.keys(U).filter(function(Xt){return Xt!=="key"}),Rr=gt.length>0?"{key: someKey, "+gt.join(": ..., ")+": ...}":"{key: someKey}";if(!We[Wt+Rr]){var qr=gt.length>0?"{"+gt.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,yr,zt,Dr,zt),He[zt+yr]=!0}}return _===n?ke(ze):pt(ze),ze}}function ht(_,G,X){return st(_,G,X,!0)}function Rt(_,G,X){return st(_,G,X,!1)}var Dt=Rt,kt=ht;Jn.Fragment=n,Jn.jsx=Dt,Jn.jsxs=kt}()),Jn}process.env.NODE_ENV==="production"?ji.exports=Pv():ji.exports=_v();var wt=ji.exports,$u={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,Rr,Wt,qr,Wt),We[Wt+Rr]=!0}}return _===n?He(ze):bt(ze),ze}}function St(_,U,X){return lt(_,U,X,!0)}function Tt(_,U,X){return lt(_,U,X,!1)}var Ht=Tt,Kt=St;wa.Fragment=n,wa.jsx=Ht,wa.jsxs=Kt}()),wa}process.env.NODE_ENV==="production"?Ts.exports=Om():Ts.exports=Rm();var Rt=Ts.exports,Jd={exports:{}};/*!
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})($u);var Nv=$u.exports;const Y=wu(Nv);function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(null,arguments)}var Fi={exports:{}},lt={};/**
34
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Jd);var Pm=Jd.exports;const Z=Qd(Pm);function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(null,arguments)}var Is={exports:{}},ct={};/**
35
35
  * @license React
36
36
  * react-is.production.min.js
37
37
  *
@@ -39,7 +39,7 @@ React keys must be passed directly to JSX without using spread:
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var Ol;function Tv(){if(Ol)return lt;Ol=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(m){if(typeof m=="object"&&m!==null){var S=m.$$typeof;switch(S){case e:switch(m=m.type,m){case r:case a:case n:case u:case d:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case l:case v:case f:case o:return m;default:return S}}case t:return S}}}return lt.ContextConsumer=i,lt.ContextProvider=o,lt.Element=e,lt.ForwardRef=l,lt.Fragment=r,lt.Lazy=v,lt.Memo=f,lt.Portal=t,lt.Profiler=a,lt.StrictMode=n,lt.Suspense=u,lt.SuspenseList=d,lt.isAsyncMode=function(){return!1},lt.isConcurrentMode=function(){return!1},lt.isContextConsumer=function(m){return p(m)===i},lt.isContextProvider=function(m){return p(m)===o},lt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},lt.isForwardRef=function(m){return p(m)===l},lt.isFragment=function(m){return p(m)===r},lt.isLazy=function(m){return p(m)===v},lt.isMemo=function(m){return p(m)===f},lt.isPortal=function(m){return p(m)===t},lt.isProfiler=function(m){return p(m)===a},lt.isStrictMode=function(m){return p(m)===n},lt.isSuspense=function(m){return p(m)===u},lt.isSuspenseList=function(m){return p(m)===d},lt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===a||m===n||m===u||m===d||m===b||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===f||m.$$typeof===o||m.$$typeof===i||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},lt.typeOf=p,lt}var ct={};/**
42
+ */var Fc;function _m(){if(Fc)return ct;Fc=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(p){if(typeof p=="object"&&p!==null){var S=p.$$typeof;switch(S){case e:switch(p=p.type,p){case r:case a:case n:case c:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case i:case l:case v:case f:case o:return p;default:return S}}case t:return S}}}return ct.ContextConsumer=i,ct.ContextProvider=o,ct.Element=e,ct.ForwardRef=l,ct.Fragment=r,ct.Lazy=v,ct.Memo=f,ct.Portal=t,ct.Profiler=a,ct.StrictMode=n,ct.Suspense=c,ct.SuspenseList=d,ct.isAsyncMode=function(){return!1},ct.isConcurrentMode=function(){return!1},ct.isContextConsumer=function(p){return g(p)===i},ct.isContextProvider=function(p){return g(p)===o},ct.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ct.isForwardRef=function(p){return g(p)===l},ct.isFragment=function(p){return g(p)===r},ct.isLazy=function(p){return g(p)===v},ct.isMemo=function(p){return g(p)===f},ct.isPortal=function(p){return g(p)===t},ct.isProfiler=function(p){return g(p)===a},ct.isStrictMode=function(p){return g(p)===n},ct.isSuspense=function(p){return g(p)===c},ct.isSuspenseList=function(p){return g(p)===d},ct.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===a||p===n||p===c||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===f||p.$$typeof===o||p.$$typeof===i||p.$$typeof===l||p.$$typeof===h||p.getModuleId!==void 0)},ct.typeOf=g,ct}var ut={};/**
43
43
  * @license React
44
44
  * react-is.development.js
45
45
  *
@@ -47,18 +47,18 @@ React keys must be passed directly to JSX without using spread:
47
47
  *
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
- */var Rl;function Iv(){return Rl||(Rl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=!1,p=!1,m=!1,S=!1,g=!1,y;y=Symbol.for("react.module.reference");function E(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||g||B===n||B===u||B===d||S||B===b||h||p||m||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===f||B.$$typeof===o||B.$$typeof===i||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function C(B){if(typeof B=="object"&&B!==null){var ce=B.$$typeof;switch(ce){case e:var se=B.type;switch(se){case r:case a:case n:case u:case d:return se;default:var Ce=se&&se.$$typeof;switch(Ce){case s:case i:case l:case v:case f:case o:return Ce;default:return ce}}case t:return ce}}}var x=i,R=o,w=e,$=l,T=r,F=v,j=f,A=t,M=a,H=n,N=u,O=d,I=!1,D=!1;function V(B){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return C(B)===i}function W(B){return C(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Q(B){return C(B)===l}function Z(B){return C(B)===r}function J(B){return C(B)===v}function te(B){return C(B)===f}function ae(B){return C(B)===t}function fe(B){return C(B)===a}function de(B){return C(B)===n}function ve(B){return C(B)===u}function we(B){return C(B)===d}ct.ContextConsumer=x,ct.ContextProvider=R,ct.Element=w,ct.ForwardRef=$,ct.Fragment=T,ct.Lazy=F,ct.Memo=j,ct.Portal=A,ct.Profiler=M,ct.StrictMode=H,ct.Suspense=N,ct.SuspenseList=O,ct.isAsyncMode=V,ct.isConcurrentMode=k,ct.isContextConsumer=K,ct.isContextProvider=W,ct.isElement=q,ct.isForwardRef=Q,ct.isFragment=Z,ct.isLazy=J,ct.isMemo=te,ct.isPortal=ae,ct.isProfiler=fe,ct.isStrictMode=de,ct.isSuspense=ve,ct.isSuspenseList=we,ct.isValidElementType=E,ct.typeOf=C}()),ct}process.env.NODE_ENV==="production"?Fi.exports=Tv():Fi.exports=Iv();var la=Fi.exports;function $r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return P.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat($r(n)):la.isFragment(n)&&n.props?r=r.concat($r(n.props.children,t)):r.push(n))}),r}var Li={},Ws=[],Mv=function(t){Ws.push(t)};function _n(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ws.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Av(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ws.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Ou(){Li={}}function Ru(e,t,r){!t&&!Li[r]&&(e(!1,r),Li[r]=!0)}function at(e,t){Ru(_n,e,t)}function jv(e,t){Ru(Av,e,t)}at.preMessage=Mv;at.resetWarned=Ou;at.noteOnce=jv;function Te(e){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(e)}function Fv(e,t){if(Te(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Te(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pu(e){var t=Fv(e,"string");return Te(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Pu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function va(e){return e instanceof HTMLElement||e instanceof SVGElement}function Lv(e){return e&&Te(e)==="object"&&va(e.nativeElement)?e.nativeElement:va(e)?e:null}function ao(e){var t=Lv(e);if(t)return t;if(e instanceof P.Component){var r;return(r=Pn.findDOMNode)===null||r===void 0?void 0:r.call(Pn,e)}return null}function To(e,t,r){var n=c.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Gs=function(t,r){typeof t=="function"?t(r):Te(t)==="object"&&t&&"current"in t&&(t.current=r)},Or=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Gs(i,o)})}},_a=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return To(function(){return Or.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},on=function(t){var r,n,a=la.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==la.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==la.ForwardRef)};function _l(e){return P.isValidElement(e)&&!la.isFragment(e)}Number(P.version.split(".")[0])>=19;var Di=c.createContext(null);function Dv(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(Di),i=c.useCallback(function(s,l,u){n.current+=1;var d=n.current;a.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,u)},[r,o]);return c.createElement(Di.Provider,{value:i},t)}var _u=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),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(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),zi=typeof window<"u"&&typeof document<"u"&&window.document===document,po=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),zv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(po):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Vv=2;function Bv(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){zv(o)}function s(){var l=Date.now();if(r){if(l-a<Vv)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var kv=20,Hv=["top","right","bottom","left","width","height","size","weight"],Wv=typeof MutationObserver<"u",Gv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Bv(this.refresh.bind(this),kv)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!zi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Wv?(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(){!zi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Hv.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Nu=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Nn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||po},Tu=Io(0,0,0,0);function ho(e){return parseFloat(e)||0}function Nl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+ho(o)},0)}function Uv(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=ho(i)}return r}function Kv(e){var t=e.getBBox();return Io(0,0,t.width,t.height)}function qv(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Tu;var n=Nn(e).getComputedStyle(e),a=Uv(n),o=a.left+a.right,i=a.top+a.bottom,s=ho(n.width),l=ho(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Nl(n,"left","right")+o),Math.round(l+i)!==r&&(l-=Nl(n,"top","bottom")+i)),!Yv(e)){var u=Math.round(s+o)-t,d=Math.round(l+i)-r;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return Io(a.left,a.top,s,l)}var Xv=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Nn(e).SVGGraphicsElement}:function(e){return e instanceof Nn(e).SVGElement&&typeof e.getBBox=="function"}}();function Yv(e){return e===Nn(e).document.documentElement}function Qv(e){return zi?Xv(e)?Kv(e):qv(e):Tu}function Zv(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return Nu(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function Io(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Jv=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Io(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Qv(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),em=function(){function e(t,r){var n=Zv(r);Nu(this,{target:t,contentRect:n})}return e}(),tm=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new _u,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Jv(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new em(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Iu=typeof WeakMap<"u"?new WeakMap:new _u,Mu=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Gv.getInstance(),n=new tm(t,r,this);Iu.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Mu.prototype[e]=function(){var t;return(t=Iu.get(this))[e].apply(t,arguments)}});var rm=function(){return typeof po.ResizeObserver<"u"?po.ResizeObserver:Mu}(),Mr=new Map;function Au(e){e.forEach(function(t){var r,n=t.target;(r=Mr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var ju=new rm(Au);process.env.NODE_ENV;process.env.NODE_ENV;function nm(e,t){Mr.has(e)||(Mr.set(e,new Set),ju.observe(e)),Mr.get(e).add(t)}function am(e,t){Mr.has(e)&&(Mr.get(e).delete(t),Mr.get(e).size||(ju.unobserve(e),Mr.delete(e)))}function jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pu(n.key),n)}}function Ft(e,t,r){return t&&Tl(e.prototype,t),r&&Tl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ma(e,t){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ma(e,t)}function qr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ma(e,t)}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ga(e)}function Us(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Us=function(){return!!e})()}function We(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function om(e,t){if(t&&(Te(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function Xr(e){var t=Us();return function(){var r,n=ga(e);if(t){var a=ga(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return om(this,r)}}var im=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function sm(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(Di),s=typeof r=="function",l=s?r(a):r,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&on(l),f=d?l.ref:null,v=_a(f,a),b=function(){var S;return ao(a.current)||(a.current&&Te(a.current)==="object"?ao((S=a.current)===null||S===void 0?void 0:S.nativeElement):null)||ao(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(m){var S=h.current,g=S.onResize,y=S.data,E=m.getBoundingClientRect(),C=E.width,x=E.height,R=m.offsetWidth,w=m.offsetHeight,$=Math.floor(C),T=Math.floor(x);if(u.current.width!==$||u.current.height!==T||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var F={width:$,height:T,offsetWidth:R,offsetHeight:w};u.current=F;var j=R===Math.round(C)?C:R,A=w===Math.round(x)?x:w,M=z(z({},F),{},{offsetWidth:j,offsetHeight:A});i==null||i(M,m,y),g&&Promise.resolve().then(function(){g(M,m)})}},[]);return c.useEffect(function(){var m=b();return m&&!n&&nm(m,p),function(){return am(m,p)}},[a.current,n]),c.createElement(im,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Fu=c.forwardRef(sm);process.env.NODE_ENV!=="production"&&(Fu.displayName="SingleObserver");var lm="rc-observer-key";function cm(e,t){var r=e.children,n=typeof r=="function"?[r]:$r(r);return process.env.NODE_ENV!=="production"&&(n.length>1?_n(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&_n(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(lm,"-").concat(o);return c.createElement(Fu,Oe({},e,{key:i,ref:o===0?t:void 0}),a)})}var vr=c.forwardRef(cm);process.env.NODE_ENV!=="production"&&(vr.displayName="ResizeObserver");vr.Collection=Dv;function hr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Vi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function um(e){if(Array.isArray(e))return Vi(e)}function Lu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ks(e,t){if(e){if(typeof e=="string")return Vi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vi(e,t):void 0}}function dm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e){return um(e)||Lu(e)||Ks(e)||dm()}var Du=function(t){return+setTimeout(t,16)},zu=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Du=function(t){return window.requestAnimationFrame(t)},zu=function(t){return window.cancelAnimationFrame(t)});var Il=0,Mo=new Map;function Vu(e){Mo.delete(e)}var _t=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Il+=1;var n=Il;function a(o){if(o===0)Vu(n),t();else{var i=Du(function(){a(o-1)});Mo.set(n,i)}}return a(r),n};_t.cancel=function(e){var t=Mo.get(e);return Vu(e),zu(t)};process.env.NODE_ENV!=="production"&&(_t.ids=function(){return Mo});function Bu(e){if(Array.isArray(e))return e}function fm(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function ku(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Bu(e)||fm(e,t)||Ks(e,t)||ku()}function pa(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Kt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vm(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Ml="data-rc-order",Al="data-rc-priority",mm="rc-util-key",Bi=new Map;function Hu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):mm}function Ao(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function gm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function qs(e){return Array.from((Bi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Wu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Kt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=gm(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Ml,i),s&&o&&l.setAttribute(Al,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Ao(t),d=u.firstChild;if(n){if(s){var f=(t.styles||qs(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Ml)))return!1;var b=Number(v.getAttribute(Al)||0);return o>=b});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function Gu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ao(t);return(t.styles||qs(r)).find(function(n){return n.getAttribute(Hu(t))===e})}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Gu(e,t);if(r){var n=Ao(t);n.removeChild(r)}}function pm(e,t){var r=Bi.get(e);if(!r||!vm(document,r)){var n=Wu("",t),a=n.parentNode;Bi.set(e,a),e.removeChild(n)}}function Ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ao(r),a=qs(n),o=z(z({},r),{},{styles:a});pm(n,o);var i=Gu(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Wu(e,o);return d.setAttribute(Hu(o),t),d}function hm(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Je(e,t){if(e==null)return{};var r,n,a=hm(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ba(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(at(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d<o.length;d++)if(!a(o[d],i[d],u))return!1;return!0}if(o&&i&&Te(o)==="object"&&Te(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],u)})}return!1}return a(e,t)}var bm="%";function ki(e){return e.join(bm)}var ym=function(){function e(t){jt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Ft(e,[{key:"get",value:function(r){return this.opGet(ki(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(ki(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),Tn="data-token-hash",mr="data-css-hash",Sm="data-cache-path",Gr="__cssinjs_instance__";function Cm(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(mr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Gr]=a[Gr]||e,a[Gr]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(mr,"]"))).forEach(function(a){var o=a.getAttribute(mr);if(n[o]){if(a[Gr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new ym(e)}var Em=c.createContext({hashPriority:"low",cache:Cm(),defaultCache:!0});const jo=Em;function xm(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Xs=function(){function e(){jt(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ft(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=U(u,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=U(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(u,d){if(d===r.length-1)l.set(u,{value:[n,a.cacheCallTimes++]});else{var f=l.get(u);f?f.map||(f.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!xm(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(Xs,"MAX_CACHE_SIZE",20);L(Xs,"MAX_CACHE_OFFSET",5);var jl=0,Uu=function(){function e(t){jt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=jl,t.length===0&&_n(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),jl+=1}return Ft(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ri=new Xs;function Hi(e){var t=Array.isArray(e)?e:[e];return ri.has(t)||ri.set(t,new Uu(t)),ri.get(t)}var wm=new WeakMap,ni={};function $m(e,t){for(var r=wm,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(ni)||r.set(ni,e()),r.get(ni)}var Fl=new WeakMap;function ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Fl.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof Uu?r+=a.id:a&&Te(a)==="object"?r+=ca(a,t):r+=a}),t&&(r=pa(r)),Fl.set(e,r)),r}function Ll(e,t){return pa("".concat(t,"_").concat(ca(e,!0)))}var Wi=Kt();function ee(e){return typeof e=="number"?"".concat(e,"px"):e}function bo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=z(z({},n),{},L(L({},Tn,t),mr,r)),i=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var oo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},Om=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=U(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Ku=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,u=U(i,2),d=u[0],f=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var v,b=oo(d,n==null?void 0:n.prefix);a[b]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,Om(a,r,{scope:n==null?void 0:n.scope})]},Dl=process.env.NODE_ENV!=="test"&&Kt()?c.useLayoutEffect:c.useEffect,yt=function(t,r){var n=c.useRef(!0);Dl(function(){return t(n.current)},r),Dl(function(){return n.current=!1,function(){n.current=!0}},[])},Gi=function(t,r){yt(function(n){if(!n)return t()},r)},Rm=z({},c),zl=Rm.useInsertionEffect,Pm=function(t,r,n){c.useMemo(t,n),yt(function(){return r(!0)},n)},_m=zl?function(e,t,r){return zl(function(){return e(),t()},r)}:Pm;const Nm=_m;var Tm=z({},c),Im=Tm.useInsertionEffect,Mm=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&_n(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return c.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},Am=function(){return function(t){t()}},jm=typeof Im<"u"?Mm:Am;const Fm=jm;function Lm(){return!1}var Ui=!1;function Dm(){return Ui}const zm=process.env.NODE_ENV==="production"?Lm:Dm;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ai=window;if(typeof ai.webpackHotUpdate=="function"){var Vm=ai.webpackHotUpdate;ai.webpackHotUpdate=function(){return Ui=!0,setTimeout(function(){Ui=!1},0),Vm.apply(void 0,arguments)}}}function Ys(e,t,r,n,a){var o=c.useContext(jo),i=o.cache,s=[e].concat(ye(t)),l=ki(s),u=Fm([l]),d=zm(),f=function(p){i.opUpdate(l,function(m){var S=m||[void 0,void 0],g=U(S,2),y=g[0],E=y===void 0?0:y,C=g[1],x=C;process.env.NODE_ENV!=="production"&&C&&d&&(n==null||n(x,d),x=null);var R=x||r(),w=[E,R];return p?p(w):w})};c.useMemo(function(){f()},[l]);var v=i.opGet(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(l));var b=v[1];return Nm(function(){a==null||a(b)},function(h){return f(function(p){var m=U(p,2),S=m[0],g=m[1];return h&&S===0&&(a==null||a(b)),[S+1,g]}),function(){i.opUpdate(l,function(p){var m=p||[],S=U(m,2),g=S[0],y=g===void 0?0:g,E=S[1],C=y-1;return C===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(E,!1))}),null):[y-1,E]})}},[l]),b}var Bm={},km=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tn=new Map;function Hm(e){tn.set(e,(tn.get(e)||0)+1)}function Wm(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Tn,'="').concat(e,'"]'));r.forEach(function(n){if(n[Gr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Gm=0;function Um(e,t){tn.set(e,(tn.get(e)||0)-1);var r=Array.from(tn.keys()),n=r.filter(function(a){var o=tn.get(a)||0;return o<=0});r.length-n.length>Gm&&n.forEach(function(a){Wm(a,t),tn.delete(a)})}var Km=function(t,r,n,a){var o=n.getDerivativeToken(t),i=z(z({},o),r);return a&&(i=a(i)),i},qu="token";function qm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(jo),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?Bm:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=$m(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),h=ca(b),p=ca(u),m=v?ca(v):"",S=Ys(qu,[s,e.id,h,p,m],function(){var g,y=f?f(b,u,e):Km(b,u,e,d),E=z({},y),C="";if(v){var x=Ku(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(x,2);y=R[0],C=R[1]}var w=Ll(y,s);y._tokenKey=w,E._tokenKey=Ll(E,s);var $=(g=v==null?void 0:v.key)!==null&&g!==void 0?g:w;y._themeKey=$,Hm($);var T="".concat(km,"-").concat(pa(w));return y._hashId=T,[y,T,E,C,(v==null?void 0:v.key)||""]},function(g){Um(g[0]._themeKey,a)},function(g){var y=U(g,4),E=y[0],C=y[3];if(v&&C){var x=Ar(C,pa("css-variables-".concat(E._themeKey)),{mark:mr,prepend:"queue",attachTo:o,priority:-999});x[Gr]=a,x.setAttribute(Tn,E._themeKey)}});return S}var Xm=function(t,r,n){var a=U(t,5),o=a[2],i=a[3],s=a[4],l=n||{},u=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=bo(i,s,d,v,u);return[f,d,b]},Ym={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},Xu="comm",Yu="rule",Qu="decl",Qm="@import",Zm="@keyframes",Jm="@layer",Zu=Math.abs,Qs=String.fromCharCode;function Ju(e){return e.trim()}function io(e,t,r){return e.replace(t,r)}function eg(e,t,r){return e.indexOf(t,r)}function ya(e,t){return e.charCodeAt(t)|0}function In(e,t,r){return e.slice(t,r)}function xr(e){return e.length}function tg(e){return e.length}function Ba(e,t){return t.push(e),e}var Fo=1,Mn=1,ed=0,ir=0,Ot=0,Dn="";function Zs(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Fo,column:Mn,length:i,return:"",siblings:s}}function rg(){return Ot}function ng(){return Ot=ir>0?ya(Dn,--ir):0,Mn--,Ot===10&&(Mn=1,Fo--),Ot}function gr(){return Ot=ir<ed?ya(Dn,ir++):0,Mn++,Ot===10&&(Mn=1,Fo++),Ot}function Ur(){return ya(Dn,ir)}function so(){return ir}function Lo(e,t){return In(Dn,e,t)}function Sa(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 ag(e){return Fo=Mn=1,ed=xr(Dn=e),ir=0,[]}function og(e){return Dn="",e}function oi(e){return Ju(Lo(ir-1,Ki(e===91?e+2:e===40?e+1:e)))}function ig(e){for(;(Ot=Ur())&&Ot<33;)gr();return Sa(e)>2||Sa(Ot)>3?"":" "}function sg(e,t){for(;--t&&gr()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Lo(e,so()+(t<6&&Ur()==32&&gr()==32))}function Ki(e){for(;gr();)switch(Ot){case e:return ir;case 34:case 39:e!==34&&e!==39&&Ki(Ot);break;case 40:e===41&&Ki(e);break;case 92:gr();break}return ir}function lg(e,t){for(;gr()&&e+Ot!==57;)if(e+Ot===84&&Ur()===47)break;return"/*"+Lo(t,ir-1)+"*"+Qs(e===47?e:gr())}function cg(e){for(;!Sa(Ur());)gr();return Lo(e,ir)}function ug(e){return og(lo("",null,null,null,[""],e=ag(e),0,[0],e))}function lo(e,t,r,n,a,o,i,s,l){for(var u=0,d=0,f=i,v=0,b=0,h=0,p=1,m=1,S=1,g=0,y="",E=a,C=o,x=n,R=y;m;)switch(h=g,g=gr()){case 40:if(h!=108&&ya(R,f-1)==58){eg(R+=io(oi(g),"&","&\f"),"&\f",Zu(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=oi(g);break;case 9:case 10:case 13:case 32:R+=ig(h);break;case 92:R+=sg(so()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Ba(dg(lg(gr(),so()),t,r,l),l),(Sa(h||1)==5||Sa(Ur()||1)==5)&&xr(R)&&In(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=xr(R)*S;case 125*p:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+d:S==-1&&(R=io(R,/\f/g,"")),b>0&&(xr(R)-f||p===0&&h===47)&&Ba(b>32?Bl(R+";",n,r,f-1,l):Bl(io(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(Ba(x=Vl(R,t,r,u,d,a,s,y,E=[],C=[],f,o),o),g===123)if(d===0)lo(R,t,x,x,E,o,f,s,C);else switch(v===99&&ya(R,3)===110?100:v){case 100:case 108:case 109:case 115:lo(e,x,x,n&&Ba(Vl(e,x,x,0,0,a,s,y,a,E=[],f,C),C),a,C,f,s,n?E:C);break;default:lo(R,x,x,x,[""],C,0,s,C)}}u=d=b=0,p=S=1,y=R="",f=i;break;case 58:f=1+xr(R),b=h;default:if(p<1){if(g==123)--p;else if(g==125&&p++==0&&ng()==125)continue}switch(R+=Qs(g),g*p){case 38:S=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(xr(R)-1)*S,S=1;break;case 64:Ur()===45&&(R+=oi(gr())),v=Ur(),d=f=xr(y=R+=cg(so())),g++;break;case 45:h===45&&xr(R)==2&&(p=0)}}return o}function Vl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=tg(b),p=0,m=0,S=0;p<n;++p)for(var g=0,y=In(e,v+1,v=Zu(m=i[p])),E=e;g<h;++g)(E=Ju(m>0?b[g]+" "+y:io(y,/&\f/g,b[g])))&&(l[S++]=E);return Zs(e,t,r,a===0?Yu:s,l,u,d,f)}function dg(e,t,r,n){return Zs(e,t,r,Xu,Qs(rg()),In(e,2,-2),0,n)}function Bl(e,t,r,n,a){return Zs(e,t,r,Qu,In(e,0,n),In(e,n+1,-1),n,a)}function qi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function fg(e,t,r,n){switch(e.type){case Jm:if(e.children.length)break;case Qm:case Qu:return e.return=e.return||e.value;case Xu:return"";case Zm:return e.return=e.value+"{"+qi(e.children,n)+"}";case Yu:if(!xr(e.value=e.props.join(",")))return""}return xr(r=qi(e.children,n))?e.return=e.value+"{"+r+"}":""}function td(e,t){var r=t.path,n=t.parentSelectors;at(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var vg=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&td("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},mg=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&td("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},kl="data-ant-cssinjs-cache-path",rd="_FILE_STYLE__",an,nd=!0;function gg(){if(!an&&(an={},Kt())){var e=document.createElement("div");e.className=kl,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(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=U(o,2),s=i[0],l=i[1];an[s]=l});var r=document.querySelector("style[".concat(kl,"]"));if(r){var n;nd=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function pg(e){return gg(),!!an[e]}function hg(e){var t=an[e],r=null;if(t&&Kt())if(nd)r=rd;else{var n=document.querySelector("style[".concat(mr,'="').concat(an[e],'"]'));n?r=n.innerHTML:delete an[e]}return[r,t]}var ad="_skip_check_",od="_multi_value_";function co(e){var t=qi(ug(e),fg);return t.replace(/\{%%%\:[^;];}/g,";")}function bg(e){return Te(e)==="object"&&e&&(ad in e||od in e)}function Hl(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),u=l[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(ye(l.slice(1))).join(" ")});return o.join(",")}var yg=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,u=r.path,d=r.hashPriority,f=r.transformers,v=f===void 0?[]:f,b=r.linters,h=b===void 0?[]:b,p="",m={};function S(E){var C=E.getName(s);if(!m[C]){var x=e(E.style,r,{root:!1,parentSelectors:i}),R=U(x,1),w=R[0];m[C]="@keyframes ".concat(E.getName(s)).concat(w)}}function g(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(x){Array.isArray(x)?g(x,C):x&&C.push(x)}),C}var y=g(Array.isArray(t)?t:[t]);return y.forEach(function(E){var C=typeof E=="string"&&!a?{}:E;if(typeof C=="string")p+="".concat(C,`
53
- `);else if(C._keyframe)S(C);else{var x=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},C);Object.keys(x).forEach(function(R){var w=x[R];if(Te(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!bg(w)){var $=!1,T=R.trim(),F=!1;(a||o)&&s?T.startsWith("@")?$=!0:T==="&"?T=Hl("",s,d):T=Hl(R,s,d):a&&!s&&(T==="&"||T==="")&&(T="",F=!0);var j=e(w,r,{root:F,injectHash:$,parentSelectors:[].concat(ye(i),[T])}),A=U(j,2),M=A[0],H=A[1];m=z(z({},m),H),p+="".concat(T).concat(M)}else{let I=function(D,V){process.env.NODE_ENV!=="production"&&(Te(w)!=="object"||!(w!=null&&w[ad]))&&[vg,mg].concat(ye(h)).forEach(function(W){return W(D,V,{path:u,hashId:s,parentSelectors:i})});var k=D.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=V;!Ym[D]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),D==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(S(V),K=V.getName(s)),p+="".concat(k,":").concat(K,";")};var N,O=(N=w==null?void 0:w.value)!==null&&N!==void 0?N:w;Te(w)==="object"&&w!==null&&w!==void 0&&w[od]&&Array.isArray(O)?O.forEach(function(D){I(R,D)}):I(R,O)}})}}),a?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(l.name,";")}).join(`
54
- `))):p="{".concat(p,"}"),[p,m]};function id(e,t){return pa("".concat(e.join("%")).concat(t))}function Sg(){return null}var sd="style";function Xi(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(jo),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,m=d.ssrInline,S=d.transformers,g=d.linters,y=d.cache,E=d.layer,C=r._tokenKey,x=[C];E&&x.push("layer"),x.push.apply(x,ye(n));var R=Wi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=Ys(sd,x,function(){var A=x.join("|");if(pg(A)){var M=hg(A),H=U(M,2),N=H[0],O=H[1];if(N)return[N,C,O,{},s,u]}var I=t(),D=yg(I,{hashId:a,hashPriority:h,layer:E?o:void 0,path:n.join("-"),transformers:S,linters:g}),V=U(D,2),k=V[0],K=V[1],W=co(k),q=id(x,W);return[W,C,q,K,s,u]},function(A,M){var H=U(A,3),N=H[2];(M||f)&&Wi&&ha(N,{mark:mr})},function(A){var M=U(A,4),H=M[0];M[1];var N=M[2],O=M[3];if(R&&H!==rd){var I={mark:mr,prepend:E?!1:"queue",attachTo:p,priority:u},D=typeof i=="function"?i():i;D&&(I.csp={nonce:D});var V=[],k=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):k.push(W)}),V.forEach(function(W){Ar(co(O[W]),"_layer-".concat(W),z(z({},I),{},{prepend:!0}))});var K=Ar(H,N,I);K[Gr]=y.instanceId,K.setAttribute(Tn,C),process.env.NODE_ENV!=="production"&&K.setAttribute(Sm,x.join("|")),k.forEach(function(W){Ar(co(O[W]),"_effect-".concat(W),I)})}}),$=U(w,3),T=$[0],F=$[1],j=$[2];return function(A){var M;return!m||R||!b?M=c.createElement(Sg,null):M=c.createElement("style",Oe({},L(L({},Tn,F),mr,j),{dangerouslySetInnerHTML:{__html:T}})),c.createElement(c.Fragment,null,M,A)}}var Cg=function(t,r,n){var a=U(t,6),o=a[0],i=a[1],s=a[2],l=a[3],u=a[4],d=a[5],f=n||{},v=f.plain;if(u)return null;var b=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=bo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var m=co(l[p]),S=bo(m,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=S+b:b+=S}}),[d,s,b]},ld="cssVar",Eg=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=P.useContext(jo),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(ye(t.path),[n,u,b]),p=Ys(ld,h,function(){var m=r(),S=Ku(m,n,{prefix:a,unitless:o,ignore:i,scope:u}),g=U(S,2),y=g[0],E=g[1],C=id(h,E);return[y,E,C,n]},function(m){var S=U(m,3),g=S[2];Wi&&ha(g,{mark:mr})},function(m){var S=U(m,3),g=S[1],y=S[2];if(g){var E=Ar(g,y,{mark:mr,prepend:"queue",attachTo:v,priority:-999});E[Gr]=f,E.setAttribute(Tn,n)}});return p},xg=function(t,r,n){var a=U(t,4),o=a[1],i=a[2],s=a[3],l=n||{},u=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=bo(o,s,i,f,u);return[d,i,v]};L(L(L({},sd,Cg),qu,Xm),ld,xg);var $t=function(){function e(t,r){jt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Ft(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function fn(e){return e.notSplit=!0,e}fn(["borderTop","borderBottom"]),fn(["borderTop"]),fn(["borderBottom"]),fn(["borderLeft","borderRight"]),fn(["borderLeft"]),fn(["borderRight"]);var Js=P.createContext({});function wg(e){return Bu(e)||Lu(e)||Ks(e)||ku()}function wr(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function cd(e,t,r,n){if(!t.length)return r;var a=wg(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ye(e):s=z({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=cd(s[o],i,r,n),s}function dr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!wr(e,t.slice(0,-1))?e:cd(e,t,r,n)}function $g(e){return Te(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wl(e){return Array.isArray(e)?[]:{}}var Og=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function xn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Wl(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=wr(a,i),d=Array.isArray(u);if(d||$g(u)){if(!l.has(u)){l.add(u);var f=wr(n,i);d?n=dr(n,i,[]):(!f||Te(f)!=="object")&&(n=dr(n,i,Wl(u))),Og(u).forEach(function(v){o([].concat(ye(i),[v]),l)})}}else n=dr(n,i,u)}o([])}),n}function ud(){}let Ir=null;function Rg(){Ir=null,Ou()}let zn=ud;process.env.NODE_ENV!=="production"&&(zn=(e,t,r)=>{at(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Rg()});const dd=c.createContext({}),It=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(dd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Ir;Ir||(Ir={}),Ir[e]=Ir[e]||[],Ir[e].includes(o||"")||Ir[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ir)}else process.env.NODE_ENV!=="production"&&zn(n,e,o)};return r.deprecated=(n,a,o,i)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=ud,e},Pg=P.createContext(void 0);var _g={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"},Ng={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Tg=z(z({},Ng),{},{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 fd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Gl={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"]},Tg),timePickerLocale:Object.assign({},fd)},Yt="${label} is not a valid ${type}",An={locale:"en",Pagination:_g,DatePicker:Gl,TimePicker:fd,Calendar:Gl,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:Yt,method:Yt,array:Yt,object:Yt,number:Yt,date:Yt,boolean:Yt,integer:Yt,float:Yt,regexp:Yt,email:Yt,url:Yt,hex:Yt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},An.Modal);let uo=[];const Ul=()=>uo.reduce((e,t)=>Object.assign(Object.assign({},e),t),An.Modal);function Ig(e){if(e){const t=Object.assign({},e);return uo.push(t),Ul(),()=>{uo=uo.filter(r=>r!==t),Ul()}}Object.assign({},An.Modal)}const el=P.createContext(void 0),Mg=(e,t)=>{const r=c.useContext(el),n=c.useMemo(()=>{var o;const i=An[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?An.locale:o},[r]);return[n,a]},vd="internalMark",md=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=It("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===vd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Ig(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(el.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(md.displayName="LocaleProvider");function At(e,t){Ag(e)&&(e="100%");var r=jg(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ka(e){return Math.min(1,Math.max(0,e))}function Ag(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jg(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ha(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rn(e){return e.length===1?"0"+e:String(e)}function Fg(e,t,r){return{r:At(e,255)*255,g:At(t,255)*255,b:At(r,255)*255}}function Kl(e,t,r){e=At(e,255),t=At(t,255),r=At(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function ii(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Lg(e,t,r){var n,a,o;if(e=At(e,360),t=At(t,100),r=At(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=ii(s,i,e+1/3),a=ii(s,i,e),o=ii(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Yi(e,t,r){e=At(e,255),t=At(t,255),r=At(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function Dg(e,t,r){e=At(e,360)*6,t=At(t,100),r=At(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,i,o,o,s,r][l],d=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:u*255,g:d*255,b:f*255}}function Qi(e,t,r,n){var a=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function zg(e,t,r,n,a){var o=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16)),rn(Vg(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Vg(e){return Math.round(parseFloat(e)*255).toString(16)}function ql(e){return Zt(e)/255}function Zt(e){return parseInt(e,16)}function Bg(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zi={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 En(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Wg(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=Fg(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nr(e.h)&&Nr(e.s)&&Nr(e.v)?(n=Ha(e.s),a=Ha(e.v),t=Dg(e.h,n,a),i=!0,s="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(n=Ha(e.s),o=Ha(e.l),t=Lg(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=gd(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var kg="[-\\+]?\\d+%?",Hg="[-\\+]?\\d*\\.\\d+%?",Kr="(?:".concat(Hg,")|(?:").concat(kg,")"),si="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),li="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),ur={CSS_UNIT:new RegExp(Kr),rgb:new RegExp("rgb"+si),rgba:new RegExp("rgba"+li),hsl:new RegExp("hsl"+si),hsla:new RegExp("hsla"+li),hsv:new RegExp("hsv"+si),hsva:new RegExp("hsva"+li),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 Wg(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zi[e])e=Zi[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ur.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ur.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ur.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ur.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ur.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ur.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ur.hex8.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),a:ql(r[4]),format:t?"name":"hex8"}:(r=ur.hex6.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),format:t?"name":"hex"}:(r=ur.hex4.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),a:ql(r[4]+r[4]),format:t?"name":"hex8"}:(r=ur.hex3.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return!!ur.CSS_UNIT.exec(String(e))}var Jt=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Bg(t)),this.originalInput=t;var a=En(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=gd(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Yi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Yi(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Kl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Kl(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Qi(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),zg(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(At(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(At(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Qi(this.r,this.g,this.b,!1),r=0,n=Object.entries(Zi);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ka(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ka(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ka(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ka(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Wa=2,Xl=.16,Gg=.05,Ug=.05,Kg=.15,pd=5,hd=4,qg=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Yl(e){var t=e.r,r=e.g,n=e.b,a=Yi(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ga(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Qi(t,r,n,!1))}function Xg(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function Ql(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Wa*t:Math.round(e.h)+Wa*t:n=r?Math.round(e.h)+Wa*t:Math.round(e.h)-Wa*t,n<0?n+=360:n>=360&&(n-=360),n}function Zl(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Xl*t:t===hd?n=e.s+Xl:n=e.s+Gg*t,n>1&&(n=1),r&&t===pd&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Jl(e,t,r){var n;return r?n=e.v+Ug*t:n=e.v-Kg*t,n>1&&(n=1),Number(n.toFixed(2))}function Ca(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=En(e),a=pd;a>0;a-=1){var o=Yl(n),i=Ga(En({h:Ql(o,a,!0),s:Zl(o,a,!0),v:Jl(o,a,!0)}));r.push(i)}r.push(Ga(n));for(var s=1;s<=hd;s+=1){var l=Yl(n),u=Ga(En({h:Ql(l,s),s:Zl(l,s),v:Jl(l,s)}));r.push(u)}return t.theme==="dark"?qg.map(function(d){var f=d.index,v=d.opacity,b=Ga(Xg(En(t.backgroundColor||"#141414"),En(r[f]),v*100));return b}):r}var ci={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"},Ji=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ji.primary=Ji[5];var es=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];es.primary=es[5];var ts=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ts.primary=ts[5];var yo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yo.primary=yo[5];var rs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rs.primary=rs[5];var ns=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ns.primary=ns[5];var as=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];as.primary=as[5];var os=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];os.primary=os[5];var So=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];So.primary=So[5];var is=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];is.primary=is[5];var ss=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ss.primary=ss[5];var ls=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ls.primary=ls[5];var cs=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];cs.primary=cs[5];var ui={red:Ji,volcano:es,orange:ts,gold:yo,yellow:rs,lime:ns,green:as,cyan:os,blue:So,geekblue:is,purple:ss,magenta:ls,grey:cs};const bd={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"},Ea=Object.assign(Object.assign({},bd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
50
+ */var Lc;function Nm(){return Lc||(Lc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=!1,g=!1,p=!1,S=!1,m=!1,y;y=Symbol.for("react.module.reference");function E(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===c||B===d||S||B===b||h||g||p||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===f||B.$$typeof===o||B.$$typeof===i||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function C(B){if(typeof B=="object"&&B!==null){var fe=B.$$typeof;switch(fe){case e:var ce=B.type;switch(ce){case r:case a:case n:case c:case d:return ce;default:var Ce=ce&&ce.$$typeof;switch(Ce){case s:case i:case l:case v:case f:case o:return Ce;default:return fe}}case t:return fe}}}var x=i,w=o,$=e,O=l,T=r,F=v,j=f,M=t,A=a,H=n,N=c,R=d,I=!1,D=!1;function k(B){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(B){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(B){return C(B)===i}function W(B){return C(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return C(B)===l}function Q(B){return C(B)===r}function J(B){return C(B)===v}function ee(B){return C(B)===f}function re(B){return C(B)===t}function de(B){return C(B)===a}function se(B){return C(B)===n}function le(B){return C(B)===c}function we(B){return C(B)===d}ut.ContextConsumer=x,ut.ContextProvider=w,ut.Element=$,ut.ForwardRef=O,ut.Fragment=T,ut.Lazy=F,ut.Memo=j,ut.Portal=M,ut.Profiler=A,ut.StrictMode=H,ut.Suspense=N,ut.SuspenseList=R,ut.isAsyncMode=k,ut.isConcurrentMode=V,ut.isContextConsumer=G,ut.isContextProvider=W,ut.isElement=q,ut.isForwardRef=Y,ut.isFragment=Q,ut.isLazy=J,ut.isMemo=ee,ut.isPortal=re,ut.isProfiler=de,ut.isStrictMode=se,ut.isSuspense=le,ut.isSuspenseList=we,ut.isValidElementType=E,ut.typeOf=C}()),ut}process.env.NODE_ENV==="production"?Is.exports=_m():Is.exports=Nm();var Aa=Is.exports;function Ar(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return P.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Ar(n)):Aa.isFragment(n)&&n.props?r=r.concat(Ar(n.props.children,t)):r.push(n))}),r}var Ms={},ql=[],Tm=function(t){ql.push(t)};function Un(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ql.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Im(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ql.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function ef(){Ms={}}function tf(e,t,r){!t&&!Ms[r]&&(e(!1,r),Ms[r]=!0)}function ot(e,t){tf(Un,e,t)}function Mm(e,t){tf(Im,e,t)}ot.preMessage=Tm;ot.resetWarned=ef;ot.noteOnce=Mm;function Te(e){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(e)}function Am(e,t){if(Te(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Te(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rf(e){var t=Am(e,"string");return Te(t)=="symbol"?t:t+""}function L(e,t,r){return(t=rf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dc(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Va(e){return e instanceof HTMLElement||e instanceof SVGElement}function jm(e){return e&&Te(e)==="object"&&Va(e.nativeElement)?e.nativeElement:Va(e)?e:null}function Lo(e){var t=jm(e);if(t)return t;if(e instanceof P.Component){var r;return(r=Gn.findDOMNode)===null||r===void 0?void 0:r.call(Gn,e)}return null}function hi(e,t,r){var n=u.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Xl=function(t,r){typeof t=="function"?t(r):Te(t)==="object"&&t&&"current"in t&&(t.current=r)},jr=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Xl(i,o)})}},no=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hi(function(){return jr.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},En=function(t){var r,n,a=Aa.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==Aa.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==Aa.ForwardRef)};function zc(e){return P.isValidElement(e)&&!Aa.isFragment(e)}Number(P.version.split(".")[0])>=19;var As=u.createContext(null);function Fm(e){var t=e.children,r=e.onBatchResize,n=u.useRef(0),a=u.useRef([]),o=u.useContext(As),i=u.useCallback(function(s,l,c){n.current+=1;var d=n.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){d===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,c)},[r,o]);return u.createElement(As.Provider,{value:i},t)}var nf=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),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(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),js=typeof window<"u"&&typeof document<"u"&&window.document===document,Jo=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Lm=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Jo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Dm=2;function zm(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){Lm(o)}function s(){var l=Date.now();if(r){if(l-a<Dm)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var km=20,Vm=["top","right","bottom","left","width","height","size","weight"],Bm=typeof MutationObserver<"u",Hm=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=zm(this.refresh.bind(this),km)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!js||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Bm?(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(){!js||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Vm.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),af=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Kn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Jo},of=bi(0,0,0,0);function ei(e){return parseFloat(e)||0}function kc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+ei(o)},0)}function Wm(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=ei(i)}return r}function Gm(e){var t=e.getBBox();return bi(0,0,t.width,t.height)}function Um(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return of;var n=Kn(e).getComputedStyle(e),a=Wm(n),o=a.left+a.right,i=a.top+a.bottom,s=ei(n.width),l=ei(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=kc(n,"left","right")+o),Math.round(l+i)!==r&&(l-=kc(n,"top","bottom")+i)),!qm(e)){var c=Math.round(s+o)-t,d=Math.round(l+i)-r;Math.abs(c)!==1&&(s-=c),Math.abs(d)!==1&&(l-=d)}return bi(a.left,a.top,s,l)}var Km=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Kn(e).SVGGraphicsElement}:function(e){return e instanceof Kn(e).SVGElement&&typeof e.getBBox=="function"}}();function qm(e){return e===Kn(e).document.documentElement}function Xm(e){return js?Km(e)?Gm(e):Um(e):of}function Ym(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return af(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function bi(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Zm=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=bi(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Xm(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Qm=function(){function e(t,r){var n=Ym(r);af(this,{target:t,contentRect:n})}return e}(),Jm=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new nf,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Kn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Zm(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Kn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Qm(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),sf=typeof WeakMap<"u"?new WeakMap:new nf,lf=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Hm.getInstance(),n=new Jm(t,r,this);sf.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){lf.prototype[e]=function(){var t;return(t=sf.get(this))[e].apply(t,arguments)}});var eg=function(){return typeof Jo.ResizeObserver<"u"?Jo.ResizeObserver:lf}(),Hr=new Map;function cf(e){e.forEach(function(t){var r,n=t.target;(r=Hr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var uf=new eg(cf);process.env.NODE_ENV;process.env.NODE_ENV;function tg(e,t){Hr.has(e)||(Hr.set(e,new Set),uf.observe(e)),Hr.get(e).add(t)}function rg(e,t){Hr.has(e)&&(Hr.get(e).delete(t),Hr.get(e).size||(uf.unobserve(e),Hr.delete(e)))}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rf(n.key),n)}}function Vt(e,t,r){return t&&Vc(e.prototype,t),r&&Vc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ba(e,t){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ba(e,t)}function on(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ba(e,t)}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ha(e)}function Yl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yl=function(){return!!e})()}function Ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ng(e,t){if(t&&(Te(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function sn(e){var t=Yl();return function(){var r,n=Ha(e);if(t){var a=Ha(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return ng(this,r)}}var ag=function(e){on(r,e);var t=sn(r);function r(){return kt(this,r),t.apply(this,arguments)}return Vt(r,[{key:"render",value:function(){return this.props.children}}]),r}(u.Component);function og(e,t){var r=e.children,n=e.disabled,a=u.useRef(null),o=u.useRef(null),i=u.useContext(As),s=typeof r=="function",l=s?r(a):r,c=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&u.isValidElement(l)&&En(l),f=d?l.ref:null,v=no(f,a),b=function(){var S;return Lo(a.current)||(a.current&&Te(a.current)==="object"?Lo((S=a.current)===null||S===void 0?void 0:S.nativeElement):null)||Lo(o.current)};u.useImperativeHandle(t,function(){return b()});var h=u.useRef(e);h.current=e;var g=u.useCallback(function(p){var S=h.current,m=S.onResize,y=S.data,E=p.getBoundingClientRect(),C=E.width,x=E.height,w=p.offsetWidth,$=p.offsetHeight,O=Math.floor(C),T=Math.floor(x);if(c.current.width!==O||c.current.height!==T||c.current.offsetWidth!==w||c.current.offsetHeight!==$){var F={width:O,height:T,offsetWidth:w,offsetHeight:$};c.current=F;var j=w===Math.round(C)?C:w,M=$===Math.round(x)?x:$,A=z(z({},F),{},{offsetWidth:j,offsetHeight:M});i==null||i(A,p,y),m&&Promise.resolve().then(function(){m(A,p)})}},[]);return u.useEffect(function(){var p=b();return p&&!n&&tg(p,g),function(){return rg(p,g)}},[a.current,n]),u.createElement(ag,{ref:o},d?u.cloneElement(l,{ref:v}):l)}var df=u.forwardRef(og);process.env.NODE_ENV!=="production"&&(df.displayName="SingleObserver");var ig="rc-observer-key";function sg(e,t){var r=e.children,n=typeof r=="function"?[r]:Ar(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Un(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Un(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(ig,"-").concat(o);return u.createElement(df,Oe({},e,{key:i,ref:o===0?t:void 0}),a)})}var Sr=u.forwardRef(sg);process.env.NODE_ENV!=="production"&&(Sr.displayName="ResizeObserver");Sr.Collection=Fm;function $r(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Fs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lg(e){if(Array.isArray(e))return Fs(e)}function ff(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zl(e,t){if(e){if(typeof e=="string")return Fs(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fs(e,t):void 0}}function cg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
51
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e){return lg(e)||ff(e)||Zl(e)||cg()}var vf=function(t){return+setTimeout(t,16)},pf=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(vf=function(t){return window.requestAnimationFrame(t)},pf=function(t){return window.cancelAnimationFrame(t)});var Bc=0,yi=new Map;function mf(e){yi.delete(e)}var Mt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Bc+=1;var n=Bc;function a(o){if(o===0)mf(n),t();else{var i=vf(function(){a(o-1)});yi.set(n,i)}}return a(r),n};Mt.cancel=function(e){var t=yi.get(e);return mf(e),pf(t)};process.env.NODE_ENV!=="production"&&(Mt.ids=function(){return yi});function gf(e){if(Array.isArray(e))return e}function ug(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function hf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(e,t){return gf(e)||ug(e,t)||Zl(e,t)||hf()}function Wa(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Qt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function dg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Hc="data-rc-order",Wc="data-rc-priority",fg="rc-util-key",Ls=new Map;function bf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):fg}function Si(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function vg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ql(e){return Array.from((Ls.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Qt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=vg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Hc,i),s&&o&&l.setAttribute(Wc,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=Si(t),d=c.firstChild;if(n){if(s){var f=(t.styles||Ql(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Hc)))return!1;var b=Number(v.getAttribute(Wc)||0);return o>=b});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}function Sf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Si(t);return(t.styles||Ql(r)).find(function(n){return n.getAttribute(bf(t))===e})}function Ga(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Sf(e,t);if(r){var n=Si(t);n.removeChild(r)}}function pg(e,t){var r=Ls.get(e);if(!r||!dg(document,r)){var n=yf("",t),a=n.parentNode;Ls.set(e,a),e.removeChild(n)}}function Wr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Si(r),a=Ql(n),o=z(z({},r),{},{styles:a});pg(n,o);var i=Sf(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=yf(e,o);return d.setAttribute(bf(o),t),d}function mg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function et(e,t){if(e==null)return{};var r,n,a=mg(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ua(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(ot(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d<o.length;d++)if(!a(o[d],i[d],c))return!1;return!0}if(o&&i&&Te(o)==="object"&&Te(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],c)})}return!1}return a(e,t)}var gg="%";function Ds(e){return e.join(gg)}var hg=function(){function e(t){kt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Vt(e,[{key:"get",value:function(r){return this.opGet(Ds(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Ds(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),qn="data-token-hash",Cr="data-css-hash",bg="data-cache-path",rn="__cssinjs_instance__";function yg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Cr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[rn]=a[rn]||e,a[rn]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Cr,"]"))).forEach(function(a){var o=a.getAttribute(Cr);if(n[o]){if(a[rn]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new hg(e)}var Sg=u.createContext({hashPriority:"low",cache:yg(),defaultCache:!0});const Ci=Sg;function Cg(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Jl=function(){function e(){kt(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Vt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,d){var f=K(c,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=K(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,d){if(d===r.length-1)l.set(c,{value:[n,a.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Cg(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(Jl,"MAX_CACHE_SIZE",20);L(Jl,"MAX_CACHE_OFFSET",5);var Gc=0,Cf=function(){function e(t){kt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Gc,t.length===0&&Un(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Gc+=1}return Vt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),qi=new Jl;function zs(e){var t=Array.isArray(e)?e:[e];return qi.has(t)||qi.set(t,new Cf(t)),qi.get(t)}var Eg=new WeakMap,Xi={};function xg(e,t){for(var r=Eg,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(Xi)||r.set(Xi,e()),r.get(Xi)}var Uc=new WeakMap;function ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Uc.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof Cf?r+=a.id:a&&Te(a)==="object"?r+=ja(a,t):r+=a}),t&&(r=Wa(r)),Uc.set(e,r)),r}function Kc(e,t){return Wa("".concat(t,"_").concat(ja(e,!0)))}var ks=Qt();function te(e){return typeof e=="number"?"".concat(e,"px"):e}function ti(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=z(z({},n),{},L(L({},qn,t),Cr,r)),i=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Do=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},wg=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=K(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Ef=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,c=K(i,2),d=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var v,b=Do(d,n==null?void 0:n.prefix);a[b]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,wg(a,r,{scope:n==null?void 0:n.scope})]},qc=process.env.NODE_ENV!=="test"&&Qt()?u.useLayoutEffect:u.useEffect,Et=function(t,r){var n=u.useRef(!0);qc(function(){return t(n.current)},r),qc(function(){return n.current=!1,function(){n.current=!0}},[])},Vs=function(t,r){Et(function(n){if(!n)return t()},r)},$g=z({},u),Xc=$g.useInsertionEffect,Og=function(t,r,n){u.useMemo(t,n),Et(function(){return r(!0)},n)},Rg=Xc?function(e,t,r){return Xc(function(){return e(),t()},r)}:Og;const Pg=Rg;var _g=z({},u),Ng=_g.useInsertionEffect,Tg=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&Un(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return u.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},Ig=function(){return function(t){t()}},Mg=typeof Ng<"u"?Tg:Ig;const Ag=Mg;function jg(){return!1}var Bs=!1;function Fg(){return Bs}const Lg=process.env.NODE_ENV==="production"?jg:Fg;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Yi=window;if(typeof Yi.webpackHotUpdate=="function"){var Dg=Yi.webpackHotUpdate;Yi.webpackHotUpdate=function(){return Bs=!0,setTimeout(function(){Bs=!1},0),Dg.apply(void 0,arguments)}}}function ec(e,t,r,n,a){var o=u.useContext(Ci),i=o.cache,s=[e].concat(ye(t)),l=Ds(s),c=Ag([l]),d=Lg(),f=function(g){i.opUpdate(l,function(p){var S=p||[void 0,void 0],m=K(S,2),y=m[0],E=y===void 0?0:y,C=m[1],x=C;process.env.NODE_ENV!=="production"&&C&&d&&(n==null||n(x,d),x=null);var w=x||r(),$=[E,w];return g?g($):$})};u.useMemo(function(){f()},[l]);var v=i.opGet(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(l));var b=v[1];return Pg(function(){a==null||a(b)},function(h){return f(function(g){var p=K(g,2),S=p[0],m=p[1];return h&&S===0&&(a==null||a(b)),[S+1,m]}),function(){i.opUpdate(l,function(g){var p=g||[],S=K(p,2),m=S[0],y=m===void 0?0:m,E=S[1],C=y-1;return C===0?(c(function(){(h||!i.opGet(l))&&(n==null||n(E,!1))}),null):[y-1,E]})}},[l]),b}var zg={},kg=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",vn=new Map;function Vg(e){vn.set(e,(vn.get(e)||0)+1)}function Bg(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(qn,'="').concat(e,'"]'));r.forEach(function(n){if(n[rn]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Hg=0;function Wg(e,t){vn.set(e,(vn.get(e)||0)-1);var r=Array.from(vn.keys()),n=r.filter(function(a){var o=vn.get(a)||0;return o<=0});r.length-n.length>Hg&&n.forEach(function(a){Bg(a,t),vn.delete(a)})}var Gg=function(t,r,n,a){var o=n.getDerivativeToken(t),i=z(z({},o),r);return a&&(i=a(i)),i},xf="token";function Ug(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(Ci),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,c=l===void 0?zg:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=xg(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),h=ja(b),g=ja(c),p=v?ja(v):"",S=ec(xf,[s,e.id,h,g,p],function(){var m,y=f?f(b,c,e):Gg(b,c,e,d),E=z({},y),C="";if(v){var x=Ef(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),w=K(x,2);y=w[0],C=w[1]}var $=Kc(y,s);y._tokenKey=$,E._tokenKey=Kc(E,s);var O=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:$;y._themeKey=O,Vg(O);var T="".concat(kg,"-").concat(Wa($));return y._hashId=T,[y,T,E,C,(v==null?void 0:v.key)||""]},function(m){Wg(m[0]._themeKey,a)},function(m){var y=K(m,4),E=y[0],C=y[3];if(v&&C){var x=Wr(C,Wa("css-variables-".concat(E._themeKey)),{mark:Cr,prepend:"queue",attachTo:o,priority:-999});x[rn]=a,x.setAttribute(qn,E._themeKey)}});return S}var Kg=function(t,r,n){var a=K(t,5),o=a[2],i=a[3],s=a[4],l=n||{},c=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=ti(i,s,d,v,c);return[f,d,b]},qg={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},wf="comm",$f="rule",Of="decl",Xg="@import",Yg="@keyframes",Zg="@layer",Rf=Math.abs,tc=String.fromCharCode;function Pf(e){return e.trim()}function zo(e,t,r){return e.replace(t,r)}function Qg(e,t,r){return e.indexOf(t,r)}function Ka(e,t){return e.charCodeAt(t)|0}function Xn(e,t,r){return e.slice(t,r)}function Tr(e){return e.length}function Jg(e){return e.length}function go(e,t){return t.push(e),e}var Ei=1,Yn=1,_f=0,fr=0,_t=0,sa="";function rc(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Ei,column:Yn,length:i,return:"",siblings:s}}function eh(){return _t}function th(){return _t=fr>0?Ka(sa,--fr):0,Yn--,_t===10&&(Yn=1,Ei--),_t}function Er(){return _t=fr<_f?Ka(sa,fr++):0,Yn++,_t===10&&(Yn=1,Ei++),_t}function nn(){return Ka(sa,fr)}function ko(){return fr}function xi(e,t){return Xn(sa,e,t)}function qa(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 rh(e){return Ei=Yn=1,_f=Tr(sa=e),fr=0,[]}function nh(e){return sa="",e}function Zi(e){return Pf(xi(fr-1,Hs(e===91?e+2:e===40?e+1:e)))}function ah(e){for(;(_t=nn())&&_t<33;)Er();return qa(e)>2||qa(_t)>3?"":" "}function oh(e,t){for(;--t&&Er()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return xi(e,ko()+(t<6&&nn()==32&&Er()==32))}function Hs(e){for(;Er();)switch(_t){case e:return fr;case 34:case 39:e!==34&&e!==39&&Hs(_t);break;case 40:e===41&&Hs(e);break;case 92:Er();break}return fr}function ih(e,t){for(;Er()&&e+_t!==57;)if(e+_t===84&&nn()===47)break;return"/*"+xi(t,fr-1)+"*"+tc(e===47?e:Er())}function sh(e){for(;!qa(nn());)Er();return xi(e,fr)}function lh(e){return nh(Vo("",null,null,null,[""],e=rh(e),0,[0],e))}function Vo(e,t,r,n,a,o,i,s,l){for(var c=0,d=0,f=i,v=0,b=0,h=0,g=1,p=1,S=1,m=0,y="",E=a,C=o,x=n,w=y;p;)switch(h=m,m=Er()){case 40:if(h!=108&&Ka(w,f-1)==58){Qg(w+=zo(Zi(m),"&","&\f"),"&\f",Rf(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:w+=Zi(m);break;case 9:case 10:case 13:case 32:w+=ah(h);break;case 92:w+=oh(ko()-1,7);continue;case 47:switch(nn()){case 42:case 47:go(ch(ih(Er(),ko()),t,r,l),l),(qa(h||1)==5||qa(nn()||1)==5)&&Tr(w)&&Xn(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*g:s[c++]=Tr(w)*S;case 125*g:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+d:S==-1&&(w=zo(w,/\f/g,"")),b>0&&(Tr(w)-f||g===0&&h===47)&&go(b>32?Zc(w+";",n,r,f-1,l):Zc(zo(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(go(x=Yc(w,t,r,c,d,a,s,y,E=[],C=[],f,o),o),m===123)if(d===0)Vo(w,t,x,x,E,o,f,s,C);else switch(v===99&&Ka(w,3)===110?100:v){case 100:case 108:case 109:case 115:Vo(e,x,x,n&&go(Yc(e,x,x,0,0,a,s,y,a,E=[],f,C),C),a,C,f,s,n?E:C);break;default:Vo(w,x,x,x,[""],C,0,s,C)}}c=d=b=0,g=S=1,y=w="",f=i;break;case 58:f=1+Tr(w),b=h;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&th()==125)continue}switch(w+=tc(m),m*g){case 38:S=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(Tr(w)-1)*S,S=1;break;case 64:nn()===45&&(w+=Zi(Er())),v=nn(),d=f=Tr(y=w+=sh(ko())),m++;break;case 45:h===45&&Tr(w)==2&&(g=0)}}return o}function Yc(e,t,r,n,a,o,i,s,l,c,d,f){for(var v=a-1,b=a===0?o:[""],h=Jg(b),g=0,p=0,S=0;g<n;++g)for(var m=0,y=Xn(e,v+1,v=Rf(p=i[g])),E=e;m<h;++m)(E=Pf(p>0?b[m]+" "+y:zo(y,/&\f/g,b[m])))&&(l[S++]=E);return rc(e,t,r,a===0?$f:s,l,c,d,f)}function ch(e,t,r,n){return rc(e,t,r,wf,tc(eh()),Xn(e,2,-2),0,n)}function Zc(e,t,r,n,a){return rc(e,t,r,Of,Xn(e,0,n),Xn(e,n+1,-1),n,a)}function Ws(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function uh(e,t,r,n){switch(e.type){case Zg:if(e.children.length)break;case Xg:case Of:return e.return=e.return||e.value;case wf:return"";case Yg:return e.return=e.value+"{"+Ws(e.children,n)+"}";case $f:if(!Tr(e.value=e.props.join(",")))return""}return Tr(r=Ws(e.children,n))?e.return=e.value+"{"+r+"}":""}function Nf(e,t){var r=t.path,n=t.parentSelectors;ot(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var dh=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&Nf("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},fh=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&Nf("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Qc="data-ant-cssinjs-cache-path",Tf="_FILE_STYLE__",bn,If=!0;function vh(){if(!bn&&(bn={},Qt())){var e=document.createElement("div");e.className=Qc,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(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=K(o,2),s=i[0],l=i[1];bn[s]=l});var r=document.querySelector("style[".concat(Qc,"]"));if(r){var n;If=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function ph(e){return vh(),!!bn[e]}function mh(e){var t=bn[e],r=null;if(t&&Qt())if(If)r=Tf;else{var n=document.querySelector("style[".concat(Cr,'="').concat(bn[e],'"]'));n?r=n.innerHTML:delete bn[e]}return[r,t]}var Mf="_skip_check_",Af="_multi_value_";function Bo(e){var t=Ws(lh(e),uh);return t.replace(/\{%%%\:[^;];}/g,";")}function gh(e){return Te(e)==="object"&&e&&(Mf in e||Af in e)}function Jc(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",d=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(d).concat(a).concat(c.slice(d.length)),[c].concat(ye(l.slice(1))).join(" ")});return o.join(",")}var hh=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,d=r.hashPriority,f=r.transformers,v=f===void 0?[]:f,b=r.linters,h=b===void 0?[]:b,g="",p={};function S(E){var C=E.getName(s);if(!p[C]){var x=e(E.style,r,{root:!1,parentSelectors:i}),w=K(x,1),$=w[0];p[C]="@keyframes ".concat(E.getName(s)).concat($)}}function m(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(x){Array.isArray(x)?m(x,C):x&&C.push(x)}),C}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(E){var C=typeof E=="string"&&!a?{}:E;if(typeof C=="string")g+="".concat(C,`
53
+ `);else if(C._keyframe)S(C);else{var x=v.reduce(function(w,$){var O;return($==null||(O=$.visit)===null||O===void 0?void 0:O.call($,w))||w},C);Object.keys(x).forEach(function(w){var $=x[w];if(Te($)==="object"&&$&&(w!=="animationName"||!$._keyframe)&&!gh($)){var O=!1,T=w.trim(),F=!1;(a||o)&&s?T.startsWith("@")?O=!0:T==="&"?T=Jc("",s,d):T=Jc(w,s,d):a&&!s&&(T==="&"||T==="")&&(T="",F=!0);var j=e($,r,{root:F,injectHash:O,parentSelectors:[].concat(ye(i),[T])}),M=K(j,2),A=M[0],H=M[1];p=z(z({},p),H),g+="".concat(T).concat(A)}else{let I=function(D,k){process.env.NODE_ENV!=="production"&&(Te($)!=="object"||!($!=null&&$[Mf]))&&[dh,fh].concat(ye(h)).forEach(function(W){return W(D,k,{path:c,hashId:s,parentSelectors:i})});var V=D.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),G=k;!qg[D]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),D==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(S(k),G=k.getName(s)),g+="".concat(V,":").concat(G,";")};var N,R=(N=$==null?void 0:$.value)!==null&&N!==void 0?N:$;Te($)==="object"&&$!==null&&$!==void 0&&$[Af]&&Array.isArray(R)?R.forEach(function(D){I(w,D)}):I(w,R)}})}}),a?l&&(g="@layer ".concat(l.name," {").concat(g,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(l.name,";")}).join(`
54
+ `))):g="{".concat(g,"}"),[g,p]};function jf(e,t){return Wa("".concat(e.join("%")).concat(t))}function bh(){return null}var Ff="style";function Gs(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,d=u.useContext(Ci),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,g=d.container,p=d.ssrInline,S=d.transformers,m=d.linters,y=d.cache,E=d.layer,C=r._tokenKey,x=[C];E&&x.push("layer"),x.push.apply(x,ye(n));var w=ks;process.env.NODE_ENV!=="production"&&v!==void 0&&(w=v==="client");var $=ec(Ff,x,function(){var M=x.join("|");if(ph(M)){var A=mh(M),H=K(A,2),N=H[0],R=H[1];if(N)return[N,C,R,{},s,c]}var I=t(),D=hh(I,{hashId:a,hashPriority:h,layer:E?o:void 0,path:n.join("-"),transformers:S,linters:m}),k=K(D,2),V=k[0],G=k[1],W=Bo(V),q=jf(x,W);return[W,C,q,G,s,c]},function(M,A){var H=K(M,3),N=H[2];(A||f)&&ks&&Ga(N,{mark:Cr})},function(M){var A=K(M,4),H=A[0];A[1];var N=A[2],R=A[3];if(w&&H!==Tf){var I={mark:Cr,prepend:E?!1:"queue",attachTo:g,priority:c},D=typeof i=="function"?i():i;D&&(I.csp={nonce:D});var k=[],V=[];Object.keys(R).forEach(function(W){W.startsWith("@layer")?k.push(W):V.push(W)}),k.forEach(function(W){Wr(Bo(R[W]),"_layer-".concat(W),z(z({},I),{},{prepend:!0}))});var G=Wr(H,N,I);G[rn]=y.instanceId,G.setAttribute(qn,C),process.env.NODE_ENV!=="production"&&G.setAttribute(bg,x.join("|")),V.forEach(function(W){Wr(Bo(R[W]),"_effect-".concat(W),I)})}}),O=K($,3),T=O[0],F=O[1],j=O[2];return function(M){var A;return!p||w||!b?A=u.createElement(bh,null):A=u.createElement("style",Oe({},L(L({},qn,F),Cr,j),{dangerouslySetInnerHTML:{__html:T}})),u.createElement(u.Fragment,null,A,M)}}var yh=function(t,r,n){var a=K(t,6),o=a[0],i=a[1],s=a[2],l=a[3],c=a[4],d=a[5],f=n||{},v=f.plain;if(c)return null;var b=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=ti(o,i,s,h,v),l&&Object.keys(l).forEach(function(g){if(!r[g]){r[g]=!0;var p=Bo(l[g]),S=ti(p,i,"_effect-".concat(g),h,v);g.startsWith("@layer")?b=S+b:b+=S}}),[d,s,b]},Lf="cssVar",Sh=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,d=P.useContext(Ci),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(ye(t.path),[n,c,b]),g=ec(Lf,h,function(){var p=r(),S=Ef(p,n,{prefix:a,unitless:o,ignore:i,scope:c}),m=K(S,2),y=m[0],E=m[1],C=jf(h,E);return[y,E,C,n]},function(p){var S=K(p,3),m=S[2];ks&&Ga(m,{mark:Cr})},function(p){var S=K(p,3),m=S[1],y=S[2];if(m){var E=Wr(m,y,{mark:Cr,prepend:"queue",attachTo:v,priority:-999});E[rn]=f,E.setAttribute(qn,n)}});return g},Ch=function(t,r,n){var a=K(t,4),o=a[1],i=a[2],s=a[3],l=n||{},c=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=ti(o,s,i,f,c);return[d,i,v]};L(L(L({},Ff,yh),xf,Kg),Lf,Ch);var Pt=function(){function e(t,r){kt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Vt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function Pn(e){return e.notSplit=!0,e}Pn(["borderTop","borderBottom"]),Pn(["borderTop"]),Pn(["borderBottom"]),Pn(["borderLeft","borderRight"]),Pn(["borderLeft"]),Pn(["borderRight"]);var nc=P.createContext({});function Eh(e){return gf(e)||ff(e)||Zl(e)||hf()}function Mr(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function Df(e,t,r,n){if(!t.length)return r;var a=Eh(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ye(e):s=z({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=Df(s[o],i,r,n),s}function br(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Mr(e,t.slice(0,-1))?e:Df(e,t,r,n)}function xh(e){return Te(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function eu(e){return Array.isArray(e)?[]:{}}var wh=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function kn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=eu(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),c=Mr(a,i),d=Array.isArray(c);if(d||xh(c)){if(!l.has(c)){l.add(c);var f=Mr(n,i);d?n=br(n,i,[]):(!f||Te(f)!=="object")&&(n=br(n,i,eu(c))),wh(c).forEach(function(v){o([].concat(ye(i),[v]),l)})}}else n=br(n,i,c)}o([])}),n}function zf(){}let Vr=null;function $h(){Vr=null,ef()}let la=zf;process.env.NODE_ENV!=="production"&&(la=(e,t,r)=>{ot(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&$h()});const kf=u.createContext({}),Lt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=u.useContext(kf),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Vr;Vr||(Vr={}),Vr[e]=Vr[e]||[],Vr[e].includes(o||"")||Vr[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Vr)}else process.env.NODE_ENV!=="production"&&la(n,e,o)};return r.deprecated=(n,a,o,i)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=zf,e},Oh=P.createContext(void 0);var Rh={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"},Ph={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},_h=z(z({},Ph),{},{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 Vf={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},tu={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"]},_h),timePickerLocale:Object.assign({},Vf)},rr="${label} is not a valid ${type}",Zn={locale:"en",Pagination:Rh,DatePicker:tu,TimePicker:Vf,Calendar:tu,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:rr,method:rr,array:rr,object:rr,number:rr,date:rr,boolean:rr,integer:rr,float:rr,regexp:rr,email:rr,url:rr,hex:rr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Zn.Modal);let Ho=[];const ru=()=>Ho.reduce((e,t)=>Object.assign(Object.assign({},e),t),Zn.Modal);function Nh(e){if(e){const t=Object.assign({},e);return Ho.push(t),ru(),()=>{Ho=Ho.filter(r=>r!==t),ru()}}Object.assign({},Zn.Modal)}const ac=P.createContext(void 0),Th=(e,t)=>{const r=u.useContext(ac),n=u.useMemo(()=>{var o;const i=Zn[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=u.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?Zn.locale:o},[r]);return[n,a]},Bf="internalMark",Hf=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=Lt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===Bf,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}u.useEffect(()=>Nh(t==null?void 0:t.Modal),[t]);const a=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(ac.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(Hf.displayName="LocaleProvider");function zt(e,t){Ih(e)&&(e="100%");var r=Mh(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ho(e){return Math.min(1,Math.max(0,e))}function Ih(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Mh(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Wf(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function bo(e){return e<=1?"".concat(Number(e)*100,"%"):e}function mn(e){return e.length===1?"0"+e:String(e)}function Ah(e,t,r){return{r:zt(e,255)*255,g:zt(t,255)*255,b:zt(r,255)*255}}function nu(e,t,r){e=zt(e,255),t=zt(t,255),r=zt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function Qi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function jh(e,t,r){var n,a,o;if(e=zt(e,360),t=zt(t,100),r=zt(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=Qi(s,i,e+1/3),a=Qi(s,i,e),o=Qi(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Us(e,t,r){e=zt(e,255),t=zt(t,255),r=zt(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function Fh(e,t,r){e=zt(e,360)*6,t=zt(t,100),r=zt(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,c=[r,i,o,o,s,r][l],d=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:c*255,g:d*255,b:f*255}}function Ks(e,t,r,n){var a=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Lh(e,t,r,n,a){var o=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(r).toString(16)),mn(Dh(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Dh(e){return Math.round(parseFloat(e)*255).toString(16)}function au(e){return ar(e)/255}function ar(e){return parseInt(e,16)}function zh(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var qs={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 zn(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Bh(e)),typeof e=="object"&&(zr(e.r)&&zr(e.g)&&zr(e.b)?(t=Ah(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):zr(e.h)&&zr(e.s)&&zr(e.v)?(n=bo(e.s),a=bo(e.v),t=Fh(e.h,n,a),i=!0,s="hsv"):zr(e.h)&&zr(e.s)&&zr(e.l)&&(n=bo(e.s),o=bo(e.l),t=jh(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Wf(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var kh="[-\\+]?\\d+%?",Vh="[-\\+]?\\d*\\.\\d+%?",an="(?:".concat(Vh,")|(?:").concat(kh,")"),Ji="[\\s|\\(]+(".concat(an,")[,|\\s]+(").concat(an,")[,|\\s]+(").concat(an,")\\s*\\)?"),es="[\\s|\\(]+(".concat(an,")[,|\\s]+(").concat(an,")[,|\\s]+(").concat(an,")[,|\\s]+(").concat(an,")\\s*\\)?"),hr={CSS_UNIT:new RegExp(an),rgb:new RegExp("rgb"+Ji),rgba:new RegExp("rgba"+es),hsl:new RegExp("hsl"+Ji),hsla:new RegExp("hsla"+es),hsv:new RegExp("hsv"+Ji),hsva:new RegExp("hsva"+es),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 Bh(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qs[e])e=qs[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=hr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=hr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=hr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=hr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=hr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=hr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=hr.hex8.exec(e),r?{r:ar(r[1]),g:ar(r[2]),b:ar(r[3]),a:au(r[4]),format:t?"name":"hex8"}:(r=hr.hex6.exec(e),r?{r:ar(r[1]),g:ar(r[2]),b:ar(r[3]),format:t?"name":"hex"}:(r=hr.hex4.exec(e),r?{r:ar(r[1]+r[1]),g:ar(r[2]+r[2]),b:ar(r[3]+r[3]),a:au(r[4]+r[4]),format:t?"name":"hex8"}:(r=hr.hex3.exec(e),r?{r:ar(r[1]+r[1]),g:ar(r[2]+r[2]),b:ar(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function zr(e){return!!hr.CSS_UNIT.exec(String(e))}var or=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=zh(t)),this.originalInput=t;var a=zn(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Wf(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Us(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Us(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=nu(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=nu(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ks(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Lh(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(zt(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(zt(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ks(this.r,this.g,this.b,!1),r=0,n=Object.entries(qs);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ho(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ho(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ho(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ho(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),yo=2,ou=.16,Hh=.05,Wh=.05,Gh=.15,Gf=5,Uf=4,Uh=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function iu(e){var t=e.r,r=e.g,n=e.b,a=Us(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function So(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Ks(t,r,n,!1))}function Kh(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function su(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-yo*t:Math.round(e.h)+yo*t:n=r?Math.round(e.h)+yo*t:Math.round(e.h)-yo*t,n<0?n+=360:n>=360&&(n-=360),n}function lu(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-ou*t:t===Uf?n=e.s+ou:n=e.s+Hh*t,n>1&&(n=1),r&&t===Gf&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function cu(e,t,r){var n;return r?n=e.v+Wh*t:n=e.v-Gh*t,n>1&&(n=1),Number(n.toFixed(2))}function Xa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=zn(e),a=Gf;a>0;a-=1){var o=iu(n),i=So(zn({h:su(o,a,!0),s:lu(o,a,!0),v:cu(o,a,!0)}));r.push(i)}r.push(So(n));for(var s=1;s<=Uf;s+=1){var l=iu(n),c=So(zn({h:su(l,s),s:lu(l,s),v:cu(l,s)}));r.push(c)}return t.theme==="dark"?Uh.map(function(d){var f=d.index,v=d.opacity,b=So(Kh(zn(t.backgroundColor||"#141414"),zn(r[f]),v*100));return b}):r}var ts={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"},Xs=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Xs.primary=Xs[5];var Ys=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ys.primary=Ys[5];var Zs=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Zs.primary=Zs[5];var ri=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ri.primary=ri[5];var Qs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Qs.primary=Qs[5];var Js=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Js.primary=Js[5];var el=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];el.primary=el[5];var tl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];tl.primary=tl[5];var ni=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ni.primary=ni[5];var rl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];rl.primary=rl[5];var nl=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];nl.primary=nl[5];var al=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];al.primary=al[5];var ol=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ol.primary=ol[5];var rs={red:Xs,volcano:Ys,orange:Zs,gold:ri,yellow:Qs,lime:Js,green:el,cyan:tl,blue:ni,geekblue:rl,purple:nl,magenta:al,grey:ol};const Kf={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"},Ya=Object.assign(Object.assign({},Kf),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
55
55
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
56
- '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 Yg(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,f=r(l),v=r(a),b=r(o),h=r(i),p=r(s),m=n(u,d),S=e.colorLink||e.colorInfo,g=r(S);return Object.assign(Object.assign({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[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:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Qg=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}};function Zg(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},Qg(n))}const Jg=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function fo(e){return(e+8)/e}function ep(e){const t=new Array(10).fill(null).map((r,n)=>{const a=n-1,o=e*Math.pow(Math.E,a/5),i=n>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:fo(r)}))}const tp=e=>{const t=ep(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),a=r[1],o=r[0],i=r[2],s=n[1],l=n[0],u=n[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function rp(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Tr=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),ea=(e,t)=>new Jt(e).darken(t).toHexString(),np=e=>{const t=Ca(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]}},ap=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Tr(n,.88),colorTextSecondary:Tr(n,.65),colorTextTertiary:Tr(n,.45),colorTextQuaternary:Tr(n,.25),colorFill:Tr(n,.15),colorFillSecondary:Tr(n,.06),colorFillTertiary:Tr(n,.04),colorFillQuaternary:Tr(n,.02),colorBgLayout:ea(r,4),colorBgContainer:ea(r,0),colorBgElevated:ea(r,0),colorBgSpotlight:Tr(n,.85),colorBgBlur:"transparent",colorBorder:ea(r,15),colorBorderSecondary:ea(r,6)}};function op(e){ci.pink=ci.magenta,ui.pink=ui.magenta;const t=Object.keys(bd).map(r=>{const n=e[r]===ci[r]?ui[r]:Ca(e[r]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${r}-${i+1}`]=n[i],a[`${r}${i+1}`]=n[i],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Yg(e,{generateColorPalettes:np,generateNeutralColorPalettes:ap})),tp(e.fontSize)),rp(e)),Jg(e)),Zg(e))}const yd=Hi(op),us={token:Ea,override:{override:Ea},hashed:!0},Sd=P.createContext(us),Co="ant",Cd="anticon",ip=["outlined","borderless","filled"],sp=(e,t)=>t||(e?`${Co}-${e}`:Co),ot=c.createContext({getPrefixCls:sp,iconPrefixCls:Cd}),lp=`-ant-${Date.now()}-${Math.random()}`;function cp(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(i,s)=>{const l=new Jt(i),u=Ca(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=u[1],r[`${s}-color-hover`]=u[4],r[`${s}-color-active`]=u[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=u[0],r[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new Jt(t.primaryColor),s=Ca(i.toRgbString());s.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=n(i,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(i,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(i,u=>u.setAlpha(u.getAlpha()*.12));const l=new Jt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,u=>u.setAlpha(u.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
56
+ '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 qh(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,f=r(l),v=r(a),b=r(o),h=r(i),g=r(s),p=n(c,d),S=e.colorLink||e.colorInfo,m=r(S);return Object.assign(Object.assign({},p),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[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:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[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:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new or("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Xh=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}};function Yh(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},Xh(n))}const Zh=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Wo(e){return(e+8)/e}function Qh(e){const t=new Array(10).fill(null).map((r,n)=>{const a=n-1,o=e*Math.pow(Math.E,a/5),i=n>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:Wo(r)}))}const Jh=e=>{const t=Qh(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),a=r[1],o=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function e0(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const kr=(e,t)=>new or(e).setAlpha(t).toRgbString(),$a=(e,t)=>new or(e).darken(t).toHexString(),t0=e=>{const t=Xa(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]}},r0=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:kr(n,.88),colorTextSecondary:kr(n,.65),colorTextTertiary:kr(n,.45),colorTextQuaternary:kr(n,.25),colorFill:kr(n,.15),colorFillSecondary:kr(n,.06),colorFillTertiary:kr(n,.04),colorFillQuaternary:kr(n,.02),colorBgLayout:$a(r,4),colorBgContainer:$a(r,0),colorBgElevated:$a(r,0),colorBgSpotlight:kr(n,.85),colorBgBlur:"transparent",colorBorder:$a(r,15),colorBorderSecondary:$a(r,6)}};function n0(e){ts.pink=ts.magenta,rs.pink=rs.magenta;const t=Object.keys(Kf).map(r=>{const n=e[r]===ts[r]?rs[r]:Xa(e[r]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${r}-${i+1}`]=n[i],a[`${r}${i+1}`]=n[i],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),qh(e,{generateColorPalettes:t0,generateNeutralColorPalettes:r0})),Jh(e.fontSize)),e0(e)),Zh(e)),Yh(e))}const qf=zs(n0),il={token:Ya,override:{override:Ya},hashed:!0},Xf=P.createContext(il),ai="ant",Yf="anticon",a0=["outlined","borderless","filled"],o0=(e,t)=>t||(e?`${ai}-${e}`:ai),it=u.createContext({getPrefixCls:o0,iconPrefixCls:Yf}),i0=`-ant-${Date.now()}-${Math.random()}`;function s0(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(i,s)=>{const l=new or(i),c=Xa(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new or(t.primaryColor),s=Xa(i.toRgbString());s.forEach((c,d)=>{r[`primary-${d+1}`]=c}),r["primary-color-deprecated-l-35"]=n(i,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(i,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(i,c=>c.setAlpha(c.getAlpha()*.12));const l=new or(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setAlpha(c.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
57
57
  :root {
58
58
  ${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
59
59
  `)}
60
60
  }
61
- `.trim()}function up(e,t){const r=cp(e,t);Kt()?Ar(r,`${lp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const jn=c.createContext(!1),dp=e=>{let{children:t,disabled:r}=e;const n=c.useContext(jn);return c.createElement(jn.Provider,{value:r??n},t)},Fn=c.createContext(void 0),fp=e=>{let{children:t,size:r}=e;const n=c.useContext(Fn);return c.createElement(Fn.Provider,{value:r||n},t)};function vp(){const e=P.useContext(jn),t=P.useContext(Fn);return{componentDisabled:e,componentSize:t}}var Ed=Ft(function e(){jt(this,e)}),xd="CALC_UNIT",mp=new RegExp(xd,"g");function di(e){return typeof e=="number"?"".concat(e).concat(xd):e}var gp=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;jt(this,r),o=t.call(this),L(We(o),"result",""),L(We(o),"unitlessCssVar",void 0),L(We(o),"lowPriority",void 0);var i=Te(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=di(n):i==="string"&&(o.result=n),o}return Ft(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(di(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(di(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(l=!1),this.result=this.result.replace(mp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Ed),pp=function(e){qr(r,e);var t=Xr(r);function r(n){var a;return jt(this,r),a=t.call(this),L(We(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Ft(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(Ed),hp=function(t,r){var n=t==="css"?gp:pp;return function(a){return new n(a,r)}},ec=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Bt(e){var t=c.useRef();t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function xa(e){var t=c.useRef(!1),r=c.useState(e),n=U(r,2),a=n[0],o=n[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function fi(e){return e!==void 0}function or(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=xa(function(){return fi(a)?a:fi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=U(s,2),u=l[0],d=l[1],f=a!==void 0?a:u,v=i?i(f):f,b=Bt(o),h=xa([f]),p=U(h,2),m=p[0],S=p[1];Gi(function(){var y=m[0];u!==y&&b(u,y)},[m]),Gi(function(){fi(a)||d(a)},[a]);var g=Bt(function(y,E){d(y,E),S([f],E)});return[v,g]}function tc(e,t,r,n){var a=z({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=U(s,2),u=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&at(!(a!=null&&a[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),a!=null&&a[u]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a==null?void 0:a[u])}})}var i=z(z({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var wd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",ds=!0;function Lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!wd)return Object.assign.apply(Object,[{}].concat(t));ds=!1;var n={};return t.forEach(function(a){if(Te(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),ds=!0,n}var rc={};function bp(){}var yp=function(t){var r,n=t,a=bp;return wd&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return ds&&r.add(s),i[s]}}),a=function(i,s){var l;rc[i]={global:Array.from(r),component:z(z({},(l=rc[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function nc(e,t,r){if(typeof r=="function"){var n;return r(Lt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Sp(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return ee(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return ee(o)}).join(","),")")}}}var Cp=1e3*60*10,Ep=function(){function e(){jt(this,e),L(this,"map",new Map),L(this,"objectIDMap",new WeakMap),L(this,"nextID",0),L(this,"lastAccessBeat",new Map),L(this,"accessBeat",0)}return Ft(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&Te(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Te(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>Cp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ac=new Ep;function xp(e,t){return P.useMemo(function(){var r=ac.get(t);if(r)return r;var n=e();return ac.set(t,n),n},t)}var wp=function(){return{}};function $p(e){var t=e.useCSP,r=t===void 0?wp:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var m=Array.isArray(v)?v[0]:v;function S(w){return"".concat(String(m)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var g=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},E=z(z({},y),{},L({},S("zIndexPopup"),!0));Object.keys(g).forEach(function(w){E[S(w)]=g[w]});var C=z(z({},p),{},{unitless:E,prefixToken:S}),x=d(v,b,h,C),R=u(m,h,C);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,T=x(w,$),F=U(T,2),j=F[1],A=R($),M=U(A,2),H=M[0],N=M[1];return[H,j,N]}}function u(v,b,h){var p=h.unitless,m=h.injectStyle,S=m===void 0?!0:m,g=h.prefixToken,y=h.ignore,E=function(R){var w=R.rootCls,$=R.cssVar,T=$===void 0?{}:$,F=n(),j=F.realToken;return Eg({path:[v],prefix:T.prefix,key:T.key,unitless:p,ignore:y,token:j,scope:w},function(){var A=nc(v,j,b),M=tc(v,j,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(H){M[g(H)]=M[H],delete M[H]}),M}),null},C=function(R){var w=n(),$=w.cssVar;return[function(T){return S&&$?P.createElement(P.Fragment,null,P.createElement(E,{rootCls:R,cssVar:$,component:v}),T):T},$==null?void 0:$.key]};return C}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(v)?v:[v,v],S=U(m,1),g=S[0],y=m.join("-");return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=n(),R=x.theme,w=x.realToken,$=x.hashId,T=x.token,F=x.cssVar,j=a(),A=j.rootPrefixCls,M=j.iconPrefixCls,H=r(),N=F?"css":"js",O=xp(function(){var W=new Set;return F&&Object.keys(p.unitless||{}).forEach(function(q){W.add(oo(q,F.prefix)),W.add(oo(q,ec(g,F.prefix)))}),hp(N,W)},[N,g,F==null?void 0:F.prefix]),I=Sp(N),D=I.max,V=I.min,k={theme:R,token:T,hashId:$,nonce:function(){return H.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};Xi(z(z({},k),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(T):[]});var K=Xi(z(z({},k),{},{path:[y,E,M]}),function(){if(p.injectStyle===!1)return[];var W=yp(T),q=W.token,Q=W.flush,Z=nc(g,w,h),J=".".concat(E),te=tc(g,w,Z,{deprecatedTokens:p.deprecatedTokens});F&&Te(Z)==="object"&&Object.keys(Z).forEach(function(ve){Z[ve]="var(".concat(oo(ve,ec(g,F.prefix)),")")});var ae=Lt(q,{componentCls:J,prefixCls:E,iconCls:".".concat(M),antCls:".".concat(A),calc:O,max:D,min:V},F?Z:te),fe=b(ae,{hashId:$,prefixCls:E,rootPrefixCls:A,iconPrefixCls:M});Q(g,te);var de=typeof i=="function"?i(ae,E,C,p.resetFont):null;return[p.resetStyle===!1?null:de,fe]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=d(v,b,h,z({resetStyle:!1,order:-998},p)),S=function(y){var E=y.prefixCls,C=y.rootCls,x=C===void 0?E:C;return m(E,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),S}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Op="5.20.3";function vi(e){return e>=0&&e<=255}function Ua(e,t){const{r,g:n,b:a,a:o}=new Jt(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new Jt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-i*(1-u))/u),f=Math.round((n-s*(1-u))/u),v=Math.round((a-l*(1-u))/u);if(vi(d)&&vi(f)&&vi(v))return new Jt({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new Jt({r,g:n,b:a,a:1}).toRgbString()}var Rp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function $d(e){const{override:t}=e,r=Rp(e,["override"]),n=Object.assign({},t);Object.keys(Ea).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,u=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ua(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Ua(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ua(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Ua(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
61
+ `.trim()}function l0(e,t){const r=s0(e,t);Qt()?Wr(r,`${i0}-dynamic-theme`):process.env.NODE_ENV!=="production"&&la(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Qn=u.createContext(!1),c0=e=>{let{children:t,disabled:r}=e;const n=u.useContext(Qn);return u.createElement(Qn.Provider,{value:r??n},t)},Jn=u.createContext(void 0),u0=e=>{let{children:t,size:r}=e;const n=u.useContext(Jn);return u.createElement(Jn.Provider,{value:r||n},t)};function d0(){const e=P.useContext(Qn),t=P.useContext(Jn);return{componentDisabled:e,componentSize:t}}var Zf=Vt(function e(){kt(this,e)}),Qf="CALC_UNIT",f0=new RegExp(Qf,"g");function ns(e){return typeof e=="number"?"".concat(e).concat(Qf):e}var v0=function(e){on(r,e);var t=sn(r);function r(n,a){var o;kt(this,r),o=t.call(this),L(Ge(o),"result",""),L(Ge(o),"unitlessCssVar",void 0),L(Ge(o),"lowPriority",void 0);var i=Te(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=ns(n):i==="string"&&(o.result=n),o}return Vt(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(ns(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(ns(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(f0,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Zf),p0=function(e){on(r,e);var t=sn(r);function r(n){var a;return kt(this,r),a=t.call(this),L(Ge(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Vt(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(Zf),m0=function(t,r){var n=t==="css"?v0:p0;return function(a){return new n(a,r)}},uu=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ut(e){var t=u.useRef();t.current=e;var r=u.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function Za(e){var t=u.useRef(!1),r=u.useState(e),n=K(r,2),a=n[0],o=n[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function as(e){return e!==void 0}function dr(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=Za(function(){return as(a)?a:as(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=K(s,2),c=l[0],d=l[1],f=a!==void 0?a:c,v=i?i(f):f,b=Ut(o),h=Za([f]),g=K(h,2),p=g[0],S=g[1];Vs(function(){var y=p[0];c!==y&&b(c,y)},[p]),Vs(function(){as(a)||d(a)},[a]);var m=Ut(function(y,E){d(y,E),S([f],E)});return[v,m]}function du(e,t,r,n){var a=z({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=K(s,2),c=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&ot(!(a!=null&&a[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),a!=null&&a[c]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a==null?void 0:a[c])}})}var i=z(z({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Jf=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",sl=!0;function Bt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Jf)return Object.assign.apply(Object,[{}].concat(t));sl=!1;var n={};return t.forEach(function(a){if(Te(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),sl=!0,n}var fu={};function g0(){}var h0=function(t){var r,n=t,a=g0;return Jf&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return sl&&r.add(s),i[s]}}),a=function(i,s){var l;fu[i]={global:Array.from(r),component:z(z({},(l=fu[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function vu(e,t,r){if(typeof r=="function"){var n;return r(Bt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function b0(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return te(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return te(o)}).join(","),")")}}}var y0=1e3*60*10,S0=function(){function e(){kt(this,e),L(this,"map",new Map),L(this,"objectIDMap",new WeakMap),L(this,"nextID",0),L(this,"lastAccessBeat",new Map),L(this,"accessBeat",0)}return Vt(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&Te(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Te(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>y0&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),pu=new S0;function C0(e,t){return P.useMemo(function(){var r=pu.get(t);if(r)return r;var n=e();return pu.set(t,n),n},t)}var E0=function(){return{}};function x0(e){var t=e.useCSP,r=t===void 0?E0:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,g){var p=Array.isArray(v)?v[0]:v;function S($){return"".concat(String(p)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var m=(g==null?void 0:g.unitless)||{},y=typeof s=="function"?s(v):{},E=z(z({},y),{},L({},S("zIndexPopup"),!0));Object.keys(m).forEach(function($){E[S($)]=m[$]});var C=z(z({},g),{},{unitless:E,prefixToken:S}),x=d(v,b,h,C),w=c(p,h,C);return function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,T=x($,O),F=K(T,2),j=F[1],M=w(O),A=K(M,2),H=A[0],N=A[1];return[H,j,N]}}function c(v,b,h){var g=h.unitless,p=h.injectStyle,S=p===void 0?!0:p,m=h.prefixToken,y=h.ignore,E=function(w){var $=w.rootCls,O=w.cssVar,T=O===void 0?{}:O,F=n(),j=F.realToken;return Sh({path:[v],prefix:T.prefix,key:T.key,unitless:g,ignore:y,token:j,scope:$},function(){var M=vu(v,j,b),A=du(v,j,M,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(M).forEach(function(H){A[m(H)]=A[H],delete A[H]}),A}),null},C=function(w){var $=n(),O=$.cssVar;return[function(T){return S&&O?P.createElement(P.Fragment,null,P.createElement(E,{rootCls:w,cssVar:O,component:v}),T):T},O==null?void 0:O.key]};return C}function d(v,b,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(v)?v:[v,v],S=K(p,1),m=S[0],y=p.join("-");return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=n(),w=x.theme,$=x.realToken,O=x.hashId,T=x.token,F=x.cssVar,j=a(),M=j.rootPrefixCls,A=j.iconPrefixCls,H=r(),N=F?"css":"js",R=C0(function(){var W=new Set;return F&&Object.keys(g.unitless||{}).forEach(function(q){W.add(Do(q,F.prefix)),W.add(Do(q,uu(m,F.prefix)))}),m0(N,W)},[N,m,F==null?void 0:F.prefix]),I=b0(N),D=I.max,k=I.min,V={theme:w,token:T,hashId:O,nonce:function(){return H.nonce},clientOnly:g.clientOnly,layer:{name:"antd"},order:g.order||-999};Gs(z(z({},V),{},{clientOnly:!1,path:["Shared",M]}),function(){return typeof o=="function"?o(T):[]});var G=Gs(z(z({},V),{},{path:[y,E,A]}),function(){if(g.injectStyle===!1)return[];var W=h0(T),q=W.token,Y=W.flush,Q=vu(m,$,h),J=".".concat(E),ee=du(m,$,Q,{deprecatedTokens:g.deprecatedTokens});F&&Te(Q)==="object"&&Object.keys(Q).forEach(function(le){Q[le]="var(".concat(Do(le,uu(m,F.prefix)),")")});var re=Bt(q,{componentCls:J,prefixCls:E,iconCls:".".concat(A),antCls:".".concat(M),calc:R,max:D,min:k},F?Q:ee),de=b(re,{hashId:O,prefixCls:E,rootPrefixCls:M,iconPrefixCls:A});Y(m,ee);var se=typeof i=="function"?i(re,E,C,g.resetFont):null;return[g.resetStyle===!1?null:se,de]});return[G,O]}}function f(v,b,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=d(v,b,h,z({resetStyle:!1,order:-998},g)),S=function(y){var E=y.prefixCls,C=y.rootCls,x=C===void 0?E:C;return p(E,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),S}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const oi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],w0="5.20.3";function os(e){return e>=0&&e<=255}function Co(e,t){const{r,g:n,b:a,a:o}=new or(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new or(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((r-i*(1-c))/c),f=Math.round((n-s*(1-c))/c),v=Math.round((a-l*(1-c))/c);if(os(d)&&os(f)&&os(v))return new or({r:d,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new or({r,g:n,b:a,a:1}).toRgbString()}var $0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function ev(e){const{override:t}=e,r=$0(e,["override"]),n=Object.assign({},t);Object.keys(Ya).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,c=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Co(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Co(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Co(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Co(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
62
62
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
63
63
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
64
64
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
@@ -70,10 +70,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
70
70
  0 1px 2px 0 rgba(0, 0, 0, 0.03),
71
71
  0 1px 6px -1px rgba(0, 0, 0, 0.02),
72
72
  0 2px 4px 0 rgba(0, 0, 0, 0.02)
73
- `,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
74
- 0 1px 2px -2px ${new Jt("rgba(0, 0, 0, 0.16)").toRgbString()},
75
- 0 3px 6px 0 ${new Jt("rgba(0, 0, 0, 0.12)").toRgbString()},
76
- 0 5px 12px 4px ${new Jt("rgba(0, 0, 0, 0.09)").toRgbString()}
73
+ `,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
74
+ 0 1px 2px -2px ${new or("rgba(0, 0, 0, 0.16)").toRgbString()},
75
+ 0 3px 6px 0 ${new or("rgba(0, 0, 0, 0.12)").toRgbString()},
76
+ 0 5px 12px 4px ${new or("rgba(0, 0, 0, 0.09)").toRgbString()}
77
77
  `,boxShadowDrawerRight:`
78
78
  -6px 0 16px 0 rgba(0, 0, 0, 0.08),
79
79
  -3px 0 6px -4px rgba(0, 0, 0, 0.12),
@@ -90,7 +90,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
90
90
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
91
91
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
92
92
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
93
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var oc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Od={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},Pp={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},_p={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},Rd=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=oc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=$d(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=oc(u,["theme"]);let v=f;d&&(v=Rd(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Lr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Sd),o=`${Op}-${t||""}`,i=r||yd,[s,l,u]=qm(i,[Ea,e],{salt:o,override:n,getComputedToken:Rd,formatToken:$d,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Od,ignore:Pp,preserve:_p}});return[i,u,t?l:"",s,a]}const Pd=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),tl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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}},Np=()=>({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"}}),Na=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Tp=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"}}}),Ip=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Mp=e=>({outline:`${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),rl=e=>({"&:focus-visible":Object.assign({},Mp(e))}),_d=(e,t)=>{const[r,n]=Lr();return Xi({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Np()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:br,genComponentStyleHook:Ap,genSubStyleComponent:jp}=$p({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Lr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(ot);return _d(t,e),e??{}},getResetStyles:e=>[{"&":Tp(e)}],getCommonStyle:Ip,getCompUnitless:()=>Od});function Fp(e,t){return Eo.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Lp=Object.assign({},c),{useId:ic}=Lp,Dp=()=>"",zp=typeof ic>"u"?Dp:ic;function Vp(e,t,r){var n,a;const o=It("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},us),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:us.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=zp();if(process.env.NODE_ENV!=="production"){const u=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((a=i.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&o(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return To(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${l.replace(/:/g,"")}`,b=((u=i.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:b})},[i,s],(u,d)=>u.some((f,v)=>{const b=d[v];return!ba(f,b,!0)}))}var Bp=["children"],Nd=c.createContext({});function kp(e){var t=e.children,r=Je(e,Bp);return c.createElement(Nd.Provider,{value:r},t)}var Hp=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Wp(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Bt(function(){return a.current}),i=Bt(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Hr="none",Ka="appear",qa="enter",Xa="leave",sc="none",fr="prepare",wn="start",$n="active",nl="end",Td="prepared";function lc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Gp(e,t){var r={animationend:lc("Animation","AnimationEnd"),transitionend:lc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Up=Gp(Kt(),typeof window<"u"?window:{}),Id={};if(Kt()){var Kp=document.createElement("div");Id=Kp.style}var Ya={};function Md(e){if(Ya[e])return Ya[e];var t=Up[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Id)return Ya[e]=t[o],Ya[e]}return""}var Ad=Md("animationend"),jd=Md("transitionend"),Fd=!!(Ad&&jd),cc=Ad||"animationend",uc=jd||"transitionend";function dc(e,t){if(!e)return null;if(Te(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const qp=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(uc,e),a.removeEventListener(cc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(uc,e),a.addEventListener(cc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Ld=Kt()?P.useLayoutEffect:P.useEffect;const Xp=function(){var e=c.useRef(null);function t(){_t.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=_t(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[r,t]};var Yp=[fr,wn,$n,nl],Qp=[fr,Td],Dd=!1,Zp=!0;function zd(e){return e===$n||e===nl}const Jp=function(e,t,r){var n=xa(sc),a=U(n,2),o=a[0],i=a[1],s=Xp(),l=U(s,2),u=l[0],d=l[1];function f(){i(fr,!0)}var v=t?Qp:Yp;return Ld(function(){if(o!==sc&&o!==nl){var b=v.indexOf(o),h=v[b+1],p=r(o);p===Dd?i(h,!0):h&&u(function(m){function S(){m.isCanceled()||i(h,!0)}p===!0?S():Promise.resolve(p).then(S)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function eh(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,u=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,b=n.onEnterPrepare,h=n.onLeavePrepare,p=n.onAppearStart,m=n.onEnterStart,S=n.onLeaveStart,g=n.onAppearActive,y=n.onEnterActive,E=n.onLeaveActive,C=n.onAppearEnd,x=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=xa(),T=U($,2),F=T[0],j=T[1],A=Wp(Hr),M=U(A,2),H=M[0],N=M[1],O=xa(null),I=U(O,2),D=I[0],V=I[1],k=H(),K=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Q=P.useRef(!1);function Z(){N(Hr),V(null,!0)}var J=Bt(function(me){var xe=H();if(xe!==Hr){var Me=q();if(!(me&&!me.deadline&&me.target!==Me)){var oe=Q.current,re;xe===Ka&&oe?re=C==null?void 0:C(Me,me):xe===qa&&oe?re=x==null?void 0:x(Me,me):xe===Xa&&oe&&(re=R==null?void 0:R(Me,me)),oe&&re!==!1&&Z()}}}),te=qp(J),ae=U(te,1),fe=ae[0],de=function(xe){switch(xe){case Ka:return L(L(L({},fr,v),wn,p),$n,g);case qa:return L(L(L({},fr,b),wn,m),$n,y);case Xa:return L(L(L({},fr,h),wn,S),$n,E);default:return{}}},ve=c.useMemo(function(){return de(k)},[k]),we=Jp(k,!e,function(me){if(me===fr){var xe=ve[fr];return xe?xe(q()):Dd}if(se in ve){var Me;V(((Me=ve[se])===null||Me===void 0?void 0:Me.call(ve,q(),null))||null)}return se===$n&&k!==Hr&&(fe(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),se===Td&&Z(),Zp}),B=U(we,2),ce=B[0],se=B[1],Ce=zd(se);Q.current=Ce,Ld(function(){j(t);var me=K.current;K.current=!0;var xe;!me&&t&&s&&(xe=Ka),me&&t&&o&&(xe=qa),(me&&!t&&u||!me&&f&&!t&&u)&&(xe=Xa);var Me=de(xe);xe&&(e||Me[fr])?(N(xe),ce()):N(Hr)},[t]),P.useEffect(function(){(k===Ka&&!s||k===qa&&!o||k===Xa&&!u)&&N(Hr)},[s,o,u]),P.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var pe=c.useRef(!1);P.useEffect(function(){F&&(pe.current=!0),F!==void 0&&k===Hr&&((pe.current||F)&&(w==null||w(F)),pe.current=!0)},[F,k]);var ne=D;return ve[fr]&&se===wn&&(ne=z({transition:"none"},ne)),[k,se,ne,F??t]}function th(e){var t=e;Te(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=c.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,u=l===void 0?!0:l,d=a.forceRender,f=a.children,v=a.motionName,b=a.leavedClassName,h=a.eventProps,p=c.useContext(Nd),m=p.motion,S=r(a,m),g=P.useRef(),y=P.useRef();function E(){try{return g.current instanceof HTMLElement?g.current:ao(y.current)}catch{return null}}var C=eh(S,s,E,a),x=U(C,4),R=x[0],w=x[1],$=x[2],T=x[3],F=c.useRef(T);T&&(F.current=!0);var j=c.useCallback(function(D){g.current=D,Gs(o,D)},[o]),A,M=z(z({},h),{},{visible:s});if(!f)A=null;else if(R===Hr)T?A=f(z({},M),j):!u&&F.current&&b?A=f(z(z({},M),{},{className:b}),j):d||!u&&!b?A=f(z(z({},M),{},{style:{display:"none"}}),j):A=null;else{var H;w===fr?H="prepare":zd(w)?H="active":w===wn&&(H="start");var N=dc(v,"".concat(R,"-").concat(H));A=f(z(z({},M),{},{className:Y(dc(v,R),L(L({},N,N&&H),v,typeof v=="string")),style:$}),j)}if(c.isValidElement(A)&&on(A)){var O=A,I=O.ref;I||(A=c.cloneElement(A,{ref:j}))}return c.createElement(Hp,{ref:y},A)});return n.displayName="CSSMotion",n}const sn=th(Fd);var fs="add",vs="keep",ms="remove",mi="removed";function rh(e){var t;return e&&Te(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function gs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(rh)}function nh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=gs(e),i=gs(t);o.forEach(function(u){for(var d=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===u.key){n<f&&(r=r.concat(i.slice(n,f).map(function(b){return z(z({},b),{},{status:fs})})),n=f),r.push(z(z({},v),{},{status:vs})),n+=1,d=!0;break}}d||r.push(z(z({},u),{},{status:ms}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return z(z({},u),{},{status:fs})})));var s={};r.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){r=r.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==ms}),r.forEach(function(d){d.key===u&&(d.status=vs)})}),r}var ah=["component","children","onVisibleChanged","onAllRemoved"],oh=["status"],ih=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,r=function(n){qr(o,n);var a=Xr(o);function o(){var i;jt(this,o);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return i=a.call.apply(a,[this].concat(l)),L(We(i),"state",{keyEntities:[]}),L(We(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:z(z({},b),{},{status:mi})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==mi}).length}),i}return Ft(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,b=u.onAllRemoved,h=Je(u,ah),p=d||c.Fragment,m={};return ih.forEach(function(S){m[S]=h[S],delete h[S]}),delete h.keys,c.createElement(p,h,l.map(function(S,g){var y=S.status,E=Je(S,oh),C=y===fs||y===vs;return c.createElement(t,Oe({},m,{key:E.key,visible:C,eventProps:E,onVisibleChanged:function(R){if(v==null||v(R,{key:E.key}),!R){var w=s.removeKey(E.key);w===0&&b&&b()}}}),function(x,R){return f(z(z({},x),{},{index:g}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=gs(u),v=nh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var m=p.key;return b.key===m});return!(h&&h.status===mi&&b.status===ms)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}sh(Fd);function lh(e){const{children:t}=e,[,r]=Lr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(kp,{motion:n},t):t}const Vd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return It("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Vd.displayName="PropWarning");const ch=process.env.NODE_ENV!=="production"?Vd:()=>null;var uh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let ps=!1;process.env.NODE_ENV;const dh=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Bd;function fh(){return Bd||Co}function vh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const mh=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Bd=t),n&&vh(n)&&(process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),up(fh(),n))},gh=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:h,legacyLocale:p,parentContext:m,iconPrefixCls:S,theme:g,componentDisabled:y,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:T,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:N,steps:O,image:I,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Q,breadcrumb:Z,menu:J,pagination:te,input:ae,textArea:fe,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:me,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:ge,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Ne,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee}=e,Ke=c.useCallback((ke,He)=>{const{prefixCls:st}=e;if(He)return He;const ht=st||m.getPrefixCls("");return ke?`${ht}-${ke}`:ht},[m.getPrefixCls,e.prefixCls]),rt=S||m.iconPrefixCls||Cd,bt=r||m.csp;_d(rt,bt);const ut=Vp(g,m.theme,{prefixCls:Ke("")});process.env.NODE_ENV!=="production"&&(ps=ps||!!ut);const Be={csp:bt,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:Ke,iconPrefixCls:rt,theme:ut,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:T,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:N,steps:O,image:I,input:ae,textArea:fe,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Q,breadcrumb:Z,menu:J,pagination:te,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:me,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:ge,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Ne,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee};process.env.NODE_ENV!=="production"&&It("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ve=Object.assign({},m);Object.keys(Be).forEach(ke=>{Be[ke]!==void 0&&(Ve[ke]=Be[ke])}),dh.forEach(ke=>{const He=e[ke];He&&(Ve[ke]=He)}),typeof n<"u"&&(Ve.button=Object.assign({autoInsertSpace:n},Ve.button));const De=To(()=>Ve,Ve,(ke,He)=>{const st=Object.keys(ke),ht=Object.keys(He);return st.length!==ht.length||st.some(Rt=>ke[Rt]!==He[Rt])}),Re=c.useMemo(()=>({prefixCls:rt,csp:bt}),[rt,bt]);let be=c.createElement(c.Fragment,null,c.createElement(ch,{dropdownMatchSelectWidth:v}),t);const Ge=c.useMemo(()=>{var ke,He,st,ht;return xn(((ke=An.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((st=(He=De.locale)===null||He===void 0?void 0:He.Form)===null||st===void 0?void 0:st.defaultValidateMessages)||{},((ht=De.form)===null||ht===void 0?void 0:ht.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[De,i==null?void 0:i.validateMessages]);Object.keys(Ge).length>0&&(be=c.createElement(Pg.Provider,{value:Ge},be)),s&&(be=c.createElement(md,{locale:s,_ANT_MARK__:vd},be)),(rt||bt)&&(be=c.createElement(Js.Provider,{value:Re},be)),l&&(be=c.createElement(fp,{size:l},be)),be=c.createElement(lh,null,be);const pt=c.useMemo(()=>{const ke=ut||{},{algorithm:He,token:st,components:ht,cssVar:Rt}=ke,Dt=uh(ke,["algorithm","token","components","cssVar"]),kt=He&&(!Array.isArray(He)||He.length>0)?Hi(He):yd,_={};Object.entries(ht||{}).forEach(X=>{let[ie,Pe]=X;const $e=Object.assign({},Pe);"algorithm"in $e&&($e.algorithm===!0?$e.theme=kt:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=Hi($e.algorithm)),delete $e.algorithm),_[ie]=$e});const G=Object.assign(Object.assign({},Ea),st);return Object.assign(Object.assign({},Dt),{theme:kt,token:G,components:_,override:Object.assign({override:G},_),cssVar:Rt})},[ut]);return g&&(be=c.createElement(Sd.Provider,{value:pt},be)),De.warning&&(be=c.createElement(dd.Provider,{value:De.warning},be)),y!==void 0&&(be=c.createElement(dp,{disabled:y},be)),c.createElement(ot.Provider,{value:De},be)},Bn=e=>{const t=c.useContext(ot),r=c.useContext(el);return c.createElement(gh,Object.assign({parentContext:t,legacyLocale:r},e))};Bn.ConfigContext=ot;Bn.SizeContext=Fn;Bn.config=mh;Bn.useConfig=vp;Object.defineProperty(Bn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Fn)});process.env.NODE_ENV!=="production"&&(Bn.displayName="ConfigProvider");function kd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ph(e){return kd(e)instanceof ShadowRoot}function xo(e){return ph(e)?kd(e):null}function hh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function bh(e,t){at(e,"[@ant-design/icons] ".concat(t))}function fc(e){return Te(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Te(e.icon)==="object"||typeof e.icon=="function")}function vc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[hh(r)]=n}return t},{})}function hs(e,t,r){return r?P.createElement(e.tag,z(z({key:t},vc(e.attrs)),r),(e.children||[]).map(function(n,a){return hs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,z({key:t},vc(e.attrs)),(e.children||[]).map(function(n,a){return hs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Hd(e){return Ca(e)[0]}function Wd(e){return e?Array.isArray(e)?e:[e]:[]}var yh=`
93
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var mu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const tv={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},O0={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},R0={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},rv=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=mu(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=ev(i),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:d}=c,f=mu(c,["theme"]);let v=f;d&&(v=rv(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Kr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Xf),o=`${w0}-${t||""}`,i=r||qf,[s,l,c]=Ug(i,[Ya,e],{salt:o,override:n,getComputedToken:rv,formatToken:ev,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:tv,ignore:O0,preserve:R0}});return[i,c,t?l:"",s,a]}const nv=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),oc={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ca=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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}},P0=()=>({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"}}),ao=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),_0=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"}}}),N0=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},T0=e=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ic=e=>({"&:focus-visible":Object.assign({},T0(e))}),av=(e,t)=>{const[r,n]=Kr();return Gs({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},P0()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Or,genComponentStyleHook:I0,genSubStyleComponent:M0}=x0({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(it);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Kr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(it);return av(t,e),e??{}},getResetStyles:e=>[{"&":_0(e)}],getCommonStyle:N0,getCompUnitless:()=>tv});function A0(e,t){return oi.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const j0=Object.assign({},u),{useId:gu}=j0,F0=()=>"",L0=typeof gu>"u"?F0:gu;function D0(e,t,r){var n,a;const o=Lt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},il),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:il.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=L0();if(process.env.NODE_ENV!=="production"){const c=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((a=i.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&o(!c||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return hi(()=>{var c,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${l.replace(/:/g,"")}`,b=((c=i.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:b})},[i,s],(c,d)=>c.some((f,v)=>{const b=d[v];return!Ua(f,b,!0)}))}var z0=["children"],ov=u.createContext({});function k0(e){var t=e.children,r=et(e,z0);return u.createElement(ov.Provider,{value:r},t)}var V0=function(e){on(r,e);var t=sn(r);function r(){return kt(this,r),t.apply(this,arguments)}return Vt(r,[{key:"render",value:function(){return this.props.children}}]),r}(u.Component);function B0(e){var t=u.useReducer(function(s){return s+1},0),r=K(t,2),n=r[1],a=u.useRef(e),o=Ut(function(){return a.current}),i=Ut(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Jr="none",Eo="appear",xo="enter",wo="leave",hu="none",yr="prepare",Vn="start",Bn="active",sc="end",iv="prepared";function bu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function H0(e,t){var r={animationend:bu("Animation","AnimationEnd"),transitionend:bu("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var W0=H0(Qt(),typeof window<"u"?window:{}),sv={};if(Qt()){var G0=document.createElement("div");sv=G0.style}var $o={};function lv(e){if($o[e])return $o[e];var t=W0[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in sv)return $o[e]=t[o],$o[e]}return""}var cv=lv("animationend"),uv=lv("transitionend"),dv=!!(cv&&uv),yu=cv||"animationend",Su=uv||"transitionend";function Cu(e,t){if(!e)return null;if(Te(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const U0=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(Su,e),a.removeEventListener(yu,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Su,e),a.addEventListener(yu,e),t.current=a)}return u.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var fv=Qt()?P.useLayoutEffect:P.useEffect;const K0=function(){var e=u.useRef(null);function t(){Mt.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Mt(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return u.useEffect(function(){return function(){t()}},[]),[r,t]};var q0=[yr,Vn,Bn,sc],X0=[yr,iv],vv=!1,Y0=!0;function pv(e){return e===Bn||e===sc}const Z0=function(e,t,r){var n=Za(hu),a=K(n,2),o=a[0],i=a[1],s=K0(),l=K(s,2),c=l[0],d=l[1];function f(){i(yr,!0)}var v=t?X0:q0;return fv(function(){if(o!==hu&&o!==sc){var b=v.indexOf(o),h=v[b+1],g=r(o);g===vv?i(h,!0):h&&c(function(p){function S(){p.isCanceled()||i(h,!0)}g===!0?S():Promise.resolve(g).then(S)})}},[e,o]),u.useEffect(function(){return function(){d()}},[]),[f,o]};function Q0(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,b=n.onEnterPrepare,h=n.onLeavePrepare,g=n.onAppearStart,p=n.onEnterStart,S=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,E=n.onLeaveActive,C=n.onAppearEnd,x=n.onEnterEnd,w=n.onLeaveEnd,$=n.onVisibleChanged,O=Za(),T=K(O,2),F=T[0],j=T[1],M=B0(Jr),A=K(M,2),H=A[0],N=A[1],R=Za(null),I=K(R,2),D=I[0],k=I[1],V=H(),G=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Y=P.useRef(!1);function Q(){N(Jr),k(null,!0)}var J=Ut(function(pe){var xe=H();if(xe!==Jr){var Me=q();if(!(pe&&!pe.deadline&&pe.target!==Me)){var oe=Y.current,ne;xe===Eo&&oe?ne=C==null?void 0:C(Me,pe):xe===xo&&oe?ne=x==null?void 0:x(Me,pe):xe===wo&&oe&&(ne=w==null?void 0:w(Me,pe)),oe&&ne!==!1&&Q()}}}),ee=U0(J),re=K(ee,1),de=re[0],se=function(xe){switch(xe){case Eo:return L(L(L({},yr,v),Vn,g),Bn,m);case xo:return L(L(L({},yr,b),Vn,p),Bn,y);case wo:return L(L(L({},yr,h),Vn,S),Bn,E);default:return{}}},le=u.useMemo(function(){return se(V)},[V]),we=Z0(V,!e,function(pe){if(pe===yr){var xe=le[yr];return xe?xe(q()):vv}if(ce in le){var Me;k(((Me=le[ce])===null||Me===void 0?void 0:Me.call(le,q(),null))||null)}return ce===Bn&&V!==Jr&&(de(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),ce===iv&&Q(),Y0}),B=K(we,2),fe=B[0],ce=B[1],Ce=pv(ce);Y.current=Ce,fv(function(){j(t);var pe=G.current;G.current=!0;var xe;!pe&&t&&s&&(xe=Eo),pe&&t&&o&&(xe=xo),(pe&&!t&&c||!pe&&f&&!t&&c)&&(xe=wo);var Me=se(xe);xe&&(e||Me[yr])?(N(xe),fe()):N(Jr)},[t]),P.useEffect(function(){(V===Eo&&!s||V===xo&&!o||V===wo&&!c)&&N(Jr)},[s,o,c]),P.useEffect(function(){return function(){G.current=!1,clearTimeout(W.current)}},[]);var ge=u.useRef(!1);P.useEffect(function(){F&&(ge.current=!0),F!==void 0&&V===Jr&&((ge.current||F)&&($==null||$(F)),ge.current=!0)},[F,V]);var ae=D;return le[yr]&&ce===Vn&&(ae=z({transition:"none"},ae)),[V,ce,ae,F??t]}function J0(e){var t=e;Te(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=u.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,c=l===void 0?!0:l,d=a.forceRender,f=a.children,v=a.motionName,b=a.leavedClassName,h=a.eventProps,g=u.useContext(ov),p=g.motion,S=r(a,p),m=P.useRef(),y=P.useRef();function E(){try{return m.current instanceof HTMLElement?m.current:Lo(y.current)}catch{return null}}var C=Q0(S,s,E,a),x=K(C,4),w=x[0],$=x[1],O=x[2],T=x[3],F=u.useRef(T);T&&(F.current=!0);var j=u.useCallback(function(D){m.current=D,Xl(o,D)},[o]),M,A=z(z({},h),{},{visible:s});if(!f)M=null;else if(w===Jr)T?M=f(z({},A),j):!c&&F.current&&b?M=f(z(z({},A),{},{className:b}),j):d||!c&&!b?M=f(z(z({},A),{},{style:{display:"none"}}),j):M=null;else{var H;$===yr?H="prepare":pv($)?H="active":$===Vn&&(H="start");var N=Cu(v,"".concat(w,"-").concat(H));M=f(z(z({},A),{},{className:Z(Cu(v,w),L(L({},N,N&&H),v,typeof v=="string")),style:O}),j)}if(u.isValidElement(M)&&En(M)){var R=M,I=R.ref;I||(M=u.cloneElement(M,{ref:j}))}return u.createElement(V0,{ref:y},M)});return n.displayName="CSSMotion",n}const xn=J0(dv);var ll="add",cl="keep",ul="remove",is="removed";function eb(e){var t;return e&&Te(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function dl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(eb)}function tb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=dl(e),i=dl(t);o.forEach(function(c){for(var d=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===c.key){n<f&&(r=r.concat(i.slice(n,f).map(function(b){return z(z({},b),{},{status:ll})})),n=f),r.push(z(z({},v),{},{status:cl})),n+=1,d=!0;break}}d||r.push(z(z({},c),{},{status:ul}))}),n<a&&(r=r.concat(i.slice(n).map(function(c){return z(z({},c),{},{status:ll})})));var s={};r.forEach(function(c){var d=c.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(d){var f=d.key,v=d.status;return f!==c||v!==ul}),r.forEach(function(d){d.key===c&&(d.status=cl)})}),r}var rb=["component","children","onVisibleChanged","onAllRemoved"],nb=["status"],ab=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ob(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xn,r=function(n){on(o,n);var a=sn(o);function o(){var i;kt(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=a.call.apply(a,[this].concat(l)),L(Ge(i),"state",{keyEntities:[]}),L(Ge(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:z(z({},b),{},{status:is})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==is}).length}),i}return Vt(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,d=c.component,f=c.children,v=c.onVisibleChanged,b=c.onAllRemoved,h=et(c,rb),g=d||u.Fragment,p={};return ab.forEach(function(S){p[S]=h[S],delete h[S]}),delete h.keys,u.createElement(g,h,l.map(function(S,m){var y=S.status,E=et(S,nb),C=y===ll||y===cl;return u.createElement(t,Oe({},p,{key:E.key,visible:C,eventProps:E,onVisibleChanged:function(w){if(v==null||v(w,{key:E.key}),!w){var $=s.removeKey(E.key);$===0&&b&&b()}}}),function(x,w){return f(z(z({},x),{},{index:m}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,d=l.keyEntities,f=dl(c),v=tb(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(g){var p=g.key;return b.key===p});return!(h&&h.status===is&&b.status===ul)})}}}]),o}(u.Component);return L(r,"defaultProps",{component:"div"}),r}ob(dv);function ib(e){const{children:t}=e,[,r]=Kr(),{motion:n}=r,a=u.useRef(!1);return a.current=a.current||n===!1,a.current?u.createElement(k0,{motion:n},t):t}const mv=u.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Lt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(mv.displayName="PropWarning");const sb=process.env.NODE_ENV!=="production"?mv:()=>null;var lb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let fl=!1;process.env.NODE_ENV;const cb=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let gv;function ub(){return gv||ai}function db(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const fb=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(gv=t),n&&db(n)&&(process.env.NODE_ENV!=="production"&&la(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),l0(ub(),n))},vb=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:h,legacyLocale:g,parentContext:p,iconPrefixCls:S,theme:m,componentDisabled:y,segmented:E,statistic:C,spin:x,calendar:w,carousel:$,cascader:O,collapse:T,typography:F,checkbox:j,descriptions:M,divider:A,drawer:H,skeleton:N,steps:R,image:I,layout:D,list:k,mentions:V,modal:G,progress:W,result:q,slider:Y,breadcrumb:Q,menu:J,pagination:ee,input:re,textArea:de,empty:se,badge:le,radio:we,rate:B,switch:fe,transfer:ce,avatar:Ce,message:ge,tag:ae,table:pe,card:xe,tabs:Me,timeline:oe,timePicker:ne,upload:me,notification:he,tree:rt,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:Je,dropdown:Fe,warning:Ne,tour:st,floatButtonGroup:Ze,variant:Le,inputNumber:ve,treeSelect:Ee}=e,qe=u.useCallback((He,We)=>{const{prefixCls:lt}=e;if(We)return We;const St=lt||p.getPrefixCls("");return He?`${St}-${He}`:St},[p.getPrefixCls,e.prefixCls]),nt=S||p.iconPrefixCls||Yf,Ct=r||p.csp;av(nt,Ct);const ft=D0(m,p.theme,{prefixCls:qe("")});process.env.NODE_ENV!=="production"&&(fl=fl||!!ft);const Be={csp:Ct,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||g,direction:c,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:qe,iconPrefixCls:nt,theme:ft,segmented:E,statistic:C,spin:x,calendar:w,carousel:$,cascader:O,collapse:T,typography:F,checkbox:j,descriptions:M,divider:A,drawer:H,skeleton:N,steps:R,image:I,input:re,textArea:de,layout:D,list:k,mentions:V,modal:G,progress:W,result:q,slider:Y,breadcrumb:Q,menu:J,pagination:ee,empty:se,badge:le,radio:we,rate:B,switch:fe,transfer:ce,avatar:Ce,message:ge,tag:ae,table:pe,card:xe,tabs:Me,timeline:oe,timePicker:ne,upload:me,notification:he,tree:rt,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:Je,dropdown:Fe,warning:Ne,tour:st,floatButtonGroup:Ze,variant:Le,inputNumber:ve,treeSelect:Ee};process.env.NODE_ENV!=="production"&&Lt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const ke=Object.assign({},p);Object.keys(Be).forEach(He=>{Be[He]!==void 0&&(ke[He]=Be[He])}),cb.forEach(He=>{const We=e[He];We&&(ke[He]=We)}),typeof n<"u"&&(ke.button=Object.assign({autoInsertSpace:n},ke.button));const De=hi(()=>ke,ke,(He,We)=>{const lt=Object.keys(He),St=Object.keys(We);return lt.length!==St.length||lt.some(Tt=>He[Tt]!==We[Tt])}),Re=u.useMemo(()=>({prefixCls:nt,csp:Ct}),[nt,Ct]);let be=u.createElement(u.Fragment,null,u.createElement(sb,{dropdownMatchSelectWidth:v}),t);const Ue=u.useMemo(()=>{var He,We,lt,St;return kn(((He=Zn.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((lt=(We=De.locale)===null||We===void 0?void 0:We.Form)===null||lt===void 0?void 0:lt.defaultValidateMessages)||{},((St=De.form)===null||St===void 0?void 0:St.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[De,i==null?void 0:i.validateMessages]);Object.keys(Ue).length>0&&(be=u.createElement(Oh.Provider,{value:Ue},be)),s&&(be=u.createElement(Hf,{locale:s,_ANT_MARK__:Bf},be)),(nt||Ct)&&(be=u.createElement(nc.Provider,{value:Re},be)),l&&(be=u.createElement(u0,{size:l},be)),be=u.createElement(ib,null,be);const bt=u.useMemo(()=>{const He=ft||{},{algorithm:We,token:lt,components:St,cssVar:Tt}=He,Ht=lb(He,["algorithm","token","components","cssVar"]),Kt=We&&(!Array.isArray(We)||We.length>0)?zs(We):qf,_={};Object.entries(St||{}).forEach(X=>{let[ie,Pe]=X;const $e=Object.assign({},Pe);"algorithm"in $e&&($e.algorithm===!0?$e.theme=Kt:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=zs($e.algorithm)),delete $e.algorithm),_[ie]=$e});const U=Object.assign(Object.assign({},Ya),lt);return Object.assign(Object.assign({},Ht),{theme:Kt,token:U,components:_,override:Object.assign({override:U},_),cssVar:Tt})},[ft]);return m&&(be=u.createElement(Xf.Provider,{value:bt},be)),De.warning&&(be=u.createElement(kf.Provider,{value:De.warning},be)),y!==void 0&&(be=u.createElement(c0,{disabled:y},be)),u.createElement(it.Provider,{value:De},be)},ua=e=>{const t=u.useContext(it),r=u.useContext(ac);return u.createElement(vb,Object.assign({parentContext:t,legacyLocale:r},e))};ua.ConfigContext=it;ua.SizeContext=Jn;ua.config=fb;ua.useConfig=d0;Object.defineProperty(ua,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&la(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Jn)});process.env.NODE_ENV!=="production"&&(ua.displayName="ConfigProvider");function hv(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function pb(e){return hv(e)instanceof ShadowRoot}function ii(e){return pb(e)?hv(e):null}function mb(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function gb(e,t){ot(e,"[@ant-design/icons] ".concat(t))}function Eu(e){return Te(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Te(e.icon)==="object"||typeof e.icon=="function")}function xu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[mb(r)]=n}return t},{})}function vl(e,t,r){return r?P.createElement(e.tag,z(z({key:t},xu(e.attrs)),r),(e.children||[]).map(function(n,a){return vl(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,z({key:t},xu(e.attrs)),(e.children||[]).map(function(n,a){return vl(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function bv(e){return Xa(e)[0]}function yv(e){return e?Array.isArray(e)?e:[e]:[]}var hb=`
94
94
  .anticon {
95
95
  display: inline-flex;
96
96
  align-items: center;
@@ -145,34 +145,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
145
145
  transform: rotate(360deg);
146
146
  }
147
147
  }
148
- `,Sh=function(t){var r=P.useContext(Js),n=r.csp,a=r.prefixCls,o=yh;a&&(o=o.replace(/anticon/g,a)),P.useEffect(function(){var i=t.current,s=xo(i);Ar(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},Ch=["icon","className","onClick","style","primaryColor","secondaryColor"],ua={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Eh(e){var t=e.primaryColor,r=e.secondaryColor;ua.primaryColor=t,ua.secondaryColor=r||Hd(t),ua.calculated=!!r}function xh(){return z({},ua)}var kn=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=Je(t,Ch),u=c.useRef(),d=ua;if(i&&(d={primaryColor:i,secondaryColor:s||Hd(i)}),Sh(u),bh(fc(r),"icon should be icon definiton, but got ".concat(r)),!fc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),hs(f.icon,"svg-".concat(f.name),z(z({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};kn.displayName="IconReact";kn.getTwoToneColors=xh;kn.setTwoToneColors=Eh;function Gd(e){var t=Wd(e),r=U(t,2),n=r[0],a=r[1];return kn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function wh(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gd(So.primary);var Xt=c.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=Je(e,$h),d=c.useContext(Js),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,h=Y(b,v,L(L({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var m=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=Wd(l),g=U(S,2),y=g[0],E=g[1];return c.createElement("span",Oe({role:"img","aria-label":n.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),c.createElement(kn,{icon:n,primaryColor:y,secondaryColor:E,style:m}))});Xt.displayName="AntdIcon";Xt.getTwoToneColor=wh;Xt.setTwoToneColor=Gd;var Oh={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"},Rh=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Oh}))},Ud=c.forwardRef(Rh);process.env.NODE_ENV!=="production"&&(Ud.displayName="CloseCircleFilled");var Ph={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"},_h=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Ph}))},Kd=c.forwardRef(_h);process.env.NODE_ENV!=="production"&&(Kd.displayName="CloseOutlined");function qd(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const Nh=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Do(e,t){return Nh(e,e,t)}const al=e=>{const[,,,,t]=Lr();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=le.F1&&r<=le.F12)return!1;switch(r){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Th={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"},Ih=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Th}))},ol=c.forwardRef(Ih);process.env.NODE_ENV!=="production"&&(ol.displayName="LoadingOutlined");const il=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(il.displayName="zIndexContext");const en=100,Mh=10,Ah=en*Mh,Xd={Modal:en,Drawer:en,Popover:en,Popconfirm:en,Tooltip:en,Tour:en},jh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Fh(e){return e in Xd}function Lh(e,t){const[,r]=Lr(),n=P.useContext(il),a=Fh(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+Xd[e]:i+=jh[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=It(e),s=r.zIndexPopupBase+Ah,l=o[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}function qt(){qt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(N,O,I){N[O]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(N,O,I){return Object.defineProperty(N,O,{value:I,enumerable:!0,configurable:!0,writable:!0}),N[O]}try{u({},"")}catch{u=function(I,D,V){return I[D]=V}}function d(N,O,I,D){var V=O&&O.prototype instanceof S?O:S,k=Object.create(V.prototype),K=new M(D||[]);return a(k,"_invoke",{value:T(N,I,K)}),k}function f(N,O,I){try{return{type:"normal",arg:N.call(O,I)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",m={};function S(){}function g(){}function y(){}var E={};u(E,i,function(){return this});var C=Object.getPrototypeOf,x=C&&C(C(H([])));x&&x!==r&&n.call(x,i)&&(E=x);var R=y.prototype=S.prototype=Object.create(E);function w(N){["next","throw","return"].forEach(function(O){u(N,O,function(I){return this._invoke(O,I)})})}function $(N,O){function I(V,k,K,W){var q=f(N[V],N,k);if(q.type!=="throw"){var Q=q.arg,Z=Q.value;return Z&&Te(Z)=="object"&&n.call(Z,"__await")?O.resolve(Z.__await).then(function(J){I("next",J,K,W)},function(J){I("throw",J,K,W)}):O.resolve(Z).then(function(J){Q.value=J,K(Q)},function(J){return I("throw",J,K,W)})}W(q.arg)}var D;a(this,"_invoke",{value:function(k,K){function W(){return new O(function(q,Q){I(k,K,q,Q)})}return D=D?D.then(W,W):W()}})}function T(N,O,I){var D=v;return function(V,k){if(D===h)throw Error("Generator is already running");if(D===p){if(V==="throw")throw k;return{value:e,done:!0}}for(I.method=V,I.arg=k;;){var K=I.delegate;if(K){var W=F(K,I);if(W){if(W===m)continue;return W}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(D===v)throw D=p,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);D=h;var q=f(N,O,I);if(q.type==="normal"){if(D=I.done?p:b,q.arg===m)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D=p,I.method="throw",I.arg=q.arg)}}}function F(N,O){var I=O.method,D=N.iterator[I];if(D===e)return O.delegate=null,I==="throw"&&N.iterator.return&&(O.method="return",O.arg=e,F(N,O),O.method==="throw")||I!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+I+"' method")),m;var V=f(D,N.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,m;var k=V.arg;return k?k.done?(O[N.resultName]=k.value,O.next=N.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,m):k:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,m)}function j(N){var O={tryLoc:N[0]};1 in N&&(O.catchLoc=N[1]),2 in N&&(O.finallyLoc=N[2],O.afterLoc=N[3]),this.tryEntries.push(O)}function A(N){var O=N.completion||{};O.type="normal",delete O.arg,N.completion=O}function M(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(j,this),this.reset(!0)}function H(N){if(N||N===""){var O=N[i];if(O)return O.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var I=-1,D=function V(){for(;++I<N.length;)if(n.call(N,I))return V.value=N[I],V.done=!1,V;return V.value=e,V.done=!0,V};return D.next=D}}throw new TypeError(Te(N)+" is not iterable")}return g.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:g,configurable:!0}),g.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var O=typeof N=="function"&&N.constructor;return!!O&&(O===g||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,y):(N.__proto__=y,u(N,l,"GeneratorFunction")),N.prototype=Object.create(R),N},t.awrap=function(N){return{__await:N}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(N,O,I,D,V){V===void 0&&(V=Promise);var k=new $(d(N,O,I,D),V);return t.isGeneratorFunction(O)?k:k.next().then(function(K){return K.done?K.value:k.next()})},w(R),u(R,l,"Generator"),u(R,i,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),t.keys=function(N){var O=Object(N),I=[];for(var D in O)I.push(D);return I.reverse(),function V(){for(;I.length;){var k=I.pop();if(k in O)return V.value=k,V.done=!1,V}return V.done=!0,V}},t.values=H,M.prototype={constructor:M,reset:function(O){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(A),!O)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var I=this;function D(Q,Z){return K.type="throw",K.arg=O,I.next=Q,Z&&(I.method="next",I.arg=e),!!Z}for(var V=this.tryEntries.length-1;V>=0;--V){var k=this.tryEntries[V],K=k.completion;if(k.tryLoc==="root")return D("end");if(k.tryLoc<=this.prev){var W=n.call(k,"catchLoc"),q=n.call(k,"finallyLoc");if(W&&q){if(this.prev<k.catchLoc)return D(k.catchLoc,!0);if(this.prev<k.finallyLoc)return D(k.finallyLoc)}else if(W){if(this.prev<k.catchLoc)return D(k.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return D(k.finallyLoc)}}}},abrupt:function(O,I){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var k=V;break}}k&&(O==="break"||O==="continue")&&k.tryLoc<=I&&I<=k.finallyLoc&&(k=null);var K=k?k.completion:{};return K.type=O,K.arg=I,k?(this.method="next",this.next=k.finallyLoc,m):this.complete(K)},complete:function(O,I){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&I&&(this.next=I),m},finish:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===O)return this.complete(D.completion,D.afterLoc),A(D),m}},catch:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===O){var V=D.completion;if(V.type==="throw"){var k=V.arg;A(D)}return k}}throw Error("illegal catch attempt")},delegateYield:function(O,I,D){return this.delegate={iterator:H(O),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=e),m}},t}function mc(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,a)}function ln(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){mc(o,n,a,i,s,"next",l)}function s(l){mc(o,n,a,i,s,"throw",l)}i(void 0)})}}var Ta=z({},Rv),Dh=Ta.version,zh=Ta.render,Vh=Ta.unmountComponentAtNode,zo;try{var Bh=Number((Dh||"").split(".")[0]);Bh>=18&&(zo=Ta.createRoot)}catch{}function gc(e){var t=Ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Te(t)==="object"&&(t.usingClientEntryPoint=e)}var wo="__rc_react_root__";function kh(e,t){gc(!0);var r=t[wo]||zo(t);gc(!1),r.render(e),t[wo]=r}function Hh(e,t){zh(e,t)}function Wh(e,t){if(zo){kh(e,t);return}Hh(e,t)}function Gh(e){return bs.apply(this,arguments)}function bs(){return bs=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[wo])===null||a===void 0||a.unmount(),delete t[wo]}));case 1:case"end":return n.stop()}},e)})),bs.apply(this,arguments)}function Uh(e){Vh(e)}function Kh(e){return ys.apply(this,arguments)}function ys(){return ys=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(zo===void 0){n.next=2;break}return n.abrupt("return",Gh(t));case 2:Uh(t);case 3:case"end":return n.stop()}},e)})),ys.apply(this,arguments)}const Yd=(e,t,r)=>r!==void 0?r:`${e}-${t}`,sl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},qh=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Xh=Ap("Wave",e=>[qh(e)]),Qd=`${Co}-wave-target`;function Yh(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function gi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Yh(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Qh(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return gi(t)?t:gi(r)?r:gi(n)?n:null}function pi(e){return Number.isNaN(e)?0:e}const Zh=e=>{const{className:t,target:r,component:n}=e,a=c.useRef(null),[o,i]=c.useState(null),[s,l]=c.useState([]),[u,d]=c.useState(0),[f,v]=c.useState(0),[b,h]=c.useState(0),[p,m]=c.useState(0),[S,g]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function E(){const x=getComputedStyle(r);i(Qh(r));const R=x.position==="static",{borderLeftWidth:w,borderTopWidth:$}=x;d(R?r.offsetLeft:pi(-parseFloat(w))),v(R?r.offsetTop:pi(-parseFloat($))),h(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:F,borderBottomLeftRadius:j,borderBottomRightRadius:A}=x;l([T,F,A,j].map(M=>pi(parseFloat(M))))}if(c.useEffect(()=>{if(r){const x=_t(()=>{E(),g(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(E),R.observe(r)),()=>{_t.cancel(x),R==null||R.disconnect()}}},[]),!S)return null;const C=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Qd));return c.createElement(sn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;Kh($).then(()=>{$==null||$.remove()})}return!1}},(x,R)=>{let{className:w}=x;return c.createElement("div",{ref:Or(a,R),className:Y(t,w,{"wave-quick":C}),style:y})})},Jh=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),Wh(c.createElement(Zh,Object.assign({},t,{target:e})),a)},e0=(e,t,r)=>{const{wave:n}=c.useContext(ot),[,a,o]=Lr(),i=Bt(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Qd}`)||d,{showEffect:v}=n||{};(v||Jh)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{_t.cancel(s.current),s.current=_t(()=>{i(u)})}},Zd=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(ot),o=P.useRef(null),i=a("wave"),[,s]=Xh(i),l=e0(o,Y(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!sl(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!P.isValidElement(t))return t??null;const u=on(t)?Or(t.ref,o):o;return Do(t,{ref:u})};process.env.NODE_ENV!=="production"&&(Zd.displayName="Wave");const Hn=e=>{const t=P.useContext(Fn);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},t0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},r0=e=>{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},n0=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}}}},Jd=br("Space",e=>{const t=Lt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[r0(t),n0(t),t0(t)]},()=>({}),{resetStyle:!1});var ef=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Vo=c.createContext(null),tf=(e,t)=>{const r=c.useContext(Vo),n=c.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Y(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},a0=e=>{let{children:t}=e;return c.createElement(Vo.Provider,{value:null},t)},o0=e=>{var{children:t}=e,r=ef(e,["children"]);return c.createElement(Vo.Provider,{value:r},t)},i0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=ef(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hn(y=>n??y),v=t("space-compact",i),[b,h]=Jd(v),p=Y(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),m=c.useContext(Vo),S=$r(u),g=c.useMemo(()=>S.map((y,E)=>{const C=(y==null?void 0:y.key)||`${v}-item-${E}`;return c.createElement(o0,{key:C,compactSize:f,compactDirection:a,isFirstItem:E===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:E===S.length-1&&(!m||(m==null?void 0:m.isLastItem))},y)}),[n,S,m]);return S.length===0?null:b(c.createElement("div",Object.assign({className:p},d),g))};var s0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const rf=c.createContext(void 0),l0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{prefixCls:n,size:a,className:o}=e,i=s0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Lr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=It("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Y(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(rf.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},pc=/^[\u4e00-\u9fa5]{2}$/,Ss=pc.test.bind(pc);function hc(e){return typeof e=="string"}function Qa(e){return e==="text"||e==="link"}function c0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hc(e.type)&&Ss(e.props.children)?Do(e,{children:e.props.children.split("").join(r)}):hc(e)?Ss(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):qd(e)?P.createElement("span",null,e):e}function u0(e,t){let r=!1;const n=[];return P.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),P.Children.map(n,a=>c0(a,t))}const nf=P.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Y(`${o}-icon`,r);return P.createElement("span",{ref:t,className:i,style:n},a)}),bc=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Y(`${r}-loading-icon`,n);return P.createElement(nf,{prefixCls:r,className:i,style:a,ref:t},P.createElement(ol,{className:o}))}),hi=()=>({width:0,opacity:0,transform:"scale(0)"}),bi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),d0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(bc,{prefixCls:t,className:a,style:o}):P.createElement(sn,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:hi,onAppearActive:bi,onEnterStart:hi,onEnterActive:bi,onLeaveStart:bi,onLeaveActive:hi},(s,l)=>{let{className:u,style:d}=s;return P.createElement(bc,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},yc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),f0=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:o}=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(n).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:r}},yc(`${t}-primary`,a),yc(`${t}-danger`,o)]}},af=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Lt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},of=e=>{var t,r,n,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:fo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:fo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:fo(u);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:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)}},v0=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ee(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({},rl(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Fr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),m0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),g0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),p0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),wa=(e,t,r,n,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Fr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ll=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},p0(e))}),sf=e=>Object.assign({},ll(e)),$o=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),lf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Fr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),wa(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},Fr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ll(e))}),h0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Fr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),wa(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},Fr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ll(e))}),b0=e=>Object.assign(Object.assign({},lf(e)),{borderStyle:"dashed"}),y0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$o(e))}),S0=e=>Object.assign(Object.assign(Object.assign({},Fr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$o(e)),Fr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),C0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:lf(e),[`${t}-primary`]:h0(e),[`${t}-dashed`]:b0(e),[`${t}-link`]:y0(e),[`${t}-text`]:S0(e),[`${t}-ghost`]:wa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},cl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,d=`${r}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:n,padding:`${ee(u)} ${ee(s)}`,borderRadius:i,[`&${d}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:m0(e)},{[`${r}${r}-round${t}`]:g0(e)}]},E0=e=>{const t=Lt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return cl(t,e.componentCls)},x0=e=>{const t=Lt(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 cl(t,`${e.componentCls}-sm`)},w0=e=>{const t=Lt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return cl(t,`${e.componentCls}-lg`)},$0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},O0=br("Button",e=>{const t=af(e);return[v0(t),E0(t),x0(t),w0(t),$0(t),C0(t),f0(t)]},of,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function R0(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function P0(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function cf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},R0(e,n,t)),P0(r,n,t))}}function _0(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 N0(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function T0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_0(e,t)),N0(e.componentCls,t))}}const I0=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ee(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:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ee(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},M0=jp(["Button","compact"],e=>{const t=af(e);return[cf(t),T0(t),I0(t)]},of);var A0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function j0(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const F0=P.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:p,icon:m,iconPosition:S="start",ghost:g=!1,block:y=!1,htmlType:E="button",classNames:C,style:x={},autoInsertSpace:R}=e,w=A0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:T,direction:F,button:j}=P.useContext(ot),A=(r=R??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,M=T("btn",i),[H,N,O]=O0(M),I=P.useContext(jn),D=v??I,V=P.useContext(rf),k=P.useMemo(()=>j0(o),[o]),[K,W]=P.useState(k.loading),[q,Q]=P.useState(!1),J=Or(t,P.createRef()),te=P.Children.count(p)===1&&!m&&!Qa($);P.useEffect(()=>{let re=null;k.delay>0?re=setTimeout(()=>{re=null,W(!0)},k.delay):W(k.loading);function ge(){re&&(clearTimeout(re),re=null)}return ge},[k]),P.useEffect(()=>{if(!J||!J.current||!A)return;const re=J.current.textContent;te&&Ss(re)?q||Q(!0):q&&Q(!1)},[J]);const ae=re=>{const{onClick:ge}=e;if(K||D){re.preventDefault();return}ge==null||ge(re)};if(process.env.NODE_ENV!=="production"){const re=It("Button");process.env.NODE_ENV!=="production"&&re(!(typeof m=="string"&&m.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${m}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&re(!(g&&Qa($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:fe,compactItemClassnames:de}=tf(M,F),ve={large:"lg",small:"sm",middle:void 0},we=Hn(re=>{var ge,he;return(he=(ge=d??fe)!==null&&ge!==void 0?ge:V)!==null&&he!==void 0?he:re}),B=we&&ve[we]||"",ce=K?"loading":m,se=hr(w,["navigate"]),Ce=Y(M,N,O,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${$}`]:$,[`${M}-${B}`]:B,[`${M}-icon-only`]:!p&&p!==0&&!!ce,[`${M}-background-ghost`]:g&&!Qa($),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:q&&A&&!K,[`${M}-block`]:y,[`${M}-dangerous`]:l,[`${M}-rtl`]:F==="rtl",[`${M}-icon-end`]:S==="end"},de,b,h,j==null?void 0:j.className),pe=Object.assign(Object.assign({},j==null?void 0:j.style),x),ne=Y(C==null?void 0:C.icon,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.icon),me=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.icon)||{}),xe=m&&!K?P.createElement(nf,{prefixCls:M,className:ne,style:me},m):P.createElement(d0,{existIcon:!!m,prefixCls:M,loading:K}),Me=p||p===0?u0(p,te&&A):null;if(se.href!==void 0)return H(P.createElement("a",Object.assign({},se,{className:Y(Ce,{[`${M}-disabled`]:D}),href:D?void 0:se.href,style:pe,onClick:ae,ref:J,tabIndex:D?-1:0}),xe,Me));let oe=P.createElement("button",Object.assign({},w,{type:E,className:Ce,style:pe,onClick:ae,disabled:D,ref:J}),xe,Me,!!de&&P.createElement(M0,{key:"compact",prefixCls:M}));return Qa($)||(oe=P.createElement(Zd,{component:"Button",disabled:K},oe)),H(oe)}),Bo=F0;Bo.Group=l0;Bo.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Bo.displayName="Button");var uf=c.createContext(null),Sc=[];function L0(e,t){var r=c.useState(function(){if(!Kt())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=U(r,1),a=n[0],o=c.useRef(!1),i=c.useContext(uf),s=c.useState(Sc),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var m=[h].concat(ye(p));return m})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return yt(function(){return e?i?i(v):v():b(),b},[e]),yt(function(){u.length&&(u.forEach(function(h){return h()}),d(Sc))},[u]),[a,f]}function D0(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";Ar(`
148
+ `,bb=function(t){var r=P.useContext(nc),n=r.csp,a=r.prefixCls,o=hb;a&&(o=o.replace(/anticon/g,a)),P.useEffect(function(){var i=t.current,s=ii(i);Wr(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},yb=["icon","className","onClick","style","primaryColor","secondaryColor"],Fa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Sb(e){var t=e.primaryColor,r=e.secondaryColor;Fa.primaryColor=t,Fa.secondaryColor=r||bv(t),Fa.calculated=!!r}function Cb(){return z({},Fa)}var da=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=et(t,yb),c=u.useRef(),d=Fa;if(i&&(d={primaryColor:i,secondaryColor:s||bv(i)}),bb(c),gb(Eu(r),"icon should be icon definiton, but got ".concat(r)),!Eu(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),vl(f.icon,"svg-".concat(f.name),z(z({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};da.displayName="IconReact";da.getTwoToneColors=Cb;da.setTwoToneColors=Sb;function Sv(e){var t=yv(e),r=K(t,2),n=r[0],a=r[1];return da.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Eb(){var e=da.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var xb=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Sv(ni.primary);var tr=u.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=et(e,xb),d=u.useContext(nc),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,h=Z(b,v,L(L({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),g=i;g===void 0&&s&&(g=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=yv(l),m=K(S,2),y=m[0],E=m[1];return u.createElement("span",Oe({role:"img","aria-label":n.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),u.createElement(da,{icon:n,primaryColor:y,secondaryColor:E,style:p}))});tr.displayName="AntdIcon";tr.getTwoToneColor=Eb;tr.setTwoToneColor=Sv;var wb={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"},$b=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:wb}))},Cv=u.forwardRef($b);process.env.NODE_ENV!=="production"&&(Cv.displayName="CloseCircleFilled");var Ob={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"},Rb=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:Ob}))},Ev=u.forwardRef(Rb);process.env.NODE_ENV!=="production"&&(Ev.displayName="CloseOutlined");function xv(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const Pb=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function wi(e,t){return Pb(e,e,t)}const lc=e=>{const[,,,,t]=Kr();return t?`${e}-css-var`:""};var ue={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=ue.F1&&r<=ue.F12)return!1;switch(r){case ue.ALT:case ue.CAPS_LOCK:case ue.CONTEXT_MENU:case ue.CTRL:case ue.DOWN:case ue.END:case ue.ESC:case ue.HOME:case ue.INSERT:case ue.LEFT:case ue.MAC_FF_META:case ue.META:case ue.NUMLOCK:case ue.NUM_CENTER:case ue.PAGE_DOWN:case ue.PAGE_UP:case ue.PAUSE:case ue.PRINT_SCREEN:case ue.RIGHT:case ue.SHIFT:case ue.UP:case ue.WIN_KEY:case ue.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ue.ZERO&&t<=ue.NINE||t>=ue.NUM_ZERO&&t<=ue.NUM_MULTIPLY||t>=ue.A&&t<=ue.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ue.SPACE:case ue.QUESTION_MARK:case ue.NUM_PLUS:case ue.NUM_MINUS:case ue.NUM_PERIOD:case ue.NUM_DIVISION:case ue.SEMICOLON:case ue.DASH:case ue.EQUALS:case ue.COMMA:case ue.PERIOD:case ue.SLASH:case ue.APOSTROPHE:case ue.SINGLE_QUOTE:case ue.OPEN_SQUARE_BRACKET:case ue.BACKSLASH:case ue.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_b={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"},Nb=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:_b}))},cc=u.forwardRef(Nb);process.env.NODE_ENV!=="production"&&(cc.displayName="LoadingOutlined");const uc=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(uc.displayName="zIndexContext");const fn=100,Tb=10,Ib=fn*Tb,wv={Modal:fn,Drawer:fn,Popover:fn,Popconfirm:fn,Tooltip:fn,Tour:fn},Mb={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ab(e){return e in wv}function jb(e,t){const[,r]=Kr(),n=P.useContext(uc),a=Ab(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+wv[e]:i+=Mb[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=Lt(e),s=r.zIndexPopupBase+Ib,l=o[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}function Jt(){Jt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(N,R,I){N[R]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(N,R,I){return Object.defineProperty(N,R,{value:I,enumerable:!0,configurable:!0,writable:!0}),N[R]}try{c({},"")}catch{c=function(I,D,k){return I[D]=k}}function d(N,R,I,D){var k=R&&R.prototype instanceof S?R:S,V=Object.create(k.prototype),G=new A(D||[]);return a(V,"_invoke",{value:T(N,I,G)}),V}function f(N,R,I){try{return{type:"normal",arg:N.call(R,I)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",g="completed",p={};function S(){}function m(){}function y(){}var E={};c(E,i,function(){return this});var C=Object.getPrototypeOf,x=C&&C(C(H([])));x&&x!==r&&n.call(x,i)&&(E=x);var w=y.prototype=S.prototype=Object.create(E);function $(N){["next","throw","return"].forEach(function(R){c(N,R,function(I){return this._invoke(R,I)})})}function O(N,R){function I(k,V,G,W){var q=f(N[k],N,V);if(q.type!=="throw"){var Y=q.arg,Q=Y.value;return Q&&Te(Q)=="object"&&n.call(Q,"__await")?R.resolve(Q.__await).then(function(J){I("next",J,G,W)},function(J){I("throw",J,G,W)}):R.resolve(Q).then(function(J){Y.value=J,G(Y)},function(J){return I("throw",J,G,W)})}W(q.arg)}var D;a(this,"_invoke",{value:function(V,G){function W(){return new R(function(q,Y){I(V,G,q,Y)})}return D=D?D.then(W,W):W()}})}function T(N,R,I){var D=v;return function(k,V){if(D===h)throw Error("Generator is already running");if(D===g){if(k==="throw")throw V;return{value:e,done:!0}}for(I.method=k,I.arg=V;;){var G=I.delegate;if(G){var W=F(G,I);if(W){if(W===p)continue;return W}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(D===v)throw D=g,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);D=h;var q=f(N,R,I);if(q.type==="normal"){if(D=I.done?g:b,q.arg===p)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D=g,I.method="throw",I.arg=q.arg)}}}function F(N,R){var I=R.method,D=N.iterator[I];if(D===e)return R.delegate=null,I==="throw"&&N.iterator.return&&(R.method="return",R.arg=e,F(N,R),R.method==="throw")||I!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+I+"' method")),p;var k=f(D,N.iterator,R.arg);if(k.type==="throw")return R.method="throw",R.arg=k.arg,R.delegate=null,p;var V=k.arg;return V?V.done?(R[N.resultName]=V.value,R.next=N.nextLoc,R.method!=="return"&&(R.method="next",R.arg=e),R.delegate=null,p):V:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,p)}function j(N){var R={tryLoc:N[0]};1 in N&&(R.catchLoc=N[1]),2 in N&&(R.finallyLoc=N[2],R.afterLoc=N[3]),this.tryEntries.push(R)}function M(N){var R=N.completion||{};R.type="normal",delete R.arg,N.completion=R}function A(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(j,this),this.reset(!0)}function H(N){if(N||N===""){var R=N[i];if(R)return R.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var I=-1,D=function k(){for(;++I<N.length;)if(n.call(N,I))return k.value=N[I],k.done=!1,k;return k.value=e,k.done=!0,k};return D.next=D}}throw new TypeError(Te(N)+" is not iterable")}return m.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var R=typeof N=="function"&&N.constructor;return!!R&&(R===m||(R.displayName||R.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,y):(N.__proto__=y,c(N,l,"GeneratorFunction")),N.prototype=Object.create(w),N},t.awrap=function(N){return{__await:N}},$(O.prototype),c(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(N,R,I,D,k){k===void 0&&(k=Promise);var V=new O(d(N,R,I,D),k);return t.isGeneratorFunction(R)?V:V.next().then(function(G){return G.done?G.value:V.next()})},$(w),c(w,l,"Generator"),c(w,i,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),t.keys=function(N){var R=Object(N),I=[];for(var D in R)I.push(D);return I.reverse(),function k(){for(;I.length;){var V=I.pop();if(V in R)return k.value=V,k.done=!1,k}return k.done=!0,k}},t.values=H,A.prototype={constructor:A,reset:function(R){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),!R)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var I=this;function D(Y,Q){return G.type="throw",G.arg=R,I.next=Y,Q&&(I.method="next",I.arg=e),!!Q}for(var k=this.tryEntries.length-1;k>=0;--k){var V=this.tryEntries[k],G=V.completion;if(V.tryLoc==="root")return D("end");if(V.tryLoc<=this.prev){var W=n.call(V,"catchLoc"),q=n.call(V,"finallyLoc");if(W&&q){if(this.prev<V.catchLoc)return D(V.catchLoc,!0);if(this.prev<V.finallyLoc)return D(V.finallyLoc)}else if(W){if(this.prev<V.catchLoc)return D(V.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return D(V.finallyLoc)}}}},abrupt:function(R,I){for(var D=this.tryEntries.length-1;D>=0;--D){var k=this.tryEntries[D];if(k.tryLoc<=this.prev&&n.call(k,"finallyLoc")&&this.prev<k.finallyLoc){var V=k;break}}V&&(R==="break"||R==="continue")&&V.tryLoc<=I&&I<=V.finallyLoc&&(V=null);var G=V?V.completion:{};return G.type=R,G.arg=I,V?(this.method="next",this.next=V.finallyLoc,p):this.complete(G)},complete:function(R,I){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&I&&(this.next=I),p},finish:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===R)return this.complete(D.completion,D.afterLoc),M(D),p}},catch:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===R){var k=D.completion;if(k.type==="throw"){var V=k.arg;M(D)}return V}}throw Error("illegal catch attempt")},delegateYield:function(R,I,D){return this.delegate={iterator:H(R),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=e),p}},t}function wu(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function wn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){wu(o,n,a,i,s,"next",l)}function s(l){wu(o,n,a,i,s,"throw",l)}i(void 0)})}}var oo=z({},$m),Fb=oo.version,Lb=oo.render,Db=oo.unmountComponentAtNode,$i;try{var zb=Number((Fb||"").split(".")[0]);zb>=18&&($i=oo.createRoot)}catch{}function $u(e){var t=oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Te(t)==="object"&&(t.usingClientEntryPoint=e)}var si="__rc_react_root__";function kb(e,t){$u(!0);var r=t[si]||$i(t);$u(!1),r.render(e),t[si]=r}function Vb(e,t){Lb(e,t)}function Bb(e,t){if($i){kb(e,t);return}Vb(e,t)}function Hb(e){return pl.apply(this,arguments)}function pl(){return pl=wn(Jt().mark(function e(t){return Jt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[si])===null||a===void 0||a.unmount(),delete t[si]}));case 1:case"end":return n.stop()}},e)})),pl.apply(this,arguments)}function Wb(e){Db(e)}function Gb(e){return ml.apply(this,arguments)}function ml(){return ml=wn(Jt().mark(function e(t){return Jt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if($i===void 0){n.next=2;break}return n.abrupt("return",Hb(t));case 2:Wb(t);case 3:case"end":return n.stop()}},e)})),ml.apply(this,arguments)}const $v=(e,t,r)=>r!==void 0?r:`${e}-${t}`,dc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Ub=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Kb=I0("Wave",e=>[Ub(e)]),Ov=`${ai}-wave-target`;function qb(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function ss(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&qb(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Xb(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return ss(t)?t:ss(r)?r:ss(n)?n:null}function ls(e){return Number.isNaN(e)?0:e}const Yb=e=>{const{className:t,target:r,component:n}=e,a=u.useRef(null),[o,i]=u.useState(null),[s,l]=u.useState([]),[c,d]=u.useState(0),[f,v]=u.useState(0),[b,h]=u.useState(0),[g,p]=u.useState(0),[S,m]=u.useState(!1),y={left:c,top:f,width:b,height:g,borderRadius:s.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function E(){const x=getComputedStyle(r);i(Xb(r));const w=x.position==="static",{borderLeftWidth:$,borderTopWidth:O}=x;d(w?r.offsetLeft:ls(-parseFloat($))),v(w?r.offsetTop:ls(-parseFloat(O))),h(r.offsetWidth),p(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:F,borderBottomLeftRadius:j,borderBottomRightRadius:M}=x;l([T,F,M,j].map(A=>ls(parseFloat(A))))}if(u.useEffect(()=>{if(r){const x=Mt(()=>{E(),m(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(E),w.observe(r)),()=>{Mt.cancel(x),w==null||w.disconnect()}}},[]),!S)return null;const C=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Ov));return u.createElement(xn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,w)=>{var $;if(w.deadline||w.propertyName==="opacity"){const O=($=a.current)===null||$===void 0?void 0:$.parentElement;Gb(O).then(()=>{O==null||O.remove()})}return!1}},(x,w)=>{let{className:$}=x;return u.createElement("div",{ref:jr(a,w),className:Z(t,$,{"wave-quick":C}),style:y})})},Zb=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),Bb(u.createElement(Yb,Object.assign({},t,{target:e})),a)},Qb=(e,t,r)=>{const{wave:n}=u.useContext(it),[,a,o]=Kr(),i=Ut(c=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Ov}`)||d,{showEffect:v}=n||{};(v||Zb)(f,{className:t,token:a,component:r,event:c,hashId:o})}),s=u.useRef();return c=>{Mt.cancel(s.current),s.current=Mt(()=>{i(c)})}},Rv=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(it),o=P.useRef(null),i=a("wave"),[,s]=Kb(i),l=Qb(o,Z(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!dc(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!P.isValidElement(t))return t??null;const c=En(t)?jr(t.ref,o):o;return wi(t,{ref:c})};process.env.NODE_ENV!=="production"&&(Rv.displayName="Wave");const fa=e=>{const t=P.useContext(Jn);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Jb=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ey=e=>{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},ty=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}}}},Pv=Or("Space",e=>{const t=Bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[ey(t),ty(t),Jb(t)]},()=>({}),{resetStyle:!1});var _v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Oi=u.createContext(null),Nv=(e,t)=>{const r=u.useContext(Oi),n=u.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Z(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},ry=e=>{let{children:t}=e;return u.createElement(Oi.Provider,{value:null},t)},ny=e=>{var{children:t}=e,r=_v(e,["children"]);return u.createElement(Oi.Provider,{value:r},t)},ay=e=>{const{getPrefixCls:t,direction:r}=u.useContext(it),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:c}=e,d=_v(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=fa(y=>n??y),v=t("space-compact",i),[b,h]=Pv(v),g=Z(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),p=u.useContext(Oi),S=Ar(c),m=u.useMemo(()=>S.map((y,E)=>{const C=(y==null?void 0:y.key)||`${v}-item-${E}`;return u.createElement(ny,{key:C,compactSize:f,compactDirection:a,isFirstItem:E===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:E===S.length-1&&(!p||(p==null?void 0:p.isLastItem))},y)}),[n,S,p]);return S.length===0?null:b(u.createElement("div",Object.assign({className:g},d),m))};var oy=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Tv=u.createContext(void 0),iy=e=>{const{getPrefixCls:t,direction:r}=u.useContext(it),{prefixCls:n,size:a,className:o}=e,i=oy(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Kr();let c="";switch(a){case"large":c="lg";break;case"small":c="sm";break}if(process.env.NODE_ENV!=="production"){const f=Lt("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Z(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},o,l);return u.createElement(Tv.Provider,{value:a},u.createElement("div",Object.assign({},i,{className:d})))},Ou=/^[\u4e00-\u9fa5]{2}$/,gl=Ou.test.bind(Ou);function Ru(e){return typeof e=="string"}function Oo(e){return e==="text"||e==="link"}function sy(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ru(e.type)&&gl(e.props.children)?wi(e,{children:e.props.children.split("").join(r)}):Ru(e)?gl(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):xv(e)?P.createElement("span",null,e):e}function ly(e,t){let r=!1;const n=[];return P.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),P.Children.map(n,a=>sy(a,t))}const Iv=P.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Z(`${o}-icon`,r);return P.createElement("span",{ref:t,className:i,style:n},a)}),Pu=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Z(`${r}-loading-icon`,n);return P.createElement(Iv,{prefixCls:r,className:i,style:a,ref:t},P.createElement(cc,{className:o}))}),cs=()=>({width:0,opacity:0,transform:"scale(0)"}),us=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cy=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(Pu,{prefixCls:t,className:a,style:o}):P.createElement(xn,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:cs,onAppearActive:us,onEnterStart:cs,onEnterActive:us,onLeaveStart:us,onLeaveActive:cs},(s,l)=>{let{className:c,style:d}=s;return P.createElement(Pu,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:c})})},_u=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),uy=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:o}=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(n).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:r}},_u(`${t}-primary`,a),_u(`${t}-danger`,o)]}},Mv=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Bt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},Av=e=>{var t,r,n,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:Wo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Wo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Wo(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:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*v)/2-e.lineWidth,0)}},dy=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${te(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({},ic(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Ur=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),fy=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),vy=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),py=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Qa=(e,t,r,n,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Ur(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),fc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},py(e))}),jv=e=>Object.assign({},fc(e)),li=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Fv=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jv(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Ur(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Qa(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},Ur(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Qa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),fc(e))}),my=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jv(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Ur(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Qa(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},Ur(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Qa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fc(e))}),gy=e=>Object.assign(Object.assign({},Fv(e)),{borderStyle:"dashed"}),hy=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Ur(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),li(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ur(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),li(e))}),by=e=>Object.assign(Object.assign(Object.assign({},Ur(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),li(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},li(e)),Ur(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),yy=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Fv(e),[`${t}-primary`]:my(e),[`${t}-dashed`]:gy(e),[`${t}-link`]:hy(e),[`${t}-text`]:by(e),[`${t}-ghost`]:Qa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},vc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,d=`${r}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:n,padding:`${te(c)} ${te(s)}`,borderRadius:i,[`&${d}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:fy(e)},{[`${r}${r}-round${t}`]:vy(e)}]},Sy=e=>{const t=Bt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return vc(t,e.componentCls)},Cy=e=>{const t=Bt(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 vc(t,`${e.componentCls}-sm`)},Ey=e=>{const t=Bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return vc(t,`${e.componentCls}-lg`)},xy=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},wy=Or("Button",e=>{const t=Mv(e);return[dy(t),Sy(t),Cy(t),Ey(t),xy(t),yy(t),uy(t)]},Av,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function $y(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Oy(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Lv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},$y(e,n,t)),Oy(r,n,t))}}function Ry(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 Py(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function _y(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ry(e,t)),Py(e.componentCls,t))}}const Ny=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${te(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:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${te(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Ty=M0(["Button","compact"],e=>{const t=Mv(e);return[Lv(t),_y(t),Ny(t)]},Av);var Iy=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function My(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Ay=P.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:c="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:g,icon:p,iconPosition:S="start",ghost:m=!1,block:y=!1,htmlType:E="button",classNames:C,style:x={},autoInsertSpace:w}=e,$=Iy(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=s||"default",{getPrefixCls:T,direction:F,button:j}=P.useContext(it),M=(r=w??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,A=T("btn",i),[H,N,R]=wy(A),I=P.useContext(Qn),D=v??I,k=P.useContext(Tv),V=P.useMemo(()=>My(o),[o]),[G,W]=P.useState(V.loading),[q,Y]=P.useState(!1),J=jr(t,P.createRef()),ee=P.Children.count(g)===1&&!p&&!Oo(O);P.useEffect(()=>{let ne=null;V.delay>0?ne=setTimeout(()=>{ne=null,W(!0)},V.delay):W(V.loading);function me(){ne&&(clearTimeout(ne),ne=null)}return me},[V]),P.useEffect(()=>{if(!J||!J.current||!M)return;const ne=J.current.textContent;ee&&gl(ne)?q||Y(!0):q&&Y(!1)},[J]);const re=ne=>{const{onClick:me}=e;if(G||D){ne.preventDefault();return}me==null||me(ne)};if(process.env.NODE_ENV!=="production"){const ne=Lt("Button");process.env.NODE_ENV!=="production"&&ne(!(typeof p=="string"&&p.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${p}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ne(!(m&&Oo(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:de,compactItemClassnames:se}=Nv(A,F),le={large:"lg",small:"sm",middle:void 0},we=fa(ne=>{var me,he;return(he=(me=d??de)!==null&&me!==void 0?me:k)!==null&&he!==void 0?he:ne}),B=we&&le[we]||"",fe=G?"loading":p,ce=$r($,["navigate"]),Ce=Z(A,N,R,{[`${A}-${c}`]:c!=="default"&&c,[`${A}-${O}`]:O,[`${A}-${B}`]:B,[`${A}-icon-only`]:!g&&g!==0&&!!fe,[`${A}-background-ghost`]:m&&!Oo(O),[`${A}-loading`]:G,[`${A}-two-chinese-chars`]:q&&M&&!G,[`${A}-block`]:y,[`${A}-dangerous`]:l,[`${A}-rtl`]:F==="rtl",[`${A}-icon-end`]:S==="end"},se,b,h,j==null?void 0:j.className),ge=Object.assign(Object.assign({},j==null?void 0:j.style),x),ae=Z(C==null?void 0:C.icon,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.icon),pe=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.icon)||{}),xe=p&&!G?P.createElement(Iv,{prefixCls:A,className:ae,style:pe},p):P.createElement(cy,{existIcon:!!p,prefixCls:A,loading:G}),Me=g||g===0?ly(g,ee&&M):null;if(ce.href!==void 0)return H(P.createElement("a",Object.assign({},ce,{className:Z(Ce,{[`${A}-disabled`]:D}),href:D?void 0:ce.href,style:ge,onClick:re,ref:J,tabIndex:D?-1:0}),xe,Me));let oe=P.createElement("button",Object.assign({},$,{type:E,className:Ce,style:ge,onClick:re,disabled:D,ref:J}),xe,Me,!!se&&P.createElement(Ty,{key:"compact",prefixCls:A}));return Oo(O)||(oe=P.createElement(Rv,{component:"Button",disabled:G},oe)),H(oe)}),Ri=Ay;Ri.Group=iy;Ri.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Ri.displayName="Button");var Dv=u.createContext(null),Nu=[];function jy(e,t){var r=u.useState(function(){if(!Qt())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=K(r,1),a=n[0],o=u.useRef(!1),i=u.useContext(Dv),s=u.useState(Nu),l=K(s,2),c=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(g){var p=[h].concat(ye(g));return p})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return Et(function(){return e?i?i(v):v():b(),b},[e]),Et(function(){c.length&&(c.forEach(function(h){return h()}),d(Nu))},[c]),[a,f]}function Fy(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";Wr(`
149
149
  #`.concat(t,`::-webkit-scrollbar {
150
150
  `).concat(d,`
151
151
  `).concat(f,`
152
- }`),t)}catch(h){console.error(h),a=l,o=u}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ha(t),{width:v,height:b}}function z0(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:D0(e)}function V0(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var B0="rc-util-locker-".concat(Date.now()),Cc=0;function k0(e){var t=!!e,r=c.useState(function(){return Cc+=1,"".concat(B0,"_").concat(Cc)}),n=U(r,1),a=n[0];yt(function(){if(t){var o=z0(document.body).width,i=V0();Ar(`
152
+ }`),t)}catch(h){console.error(h),a=l,o=c}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Ga(t),{width:v,height:b}}function Ly(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Fy(e)}function Dy(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var zy="rc-util-locker-".concat(Date.now()),Tu=0;function ky(e){var t=!!e,r=u.useState(function(){return Tu+=1,"".concat(zy,"_").concat(Tu)}),n=K(r,1),a=n[0];Et(function(){if(t){var o=Ly(document.body).width,i=Dy();Wr(`
153
153
  html body {
154
154
  overflow-y: hidden;
155
155
  `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
156
- }`),a)}else ha(a);return function(){ha(a)}},[t,a])}var H0=!1;function W0(e){return H0}var Ec=function(t){return t===!1?!1:!Kt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ul=c.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,u=c.useState(r),d=U(u,2),f=d[0],v=d[1],b=f||r;process.env.NODE_ENV!=="production"&&at(Kt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return Ec(a)}),p=U(h,2),m=p[0],S=p[1];c.useEffect(function(){var j=Ec(a);S(j??null)});var g=L0(b&&!m,o),y=U(g,2),E=y[0],C=y[1],x=m??E;k0(n&&r&&Kt()&&(x===E||x===document.body));var R=null;if(l&&on(l)&&t){var w=l;R=w.ref}var $=_a(R,t);if(!b||!Kt()||m===void 0)return null;var T=x===!1||W0(),F=l;return t&&(F=c.cloneElement(l,{ref:$})),c.createElement(uf.Provider,{value:C},T?F:Pn.createPortal(F,x))});process.env.NODE_ENV!=="production"&&(ul.displayName="Portal");function G0(){var e=z({},c);return e.useId}var xc=0,wc=G0();const U0=wc?function(t){var r=wc();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=xc;xc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var nn="RC_FORM_INTERNAL_HOOKS",ft=function(){at(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ln=c.createContext({getFieldValue:ft,getFieldsValue:ft,getFieldError:ft,getFieldWarning:ft,getFieldsError:ft,isFieldsTouched:ft,isFieldTouched:ft,isFieldValidating:ft,isFieldsValidating:ft,resetFields:ft,setFields:ft,setFieldValue:ft,setFieldsValue:ft,validateFields:ft,submit:ft,getInternalHooks:function(){return ft(),{dispatch:ft,initEntityValue:ft,registerField:ft,useSubscribe:ft,setInitialValues:ft,destroyForm:ft,setCallbacks:ft,registerWatch:ft,getFields:ft,setValidateMessages:ft,setPreserve:ft,getInitialValue:ft}}}),Oo=c.createContext(null);function Cs(e){return e==null?[]:Array.isArray(e)?e:[e]}function K0(e){return e&&!!e._init}function Es(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var xs=Es();function q0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function X0(e,t,r){if(Us())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ma(a,r.prototype),a}function ws(e){var t=typeof Map=="function"?new Map:void 0;return ws=function(n){if(n===null||!q0(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return X0(n,arguments,ga(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ma(a,n)},ws(e)}var Y0=/%[sdj%]/g,df=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(df=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function $s(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function er(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(Y0,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Q0(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Nt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Q0(t)&&typeof e=="string"&&!e)}function Z0(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,ye(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function $c(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function J0(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ye(e[r]||[]))}),t}var Oc=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;return jt(this,r),o=t.call(this,"Async Validation Error"),L(We(o),"errors",void 0),L(We(o),"fields",void 0),o.errors=n,o.fields=a,o}return Ft(r)}(ws(Error));function eb(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(S){return n(S),S.length?b(new Oc(S,$s(S))):v(a)},p=J0(e);$c(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(m){if(d.push.apply(d,m),u++,u===l)return n(d),d.length?b(new Oc(d,$s(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var m=e[p];i.indexOf(p)!==-1?$c(m,r,h):Z0(m,r,h)})});return f.catch(function(v){return v}),f}function tb(e){return!!(e&&e.message!==void 0)}function rb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Rc(e,t){return function(r){var n;return e.fullFields?n=rb(t,e.fullFields):n=t[r.field||e.fullField],tb(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Pc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Te(n)==="object"&&Te(e[r])==="object"?e[r]=z(z({},e[r]),n):e[r]=n}}return e}var vn="enum",nb=function(t,r,n,a,o){t[vn]=Array.isArray(t[vn])?t[vn]:[],t[vn].indexOf(r)===-1&&a.push(er(o.messages[vn],t.fullField,t[vn].join(", ")))},ab=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ob=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(er(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(er(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(er(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(er(o.messages[f].range,t.fullField,t.min,t.max))},ff=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||Nt(r,i||t.type))&&a.push(er(o.messages.required,t.fullField))},Za;const ib=function(){if(Za)return Za;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(r).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(m).concat(S,")").concat(g).concat(y);return Za=new RegExp("(?:^".concat(E,"$)"),"i"),Za};var _c={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oa={integer:function(t){return oa.number(t)&&parseInt(t,10)===t},float:function(t){return oa.number(t)&&!oa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Te(t)==="object"&&!oa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(_c.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ib())},hex:function(t){return typeof t=="string"&&!!t.match(_c.hex)}},sb=function(t,r,n,a,o){if(t.required&&r===void 0){ff(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?oa[s](r)||a.push(er(o.messages.types[s],t.fullField,t.type)):s&&Te(r)!==t.type&&a.push(er(o.messages.types[s],t.fullField,t.type))},lb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(er(o.messages.whitespace,t.fullField))};const Qe={required:ff,whitespace:lb,type:sb,range:ob,enum:nb,pattern:ab};var cb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},ub=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Qe.required(t,r,a,i,o,"array"),r!=null&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},db=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},fb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!Nt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},vb="enum",mb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[vb](t,r,a,i,o)}n(i)},gb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},pb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},hb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},bb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},yb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Sb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},Cb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),Nt(r)||Qe.type(t,r,a,i,o)}n(i)},Eb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Te(r);Qe.required(t,r,a,i,o,s),n(i)},xb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Nt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),Nt(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},yi=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Nt(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),Nt(r,i)||Qe.type(t,r,a,s,o)}n(s)};const da={string:xb,method:hb,number:bb,boolean:db,regexp:Cb,integer:pb,float:gb,array:ub,object:yb,enum:mb,pattern:Sb,date:fb,url:yi,hex:yi,email:yi,required:Eb,any:cb};var Ia=function(){function e(t){jt(this,e),L(this,"rules",null),L(this,"_messages",xs),this.define(t)}return Ft(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Te(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Pc(Es(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],m={};function S(y){if(Array.isArray(y)){var E;p=(E=p).concat.apply(E,ye(y))}else p.push(y)}for(var g=0;g<h.length;g++)S(h[g]);p.length?(m=$s(p),l(p,m)):l(null,i)}if(s.messages){var d=this.messages();d===xs&&(d=Es()),Pc(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],m=i[h];p.forEach(function(S){var g=S;typeof g.transform=="function"&&(i===r&&(i=z({},i)),m=i[h]=g.transform(m),m!=null&&(g.type=g.type||(Array.isArray(m)?"array":Te(m)))),typeof g=="function"?g={validator:g}:g=z({},g),g.validator=n.getValidationMethod(g),g.validator&&(g.field=h,g.fullField=g.fullField||h,g.type=n.getType(g),f[h]=f[h]||[],f[h].push({rule:g,value:m,source:i,field:h}))})});var b={};return eb(f,s,function(h,p){var m=h.rule,S=(m.type==="object"||m.type==="array")&&(Te(m.fields)==="object"||Te(m.defaultField)==="object");S=S&&(m.required||!m.required&&h.value),m.field=h.field;function g(R,w){return z(z({},w),{},{fullField:"".concat(m.fullField,".").concat(R),fullFields:m.fullFields?[].concat(ye(m.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&m.message!==void 0&&(w=[].concat(m.message));var $=w.map(Rc(m,i));if(s.first&&$.length)return b[m.field]=1,p($);if(!S)p($);else{if(m.required&&!h.value)return m.message!==void 0?$=[].concat(m.message).map(Rc(m,i)):s.error&&($=[s.error(m,er(s.messages.required,m.field))]),p($);var T={};m.defaultField&&Object.keys(h.value).map(function(A){T[A]=m.defaultField}),T=z(z({},T),h.rule.fields);var F={};Object.keys(T).forEach(function(A){var M=T[A],H=Array.isArray(M)?M:[M];F[A]=H.map(g.bind(null,A))});var j=new e(F);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(A){var M=[];$&&$.length&&M.push.apply(M,ye($)),A&&A.length&&M.push.apply(M,ye(A)),p(M.length?M:null)})}}var E;if(m.asyncValidator)E=m.asyncValidator(m,h.value,y,h.source,s);else if(m.validator){try{E=m.validator(m,h.value,y,h.source,s)}catch(R){var C,x;(C=(x=console).error)===null||C===void 0||C.call(x,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}E===!0?y():E===!1?y(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):E instanceof Array?y(E):E instanceof Error&&y(E.message)}E&&E.then&&E.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!da.hasOwnProperty(r.type))throw new Error(er("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?da.required:da[this.getType(r)]||void 0}}]),e}();L(Ia,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");da[t]=r});L(Ia,"warning",df);L(Ia,"messages",xs);L(Ia,"validators",da);var Qt="'${name}' is not a valid ${type}",vf={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:Qt,method:Qt,array:Qt,object:Qt,number:Qt,date:Qt,boolean:Qt,integer:Qt,float:Qt,regexp:Qt,email:Qt,url:Qt,hex:Qt},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}"}},Nc=Ia;function wb(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Tc="CODE_LOGIC_ERROR";function Os(e,t,r,n,a){return Rs.apply(this,arguments)}function Rs(){return Rs=ln(qt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return qt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=z({},n),delete i.ruleIndex,Nc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(Tc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Nc(L({},t,[i])),d=xn(vf,a.validateMessages),u.messages(d),f=[],m.prev=10,m.next=13,Promise.resolve(u.validate(L({},t,r),z({},a)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(f=m.t0.errors.map(function(S,g){var y=S.message,E=y===Tc?d.default:y;return c.isValidElement(E)?c.cloneElement(E,{key:"error_".concat(g)}):E}));case 18:if(!(!f.length&&l)){m.next=23;break}return m.next=21,Promise.all(r.map(function(S,g){return Os("".concat(t,".").concat(g),S,l,a,o)}));case 21:return v=m.sent,m.abrupt("return",v.reduce(function(S,g){return[].concat(ye(S),ye(g))},[]));case 23:return b=z(z({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?wb(S,b):S}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),Rs.apply(this,arguments)}function $b(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=z(z({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,m){var S=!1,g=function(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];Promise.resolve().then(function(){at(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||m.apply(void 0,x)})},y=v(h,p,g);S=y&&typeof y.then=="function"&&typeof y.catch=="function",at(S,"`callback` is deprecated. Please return a promise instead."),S&&y.then(function(){m()}).catch(function(E){m(E||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=ln(qt().mark(function f(v,b){var h,p,m;return qt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:h=0;case 1:if(!(h<s.length)){g.next=12;break}return p=s[h],g.next=5,Os(i,t,p,n,o);case 5:if(m=g.sent,!m.length){g.next=9;break}return b([{errors:m,rule:p}]),g.abrupt("return");case 9:h+=1,g.next=1;break;case 12:v([]);case 13:case"end":return g.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Os(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Rb(u):Ob(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Ob(e){return Ps.apply(this,arguments)}function Ps(){return Ps=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,ye(a));return i}));case 1:case"end":return n.stop()}},e)})),Ps.apply(this,arguments)}function Rb(e){return _s.apply(this,arguments)}function _s(){return _s=ln(qt().mark(function e(t){var r;return qt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),_s.apply(this,arguments)}function xt(e){return Cs(e)}function Ic(e,t){var r={};return t.forEach(function(n){var a=wr(e,n);r=dr(r,n,a)}),r}function On(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return mf(t,n,r)})}function mf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function Pb(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Te(e)!=="object"||Te(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return ye(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function _b(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Te(t.target)==="object"&&e in t.target?t.target[e]:t}function Mc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(ye(e.slice(0,r)),[a],ye(e.slice(r,t)),ye(e.slice(t+1,n))):o<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,r+1)),[a],ye(e.slice(r+1,n))):e}var Nb=["name"],rr=[];function Si(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var dl=function(e){qr(r,e);var t=Xr(r);function r(n){var a;if(jt(this,r),a=t.call(this,n),L(We(a),"state",{resetCount:0}),L(We(a),"cancelRegisterFunc",null),L(We(a),"mounted",!1),L(We(a),"touched",!1),L(We(a),"dirty",!1),L(We(a),"validatePromise",void 0),L(We(a),"prevValidating",void 0),L(We(a),"errors",rr),L(We(a),"warnings",rr),L(We(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,xt(f)),a.cancelRegisterFunc=null}),L(We(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(ye(v),ye(u)):[]}),L(We(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(We(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(We(a),"metaCache",null),L(We(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=z(z({},a.getMeta()),{},{destroy:l});ba(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(We(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,m=d.store,S=a.getNamePath(),g=a.getValue(l),y=a.getValue(m),E=u&&On(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ba(g,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=rr,a.warnings=rr,a.triggerMetaEvent()),d.type){case"reset":if(!u||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Si(v,l,m,g,y,d)){a.reRender();return}break}case"setField":{var C=d.data;if(E){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||rr),"warnings"in C&&(a.warnings=C.warnings||rr),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&On(u,S,!0)){a.reRender();return}if(v&&!S.length&&Si(v,l,m,g,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var x=h.map(xt);if(x.some(function(R){return On(d.relatedFields,R)})){a.reRender();return}break}default:if(E||(!h.length||S.length||v)&&Si(v,l,m,g,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(We(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(ln(qt().mark(function m(){var S,g,y,E,C,x,R;return qt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(S=a.props,g=S.validateFirst,y=g===void 0?!1:g,E=S.messageVariables,C=S.validateDebounce,x=a.getRules(),v&&(x=x.filter(function(T){return T}).filter(function(T){var F=T.validateTrigger;if(!F)return!0;var j=Cs(F);return j.includes(v)})),!(C&&v)){$.next=10;break}return $.next=8,new Promise(function(T){setTimeout(T,C)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=$b(u,d,x,l,y,E),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;if(a.validatePromise===p){var F;a.validatePromise=null;var j=[],A=[];(F=T.forEach)===null||F===void 0||F.call(T,function(M){var H=M.rule.warningOnly,N=M.errors,O=N===void 0?rr:N;H?A.push.apply(A,ye(O)):j.push.apply(j,ye(O))}),a.errors=j,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},m)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),a.reRender()),p}),L(We(a),"isFieldValidating",function(){return!!a.validatePromise}),L(We(a),"isFieldTouched",function(){return a.touched}),L(We(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(nn),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(We(a),"getErrors",function(){return a.errors}),L(We(a),"getWarnings",function(){return a.warnings}),L(We(a),"isListField",function(){return a.props.isListField}),L(We(a),"isList",function(){return a.props.isList}),L(We(a),"isPreserve",function(){return a.props.preserve}),L(We(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(We(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return z(z({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=$r(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(We(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return wr(l||u(!0),d)}),L(We(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,m=u.getValueProps,S=u.fieldContext,g=v!==void 0?v:S.validateTrigger,y=a.getNamePath(),E=S.getInternalHooks,C=S.getFieldsValue,x=E(nn),R=x.dispatch,w=a.getValue(),$=m||function(M){return L({},p,M)},T=l[f],F=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(M){at(typeof F[M]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(M,")"))});var j=z(z({},l),F);j[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var M,H=arguments.length,N=new Array(H),O=0;O<H;O++)N[O]=arguments[O];b?M=b.apply(void 0,N):M=_b.apply(void 0,[p].concat(N)),h&&(M=h(M,w,C(!0))),R({type:"updateValue",namePath:y,value:M}),T&&T.apply(void 0,N)};var A=Cs(g||[]);return A.forEach(function(M){var H=j[M];j[M]=function(){H&&H.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&R({type:"validateField",namePath:y,triggerName:M})}}),j}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(nn),s=i.initEntityValue;s(We(a))}return a}return Ft(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(nn),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(at(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(dl,"contextType",Ln);L(dl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function gf(e){var t=e.name,r=Je(e,Nb),n=c.useContext(Ln),a=c.useContext(Oo),o=t!==void 0?xt(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&at(!1,"`preserve` should not apply on Form.List fields."),c.createElement(dl,Oe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Tb(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Ln),l=c.useContext(Oo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=xt(s.prefixName)||[];return[].concat(ye(p),ye(xt(t)))},[s.prefixName,t]),v=c.useMemo(function(){return z(z({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(m){var S=f.length,g=m[S];return[d.keys[g],m.slice(S+1)]}}},[f]);if(typeof n!="function")return at(!1,"Form.List only accepts function as children."),null;var h=function(m,S,g){var y=g.source;return y==="internal"?!1:m!==S};return c.createElement(Oo.Provider,{value:b},c.createElement(Ln.Provider,{value:v},c.createElement(gf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,m){var S=p.value,g=S===void 0?[]:S,y=p.onChange,E=s.getFieldValue,C=function(){var $=E(f||[]);return $||[]},x={add:function($,T){var F=C();T>=0&&T<=F.length?(d.keys=[].concat(ye(d.keys.slice(0,T)),[d.id],ye(d.keys.slice(T))),y([].concat(ye(F.slice(0,T)),[$],ye(F.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>F.length)&&at(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ye(d.keys),[d.id]),y([].concat(ye(F),[$]))),d.id+=1},remove:function($){var T=C(),F=new Set(Array.isArray($)?$:[$]);F.size<=0||(d.keys=d.keys.filter(function(j,A){return!F.has(A)}),y(T.filter(function(j,A){return!F.has(A)})))},move:function($,T){if($!==T){var F=C();$<0||$>=F.length||T<0||T>=F.length||(d.keys=Mc(d.keys,$,T),y(Mc(F,$,T)))}}},R=g||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&at(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var T=d.keys[$];return T===void 0&&(d.keys[$]=d.id,T=d.keys[$],d.id+=1),{name:$,key:T,isListField:!0}}),x,m)})))}function Ib(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var pf="__@field_split__";function Ci(e){return e.map(function(t){return"".concat(Te(t),":").concat(t)}).join(pf)}var mn=function(){function e(){jt(this,e),L(this,"kvs",new Map)}return Ft(e,[{key:"set",value:function(r,n){this.kvs.set(Ci(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ci(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ci(r))}},{key:"map",value:function(r){return ye(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(pf);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=U(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),Mb=["name"],Ab=Ft(function e(t){var r=this;jt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===nn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(at(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=xn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=dr(i,l,wr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new mn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=wr(r.initialValues,n);return n.length?xn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||at(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new mn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=xt(o);return a.get(i)||{INVALIDATE_NAME_PATH:xt(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Te(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var m="getMeta"in d?d.getMeta():null;i(m)&&u.push(b)}}),Ic(r.store,u.map(xt))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=xt(n);return wr(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:xt(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=xt(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=xt(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map(xt),u=!1):(l=null,u=i):(l=i.map(xt),u=s);var d=r.getFieldEntities(!0),f=function(m){return m.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new mn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var m=p.getNamePath();l.forEach(function(S){S.every(function(g,y){return m[y]===g})&&v.update(S,function(g){return[].concat(ye(g),[p])})})});var b=function(m){return m.some(f)},h=v.map(function(p){var m=p.value;return m});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map(xt);return a.some(function(i){var s=i.getNamePath();return On(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new mn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)at(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=a.get(v);if(h&&h.size>1)at(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),m=d.isListField();!m&&(!n.skipExist||p===void 0)&&r.updateStore(dr(r.store,v,ye(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,ye(ye(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(xn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(xt);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(dr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=Je(i,Mb),u=xt(s);o.push(u),"value"in l&&r.updateStore(dr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=z(z({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=wr(r.store,o);i===void 0&&r.updateStore(dr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!mf(f.getNamePath(),a)})){var d=r.store;r.updateStore(dr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=z(z({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ye(o))}),o}),L(this,"updateValue",function(n,a){var o=xt(n),i=r.store;r.updateStore(dr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=Ic(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(ye(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=xn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new mn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=xt(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new mn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return On(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map(xt):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(g){if(s||l.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(h&&!g.isFieldDirty())){var y=g.getNamePath();if(f.add(y.join(d)),!s||On(l,y,b)){var E=g.validateRules(z({validateMessages:z(z({},vf),r.validateMessages)},i));u.push(E.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var x,R=[],w=[];return(x=C.forEach)===null||x===void 0||x.call(C,function($){var T=$.rule.warningOnly,F=$.errors;T?w.push.apply(w,ye(F)):R.push.apply(R,ye(F))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=Ib(u);r.lastValidatePromise=p,p.catch(function(g){return g}).then(function(g){var y=g.map(function(E){var C=E.name;return C});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,g)});var m=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(g){var y=g.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});m.catch(function(g){return g});var S=l.filter(function(g){return f.has(g.join(d))});return r.triggerOnFieldsChange(S),m}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function hf(e){var t=c.useRef(),r=c.useState({}),n=U(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Ab(o);t.current=i.getForm()}return[t.current]}var Ns=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),jb=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ns),s=c.useRef({});return c.createElement(Ns.Provider,{value:z(z({},i),{},{validateMessages:z(z({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=z(z({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=z({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},Fb=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Lb=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,S=t.onFinishFailed,g=t.clearOnDestroy,y=Je(t,Fb),E=c.useRef(null),C=c.useContext(Ns),x=hf(i),R=U(x,1),w=R[0],$=w.getInternalHooks(nn),T=$.useSubscribe,F=$.setInitialValues,j=$.setCallbacks,A=$.setValidateMessages,M=$.setPreserve,H=$.destroyForm;c.useImperativeHandle(r,function(){return z(z({},w),{},{nativeElement:E.current})}),c.useEffect(function(){return C.registerForm(n,w),function(){C.unregisterForm(n)}},[C,w,n]),A(z(z({},C.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(q){if(C.triggerFormChange(n,q),p){for(var Q=arguments.length,Z=new Array(Q>1?Q-1:0),J=1;J<Q;J++)Z[J-1]=arguments[J];p.apply(void 0,[q].concat(Z))}},onFinish:function(q){C.triggerFormFinish(n,q),m&&m(q)},onFinishFailed:S}),M(s);var N=c.useRef(null);F(a,!N.current),N.current||(N.current=!0),c.useEffect(function(){return function(){return H(g)}},[]);var O,I=typeof l=="function";if(I){var D=w.getFieldsValue(!0);O=l(D,w)}else O=l;T(!I);var V=c.useRef();c.useEffect(function(){Pb(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var k=c.useMemo(function(){return z(z({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(Oo.Provider,{value:null},c.createElement(Ln.Provider,{value:k},O));return d===!1?K:c.createElement(d,Oe({},y,{ref:E,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Q;q.preventDefault(),w.resetFields(),(Q=y.onReset)===null||Q===void 0||Q.call(y,q)}}),K)};function Ac(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Db=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);at(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function zb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=K0(o)?{form:o}:o,s=i.form,l=P.useState(),u=U(l,2),d=u[0],f=u[1],v=P.useMemo(function(){return Ac(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(Ln),p=s||h,m=p&&p._init;process.env.NODE_ENV!=="production"&&at(t.length===2?s?m:!0:m,"useWatch requires a form instance since it can not auto detect from context.");var S=xt(n),g=P.useRef(S);return g.current=S,Db(S),P.useEffect(function(){if(m){var y=p.getFieldsValue,E=p.getInternalHooks,C=E(nn),x=C.registerWatch,R=function(F,j){var A=i.preserve?j:F;return typeof n=="function"?n(A):wr(A,g.current)},w=x(function(T,F){var j=R(T,F),A=Ac(j);b.current!==A&&(b.current=A,f(j))}),$=R(y(),y(!0));return d!==$&&f($),w}},[m]),d}var Vb=c.forwardRef(Lb),Ma=Vb;Ma.FormProvider=jb;Ma.Field=gf;Ma.List=Tb;Ma.useForm=hf;Ma.useWatch=zb;const $a=c.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="FormItemInputContext");const Bb=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext($a),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement($a.Provider,{value:o},t)},kb=P.createContext(void 0),Ts=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(Bb,{override:!0,status:!0},a)),t&&(a=P.createElement(a0,null,a)),a};var bf=function(t){if(Kt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},Hb=function(t,r){if(!bf(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function jc(e,t){return!Array.isArray(e)&&t!==void 0?Hb(e,t):bf(e)}const ko=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Y({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Y({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Y(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},Wb=new $t("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ho=e=>({height:e,lineHeight:ee(e)}),Rn=e=>Object.assign({width:e},Ho(e)),Gb=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Wb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ei=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ho(e)),Ub=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},Rn(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Rn(a)),[`${t}${t}-sm`]:Object.assign({},Rn(o))}},Kb=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:r},Ei(t,s)),[`${n}-lg`]:Object.assign({},Ei(a,s)),[`${n}-sm`]:Object.assign({},Ei(o,s))}},Fc=e=>Object.assign({width:e},Ho(e)),qb=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},Fc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Fc(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},xi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},wi=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ho(e)),Xb=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},wi(n,s))},xi(e,n,r)),{[`${r}-lg`]:Object.assign({},wi(a,s))}),xi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},wi(o,s))}),xi(e,o,`${r}-sm`))},Yb=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:m,paragraphLiHeight:S,controlHeightXS:g,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Rn(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},Rn(u)),[`${r}-sm`]:Object.assign({},Rn(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:m,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:m,"+ li":{marginBlockStart:g}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Xb(e)),Ub(e)),Kb(e)),qb(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
156
+ }`),a)}else Ga(a);return function(){Ga(a)}},[t,a])}var Vy=!1;function By(e){return Vy}var Iu=function(t){return t===!1?!1:!Qt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},pc=u.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,c=u.useState(r),d=K(c,2),f=d[0],v=d[1],b=f||r;process.env.NODE_ENV!=="production"&&ot(Qt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),u.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=u.useState(function(){return Iu(a)}),g=K(h,2),p=g[0],S=g[1];u.useEffect(function(){var j=Iu(a);S(j??null)});var m=jy(b&&!p,o),y=K(m,2),E=y[0],C=y[1],x=p??E;ky(n&&r&&Qt()&&(x===E||x===document.body));var w=null;if(l&&En(l)&&t){var $=l;w=$.ref}var O=no(w,t);if(!b||!Qt()||p===void 0)return null;var T=x===!1||By(),F=l;return t&&(F=u.cloneElement(l,{ref:O})),u.createElement(Dv.Provider,{value:C},T?F:Gn.createPortal(F,x))});process.env.NODE_ENV!=="production"&&(pc.displayName="Portal");function Hy(){var e=z({},u);return e.useId}var Mu=0,Au=Hy();const Wy=Au?function(t){var r=Au();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=u.useState("ssr-id"),n=K(r,2),a=n[0],o=n[1];return u.useEffect(function(){var i=Mu;Mu+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var gn="RC_FORM_INTERNAL_HOOKS",pt=function(){ot(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ea=u.createContext({getFieldValue:pt,getFieldsValue:pt,getFieldError:pt,getFieldWarning:pt,getFieldsError:pt,isFieldsTouched:pt,isFieldTouched:pt,isFieldValidating:pt,isFieldsValidating:pt,resetFields:pt,setFields:pt,setFieldValue:pt,setFieldsValue:pt,validateFields:pt,submit:pt,getInternalHooks:function(){return pt(),{dispatch:pt,initEntityValue:pt,registerField:pt,useSubscribe:pt,setInitialValues:pt,destroyForm:pt,setCallbacks:pt,registerWatch:pt,getFields:pt,setValidateMessages:pt,setPreserve:pt,getInitialValue:pt}}}),ci=u.createContext(null);function hl(e){return e==null?[]:Array.isArray(e)?e:[e]}function Gy(e){return e&&!!e._init}function bl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var yl=bl();function Uy(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Ky(e,t,r){if(Yl())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Ba(a,r.prototype),a}function Sl(e){var t=typeof Map=="function"?new Map:void 0;return Sl=function(n){if(n===null||!Uy(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Ky(n,arguments,Ha(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ba(a,n)},Sl(e)}var qy=/%[sdj%]/g,zv=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(zv=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function Cl(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function ir(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(qy,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Xy(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function At(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Xy(t)&&typeof e=="string"&&!e)}function Yy(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,ye(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function ju(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function Zy(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ye(e[r]||[]))}),t}var Fu=function(e){on(r,e);var t=sn(r);function r(n,a){var o;return kt(this,r),o=t.call(this,"Async Validation Error"),L(Ge(o),"errors",void 0),L(Ge(o),"fields",void 0),o.errors=n,o.fields=a,o}return Vt(r)}(Sl(Error));function Qy(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(S){return n(S),S.length?b(new Fu(S,Cl(S))):v(a)},g=Zy(e);ju(g,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,d=[],f=new Promise(function(v,b){var h=function(p){if(d.push.apply(d,p),c++,c===l)return n(d),d.length?b(new Fu(d,Cl(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(g){var p=e[g];i.indexOf(g)!==-1?ju(p,r,h):Yy(p,r,h)})});return f.catch(function(v){return v}),f}function Jy(e){return!!(e&&e.message!==void 0)}function eS(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Lu(e,t){return function(r){var n;return e.fullFields?n=eS(t,e.fullFields):n=t[r.field||e.fullField],Jy(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Du(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Te(n)==="object"&&Te(e[r])==="object"?e[r]=z(z({},e[r]),n):e[r]=n}}return e}var _n="enum",tS=function(t,r,n,a,o){t[_n]=Array.isArray(t[_n])?t[_n]:[],t[_n].indexOf(r)===-1&&a.push(ir(o.messages[_n],t.fullField,t[_n].join(", ")))},rS=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(ir(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(ir(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},nS=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(c,"_").length),i?d!==t.len&&a.push(ir(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(ir(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(ir(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(ir(o.messages[f].range,t.fullField,t.min,t.max))},kv=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||At(r,i||t.type))&&a.push(ir(o.messages.required,t.fullField))},Ro;const aS=function(){if(Ro)return Ro;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(r).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(g).concat(p).concat(S,")").concat(m).concat(y);return Ro=new RegExp("(?:^".concat(E,"$)"),"i"),Ro};var zu={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Na={integer:function(t){return Na.number(t)&&parseInt(t,10)===t},float:function(t){return Na.number(t)&&!Na.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Te(t)==="object"&&!Na.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(zu.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(aS())},hex:function(t){return typeof t=="string"&&!!t.match(zu.hex)}},oS=function(t,r,n,a,o){if(t.required&&r===void 0){kv(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Na[s](r)||a.push(ir(o.messages.types[s],t.fullField,t.type)):s&&Te(r)!==t.type&&a.push(ir(o.messages.types[s],t.fullField,t.type))},iS=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(ir(o.messages.whitespace,t.fullField))};const Qe={required:kv,whitespace:iS,type:oS,range:nS,enum:tS,pattern:rS};var sS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},lS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Qe.required(t,r,a,i,o,"array"),r!=null&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},cS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},uS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!At(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},dS="enum",fS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[dS](t,r,a,i,o)}n(i)},vS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},pS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},mS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},gS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},hS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},bS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),At(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},yS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();Qe.required(t,r,a,i,o),At(r)||Qe.type(t,r,a,i,o)}n(i)},SS=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Te(r);Qe.required(t,r,a,i,o,s),n(i)},CS=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),At(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},ds=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(At(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),At(r,i)||Qe.type(t,r,a,s,o)}n(s)};const La={string:CS,method:mS,number:gS,boolean:cS,regexp:yS,integer:pS,float:vS,array:lS,object:hS,enum:fS,pattern:bS,date:uS,url:ds,hex:ds,email:ds,required:SS,any:sS};var io=function(){function e(t){kt(this,e),L(this,"rules",null),L(this,"_messages",yl),this.define(t)}return Vt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Te(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Du(bl(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(h){var g=[],p={};function S(y){if(Array.isArray(y)){var E;g=(E=g).concat.apply(E,ye(y))}else g.push(y)}for(var m=0;m<h.length;m++)S(h[m]);g.length?(p=Cl(g),l(g,p)):l(null,i)}if(s.messages){var d=this.messages();d===yl&&(d=bl()),Du(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var g=n.rules[h],p=i[h];g.forEach(function(S){var m=S;typeof m.transform=="function"&&(i===r&&(i=z({},i)),p=i[h]=m.transform(p),p!=null&&(m.type=m.type||(Array.isArray(p)?"array":Te(p)))),typeof m=="function"?m={validator:m}:m=z({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:p,source:i,field:h}))})});var b={};return Qy(f,s,function(h,g){var p=h.rule,S=(p.type==="object"||p.type==="array")&&(Te(p.fields)==="object"||Te(p.defaultField)==="object");S=S&&(p.required||!p.required&&h.value),p.field=h.field;function m(w,$){return z(z({},$),{},{fullField:"".concat(p.fullField,".").concat(w),fullFields:p.fullFields?[].concat(ye(p.fullFields),[w]):[w]})}function y(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(w)?w:[w];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&p.message!==void 0&&($=[].concat(p.message));var O=$.map(Lu(p,i));if(s.first&&O.length)return b[p.field]=1,g(O);if(!S)g(O);else{if(p.required&&!h.value)return p.message!==void 0?O=[].concat(p.message).map(Lu(p,i)):s.error&&(O=[s.error(p,ir(s.messages.required,p.field))]),g(O);var T={};p.defaultField&&Object.keys(h.value).map(function(M){T[M]=p.defaultField}),T=z(z({},T),h.rule.fields);var F={};Object.keys(T).forEach(function(M){var A=T[M],H=Array.isArray(A)?A:[A];F[M]=H.map(m.bind(null,M))});var j=new e(F);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(M){var A=[];O&&O.length&&A.push.apply(A,ye(O)),M&&M.length&&A.push.apply(A,ye(M)),g(A.length?A:null)})}}var E;if(p.asyncValidator)E=p.asyncValidator(p,h.value,y,h.source,s);else if(p.validator){try{E=p.validator(p,h.value,y,h.source,s)}catch(w){var C,x;(C=(x=console).error)===null||C===void 0||C.call(x,w),s.suppressValidatorError||setTimeout(function(){throw w},0),y(w.message)}E===!0?y():E===!1?y(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):E instanceof Array?y(E):E instanceof Error&&y(E.message)}E&&E.then&&E.then(function(){return y()},function(w){return y(w)})},function(h){c(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!La.hasOwnProperty(r.type))throw new Error(ir("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?La.required:La[this.getType(r)]||void 0}}]),e}();L(io,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");La[t]=r});L(io,"warning",zv);L(io,"messages",yl);L(io,"validators",La);var nr="'${name}' is not a valid ${type}",Vv={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:nr,method:nr,array:nr,object:nr,number:nr,date:nr,boolean:nr,integer:nr,float:nr,regexp:nr,email:nr,url:nr,hex:nr},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}"}},ku=io;function ES(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Vu="CODE_LOGIC_ERROR";function El(e,t,r,n,a){return xl.apply(this,arguments)}function xl(){return xl=wn(Jt().mark(function e(t,r,n,a,o){var i,s,l,c,d,f,v,b,h;return Jt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=z({},n),delete i.ruleIndex,ku.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(Vu)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new ku(L({},t,[i])),d=kn(Vv,a.validateMessages),c.messages(d),f=[],p.prev=10,p.next=13,Promise.resolve(c.validate(L({},t,r),z({},a)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(f=p.t0.errors.map(function(S,m){var y=S.message,E=y===Vu?d.default:y;return u.isValidElement(E)?u.cloneElement(E,{key:"error_".concat(m)}):E}));case 18:if(!(!f.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(S,m){return El("".concat(t,".").concat(m),S,l,a,o)}));case 21:return v=p.sent,p.abrupt("return",v.reduce(function(S,m){return[].concat(ye(S),ye(m))},[]));case 23:return b=z(z({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?ES(S,b):S}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),xl.apply(this,arguments)}function xS(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=z(z({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,g,p){var S=!1,m=function(){for(var C=arguments.length,x=new Array(C),w=0;w<C;w++)x[w]=arguments[w];Promise.resolve().then(function(){ot(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||p.apply(void 0,x)})},y=v(h,g,m);S=y&&typeof y.then=="function"&&typeof y.catch=="function",ot(S,"`callback` is deprecated. Please return a promise instead."),S&&y.then(function(){p()}).catch(function(E){p(E||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!v==!!h?b-g:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=wn(Jt().mark(function f(v,b){var h,g,p;return Jt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return g=s[h],m.next=5,El(i,t,g,n,o);case 5:if(p=m.sent,!p.length){m.next=9;break}return b([{errors:p,rule:g}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var c=s.map(function(d){return El(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?$S(c):wS(c)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function wS(e){return wl.apply(this,arguments)}function wl(){return wl=wn(Jt().mark(function e(t){return Jt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,ye(a));return i}));case 1:case"end":return n.stop()}},e)})),wl.apply(this,arguments)}function $S(e){return $l.apply(this,arguments)}function $l(){return $l=wn(Jt().mark(function e(t){var r;return Jt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),$l.apply(this,arguments)}function Ot(e){return hl(e)}function Bu(e,t){var r={};return t.forEach(function(n){var a=Mr(e,n);r=br(r,n,a)}),r}function Hn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Bv(t,n,r)})}function Bv(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function OS(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Te(e)!=="object"||Te(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return ye(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function RS(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Te(t.target)==="object"&&e in t.target?t.target[e]:t}function Hu(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(ye(e.slice(0,r)),[a],ye(e.slice(r,t)),ye(e.slice(t+1,n))):o<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,r+1)),[a],ye(e.slice(r+1,n))):e}var PS=["name"],lr=[];function fs(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var mc=function(e){on(r,e);var t=sn(r);function r(n){var a;if(kt(this,r),a=t.call(this,n),L(Ge(a),"state",{resetCount:0}),L(Ge(a),"cancelRegisterFunc",null),L(Ge(a),"mounted",!1),L(Ge(a),"touched",!1),L(Ge(a),"dirty",!1),L(Ge(a),"validatePromise",void 0),L(Ge(a),"prevValidating",void 0),L(Ge(a),"errors",lr),L(Ge(a),"warnings",lr),L(Ge(a),"cancelRegister",function(){var l=a.props,c=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,c,Ot(f)),a.cancelRegisterFunc=null}),L(Ge(a),"getNamePath",function(){var l=a.props,c=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ye(v),ye(c)):[]}),L(Ge(a),"getRules",function(){var l=a.props,c=l.rules,d=c===void 0?[]:c,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var d=z(z({},a.getMeta()),{},{destroy:l});Ua(a.metaCache,d)||c(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,c,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,g=f.onReset,p=d.store,S=a.getNamePath(),m=a.getValue(l),y=a.getValue(p),E=c&&Hn(c,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ua(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=lr,a.warnings=lr,a.triggerMetaEvent()),d.type){case"reset":if(!c||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=lr,a.warnings=lr,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(v&&fs(v,l,p,m,y,d)){a.reRender();return}break}case"setField":{var C=d.data;if(E){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||lr),"warnings"in C&&(a.warnings=C.warnings||lr),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&Hn(c,S,!0)){a.reRender();return}if(v&&!S.length&&fs(v,l,p,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var x=h.map(Ot);if(x.some(function(w){return Hn(d.relatedFields,w)})){a.reRender();return}break}default:if(E||(!h.length||S.length||v)&&fs(v,l,p,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(a),"validateRules",function(l){var c=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,g=Promise.resolve().then(wn(Jt().mark(function p(){var S,m,y,E,C,x,w;return Jt().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(a.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(S=a.props,m=S.validateFirst,y=m===void 0?!1:m,E=S.messageVariables,C=S.validateDebounce,x=a.getRules(),v&&(x=x.filter(function(T){return T}).filter(function(T){var F=T.validateTrigger;if(!F)return!0;var j=hl(F);return j.includes(v)})),!(C&&v)){O.next=10;break}return O.next=8,new Promise(function(T){setTimeout(T,C)});case 8:if(a.validatePromise===g){O.next=10;break}return O.abrupt("return",[]);case 10:return w=xS(c,d,x,l,y,E),w.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lr;if(a.validatePromise===g){var F;a.validatePromise=null;var j=[],M=[];(F=T.forEach)===null||F===void 0||F.call(T,function(A){var H=A.rule.warningOnly,N=A.errors,R=N===void 0?lr:N;H?M.push.apply(M,ye(R)):j.push.apply(j,ye(R))}),a.errors=j,a.warnings=M,a.triggerMetaEvent(),a.reRender()}}),O.abrupt("return",w);case 13:case"end":return O.stop()}},p)})));return h||(a.validatePromise=g,a.dirty=!0,a.errors=lr,a.warnings=lr,a.triggerMetaEvent(),a.reRender()),g}),L(Ge(a),"isFieldValidating",function(){return!!a.validatePromise}),L(Ge(a),"isFieldTouched",function(){return a.touched}),L(Ge(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(gn),d=c.getInitialValue;return d(a.getNamePath())!==void 0}),L(Ge(a),"getErrors",function(){return a.errors}),L(Ge(a),"getWarnings",function(){return a.warnings}),L(Ge(a),"isListField",function(){return a.props.isListField}),L(Ge(a),"isList",function(){return a.props.isList}),L(Ge(a),"isPreserve",function(){return a.props.preserve}),L(Ge(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(Ge(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return z(z({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var d=Ar(l);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Mr(l||c(!0),d)}),L(Ge(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,d=c.name,f=c.trigger,v=c.validateTrigger,b=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,p=c.getValueProps,S=c.fieldContext,m=v!==void 0?v:S.validateTrigger,y=a.getNamePath(),E=S.getInternalHooks,C=S.getFieldsValue,x=E(gn),w=x.dispatch,$=a.getValue(),O=p||function(A){return L({},g,A)},T=l[f],F=d!==void 0?O($):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(A){ot(typeof F[A]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(A,")"))});var j=z(z({},l),F);j[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var A,H=arguments.length,N=new Array(H),R=0;R<H;R++)N[R]=arguments[R];b?A=b.apply(void 0,N):A=RS.apply(void 0,[g].concat(N)),h&&(A=h(A,$,C(!0))),w({type:"updateValue",namePath:y,value:A}),T&&T.apply(void 0,N)};var M=hl(m||[]);return M.forEach(function(A){var H=j[A];j[A]=function(){H&&H.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&w({type:"validateField",namePath:y,triggerName:A})}}),j}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(gn),s=i.initEntityValue;s(Ge(a))}return a}return Vt(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(gn),c=l.registerField;this.cancelRegisterFunc=c(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,c;return l?c=s:u.isValidElement(s)?c=u.cloneElement(s,this.getControlled(s.props)):(ot(!s,"`children` of Field is not validate ReactElement."),c=s),u.createElement(u.Fragment,{key:a},c)}}]),r}(u.Component);L(mc,"contextType",ea);L(mc,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Hv(e){var t=e.name,r=et(e,PS),n=u.useContext(ea),a=u.useContext(ci),o=t!==void 0?Ot(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&ot(!1,"`preserve` should not apply on Form.List fields."),u.createElement(mc,Oe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function _S(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=u.useContext(ea),l=u.useContext(ci),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var g=Ot(s.prefixName)||[];return[].concat(ye(g),ye(Ot(t)))},[s.prefixName,t]),v=u.useMemo(function(){return z(z({},s),{},{prefixName:f})},[s,f]),b=u.useMemo(function(){return{getKey:function(p){var S=f.length,m=p[S];return[d.keys[m],p.slice(S+1)]}}},[f]);if(typeof n!="function")return ot(!1,"Form.List only accepts function as children."),null;var h=function(p,S,m){var y=m.source;return y==="internal"?!1:p!==S};return u.createElement(ci.Provider,{value:b},u.createElement(ea.Provider,{value:v},u.createElement(Hv,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(g,p){var S=g.value,m=S===void 0?[]:S,y=g.onChange,E=s.getFieldValue,C=function(){var O=E(f||[]);return O||[]},x={add:function(O,T){var F=C();T>=0&&T<=F.length?(d.keys=[].concat(ye(d.keys.slice(0,T)),[d.id],ye(d.keys.slice(T))),y([].concat(ye(F.slice(0,T)),[O],ye(F.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>F.length)&&ot(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ye(d.keys),[d.id]),y([].concat(ye(F),[O]))),d.id+=1},remove:function(O){var T=C(),F=new Set(Array.isArray(O)?O:[O]);F.size<=0||(d.keys=d.keys.filter(function(j,M){return!F.has(M)}),y(T.filter(function(j,M){return!F.has(M)})))},move:function(O,T){if(O!==T){var F=C();O<0||O>=F.length||T<0||T>=F.length||(d.keys=Hu(d.keys,O,T),y(Hu(F,O,T)))}}},w=m||[];return Array.isArray(w)||(w=[],process.env.NODE_ENV!=="production"&&ot(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(w.map(function($,O){var T=d.keys[O];return T===void 0&&(d.keys[O]=d.id,T=d.keys[O],d.id+=1),{name:O,key:T,isListField:!0}}),x,p)})))}function NS(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var Wv="__@field_split__";function vs(e){return e.map(function(t){return"".concat(Te(t),":").concat(t)}).join(Wv)}var Nn=function(){function e(){kt(this,e),L(this,"kvs",new Map)}return Vt(e,[{key:"set",value:function(r,n){this.kvs.set(vs(r),n)}},{key:"get",value:function(r){return this.kvs.get(vs(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(vs(r))}},{key:"map",value:function(r){return ye(this.kvs.entries()).map(function(n){var a=K(n,2),o=a[0],i=a[1],s=o.split(Wv);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),d=K(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),TS=["name"],IS=Vt(function e(t){var r=this;kt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===gn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ot(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=kn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=br(i,l,Mr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new Nn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=Mr(r.initialValues,n);return n.length?kn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ot(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Nn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=Ot(o);return a.get(i)||{INVALIDATE_NAME_PATH:Ot(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Te(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,g;if((h=(g=d).isList)!==null&&h!==void 0&&h.call(g))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)c.push(b);else{var p="getMeta"in d?d.getMeta():null;i(p)&&c.push(b)}}),Bu(r.store,c.map(Ot))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=Ot(n);return Mr(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Ot(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=Ot(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=Ot(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,c=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map(Ot),c=!1):(l=null,c=i):(l=i.map(Ot),c=s);var d=r.getFieldEntities(!0),f=function(p){return p.isFieldTouched()};if(!l)return c?d.every(function(g){return f(g)||g.isList()}):d.some(f);var v=new Nn;l.forEach(function(g){v.set(g,[])}),d.forEach(function(g){var p=g.getNamePath();l.forEach(function(S){S.every(function(m,y){return p[y]===m})&&v.update(S,function(m){return[].concat(ye(m),[g])})})});var b=function(p){return p.some(f)},h=v.map(function(g){var p=g.value;return p});return c?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map(Ot);return a.some(function(i){var s=i.getNamePath();return Hn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Nn,o=r.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,d=l.getNamePath();if(c!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:c}),a.set(d,f)}});var i=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)ot(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=a.get(v);if(h&&h.size>1)ot(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=r.getFieldValue(v),p=d.isListField();!p&&(!n.skipExist||g===void 0)&&r.updateStore(br(r.store,v,ye(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=a.get(l);if(c){var d;(d=s).push.apply(d,ye(ye(c).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(kn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(Ot);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(br(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=et(i,TS),c=Ot(s);o.push(c),"value"in l&&r.updateStore(br(r.store,c,l.value)),r.notifyObservers(a,[c],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=z(z({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=Mr(r.store,o);i===void 0&&r.updateStore(br(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==c&&r.fieldEntities.every(function(f){return!Bv(f.getNamePath(),a)})){var d=r.store;r.updateStore(br(d,a,c,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=z(z({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ye(o))}),o}),L(this,"updateValue",function(n,a){var o=Ot(n),i=r.store;r.updateStore(br(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var c=Bu(r.store,[o]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(ye(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=kn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new Nn;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(d){var f=Ot(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new Nn;a.forEach(function(c){var d=c.name,f=c.errors;s.set(d,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var d=c.name;return Hn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map(Ot):[],c=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Hn(l,y,b)){var E=m.validateRules(z({validateMessages:z(z({},Vv),r.validateMessages)},i));c.push(E.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var x,w=[],$=[];return(x=C.forEach)===null||x===void 0||x.call(C,function(O){var T=O.rule.warningOnly,F=O.errors;T?$.push.apply($,ye(F)):w.push.apply(w,ye(F))}),w.length?Promise.reject({name:y,errors:w,warnings:$}):{name:y,errors:w,warnings:$}}))}}});var g=NS(c);r.lastValidatePromise=g,g.catch(function(m){return m}).then(function(m){var y=m.map(function(E){var C=E.name;return C});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var p=g.then(function(){return r.lastValidatePromise===g?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==g})});p.catch(function(m){return m});var S=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(S),p}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function Gv(e){var t=u.useRef(),r=u.useState({}),n=K(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new IS(o);t.current=i.getForm()}return[t.current]}var Ol=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),MS=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=u.useContext(Ol),s=u.useRef({});return u.createElement(Ol.Provider,{value:z(z({},i),{},{validateMessages:z(z({},i.validateMessages),r),triggerFormChange:function(c,d){n&&n(c,{changedFields:d,forms:s.current}),i.triggerFormChange(c,d)},triggerFormFinish:function(c,d){a&&a(c,{values:d,forms:s.current}),i.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(s.current=z(z({},s.current),{},L({},c,d))),i.registerForm(c,d)},unregisterForm:function(c){var d=z({},s.current);delete d[c],s.current=d,i.unregisterForm(c)}})},o)},AS=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],jS=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,g=t.onFieldsChange,p=t.onFinish,S=t.onFinishFailed,m=t.clearOnDestroy,y=et(t,AS),E=u.useRef(null),C=u.useContext(Ol),x=Gv(i),w=K(x,1),$=w[0],O=$.getInternalHooks(gn),T=O.useSubscribe,F=O.setInitialValues,j=O.setCallbacks,M=O.setValidateMessages,A=O.setPreserve,H=O.destroyForm;u.useImperativeHandle(r,function(){return z(z({},$),{},{nativeElement:E.current})}),u.useEffect(function(){return C.registerForm(n,$),function(){C.unregisterForm(n)}},[C,$,n]),M(z(z({},C.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(q){if(C.triggerFormChange(n,q),g){for(var Y=arguments.length,Q=new Array(Y>1?Y-1:0),J=1;J<Y;J++)Q[J-1]=arguments[J];g.apply(void 0,[q].concat(Q))}},onFinish:function(q){C.triggerFormFinish(n,q),p&&p(q)},onFinishFailed:S}),A(s);var N=u.useRef(null);F(a,!N.current),N.current||(N.current=!0),u.useEffect(function(){return function(){return H(m)}},[]);var R,I=typeof l=="function";if(I){var D=$.getFieldsValue(!0);R=l(D,$)}else R=l;T(!I);var k=u.useRef();u.useEffect(function(){OS(k.current||[],o||[])||$.setFields(o||[]),k.current=o},[o,$]);var V=u.useMemo(function(){return z(z({},$),{},{validateTrigger:b})},[$,b]),G=u.createElement(ci.Provider,{value:null},u.createElement(ea.Provider,{value:V},R));return d===!1?G:u.createElement(d,Oe({},y,{ref:E,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),$.submit()},onReset:function(q){var Y;q.preventDefault(),$.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),G)};function Wu(e){try{return JSON.stringify(e)}catch{return Math.random()}}var FS=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);ot(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function LS(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=Gy(o)?{form:o}:o,s=i.form,l=P.useState(),c=K(l,2),d=c[0],f=c[1],v=P.useMemo(function(){return Wu(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(ea),g=s||h,p=g&&g._init;process.env.NODE_ENV!=="production"&&ot(t.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var S=Ot(n),m=P.useRef(S);return m.current=S,FS(S),P.useEffect(function(){if(p){var y=g.getFieldsValue,E=g.getInternalHooks,C=E(gn),x=C.registerWatch,w=function(F,j){var M=i.preserve?j:F;return typeof n=="function"?n(M):Mr(M,m.current)},$=x(function(T,F){var j=w(T,F),M=Wu(j);b.current!==M&&(b.current=M,f(j))}),O=w(y(),y(!0));return d!==O&&f(O),$}},[p]),d}var DS=u.forwardRef(jS),so=DS;so.FormProvider=MS;so.Field=Hv;so.List=_S;so.useForm=Gv;so.useWatch=LS;const Ja=u.createContext({});process.env.NODE_ENV!=="production"&&(Ja.displayName="FormItemInputContext");const zS=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext(Ja),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return u.createElement(Ja.Provider,{value:o},t)},kS=P.createContext(void 0),Rl=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(zS,{override:!0,status:!0},a)),t&&(a=P.createElement(ry,null,a)),a};var Uv=function(t){if(Qt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},VS=function(t,r){if(!Uv(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Gu(e,t){return!Array.isArray(e)&&t!==void 0?VS(e,t):Uv(e)}const Pi=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Z({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Z({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=u.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return u.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},BS=new Pt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_i=e=>({height:e,lineHeight:te(e)}),Wn=e=>Object.assign({width:e},_i(e)),HS=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:BS,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ps=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},_i(e)),WS=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},Wn(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Wn(a)),[`${t}${t}-sm`]:Object.assign({},Wn(o))}},GS=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:r},ps(t,s)),[`${n}-lg`]:Object.assign({},ps(a,s)),[`${n}-sm`]:Object.assign({},ps(o,s))}},Uu=e=>Object.assign({width:e},_i(e)),US=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},Uu(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Uu(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ms=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},gs=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},_i(e)),KS=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},gs(n,s))},ms(e,n,r)),{[`${r}-lg`]:Object.assign({},gs(a,s))}),ms(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},gs(o,s))}),ms(e,o,`${r}-sm`))},qS=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:g,blockRadius:p,paragraphLiHeight:S,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Wn(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},Wn(c)),[`${r}-sm`]:Object.assign({},Wn(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:g,background:f,borderRadius:p,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},KS(e)),WS(e)),GS(e)),US(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
157
157
  ${n},
158
158
  ${a} > li,
159
159
  ${r},
160
160
  ${o},
161
161
  ${i},
162
162
  ${s}
163
- `]:Object.assign({},Gb(e))}}},Qb=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,a=r;return{color:n,colorGradientEnd:a,gradientFromColor:n,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Wn=br("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=Lt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(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[Yb(n)]},Qb,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Zb=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls","className"]),b=Y(l,`${l}-element`,{[`${l}-active`]:a},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(ko,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:i},v))))},Jb=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls"]),b=Y(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(ko,Object.assign({prefixCls:`${l}-button`,size:i},v))))},ey="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",ty=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o}=e,{getPrefixCls:i}=c.useContext(ot),s=i("skeleton",t),[l,u,d]=Wn(s),f=Y(s,`${s}-element`,{[`${s}-active`]:o},r,n,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:Y(`${s}-image`,r),style:a},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:ey,className:`${s}-image-path`})))))},ry=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls"]),b=Y(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(ko,Object.assign({prefixCls:`${l}-input`,size:i},v))))};var ny={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"},ay=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:ny}))},yf=c.forwardRef(ay);process.env.NODE_ENV!=="production"&&(yf.displayName="DotChartOutlined");const oy=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o,children:i}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=Y(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,f),b=i??c.createElement(yf,null);return u(c.createElement("div",{className:v},c.createElement("div",{className:Y(`${l}-image`,r),style:a},b)))},iy=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},sy=e=>{const{prefixCls:t,className:r,style:n,rows:a}=e,o=ye(Array(a)).map((i,s)=>c.createElement("li",{key:s,style:{width:iy(s,e)}}));return c.createElement("ul",{className:Y(t,r),style:n},o)},ly=e=>{let{prefixCls:t,className:r,width:n,style:a}=e;return c.createElement("h3",{className:Y(t,r),style:Object.assign({width:n},a)})};function $i(e){return e&&typeof e=="object"?e:{}}function cy(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function uy(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function dy(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const cn=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:a,style:o,children:i,avatar:s=!1,title:l=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:v,direction:b,skeleton:h}=c.useContext(ot),p=v("skeleton",t),[m,S,g]=Wn(p);if(r||!("loading"in e)){const y=!!s,E=!!l,C=!!u;let x;if(y){const $=Object.assign(Object.assign({prefixCls:`${p}-avatar`},cy(E,C)),$i(s));x=c.createElement("div",{className:`${p}-header`},c.createElement(ko,Object.assign({},$)))}let R;if(E||C){let $;if(E){const F=Object.assign(Object.assign({prefixCls:`${p}-title`},uy(y,C)),$i(l));$=c.createElement(ly,Object.assign({},F))}let T;if(C){const F=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},dy(y,E)),$i(u));T=c.createElement(sy,Object.assign({},F))}R=c.createElement("div",{className:`${p}-content`},$,T)}const w=Y(p,{[`${p}-with-avatar`]:y,[`${p}-active`]:d,[`${p}-rtl`]:b==="rtl",[`${p}-round`]:f},h==null?void 0:h.className,n,a,S,g);return m(c.createElement("div",{className:w,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},x,R))}return i??null};cn.Button=Jb;cn.Avatar=Zb;cn.Input=ry;cn.Image=ty;cn.Node=oy;process.env.NODE_ENV!=="production"&&(cn.displayName="Skeleton");const fy=e=>({animationDuration:e,animationFillMode:"both"}),vy=e=>({animationDuration:e,animationFillMode:"both"}),Sf=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
163
+ `]:Object.assign({},HS(e))}}},XS=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,a=r;return{color:n,colorGradientEnd:a,gradientFromColor:n,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},va=Or("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=Bt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(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[qS(n)]},XS,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),YS=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=u.useContext(it),l=s("skeleton",t),[c,d,f]=va(l),v=$r(e,["prefixCls","className"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a},r,n,d,f);return c(u.createElement("div",{className:b},u.createElement(Pi,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:i},v))))},ZS=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=u.useContext(it),l=s("skeleton",t),[c,d,f]=va(l),v=$r(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return c(u.createElement("div",{className:b},u.createElement(Pi,Object.assign({prefixCls:`${l}-button`,size:i},v))))},QS="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",JS=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o}=e,{getPrefixCls:i}=u.useContext(it),s=i("skeleton",t),[l,c,d]=va(s),f=Z(s,`${s}-element`,{[`${s}-active`]:o},r,n,c,d);return l(u.createElement("div",{className:f},u.createElement("div",{className:Z(`${s}-image`,r),style:a},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:QS,className:`${s}-image-path`})))))},eC=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=u.useContext(it),l=s("skeleton",t),[c,d,f]=va(l),v=$r(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return c(u.createElement("div",{className:b},u.createElement(Pi,Object.assign({prefixCls:`${l}-input`,size:i},v))))};var tC={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"},rC=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:tC}))},Kv=u.forwardRef(rC);process.env.NODE_ENV!=="production"&&(Kv.displayName="DotChartOutlined");const nC=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o,children:i}=e,{getPrefixCls:s}=u.useContext(it),l=s("skeleton",t),[c,d,f]=va(l),v=Z(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,f),b=i??u.createElement(Kv,null);return c(u.createElement("div",{className:v},u.createElement("div",{className:Z(`${l}-image`,r),style:a},b)))},aC=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},oC=e=>{const{prefixCls:t,className:r,style:n,rows:a}=e,o=ye(Array(a)).map((i,s)=>u.createElement("li",{key:s,style:{width:aC(s,e)}}));return u.createElement("ul",{className:Z(t,r),style:n},o)},iC=e=>{let{prefixCls:t,className:r,width:n,style:a}=e;return u.createElement("h3",{className:Z(t,r),style:Object.assign({width:n},a)})};function hs(e){return e&&typeof e=="object"?e:{}}function sC(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lC(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function cC(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const $n=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:a,style:o,children:i,avatar:s=!1,title:l=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:v,direction:b,skeleton:h}=u.useContext(it),g=v("skeleton",t),[p,S,m]=va(g);if(r||!("loading"in e)){const y=!!s,E=!!l,C=!!c;let x;if(y){const O=Object.assign(Object.assign({prefixCls:`${g}-avatar`},sC(E,C)),hs(s));x=u.createElement("div",{className:`${g}-header`},u.createElement(Pi,Object.assign({},O)))}let w;if(E||C){let O;if(E){const F=Object.assign(Object.assign({prefixCls:`${g}-title`},lC(y,C)),hs(l));O=u.createElement(iC,Object.assign({},F))}let T;if(C){const F=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},cC(y,E)),hs(c));T=u.createElement(oC,Object.assign({},F))}w=u.createElement("div",{className:`${g}-content`},O,T)}const $=Z(g,{[`${g}-with-avatar`]:y,[`${g}-active`]:d,[`${g}-rtl`]:b==="rtl",[`${g}-round`]:f},h==null?void 0:h.className,n,a,S,m);return p(u.createElement("div",{className:$,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},x,w))}return i??null};$n.Button=ZS;$n.Avatar=YS;$n.Input=eC;$n.Image=JS;$n.Node=nC;process.env.NODE_ENV!=="production"&&($n.displayName="Skeleton");const uC=e=>({animationDuration:e,animationFillMode:"both"}),dC=e=>({animationDuration:e,animationFillMode:"both"}),qv=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
164
164
  ${o}${e}-enter,
165
165
  ${o}${e}-appear
166
- `]:Object.assign(Object.assign({},fy(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},vy(n)),{animationPlayState:"paused"}),[`
166
+ `]:Object.assign(Object.assign({},uC(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},dC(n)),{animationPlayState:"paused"}),[`
167
167
  ${o}${e}-enter${e}-enter-active,
168
168
  ${o}${e}-appear${e}-appear-active
169
- `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},my=new $t("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),gy=new $t("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),py=new $t("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),hy=new $t("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),by=new $t("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),yy=new $t("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Sy=new $t("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Cy=new $t("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ey={"slide-up":{inKeyframes:my,outKeyframes:gy},"slide-down":{inKeyframes:py,outKeyframes:hy},"slide-left":{inKeyframes:by,outKeyframes:yy},"slide-right":{inKeyframes:Sy,outKeyframes:Cy}},Lc=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=Ey[t];return[Sf(n,a,o,e.motionDurationMid),{[`
169
+ `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},fC=new Pt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),vC=new Pt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),pC=new Pt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),mC=new Pt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),gC=new Pt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),hC=new Pt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bC=new Pt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),yC=new Pt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),SC={"slide-up":{inKeyframes:fC,outKeyframes:vC},"slide-down":{inKeyframes:pC,outKeyframes:mC},"slide-left":{inKeyframes:gC,outKeyframes:hC},"slide-right":{inKeyframes:bC,outKeyframes:yC}},Ku=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=SC[t];return[qv(n,a,o,e.motionDurationMid),{[`
170
170
  ${n}-enter,
171
171
  ${n}-appear
172
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},xy=new $t("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wy=new $t("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Dc=new $t("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zc=new $t("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),$y=new $t("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Oy=new $t("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ry=new $t("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Py=new $t("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_y=new $t("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ny=new $t("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ty=new $t("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Iy=new $t("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),My={zoom:{inKeyframes:xy,outKeyframes:wy},"zoom-big":{inKeyframes:Dc,outKeyframes:zc},"zoom-big-fast":{inKeyframes:Dc,outKeyframes:zc},"zoom-left":{inKeyframes:Ry,outKeyframes:Py},"zoom-right":{inKeyframes:_y,outKeyframes:Ny},"zoom-up":{inKeyframes:$y,outKeyframes:Oy},"zoom-down":{inKeyframes:Ty,outKeyframes:Iy}},Ay=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=My[t];return[Sf(n,a,o,e.motionDurationFast),{[`
172
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},CC=new Pt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),EC=new Pt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qu=new Pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Xu=new Pt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),xC=new Pt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wC=new Pt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$C=new Pt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),OC=new Pt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),RC=new Pt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),PC=new Pt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),_C=new Pt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),NC=new Pt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),TC={zoom:{inKeyframes:CC,outKeyframes:EC},"zoom-big":{inKeyframes:qu,outKeyframes:Xu},"zoom-big-fast":{inKeyframes:qu,outKeyframes:Xu},"zoom-left":{inKeyframes:$C,outKeyframes:OC},"zoom-right":{inKeyframes:RC,outKeyframes:PC},"zoom-up":{inKeyframes:xC,outKeyframes:wC},"zoom-down":{inKeyframes:_C,outKeyframes:NC}},IC=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=TC[t];return[qv(n,a,o,e.motionDurationFast),{[`
173
173
  ${n}-enter,
174
174
  ${n}-appear
175
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Cf=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var jy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],gn=void 0;function Fy(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,m=p===void 0?"div":p,S=Je(e,jy),g=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var E=o&&a!==gn?o(a):v,C;n||(C={opacity:g?0:1,height:g?0:gn,overflowY:g?"hidden":gn,order:i?h:gn,pointerEvents:g?"none":gn,position:g?"absolute":gn});var x={};g&&(x["aria-hidden"]=!0);var R=c.createElement(m,Oe({className:Y(!n&&r,d),style:z(z({},C),f)},x,S,{ref:t}),E);return i&&(R=c.createElement(vr,{onResize:function($){var T=$.offsetWidth;y(T)},disabled:s},R)),R}var fa=c.forwardRef(Fy);fa.displayName="Item";function Ly(e){if(typeof MessageChannel>"u")_t(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Dy(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],Ly(function(){Pn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function ta(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Bt(function(s){e(function(){o(s)})});return[a,i]}var Ro=P.createContext(null),zy=["component"],Vy=["className"],By=["className"],ky=function(t,r){var n=c.useContext(Ro);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,zy);return c.createElement(o,Oe({},i,{ref:r}))}var s=n.className,l=Je(n,Vy),u=t.className,d=Je(t,By);return c.createElement(Ro.Provider,{value:null},c.createElement(fa,Oe({ref:r,className:Y(s,u)},l,d)))},Ef=c.forwardRef(ky);Ef.displayName="RawItem";var Hy=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],xf="responsive",wf="invalidate";function Wy(e){return"+ ".concat(e.length," ...")}function Gy(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,m=e.renderRawRest,S=e.suffix,g=e.component,y=g===void 0?"div":g,E=e.itemComponent,C=e.onVisibleChange,x=Je(e,Hy),R=f==="full",w=Dy(),$=ta(w,null),T=U($,2),F=T[0],j=T[1],A=F||0,M=ta(w,new Map),H=U(M,2),N=H[0],O=H[1],I=ta(w,0),D=U(I,2),V=D[0],k=D[1],K=ta(w,0),W=U(K,2),q=W[0],Q=W[1],Z=ta(w,0),J=U(Z,2),te=J[0],ae=J[1],fe=P.useState(null),de=U(fe,2),ve=de[0],we=de[1],B=P.useState(null),ce=U(B,2),se=ce[0],Ce=ce[1],pe=c.useMemo(function(){return se===null&&R?Number.MAX_SAFE_INTEGER:se||0},[se,F]),ne=P.useState(!1),me=U(ne,2),xe=me[0],Me=me[1],oe="".concat(n,"-item"),re=Math.max(V,q),ge=h===xf,he=o.length&&ge,tt=h===wf,qe=he||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Re=o;return he?F===null&&R?Re=o:Re=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(Re=o.slice(0,h)),Re},[o,d,F,h,he]),Ue=P.useMemo(function(){return he?o.slice(pe+1):o.slice(Ae.length)},[o,Ae,he,pe]),Xe=P.useCallback(function(Re,be){var Ge;return typeof l=="function"?l(Re):(Ge=l&&(Re==null?void 0:Re[l]))!==null&&Ge!==void 0?Ge:be},[l]),Ze=P.useCallback(i||function(Re){return Re},[i]);function Fe(Re,be,Ge){se===Re&&(be===void 0||be===ve)||(Ce(Re),Ge||(Me(Re<o.length-1),C==null||C(Re)),be!==void 0&&we(be))}function Ne(Re,be){j(be.clientWidth)}function it(Re,be){O(function(Ge){var pt=new Map(Ge);return be===null?pt.delete(Re):pt.set(Re,be),pt})}function Ye(Re,be){Q(be),k(q)}function Le(Re,be){ae(be)}function ue(Re){return N.get(Xe(Ae[Re],Re))}yt(function(){if(A&&typeof re=="number"&&Ae){var Re=te,be=Ae.length,Ge=be-1;if(!be){Fe(0,null);return}for(var pt=0;pt<be;pt+=1){var ke=ue(pt);if(R&&(ke=ke||0),ke===void 0){Fe(pt-1,void 0,!0);break}if(Re+=ke,Ge===0&&Re<=A||pt===Ge-1&&Re+ue(Ge)<=A){Fe(Ge,null);break}else if(Re+re>A){Fe(pt-1,Re-ke-te+q);break}}S&&ue(0)+te>A&&we(null)}},[A,N,q,te,Xe,Ae]);var Ee=xe&&!!Ue.length,Ke={};ve!==null&&he&&(Ke={position:"absolute",left:ve,top:0});var rt={prefixCls:oe,responsive:he,component:E,invalidate:tt},bt=s?function(Re,be){var Ge=Xe(Re,be);return c.createElement(Ro.Provider,{key:Ge,value:z(z({},rt),{},{order:be,item:Re,itemKey:Ge,registerSize:it,display:be<=pe})},s(Re,be))}:function(Re,be){var Ge=Xe(Re,be);return c.createElement(fa,Oe({},rt,{order:be,key:Ge,item:Re,renderItem:Ze,itemKey:Ge,registerSize:it,display:be<=pe}))},ut,Be={order:Ee?pe:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ye,display:Ee};if(m)m&&(ut=c.createElement(Ro.Provider,{value:z(z({},rt),Be)},m(Ue)));else{var Ve=p||Wy;ut=c.createElement(fa,Oe({},rt,Be),typeof Ve=="function"?Ve(Ue):Ve)}var De=c.createElement(y,Oe({className:Y(!tt&&n,b),style:v,ref:t},x),Ae.map(bt),qe?ut:null,S&&c.createElement(fa,Oe({},rt,{responsive:ge,responsiveDisabled:!he,order:pe,className:"".concat(oe,"-suffix"),registerSize:Le,display:!0,style:Ke}),S));return ge&&(De=c.createElement(vr,{onResize:Ne,disabled:!he},De)),De}var jr=c.forwardRef(Gy);jr.displayName="Overflow";jr.Item=Ef;jr.RESPONSIVE=xf;jr.INVALIDATE=wf;function Uy(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],m=h[0],S=h[1],g=p[0],y=p[1];m===g||!["t","b"].includes(m)?b.top=f:m==="t"?b.top=0:b.bottom=0,S===y||!["l","r"].includes(S)?b.left=u:S==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Y("".concat(t,"-arrow"),i),style:b},s)}function Ky(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(sn,Oe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Y("".concat(t,"-mask"),s)})}):null}var $f=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&($f.displayName="PopupContent");var Of=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,m=e.motion,S=e.maskMotion,g=e.forceRender,y=e.getPopupContainer,E=e.autoDestroy,C=e.portal,x=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,T=e.ready,F=e.offsetX,j=e.offsetY,A=e.offsetR,M=e.offsetB,H=e.onAlign,N=e.onPrepare,O=e.stretch,I=e.targetWidth,D=e.targetHeight,V=typeof r=="function"?r():r,k=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Q=q[0],Z=q[1];if(yt(function(){!Q&&K&&i&&Z(!0)},[Q,K,i]),!Q)return null;var J="auto",te={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(T||!l){var ae,fe=p.points,de=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ve=de&&fe[0][1]==="r",we=de&&fe[0][0]==="b";ve?(te.right=A,te.left=J):(te.left=F,te.right=J),we?(te.bottom=M,te.top=J):(te.top=j,te.bottom=J)}var B={};return O&&(O.includes("height")&&D?B.height=D:O.includes("minHeight")&&D&&(B.minHeight=D),O.includes("width")&&I?B.width=I:O.includes("minWidth")&&I&&(B.minWidth=I)),l||(B.pointerEvents="none"),c.createElement(C,{open:g||k,getContainer:y&&function(){return y(i)},autoDestroy:E},c.createElement(Ky,{prefixCls:a,open:l,zIndex:x,mask:v,motion:S}),c.createElement(vr,{onResize:H,disabled:!l},function(ce){return c.createElement(sn,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(a,"-hidden")},m,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ce){var pe;m==null||(pe=m.onVisibleChanged)===null||pe===void 0||pe.call(m,Ce),s(Ce)}}),function(se,Ce){var pe=se.className,ne=se.style,me=Y(a,pe,n);return c.createElement("div",{ref:Or(ce,t,Ce),className:me,style:z(z(z(z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ne),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(Uy,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement($f,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(Of.displayName="Popup");var Rf=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=on(r),o=c.useCallback(function(s){Gs(t,n?n(s):s)},[n]),i=_a(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Rf.displayName="TriggerWrapper");var Vc=c.createContext(null);function Bc(e){return e?Array.isArray(e)?e:[e]:[]}function qy(e,t,r,n){return c.useMemo(function(){var a=Bc(r??t),o=Bc(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function Xy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Yy(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(Xy((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function kc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Aa(e){return e.ownerDocument.defaultView}function Is(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Aa(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ra(e){return Oa(parseFloat(e),0)}function Hc(e,t){var r=z({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Aa(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,m=ra(s),S=ra(l),g=ra(u),y=ra(d),E=Oa(Math.round(f.width/h*1e3)/1e3),C=Oa(Math.round(f.height/v*1e3)/1e3),x=(h-p-g-y)*E,R=(v-b-m-S)*C,w=m*C,$=S*C,T=g*E,F=y*E,j=0,A=0;if(o==="clip"){var M=ra(i);j=M*E,A=M*C}var H=f.x+T-j,N=f.y+w-A,O=H+f.width+2*j-T-F-x,I=N+f.height+2*A-w-$-R;r.left=Math.max(r.left,H),r.top=Math.max(r.top,N),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,I)}}),r}function Wc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Gc(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[Wc(e.width,a),Wc(e.height,o)]}function Uc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function kr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function Qy(e,t,r,n,a,o,i){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=U(s,2),u=l[0],d=l[1],f=c.useRef(0),v=c.useMemo(function(){return t?Is(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Bt(function(){if(t&&r&&e){let Gt=function(Ut,cr){var Br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,dn=V.x+Ut,Yn=V.y+cr,Qn=dn+ae,Da=Yn+te,Qo=Math.max(dn,Br.left),Zo=Math.max(Yn,Br.top),Jo=Math.min(Qn,Br.right),ei=Math.min(Da,Br.bottom);return Math.max(0,(Jo-Qo)*(ei-Zo))},Zr=function(){_=V.y+Ve,G=_+te,X=V.x+Be,ie=X+ae};var g,y,E=t,C=E.ownerDocument,x=Aa(E),R=x.getComputedStyle(E),w=R.width,$=R.height,T=R.position,F=E.style.left,j=E.style.top,A=E.style.right,M=E.style.bottom,H=E.style.overflow,N=z(z({},a[n]),o),O=C.createElement("div");(g=E.parentElement)===null||g===void 0||g.appendChild(O),O.style.left="".concat(E.offsetLeft,"px"),O.style.top="".concat(E.offsetTop,"px"),O.style.position=T,O.style.height="".concat(E.offsetHeight,"px"),O.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var I;if(Array.isArray(r))I={x:r[0],y:r[1],width:0,height:0};else{var D=r.getBoundingClientRect();I={x:D.x,y:D.y,width:D.width,height:D.height}}var V=E.getBoundingClientRect(),k=C.documentElement,K=k.clientWidth,W=k.clientHeight,q=k.scrollWidth,Q=k.scrollHeight,Z=k.scrollTop,J=k.scrollLeft,te=V.height,ae=V.width,fe=I.height,de=I.width,ve={left:0,top:0,right:K,bottom:W},we={left:-J,top:-Z,right:q-J,bottom:Q-Z},B=N.htmlRegion,ce="visible",se="visibleFirst";B!=="scroll"&&B!==se&&(B=ce);var Ce=B===se,pe=Hc(we,v),ne=Hc(ve,v),me=B===ce?ne:pe,xe=Ce?ne:me;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Me=E.getBoundingClientRect();E.style.left=F,E.style.top=j,E.style.right=A,E.style.bottom=M,E.style.overflow=H,(y=E.parentElement)===null||y===void 0||y.removeChild(O);var oe=Oa(Math.round(ae/parseFloat(w)*1e3)/1e3),re=Oa(Math.round(te/parseFloat($)*1e3)/1e3);if(oe===0||re===0||va(r)&&!sl(r))return;var ge=N.offset,he=N.targetOffset,tt=Gc(V,ge),qe=U(tt,2),Ae=qe[0],Ue=qe[1],Xe=Gc(I,he),Ze=U(Xe,2),Fe=Ze[0],Ne=Ze[1];I.x-=Fe,I.y-=Ne;var it=N.points||[],Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=Uc(ue),Ke=Uc(Le),rt=pn(I,Ee),bt=pn(V,Ke),ut=z({},N),Be=rt.x-bt.x+Ae,Ve=rt.y-bt.y+Ue,De=Gt(Be,Ve),Re=Gt(Be,Ve,ne),be=pn(I,["t","l"]),Ge=pn(V,["t","l"]),pt=pn(I,["b","r"]),ke=pn(V,["b","r"]),He=N.overflow||{},st=He.adjustX,ht=He.adjustY,Rt=He.shiftX,Dt=He.shiftY,kt=function(cr){return typeof cr=="boolean"?cr:cr>=0},_,G,X,ie;Zr();var Pe=kt(ht),$e=Ke[0]===Ee[0];if(Pe&&Ke[0]==="t"&&(G>xe.bottom||b.current.bt)){var _e=Ve;$e?_e-=te-fe:_e=be.y-ke.y-Ue;var Ie=Gt(Be,_e),vt=Gt(Be,_e,ne);Ie>De||Ie===De&&(!Ce||vt>=Re)?(b.current.bt=!0,Ve=_e,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.bt=!1}if(Pe&&Ke[0]==="b"&&(_<xe.top||b.current.tb)){var et=Ve;$e?et+=te-fe:et=pt.y-Ge.y-Ue;var ze=Gt(Be,et),Et=Gt(Be,et,ne);ze>De||ze===De&&(!Ce||Et>=Re)?(b.current.tb=!0,Ve=et,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.tb=!1}var Ht=kt(st),zt=Ke[1]===Ee[1];if(Ht&&Ke[1]==="l"&&(ie>xe.right||b.current.rl)){var mt=Be;zt?mt-=ae-de:mt=be.x-ke.x-Ae;var yr=Gt(mt,Ve),Dr=Gt(mt,Ve,ne);yr>De||yr===De&&(!Ce||Dr>=Re)?(b.current.rl=!0,Be=mt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.rl=!1}if(Ht&&Ke[1]==="r"&&(X<xe.left||b.current.lr)){var Wt=Be;zt?Wt+=ae-de:Wt=pt.x-Ge.x-Ae;var zr=Gt(Wt,Ve),Gn=Gt(Wt,Ve,ne);zr>De||zr===De&&(!Ce||Gn>=Re)?(b.current.lr=!0,Be=Wt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.lr=!1}Zr();var tr=Rt===!0?0:Rt;typeof tr=="number"&&(X<ne.left&&(Be-=X-ne.left-Ae,I.x+de<ne.left+tr&&(Be+=I.x-ne.left+de-tr)),ie>ne.right&&(Be-=ie-ne.right-Ae,I.x>ne.right-tr&&(Be+=I.x-ne.right+tr)));var sr=Dt===!0?0:Dt;typeof sr=="number"&&(_<ne.top&&(Ve-=_-ne.top-Ue,I.y+fe<ne.top+sr&&(Ve+=I.y-ne.top+fe-sr)),G>ne.bottom&&(Ve-=G-ne.bottom-Ue,I.y>ne.bottom-sr&&(Ve+=I.y-ne.bottom+sr)));var Vr=V.x+Be,Rr=Vr+ae,Sr=V.y+Ve,Pr=Sr+te,Qr=I.x,_r=Qr+de,lr=I.y,Un=lr+fe,Kn=Math.max(Vr,Qr),qn=Math.min(Rr,_r),un=(Kn+qn)/2,gt=un-Vr,nt=Math.max(Sr,lr),dt=Math.min(Pr,Un),Tt=(nt+dt)/2,Mt=Tt-Sr;i==null||i(t,ut);var Cr=Me.right-V.x-(Be+V.width),Er=Me.bottom-V.y-(Ve+V.height);oe===1&&(Be=Math.round(Be),Cr=Math.round(Cr)),re===1&&(Ve=Math.round(Ve),Er=Math.round(Er));var Xn={ready:!0,offsetX:Be/oe,offsetY:Ve/re,offsetR:Cr/oe,offsetB:Er/re,arrowX:gt/oe,arrowY:Mt/re,scaleX:oe,scaleY:re,align:ut};d(Xn)}}),m=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},S=function(){d(function(y){return z(z({},y),{},{ready:!1})})};return yt(S,[n]),yt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,m]}function Zy(e,t,r,n,a){yt(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Is(o),l=Is(i),u=Aa(i),d=new Set([u].concat(ye(s),ye(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function Jy(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(S){var g;l.current&&!i(((g=S.composedPath)===null||g===void 0||(g=g.call(S))===null||g===void 0?void 0:g[0])||S.target)&&s(!1)},d=Aa(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=xo(r);if(f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var v,b,h=r==null||(v=r.getRootNode)===null||v===void 0?void 0:v.call(r),p=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);_n(h===p,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,r,n,a,o])}var eS=["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"];function tS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ul,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,m=r.mouseLeaveDelay,S=m===void 0?.1:m,g=r.focusDelay,y=r.blurDelay,E=r.mask,C=r.maskClosable,x=C===void 0?!0:C,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,T=r.destroyPopupOnHide,F=r.popup,j=r.popupClassName,A=r.popupStyle,M=r.popupPlacement,H=r.builtinPlacements,N=H===void 0?{}:H,O=r.popupAlign,I=r.zIndex,D=r.stretch,V=r.getPopupClassNameFromAlign,k=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Q=r.arrow,Z=r.popupMotion,J=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,fe=r.maskTransitionName,de=r.maskAnimation,ve=r.className,we=r.getTriggerDOMNode,B=Je(r,eS),ce=$||T||!1,se=c.useState(!1),Ce=U(se,2),pe=Ce[0],ne=Ce[1];yt(function(){ne(Cf())},[]);var me=c.useRef({}),xe=c.useContext(Vc),Me=c.useMemo(function(){return{registerSubPopup:function(je,St){me.current[je]=St,xe==null||xe.registerSubPopup(je,St)}}},[xe]),oe=U0(),re=c.useState(null),ge=U(re,2),he=ge[0],tt=ge[1],qe=c.useRef(null),Ae=Bt(function(Se){qe.current=Se,va(Se)&&he!==Se&&tt(Se),xe==null||xe.registerSubPopup(oe,Se)}),Ue=c.useState(null),Xe=U(Ue,2),Ze=Xe[0],Fe=Xe[1],Ne=c.useRef(null),it=Bt(function(Se){va(Se)&&Ze!==Se&&(Fe(Se),Ne.current=Se)}),Ye=c.Children.only(i),Le=(Ye==null?void 0:Ye.props)||{},ue={},Ee=Bt(function(Se){var je,St,Pt=Ze;return(Pt==null?void 0:Pt.contains(Se))||((je=xo(Pt))===null||je===void 0?void 0:je.host)===Se||Se===Pt||(he==null?void 0:he.contains(Se))||((St=xo(he))===null||St===void 0?void 0:St.host)===Se||Se===he||Object.values(me.current).some(function(Ct){return(Ct==null?void 0:Ct.contains(Se))||Se===Ct})}),Ke=kc(o,Z,ae,te),rt=kc(o,J,de,fe),bt=c.useState(v||!1),ut=U(bt,2),Be=ut[0],Ve=ut[1],De=f??Be,Re=Bt(function(Se){f===void 0&&Ve(Se)});yt(function(){Ve(f||!1)},[f]);var be=c.useRef(De);be.current=De;var Ge=c.useRef([]);Ge.current=[];var pt=Bt(function(Se){var je;Re(Se),((je=Ge.current[Ge.current.length-1])!==null&&je!==void 0?je:De)!==Se&&(Ge.current.push(Se),b==null||b(Se))}),ke=c.useRef(),He=function(){clearTimeout(ke.current)},st=function(je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;He(),St===0?pt(je):ke.current=setTimeout(function(){pt(je)},St*1e3)};c.useEffect(function(){return He},[]);var ht=c.useState(!1),Rt=U(ht,2),Dt=Rt[0],kt=Rt[1];yt(function(Se){(!Se||De)&&kt(!0)},[De]);var _=c.useState(null),G=U(_,2),X=G[0],ie=G[1],Pe=c.useState([0,0]),$e=U(Pe,2),_e=$e[0],Ie=$e[1],vt=function(je){Ie([je.clientX,je.clientY])},et=Qy(De,he,K?_e:Ze,M,N,O,q),ze=U(et,11),Et=ze[0],Ht=ze[1],zt=ze[2],mt=ze[3],yr=ze[4],Dr=ze[5],Wt=ze[6],zr=ze[7],Gn=ze[8],tr=ze[9],sr=ze[10],Vr=qy(pe,l,u,d),Rr=U(Vr,2),Sr=Rr[0],Pr=Rr[1],Qr=Sr.has("click"),_r=Pr.has("click")||Pr.has("contextMenu"),lr=Bt(function(){Dt||sr()}),Un=function(){be.current&&K&&_r&&st(!1)};Zy(De,Ze,he,lr,Un),yt(function(){lr()},[_e,M]),yt(function(){De&&!(N!=null&&N[M])&&lr()},[JSON.stringify(O)]);var Kn=c.useMemo(function(){var Se=Yy(N,o,tr,K);return Y(Se,V==null?void 0:V(tr))},[tr,V,N,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:qe.current,forceAlign:lr}});var qn=c.useState(0),un=U(qn,2),gt=un[0],nt=un[1],dt=c.useState(0),Tt=U(dt,2),Mt=Tt[0],Cr=Tt[1],Er=function(){if(D&&Ze){var je=Ze.getBoundingClientRect();nt(je.width),Cr(je.height)}},Xn=function(){Er(),lr()},Gt=function(je){kt(!1),sr(),h==null||h(je)},Zr=function(){return new Promise(function(je){Er(),ie(function(){return je})})};yt(function(){X&&(sr(),X(),ie(null))},[X]);function Ut(Se,je,St,Pt){ue[Se]=function(Ct){var za;Pt==null||Pt(Ct),st(je,St);for(var ti=arguments.length,xl=new Array(ti>1?ti-1:0),Va=1;Va<ti;Va++)xl[Va-1]=arguments[Va];(za=Le[Se])===null||za===void 0||za.call.apply(za,[Le,Ct].concat(xl))}}(Qr||_r)&&(ue.onClick=function(Se){var je;be.current&&_r?st(!1):!be.current&&Qr&&(vt(Se),st(!0));for(var St=arguments.length,Pt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Pt[Ct-1]=arguments[Ct];(je=Le.onClick)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Pt))}),Jy(De,_r,Ze,he,E,x,Ee,st);var cr=Sr.has("hover"),Br=Pr.has("hover"),dn,Yn;cr&&(Ut("onMouseEnter",!0,p,function(Se){vt(Se)}),Ut("onPointerEnter",!0,p,function(Se){vt(Se)}),dn=function(je){(De||Dt)&&he!==null&&he!==void 0&&he.contains(je.target)&&st(!0,p)},K&&(ue.onMouseMove=function(Se){var je;(je=Le.onMouseMove)===null||je===void 0||je.call(Le,Se)})),Br&&(Ut("onMouseLeave",!1,S),Ut("onPointerLeave",!1,S),Yn=function(){st(!1,S)}),Sr.has("focus")&&Ut("onFocus",!0,g),Pr.has("focus")&&Ut("onBlur",!1,y),Sr.has("contextMenu")&&(ue.onContextMenu=function(Se){var je;be.current&&Pr.has("contextMenu")?st(!1):(vt(Se),st(!0)),Se.preventDefault();for(var St=arguments.length,Pt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Pt[Ct-1]=arguments[Ct];(je=Le.onContextMenu)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Pt))}),ve&&(ue.className=Y(Le.className,ve));var Qn=z(z({},Le),ue),Da={},Qo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Qo.forEach(function(Se){B[Se]&&(Da[Se]=function(){for(var je,St=arguments.length,Pt=new Array(St),Ct=0;Ct<St;Ct++)Pt[Ct]=arguments[Ct];(je=Qn[Se])===null||je===void 0||je.call.apply(je,[Qn].concat(Pt)),B[Se].apply(B,Pt)})});var Zo=c.cloneElement(Ye,z(z({},Qn),Da)),Jo={x:Dr,y:Wt},ei=Q?z({},Q!==!0?Q:{}):null;return c.createElement(c.Fragment,null,c.createElement(vr,{disabled:!De,ref:it,onResize:Xn},c.createElement(Rf,{getTriggerDOMNode:we},Zo)),c.createElement(Vc.Provider,{value:Me},c.createElement(Of,{portal:e,ref:Ae,prefixCls:o,popup:F,className:Y(j,Kn),style:A,target:Ze,onMouseEnter:dn,onMouseLeave:Yn,onPointerEnter:dn,zIndex:I,open:De,keepDom:Dt,fresh:k,onClick:W,mask:E,motion:Ke,maskMotion:rt,onVisibleChanged:Gt,onPrepare:Zr,forceRender:w,autoDestroy:ce,getPopupContainer:R,align:tr,arrow:ei,arrowPos:Jo,ready:Et,offsetX:Ht,offsetY:zt,offsetR:mt,offsetB:yr,onAlign:lr,stretch:D,targetWidth:gt/zr,targetHeight:Mt/Gn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const fl=tS(ul);function Ms(e,t,r){return Y({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Pf=(e,t)=>t||e,_f=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=P.useContext(ot),s=P.useContext(kb),l=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const d=ip.includes(u);return[u,d]};var rS={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"},nS=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:rS}))},Nf=c.forwardRef(nS);process.env.NODE_ENV!=="production"&&(Nf.displayName="CheckOutlined");const Ra=["xxl","xl","lg","md","sm","xs"],aS=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)`}),oS=e=>{const t=e,r=[].concat(Ra).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function iS(){const[,e]=Lr(),t=aS(oS(e));return P.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Tf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Y("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var hn={shiftX:64,adjustY:1},bn={adjustX:1,shiftY:!0},nr=[0,0],sS={left:{points:["cr","cl"],overflow:bn,offset:[-4,0],targetOffset:nr},right:{points:["cl","cr"],overflow:bn,offset:[4,0],targetOffset:nr},top:{points:["bc","tc"],overflow:hn,offset:[0,-4],targetOffset:nr},bottom:{points:["tc","bc"],overflow:hn,offset:[0,4],targetOffset:nr},topLeft:{points:["bl","tl"],overflow:hn,offset:[0,-4],targetOffset:nr},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0],targetOffset:nr},topRight:{points:["br","tr"],overflow:hn,offset:[0,-4],targetOffset:nr},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0],targetOffset:nr},bottomRight:{points:["tr","br"],overflow:hn,offset:[0,4],targetOffset:nr},rightBottom:{points:["bl","br"],overflow:bn,offset:[4,0],targetOffset:nr},bottomLeft:{points:["tl","bl"],overflow:hn,offset:[0,4],targetOffset:nr},leftBottom:{points:["br","bl"],overflow:bn,offset:[-4,0],targetOffset:nr}},lS=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],cS=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,m=t.transitionName,S=t.animation,g=t.motion,y=t.placement,E=y===void 0?"right":y,C=t.align,x=C===void 0?{}:C,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,T=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,A=t.id,M=t.showArrow,H=M===void 0?!0:M,N=Je(t,lS),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var I=z({},N);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return c.createElement(Tf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:F},j)};return c.createElement(fl,Oe({popupClassName:n,prefixCls:v,popup:D,action:o,builtinPlacements:sS,popupPlacement:E,ref:O,popupAlign:x,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:m,popupAnimation:S,popupMotion:g,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:H},I),b)};const uS=P.forwardRef(cS);function dS(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,m=i,S=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),g=n*(Math.sqrt(2)-1),y=`polygon(${g}px 100%, 50% ${g}px, ${2*a-g}px 100%, ${g}px 100%)`,E=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${m} Z')`;return{arrowShadowWidth:S,arrowPath:E,arrowPolygon:y}}const fS=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ee(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},If=8;function Mf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?If:n}}function Ja(e,t){return e?t:{}}function vS(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},fS(e,t,a)),{"&:before":{background:t}})]},Ja(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Ja(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function mS(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Kc={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"]}},gS={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"]}},pS=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function hS(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Kc).forEach(u=>{const d=n&&gS[u]||Kc[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,pS.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=Mf({contentRadius:o,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=mS(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const bS=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ee(e.calc(u).div(2).equal())} ${ee(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,If)}},[`${t}-content`]:{position:"relative"}}),Fp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},vS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},yS=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Mf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),dS(Lt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Af=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return br("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=Lt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[bS(s),Ay(n,"zoom-big-fast")]},yS,{resetStyle:!1,injectStyle:t})(e)},SS=Eo.map(e=>`${e}-inverse`);function CS(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ye(SS),ye(Eo)).includes(e):Eo.includes(e)}function jf(e,t){const r=CS(t),n=Y({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const ES=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(ot),l=s("tooltip",t),[u,d,f]=Af(l),v=jf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Y(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(Tf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var xS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const wS=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:m,builtinPlacements:S,arrowPointAtCenter:g=!1,autoAdjustOverflow:y=!0}=e,E=!!h,[,C]=Lr(),{getPopupContainer:x,getPrefixCls:R,direction:w}=c.useContext(ot),$=It("Tooltip"),T=c.useRef(null),F=()=>{var oe;(oe=T.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=T.current)===null||oe===void 0?void 0:oe.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(oe=>{let[re,ge]=oe;$.deprecated(!(re in e),re,ge)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,A]=or(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),M=!p&&!m&&p!==0,H=oe=>{var re,ge;A(M?!1:oe),M||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(ge=e.onVisibleChange)===null||ge===void 0||ge.call(e,oe))},N=c.useMemo(()=>{var oe,re;let ge=g;return typeof h=="object"&&(ge=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:g),S||hS({arrowPointAtCenter:ge,autoAdjustOverflow:y,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[g,h,S,C]),O=c.useMemo(()=>p===0?p:m||p||"",[m,p]),I=c.createElement(Ts,{space:!0},typeof O=="function"?O():O),{getPopupContainer:D,placement:V="top",mouseEnterDelay:k=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Q=xS(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Z=R("tooltip",a),J=R(),te=e["data-popover-inject"];let ae=j;!("open"in e)&&!("visible"in e)&&M&&(ae=!1);const fe=c.isValidElement(d)&&!qd(d)?d:c.createElement("span",null,d),de=fe.props,ve=!de.className||typeof de.className=="string"?Y(de.className,o||`${Z}-open`):de.className,[we,B,ce]=Af(Z,!te),se=jf(Z,l),Ce=se.arrowStyle,pe=Object.assign(Object.assign({},u),se.overlayStyle),ne=Y(s,{[`${Z}-rtl`]:w==="rtl"},se.className,q,B,ce),[me,xe]=Lh("Tooltip",Q.zIndex),Me=c.createElement(uS,Object.assign({},Q,{zIndex:me,showArrow:E,placement:V,mouseEnterDelay:k,mouseLeaveDelay:K,prefixCls:Z,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Ce),W),getTooltipContainer:D||i||x,ref:T,builtinPlacements:N,overlay:I,visible:ae,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:pe,arrowContent:c.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:Yd(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?Do(fe,{className:ve}):fe);return we(c.createElement(il.Provider,{value:xe},Me))}),ja=wS;process.env.NODE_ENV!=="production"&&(ja.displayName="Tooltip");ja._InternalPanelDoNotUseOrYouWillBeFired=ES;var $S=le.ESC,OS=le.TAB;function RS(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=c.useRef(!1),s=function(){if(t){var f,v;(f=r.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),n==null||n(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case $S:s();break;case OS:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&_t(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var PS=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=Or(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:on(o)?i:void 0}))}),yn={adjustX:1,adjustY:1},Sn=[0,0],_S={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-4],targetOffset:Sn},top:{points:["bc","tc"],overflow:yn,offset:[0,-4],targetOffset:Sn},topRight:{points:["br","tr"],overflow:yn,offset:[0,-4],targetOffset:Sn},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,4],targetOffset:Sn},bottom:{points:["tc","bc"],overflow:yn,offset:[0,4],targetOffset:Sn},bottomRight:{points:["tr","br"],overflow:yn,offset:[0,4],targetOffset:Sn}},NS=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function TS(e,t){var r,n=e.arrow,a=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,b=v===void 0?_S:v,h=e.getPopupContainer,p=e.showAction,m=e.hideAction,S=e.overlayClassName,g=e.overlayStyle,y=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,x=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,T=Je(e,NS),F=P.useState(),j=U(F,2),A=j[0],M=j[1],H="visible"in e?y:A,N=P.useRef(null),O=P.useRef(null),I=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var D=function(te){M(te),$==null||$(te)};RS({visible:H,triggerRef:I,onVisibleChange:D,autoFocus:x,overlayRef:O});var V=function(te){var ae=e.onOverlayClick;M(!1),ae&&ae(te)},k=function(){return P.createElement(PS,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?k:k()},W=function(){var te=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!ae},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Q=P.cloneElement(w,{className:Y((r=w.props)===null||r===void 0?void 0:r.className,H&&q()),ref:on(w)?Or(I,w.ref):void 0}),Z=m;return!Z&&C.indexOf("contextMenu")!==-1&&(Z=["click"]),P.createElement(fl,Oe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Y(S,L({},"".concat(i,"-show-arrow"),a)),popupStyle:g,action:C,showAction:p,hideAction:Z,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:D,onPopupClick:V,getPopupContainer:h}),Q)}const IS=P.forwardRef(TS);var Ff=c.createContext(null);function Lf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Df(e){var t=c.useContext(Ff);return Lf(t,e)}var MS=["children","locked"],pr=c.createContext(null);function AS(e,t){var r=z({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function Pa(e){var t=e.children,r=e.locked,n=Je(e,MS),a=c.useContext(pr),o=To(function(){return AS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!ba(i[1],s[1],!0))});return c.createElement(pr.Provider,{value:o},t)}var jS=[],zf=c.createContext(null);function Wo(){return c.useContext(zf)}var Vf=c.createContext(jS);function Fa(e){var t=c.useContext(Vf);return c.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var Bf=c.createContext(null),vl=c.createContext({});function qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(sl(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:n&&i===null&&(i=0),n&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function FS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ye(e.querySelectorAll("*")).filter(function(n){return qc(n,t)});return qc(e,t)&&r.unshift(e),r}var As=le.LEFT,js=le.RIGHT,Fs=le.UP,vo=le.DOWN,mo=le.ENTER,kf=le.ESC,na=le.HOME,aa=le.END,Xc=[Fs,vo,As,js];function LS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===mo)return{inlineTrigger:!0};var v=(a={},L(a,Fs,l),L(a,vo,u),a),b=(o={},L(o,As,r?u:l),L(o,js,r?l:u),L(o,vo,d),L(o,mo,d),o),h=(i={},L(i,Fs,l),L(i,vo,u),L(i,mo,d),L(i,kf,f),L(i,As,r?d:f),L(i,js,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},m=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(m){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function DS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function zS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function ml(e,t){var r=FS(e,!0);return r.filter(function(n){return t.has(n)})}function Yc(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=ml(e,t),o=a.length,i=a.findIndex(function(s){return r===s});return n<0?i===-1?i=o-1:i-=1:n>0&&(i+=1),i=(i+o)%o,a[i]}var Ls=function(t,r){var n=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(Lf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function VS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){_t.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(Xc,[mo,kf,na,aa]).includes(h)){var p=o(),m=Ls(p,n),S=m,g=S.elements,y=S.key2element,E=S.element2key,C=y.get(t),x=zS(C,g),R=E.get(x),w=LS(e,i(R,!0).length===1,r,h);if(!w&&h!==na&&h!==aa)return;(Xc.includes(h)||[na,aa].includes(h))&&b.preventDefault();var $=function(O){if(O){var I=O,D=O.querySelector("a");D!=null&&D.getAttribute("href")&&(I=D);var V=E.get(O);s(V),v(),d.current=_t(function(){f.current===V&&I.focus()})}};if([na,aa].includes(h)||w.sibling||!x){var T;!x||e==="inline"?T=a.current:T=DS(x);var F,j=ml(T,g);h===na?F=j[0]:h===aa?F=j[j.length-1]:F=Yc(T,g,x,w.offset),$(F)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=_t(function(){m=Ls(p,n);var N=x.getAttribute("aria-controls"),O=document.getElementById(N),I=Yc(O,m.elements);$(I)},5);else if(w.offset<0){var A=i(R,!0),M=A[A.length-2],H=y.get(M);l(M,!1),$(H)}}u==null||u(b)}}function BS(e){Promise.resolve().then(e)}var gl="__RC_UTIL_PATH_SPLIT__",Qc=function(t){return t.join(gl)},kS=function(t){return t.split(gl)},Ds="rc-menu-more";function HS(){var e=c.useState({}),t=U(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,E){process.env.NODE_ENV!=="production"&&at(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(E.join(" > "),"]"));var C=Qc(E);a.current.set(C,y),n.current.set(y,C),u.current+=1;var x=u.current;BS(function(){x===u.current&&f()})},[]),b=P.useCallback(function(y,E){var C=Qc(E);a.current.delete(C),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,E){var C=n.current.get(y)||"",x=kS(C);return E&&s.includes(x[0])&&x.unshift(Ds),x},[s]),m=P.useCallback(function(y,E){return y.filter(function(C){return C!==void 0}).some(function(C){var x=p(C,!0);return x.includes(E)})},[p]),S=function(){var E=ye(n.current.keys());return s.length&&E.push(Ds),E},g=P.useCallback(function(y){var E="".concat(n.current.get(y)).concat(gl),C=new Set;return ye(a.current.keys()).forEach(function(x){x.startsWith(E)&&C.add(a.current.get(x))}),C},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:m,getKeyPath:p,getKeys:S,getSubPathKeys:g}}function ia(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var WS=Math.random().toFixed(5).toString().slice(2),Zc=0;function GS(e){var t=or(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){Zc+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(WS,"-").concat(Zc);a("rc-menu-uuid-".concat(o))},[]),n}function Hf(e,t,r,n){var a=c.useContext(pr),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function Wf(e){var t=c.useContext(pr),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function Gf(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,z({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var US=["item"];function Po(e){var t=e.item,r=Je(e,US);return Object.defineProperty(r,"item",{get:function(){return at(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var KS=["title","attribute","elementRef"],qS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],XS=["active"],YS=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,KS),u=hr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return at(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(jr.Item,Oe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),QS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,m=Je(e,qS),S=Df(o),g=c.useContext(pr),y=g.prefixCls,E=g.onItemClick,C=g.disabled,x=g.overflowDisabled,R=g.itemIcon,w=g.selectedKeys,$=g.onActive,T=c.useContext(vl),F=T._internalRenderMenuItem,j="".concat(y,"-item"),A=c.useRef(),M=c.useRef(),H=C||s,N=_a(t,M),O=Fa(o);process.env.NODE_ENV!=="production"&&i&&at(!1,"MenuItem should not leave undefined `key`.");var I=function(de){return{key:o,keyPath:ye(O).reverse(),item:A.current,domEvent:de}},D=l||R,V=Hf(o,H,f,v),k=V.active,K=Je(V,XS),W=w.includes(o),q=Wf(O.length),Q=function(de){if(!H){var ve=I(de);b==null||b(Po(ve)),E(ve)}},Z=function(de){if(h==null||h(de),de.which===le.ENTER){var ve=I(de);b==null||b(Po(ve)),E(ve)}},J=function(de){$(o),p==null||p(de)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(YS,Oe({ref:A,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&S?null:S},m,K,te,{component:"li","aria-disabled":s,style:z(z({},q),n),className:Y(j,(r={},L(r,"".concat(j,"-active"),k),L(r,"".concat(j,"-selected"),W),L(r,"".concat(j,"-disabled"),H),r),a),onClick:Q,onKeyDown:Z,onFocus:J}),u,c.createElement(Gf,{props:z(z({},e),{},{isSelected:W}),icon:D}));return F&&(ae=F(ae,e,{selected:W})),ae});function ZS(e,t){var r=e.eventKey,n=Wo(),a=Fa(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(QS,Oe({},e,{ref:t}))}const Go=c.forwardRef(ZS);var JS=["className","children"],eC=function(t,r){var n=t.className,a=t.children,o=Je(t,JS),i=c.useContext(pr),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",Oe({className:Y(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},pl=c.forwardRef(eC);pl.displayName="SubMenuList";function hl(e,t){return $r(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(ye(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var Vt={adjustX:1,adjustY:1},tC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},leftTop:{points:["tr","tl"],overflow:Vt},leftBottom:{points:["br","bl"],overflow:Vt},rightTop:{points:["tl","tr"],overflow:Vt},rightBottom:{points:["bl","br"],overflow:Vt}},rC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},rightTop:{points:["tr","tl"],overflow:Vt},rightBottom:{points:["br","bl"],overflow:Vt},leftTop:{points:["tl","tr"],overflow:Vt},leftBottom:{points:["bl","br"],overflow:Vt}};function Uf(e,t,r){if(t)return t;if(r)return r[e]||r.other}var nC={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aC(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(pr),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,m=f.builtinPlacements,S=f.triggerSubMenuAction,g=f.forceSubMenuRender,y=f.rootClassName,E=f.motion,C=f.defaultMotions,x=c.useState(!1),R=U(x,2),w=R[0],$=R[1],T=z(b?z({},rC):z({},tC),m),F=nC[u],j=Uf(u,E,C),A=c.useRef(j);u!=="inline"&&(A.current=j);var M=z(z({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=c.useRef();return c.useEffect(function(){return H.current=_t(function(){$(r)}),function(){_t.cancel(H.current)}},[r]),c.createElement(fl,{prefixCls:t,popupClassName:Y("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:F,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:g,popupMotion:M,fresh:!0},n)}function oC(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(pr),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],m=h[1],S=v.current?r:!1;c.useEffect(function(){v.current&&m(!1)},[f]);var g=z({},Uf(o,u,d));n.length>1&&(g.motionAppear=!1);var y=g.onVisibleChanged;return g.onVisibleChanged=function(E){return!v.current&&!E&&m(!0),y==null?void 0:y(E)},p?null:c.createElement(Pa,{mode:o,locked:!v.current},c.createElement(sn,Oe({visible:S},g,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,x=E.style;return c.createElement(pl,{id:t,className:C,style:x},a)}))}var iC=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],sC=["active"],lC=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,m=e.onClick,S=e.onMouseEnter,g=e.onMouseLeave,y=e.onTitleClick,E=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=Je(e,iC),R=Df(i),w=c.useContext(pr),$=w.prefixCls,T=w.mode,F=w.openKeys,j=w.disabled,A=w.overflowDisabled,M=w.activeKey,H=w.selectedKeys,N=w.itemIcon,O=w.expandIcon,I=w.onItemClick,D=w.onOpenChange,V=w.onActive,k=c.useContext(vl),K=k._internalRenderSubMenuItem,W=c.useContext(Bf),q=W.isSubPathKey,Q=Fa(),Z="".concat($,"-submenu"),J=j||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&at(!1,"SubMenu should not leave undefined `key`.");var fe=f??N,de=v??O,ve=F.includes(i),we=!A&&ve,B=q(H,i),ce=Hf(i,J,E,C),se=ce.active,Ce=Je(ce,sC),pe=c.useState(!1),ne=U(pe,2),me=ne[0],xe=ne[1],Me=function(Le){J||xe(Le)},oe=function(Le){Me(!0),S==null||S({key:i,domEvent:Le})},re=function(Le){Me(!1),g==null||g({key:i,domEvent:Le})},ge=c.useMemo(function(){return se||(T!=="inline"?me||q([M],i):!1)},[T,se,M,me,i,q]),he=Wf(Q.length),tt=function(Le){J||(y==null||y({key:i,domEvent:Le}),T==="inline"&&D(i,!ve))},qe=ia(function(Ye){m==null||m(Po(Ye)),I(Ye)}),Ae=function(Le){T!=="inline"&&D(i,Le)},Ue=function(){V(i)},Xe=R&&"".concat(R,"-popup"),Ze=c.createElement("div",Oe({role:"menuitem",style:he,className:"".concat(Z,"-title"),tabIndex:J?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":we,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":J,onClick:tt,onFocus:Ue},Ce),o,c.createElement(Gf,{icon:T!=="horizontal"?de:void 0,props:z(z({},e),{},{isOpen:we,isSubMenu:!0})},c.createElement("i",{className:"".concat(Z,"-arrow")}))),Fe=c.useRef(T);if(T!=="inline"&&Q.length>1?Fe.current="vertical":Fe.current=T,!A){var Ne=Fe.current;Ze=c.createElement(aC,{mode:Ne,prefixCls:Z,visible:!u&&we&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(Pa,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement(pl,{id:Xe,ref:ae},d)),disabled:J,onVisibleChange:Ae},Ze)}var it=c.createElement(jr.Item,Oe({ref:t,role:"none"},x,{component:"li",style:n,className:Y(Z,"".concat(Z,"-").concat(T),a,(r={},L(r,"".concat(Z,"-open"),we),L(r,"".concat(Z,"-active"),ge),L(r,"".concat(Z,"-selected"),B),L(r,"".concat(Z,"-disabled"),J),r)),onMouseEnter:oe,onMouseLeave:re}),Ze,!A&&c.createElement(oC,{id:Xe,open:we,keyPath:Q},d));return K&&(it=K(it,e,{selected:B,active:ge,open:we,disabled:J})),c.createElement(Pa,{onItemClick:qe,mode:T==="horizontal"?"vertical":T,itemIcon:fe,expandIcon:de},it)}),Uo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=hl(n,a),i=Wo();c.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]);var s;return i?s=o:s=c.createElement(lC,Oe({ref:t},e),o),c.createElement(Vf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Uo.displayName="SubMenu");function Kf(e){var t=e.className,r=e.style,n=c.useContext(pr),a=n.prefixCls,o=Wo();return o?null:c.createElement("li",{role:"separator",className:Y("".concat(a,"-item-divider"),t),style:r})}var cC=["className","title","eventKey","children"],uC=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,cC),i=c.useContext(pr),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",Oe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Y(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),bl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=hl(n,a),i=Wo();return i?o:c.createElement(uC,Oe({ref:t},hr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(bl.displayName="MenuItemGroup");var dC=["label","children","key","type"];function zs(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Te(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,dC),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,Oe({key:h},b,{title:u}),zs(d,t)):c.createElement(a,Oe({key:h},b,{title:u}),zs(d,t)):v==="divider"?c.createElement(o,Oe({key:h},b)):c.createElement(r,Oe({key:h},b),u)}return null}).filter(function(i){return i})}function Jc(e,t,r,n){var a=e,o=z({divider:Kf,item:Go,group:bl,submenu:Uo},n);return t&&(a=zs(t,o)),hl(a,r)}var fC=["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"],Jr=[],vC=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,m=a.mode,S=m===void 0?"vertical":m,g=a.inlineCollapsed,y=a.disabled,E=a.disabledOverflow,C=a.subMenuOpenDelay,x=C===void 0?.1:C,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,T=a.defaultOpenKeys,F=a.openKeys,j=a.activeKey,A=a.defaultActiveFirst,M=a.selectable,H=M===void 0?!0:M,N=a.multiple,O=N===void 0?!1:N,I=a.defaultSelectedKeys,D=a.selectedKeys,V=a.onSelect,k=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Q=a.defaultMotions,Z=a.triggerSubMenuAction,J=Z===void 0?"hover":Z,te=a.builtinPlacements,ae=a.itemIcon,fe=a.expandIcon,de=a.overflowedIndicator,ve=de===void 0?"...":de,we=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ce=a.onClick,se=a.onOpenChange,Ce=a.onKeyDown,pe=a.openAnimation,ne=a.openTransitionName,me=a._internalRenderMenuItem,xe=a._internalRenderSubMenuItem,Me=a._internalComponents,oe=Je(a,fC),re=c.useMemo(function(){return[Jc(b,v,Jr,Me),Jc(b,v,Jr,{})]},[b,v,Me]),ge=U(re,2),he=ge[0],tt=ge[1],qe=c.useState(!1),Ae=U(qe,2),Ue=Ae[0],Xe=Ae[1],Ze=c.useRef(),Fe=GS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&at(!pe&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var it=or(T,{value:F,postState:function(nt){return nt||Jr}}),Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Tt(){ue(nt),se==null||se(nt)}dt?Pn.flushSync(Tt):Tt()},Ke=c.useState(Le),rt=U(Ke,2),bt=rt[0],ut=rt[1],Be=c.useRef(!1),Ve=c.useMemo(function(){return(S==="inline"||S==="vertical")&&g?["vertical",g]:[S,!1]},[S,g]),De=U(Ve,2),Re=De[0],be=De[1],Ge=Re==="inline",pt=c.useState(Re),ke=U(pt,2),He=ke[0],st=ke[1],ht=c.useState(be),Rt=U(ht,2),Dt=Rt[0],kt=Rt[1];c.useEffect(function(){st(Re),kt(be),Be.current&&(Ge?ue(bt):Ee(Jr))},[Re,be]);var _=c.useState(0),G=U(_,2),X=G[0],ie=G[1],Pe=X>=he.length-1||He!=="horizontal"||E;c.useEffect(function(){Ge&&ut(Le)},[Le]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var $e=HS(),_e=$e.registerPath,Ie=$e.unregisterPath,vt=$e.refreshOverflowKeys,et=$e.isSubPathKey,ze=$e.getKeyPath,Et=$e.getKeys,Ht=$e.getSubPathKeys,zt=c.useMemo(function(){return{registerPath:_e,unregisterPath:Ie}},[_e,Ie]),mt=c.useMemo(function(){return{isSubPathKey:et}},[et]);c.useEffect(function(){vt(Pe?Jr:he.slice(X+1).map(function(gt){return gt.key}))},[X,Pe]);var yr=or(j||A&&((r=he[0])===null||r===void 0?void 0:r.key),{value:j}),Dr=U(yr,2),Wt=Dr[0],zr=Dr[1],Gn=ia(function(gt){zr(gt)}),tr=ia(function(){zr(void 0)});P.useImperativeHandle(t,function(){return{list:Ze.current,focus:function(nt){var dt,Tt=Et(),Mt=Ls(Tt,Fe),Cr=Mt.elements,Er=Mt.key2element,Xn=Mt.element2key,Gt=ml(Ze.current,Cr),Zr=Wt??(Gt[0]?Xn.get(Gt[0]):(dt=he.find(function(Br){return!Br.props.disabled}))===null||dt===void 0?void 0:dt.key),Ut=Er.get(Zr);if(Zr&&Ut){var cr;Ut==null||(cr=Ut.focus)===null||cr===void 0||cr.call(Ut,nt)}}}});var sr=or(I||[],{value:D,postState:function(nt){return Array.isArray(nt)?nt:nt==null?Jr:[nt]}}),Vr=U(sr,2),Rr=Vr[0],Sr=Vr[1],Pr=function(nt){if(H){var dt=nt.key,Tt=Rr.includes(dt),Mt;O?Tt?Mt=Rr.filter(function(Er){return Er!==dt}):Mt=[].concat(ye(Rr),[dt]):Mt=[dt],Sr(Mt);var Cr=z(z({},nt),{},{selectedKeys:Mt});Tt?k==null||k(Cr):V==null||V(Cr)}!O&&Le.length&&He!=="inline"&&Ee(Jr)},Qr=ia(function(gt){ce==null||ce(Po(gt)),Pr(gt)}),_r=ia(function(gt,nt){var dt=Le.filter(function(Mt){return Mt!==gt});if(nt)dt.push(gt);else if(He!=="inline"){var Tt=Ht(gt);dt=dt.filter(function(Mt){return!Tt.has(Mt)})}ba(Le,dt,!0)||Ee(dt,!0)}),lr=function(nt,dt){var Tt=dt??!Le.includes(nt);_r(nt,Tt)},Un=VS(He,Wt,Ne,Fe,Ze,Et,ze,zr,lr,Ce);c.useEffect(function(){Xe(!0)},[]);var Kn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:xe}},[me,xe]),qn=He!=="horizontal"||E?he:he.map(function(gt,nt){return c.createElement(Pa,{key:gt.key,overflowDisabled:nt>X},gt)}),un=c.createElement(jr,Oe({id:p,ref:Ze,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Go,className:Y(i,"".concat(i,"-root"),"".concat(i,"-").concat(He),u,(n={},L(n,"".concat(i,"-inline-collapsed"),Dt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:qn,renderRawItem:function(nt){return nt},renderRawRest:function(nt){var dt=nt.length,Tt=dt?he.slice(-dt):null;return c.createElement(Uo,{eventKey:Ds,title:ve,disabled:Pe,internalPopupClose:dt===0,popupClassName:we},Tt)},maxCount:He!=="horizontal"||E?jr.INVALIDATE:jr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){ie(nt)},onKeyDown:Un},oe));return c.createElement(vl.Provider,{value:Kn},c.createElement(Ff.Provider,{value:Fe},c.createElement(Pa,{prefixCls:i,rootClassName:s,mode:He,openKeys:Le,rtl:Ne,disabled:y,motion:Ue?q:null,defaultMotions:Ue?Q:null,activeKey:Wt,onActive:Gn,onInactive:tr,selectedKeys:Rr,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:J,getPopupContainer:B,itemIcon:ae,expandIcon:fe,onItemClick:Qr,onOpenChange:_r},c.createElement(Bf.Provider,{value:mt},un),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(zf.Provider,{value:zt},tt)))))}),La=vC;La.Item=Go;La.SubMenu=Uo;La.ItemGroup=bl;La.Divider=Kf;var mC={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"},gC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:mC}))},qf=c.forwardRef(gC);process.env.NODE_ENV!=="production"&&(qf.displayName="EllipsisOutlined");function pC(e){return Lt(e,{inputAffixPadding:e.paddingXXS})}const hC=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:p,controlOutline:m,colorErrorOutline:S,colorWarningOutline:g,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${m}`,errorActiveShadow:`0 0 0 ${p}px ${S}`,warningActiveShadow:`0 0 0 ${p}px ${g}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},bC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yl=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({},bC(Lt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Xf=(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}}),eu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Xf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),yC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yl(e))}),eu(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),eu(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),tu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),SC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},tu(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),tu(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},yl(e))}})}),CC=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Yf=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),ru=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Yf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),EC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yl(e))}),ru(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ru(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),nu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),xC=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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},nu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),nu(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),wC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Qf=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${ee(t)} ${ee(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Zf=e=>({padding:`${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Jf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ee(e.paddingBlock)} ${ee(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},wC(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({},Qf(e)),"&-sm":Object.assign({},Zf(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),$C=e=>{const{componentCls:t,antCls:r}=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({},Qf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Zf(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${ee(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ee(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},Na()),{[`${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},[`
175
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var MC=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Tn=void 0;function AC(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,g=e.component,p=g===void 0?"div":g,S=et(e,MC),m=i&&!b;function y($){l(c,$)}u.useEffect(function(){return function(){y(null)}},[]);var E=o&&a!==Tn?o(a):v,C;n||(C={opacity:m?0:1,height:m?0:Tn,overflowY:m?"hidden":Tn,order:i?h:Tn,pointerEvents:m?"none":Tn,position:m?"absolute":Tn});var x={};m&&(x["aria-hidden"]=!0);var w=u.createElement(p,Oe({className:Z(!n&&r,d),style:z(z({},C),f)},x,S,{ref:t}),E);return i&&(w=u.createElement(Sr,{onResize:function(O){var T=O.offsetWidth;y(T)},disabled:s},w)),w}var Da=u.forwardRef(AC);Da.displayName="Item";function jC(e){if(typeof MessageChannel>"u")Mt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function FC(){var e=u.useRef(null),t=function(n){e.current||(e.current=[],jC(function(){Gn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function Oa(e,t){var r=u.useState(t),n=K(r,2),a=n[0],o=n[1],i=Ut(function(s){e(function(){o(s)})});return[a,i]}var ui=P.createContext(null),LC=["component"],DC=["className"],zC=["className"],kC=function(t,r){var n=u.useContext(ui);if(!n){var a=t.component,o=a===void 0?"div":a,i=et(t,LC);return u.createElement(o,Oe({},i,{ref:r}))}var s=n.className,l=et(n,DC),c=t.className,d=et(t,zC);return u.createElement(ui.Provider,{value:null},u.createElement(Da,Oe({ref:r,className:Z(s,c)},l,d)))},Yv=u.forwardRef(kC);Yv.displayName="RawItem";var VC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Zv="responsive",Qv="invalidate";function BC(e){return"+ ".concat(e.length," ...")}function HC(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,g=e.renderRest,p=e.renderRawRest,S=e.suffix,m=e.component,y=m===void 0?"div":m,E=e.itemComponent,C=e.onVisibleChange,x=et(e,VC),w=f==="full",$=FC(),O=Oa($,null),T=K(O,2),F=T[0],j=T[1],M=F||0,A=Oa($,new Map),H=K(A,2),N=H[0],R=H[1],I=Oa($,0),D=K(I,2),k=D[0],V=D[1],G=Oa($,0),W=K(G,2),q=W[0],Y=W[1],Q=Oa($,0),J=K(Q,2),ee=J[0],re=J[1],de=P.useState(null),se=K(de,2),le=se[0],we=se[1],B=P.useState(null),fe=K(B,2),ce=fe[0],Ce=fe[1],ge=u.useMemo(function(){return ce===null&&w?Number.MAX_SAFE_INTEGER:ce||0},[ce,F]),ae=P.useState(!1),pe=K(ae,2),xe=pe[0],Me=pe[1],oe="".concat(n,"-item"),ne=Math.max(k,q),me=h===Zv,he=o.length&&me,rt=h===Qv,Xe=he||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Re=o;return he?F===null&&w?Re=o:Re=o.slice(0,Math.min(o.length,M/d)):typeof h=="number"&&(Re=o.slice(0,h)),Re},[o,d,F,h,he]),Ke=P.useMemo(function(){return he?o.slice(ge+1):o.slice(Ae.length)},[o,Ae,he,ge]),Ye=P.useCallback(function(Re,be){var Ue;return typeof l=="function"?l(Re):(Ue=l&&(Re==null?void 0:Re[l]))!==null&&Ue!==void 0?Ue:be},[l]),Je=P.useCallback(i||function(Re){return Re},[i]);function Fe(Re,be,Ue){ce===Re&&(be===void 0||be===le)||(Ce(Re),Ue||(Me(Re<o.length-1),C==null||C(Re)),be!==void 0&&we(be))}function Ne(Re,be){j(be.clientWidth)}function st(Re,be){R(function(Ue){var bt=new Map(Ue);return be===null?bt.delete(Re):bt.set(Re,be),bt})}function Ze(Re,be){Y(be),V(q)}function Le(Re,be){re(be)}function ve(Re){return N.get(Ye(Ae[Re],Re))}Et(function(){if(M&&typeof ne=="number"&&Ae){var Re=ee,be=Ae.length,Ue=be-1;if(!be){Fe(0,null);return}for(var bt=0;bt<be;bt+=1){var He=ve(bt);if(w&&(He=He||0),He===void 0){Fe(bt-1,void 0,!0);break}if(Re+=He,Ue===0&&Re<=M||bt===Ue-1&&Re+ve(Ue)<=M){Fe(Ue,null);break}else if(Re+ne>M){Fe(bt-1,Re-He-ee+q);break}}S&&ve(0)+ee>M&&we(null)}},[M,N,q,ee,Ye,Ae]);var Ee=xe&&!!Ke.length,qe={};le!==null&&he&&(qe={position:"absolute",left:le,top:0});var nt={prefixCls:oe,responsive:he,component:E,invalidate:rt},Ct=s?function(Re,be){var Ue=Ye(Re,be);return u.createElement(ui.Provider,{key:Ue,value:z(z({},nt),{},{order:be,item:Re,itemKey:Ue,registerSize:st,display:be<=ge})},s(Re,be))}:function(Re,be){var Ue=Ye(Re,be);return u.createElement(Da,Oe({},nt,{order:be,key:Ue,item:Re,renderItem:Je,itemKey:Ue,registerSize:st,display:be<=ge}))},ft,Be={order:Ee?ge:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ze,display:Ee};if(p)p&&(ft=u.createElement(ui.Provider,{value:z(z({},nt),Be)},p(Ke)));else{var ke=g||BC;ft=u.createElement(Da,Oe({},nt,Be),typeof ke=="function"?ke(Ke):ke)}var De=u.createElement(y,Oe({className:Z(!rt&&n,b),style:v,ref:t},x),Ae.map(Ct),Xe?ft:null,S&&u.createElement(Da,Oe({},nt,{responsive:me,responsiveDisabled:!he,order:ge,className:"".concat(oe,"-suffix"),registerSize:Le,display:!0,style:qe}),S));return me&&(De=u.createElement(Sr,{onResize:Ne,disabled:!he},De)),De}var Gr=u.forwardRef(HC);Gr.displayName="Overflow";Gr.Item=Yv;Gr.RESPONSIVE=Zv;Gr.INVALIDATE=Qv;function WC(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,c=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=u.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],g=r.points[1],p=h[0],S=h[1],m=g[0],y=g[1];p===m||!["t","b"].includes(p)?b.top=f:p==="t"?b.top=0:b.bottom=0,S===y||!["l","r"].includes(S)?b.left=c:S==="l"?b.left=0:b.right=0}return u.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function GC(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?u.createElement(xn,Oe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return u.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var Jv=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Jv.displayName="PopupContent");var ep=u.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,g=e.align,p=e.motion,S=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,E=e.autoDestroy,C=e.portal,x=e.zIndex,w=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,T=e.ready,F=e.offsetX,j=e.offsetY,M=e.offsetR,A=e.offsetB,H=e.onAlign,N=e.onPrepare,R=e.stretch,I=e.targetWidth,D=e.targetHeight,k=typeof r=="function"?r():r,V=l||c,G=(y==null?void 0:y.length)>0,W=u.useState(!y||!G),q=K(W,2),Y=q[0],Q=q[1];if(Et(function(){!Y&&G&&i&&Q(!0)},[Y,G,i]),!Y)return null;var J="auto",ee={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(T||!l){var re,de=g.points,se=g.dynamicInset||((re=g._experimental)===null||re===void 0?void 0:re.dynamicInset),le=se&&de[0][1]==="r",we=se&&de[0][0]==="b";le?(ee.right=M,ee.left=J):(ee.left=F,ee.right=J),we?(ee.bottom=A,ee.top=J):(ee.top=j,ee.bottom=J)}var B={};return R&&(R.includes("height")&&D?B.height=D:R.includes("minHeight")&&D&&(B.minHeight=D),R.includes("width")&&I?B.width=I:R.includes("minWidth")&&I&&(B.minWidth=I)),l||(B.pointerEvents="none"),u.createElement(C,{open:m||V,getContainer:y&&function(){return y(i)},autoDestroy:E},u.createElement(GC,{prefixCls:a,open:l,zIndex:x,mask:v,motion:S}),u.createElement(Sr,{onResize:H,disabled:!l},function(fe){return u.createElement(xn,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},p,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ce){var ge;p==null||(ge=p.onVisibleChanged)===null||ge===void 0||ge.call(p,Ce),s(Ce)}}),function(ce,Ce){var ge=ce.className,ae=ce.style,pe=Z(a,ge,n);return u.createElement("div",{ref:jr(fe,t,Ce),className:pe,style:z(z(z(z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ee),B),ae),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:w,onMouseLeave:$,onPointerEnter:O,onClick:f},b&&u.createElement(WC,{prefixCls:a,arrow:b,arrowPos:h,align:g}),u.createElement(Jv,{cache:!l&&!d},k))})}))});process.env.NODE_ENV!=="production"&&(ep.displayName="Popup");var tp=u.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=En(r),o=u.useCallback(function(s){Xl(t,n?n(s):s)},[n]),i=no(o,r.ref);return a?u.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(tp.displayName="TriggerWrapper");var Yu=u.createContext(null);function Zu(e){return e?Array.isArray(e)?e:[e]:[]}function UC(e,t,r,n){return u.useMemo(function(){var a=Zu(r??t),o=Zu(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function KC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function qC(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(KC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Qu(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function lo(e){return e.ownerDocument.defaultView}function Pl(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=lo(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function eo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ra(e){return eo(parseFloat(e),0)}function Ju(e,t){var r=z({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=lo(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,c=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,g=n.clientWidth,p=Ra(s),S=Ra(l),m=Ra(c),y=Ra(d),E=eo(Math.round(f.width/h*1e3)/1e3),C=eo(Math.round(f.height/v*1e3)/1e3),x=(h-g-m-y)*E,w=(v-b-p-S)*C,$=p*C,O=S*C,T=m*E,F=y*E,j=0,M=0;if(o==="clip"){var A=Ra(i);j=A*E,M=A*C}var H=f.x+T-j,N=f.y+$-M,R=H+f.width+2*j-T-F-x,I=N+f.height+2*M-$-O-w;r.left=Math.max(r.left,H),r.top=Math.max(r.top,N),r.right=Math.min(r.right,R),r.bottom=Math.min(r.bottom,I)}}),r}function ed(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function td(e,t){var r=t||[],n=K(r,2),a=n[0],o=n[1];return[ed(e.width,a),ed(e.height,o)]}function rd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function In(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Qr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function XC(e,t,r,n,a,o,i){var s=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=K(s,2),c=l[0],d=l[1],f=u.useRef(0),v=u.useMemo(function(){return t?Pl(t):[]},[t]),b=u.useRef({}),h=function(){b.current={}};e||h();var g=Ut(function(){if(t&&r&&e){let Yt=function(Zt,gr){var Zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,Rn=k.x+Zt,Ca=k.y+gr,Ea=Rn+re,vo=Ca+ee,Hi=Math.max(Rn,Zr.left),Wi=Math.max(Ca,Zr.top),Gi=Math.min(Ea,Zr.right),Ui=Math.min(vo,Zr.bottom);return Math.max(0,(Gi-Hi)*(Ui-Wi))},un=function(){_=k.y+ke,U=_+ee,X=k.x+Be,ie=X+re};var m,y,E=t,C=E.ownerDocument,x=lo(E),w=x.getComputedStyle(E),$=w.width,O=w.height,T=w.position,F=E.style.left,j=E.style.top,M=E.style.right,A=E.style.bottom,H=E.style.overflow,N=z(z({},a[n]),o),R=C.createElement("div");(m=E.parentElement)===null||m===void 0||m.appendChild(R),R.style.left="".concat(E.offsetLeft,"px"),R.style.top="".concat(E.offsetTop,"px"),R.style.position=T,R.style.height="".concat(E.offsetHeight,"px"),R.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var I;if(Array.isArray(r))I={x:r[0],y:r[1],width:0,height:0};else{var D=r.getBoundingClientRect();I={x:D.x,y:D.y,width:D.width,height:D.height}}var k=E.getBoundingClientRect(),V=C.documentElement,G=V.clientWidth,W=V.clientHeight,q=V.scrollWidth,Y=V.scrollHeight,Q=V.scrollTop,J=V.scrollLeft,ee=k.height,re=k.width,de=I.height,se=I.width,le={left:0,top:0,right:G,bottom:W},we={left:-J,top:-Q,right:q-J,bottom:Y-Q},B=N.htmlRegion,fe="visible",ce="visibleFirst";B!=="scroll"&&B!==ce&&(B=fe);var Ce=B===ce,ge=Ju(we,v),ae=Ju(le,v),pe=B===fe?ae:ge,xe=Ce?ae:pe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Me=E.getBoundingClientRect();E.style.left=F,E.style.top=j,E.style.right=M,E.style.bottom=A,E.style.overflow=H,(y=E.parentElement)===null||y===void 0||y.removeChild(R);var oe=eo(Math.round(re/parseFloat($)*1e3)/1e3),ne=eo(Math.round(ee/parseFloat(O)*1e3)/1e3);if(oe===0||ne===0||Va(r)&&!dc(r))return;var me=N.offset,he=N.targetOffset,rt=td(k,me),Xe=K(rt,2),Ae=Xe[0],Ke=Xe[1],Ye=td(I,he),Je=K(Ye,2),Fe=Je[0],Ne=Je[1];I.x-=Fe,I.y-=Ne;var st=N.points||[],Ze=K(st,2),Le=Ze[0],ve=Ze[1],Ee=rd(ve),qe=rd(Le),nt=In(I,Ee),Ct=In(k,qe),ft=z({},N),Be=nt.x-Ct.x+Ae,ke=nt.y-Ct.y+Ke,De=Yt(Be,ke),Re=Yt(Be,ke,ae),be=In(I,["t","l"]),Ue=In(k,["t","l"]),bt=In(I,["b","r"]),He=In(k,["b","r"]),We=N.overflow||{},lt=We.adjustX,St=We.adjustY,Tt=We.shiftX,Ht=We.shiftY,Kt=function(gr){return typeof gr=="boolean"?gr:gr>=0},_,U,X,ie;un();var Pe=Kt(St),$e=qe[0]===Ee[0];if(Pe&&qe[0]==="t"&&(U>xe.bottom||b.current.bt)){var _e=ke;$e?_e-=ee-de:_e=be.y-He.y-Ke;var Ie=Yt(Be,_e),mt=Yt(Be,_e,ae);Ie>De||Ie===De&&(!Ce||mt>=Re)?(b.current.bt=!0,ke=_e,Ke=-Ke,ft.points=[Qr(qe,0),Qr(Ee,0)]):b.current.bt=!1}if(Pe&&qe[0]==="b"&&(_<xe.top||b.current.tb)){var tt=ke;$e?tt+=ee-de:tt=bt.y-Ue.y-Ke;var ze=Yt(Be,tt),$t=Yt(Be,tt,ae);ze>De||ze===De&&(!Ce||$t>=Re)?(b.current.tb=!0,ke=tt,Ke=-Ke,ft.points=[Qr(qe,0),Qr(Ee,0)]):b.current.tb=!1}var qt=Kt(lt),Wt=qe[1]===Ee[1];if(qt&&qe[1]==="l"&&(ie>xe.right||b.current.rl)){var gt=Be;Wt?gt-=re-se:gt=be.x-He.x-Ae;var Rr=Yt(gt,ke),qr=Yt(gt,ke,ae);Rr>De||Rr===De&&(!Ce||qr>=Re)?(b.current.rl=!0,Be=gt,Ae=-Ae,ft.points=[Qr(qe,1),Qr(Ee,1)]):b.current.rl=!1}if(qt&&qe[1]==="r"&&(X<xe.left||b.current.lr)){var Xt=Be;Wt?Xt+=re-se:Xt=bt.x-Ue.x-Ae;var Xr=Yt(Xt,ke),ga=Yt(Xt,ke,ae);Xr>De||Xr===De&&(!Ce||ga>=Re)?(b.current.lr=!0,Be=Xt,Ae=-Ae,ft.points=[Qr(qe,1),Qr(Ee,1)]):b.current.lr=!1}un();var sr=Tt===!0?0:Tt;typeof sr=="number"&&(X<ae.left&&(Be-=X-ae.left-Ae,I.x+se<ae.left+sr&&(Be+=I.x-ae.left+se-sr)),ie>ae.right&&(Be-=ie-ae.right-Ae,I.x>ae.right-sr&&(Be+=I.x-ae.right+sr)));var pr=Ht===!0?0:Ht;typeof pr=="number"&&(_<ae.top&&(ke-=_-ae.top-Ke,I.y+de<ae.top+pr&&(ke+=I.y-ae.top+de-pr)),U>ae.bottom&&(ke-=U-ae.bottom-Ke,I.y>ae.bottom-pr&&(ke+=I.y-ae.bottom+pr)));var Yr=k.x+Be,Fr=Yr+re,Pr=k.y+ke,Lr=Pr+ee,cn=I.x,Dr=cn+se,mr=I.y,ha=mr+de,ba=Math.max(Yr,cn),ya=Math.min(Fr,Dr),On=(ba+ya)/2,ht=On-Yr,at=Math.max(Pr,mr),vt=Math.min(Lr,ha),jt=(at+vt)/2,Dt=jt-Pr;i==null||i(t,ft);var _r=Me.right-k.x-(Be+k.width),Nr=Me.bottom-k.y-(ke+k.height);oe===1&&(Be=Math.round(Be),_r=Math.round(_r)),ne===1&&(ke=Math.round(ke),Nr=Math.round(Nr));var Sa={ready:!0,offsetX:Be/oe,offsetY:ke/ne,offsetR:_r/oe,offsetB:Nr/ne,arrowX:ht/oe,arrowY:Dt/ne,scaleX:oe,scaleY:ne,align:ft};d(Sa)}}),p=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&g()})},S=function(){d(function(y){return z(z({},y),{},{ready:!1})})};return Et(S,[n]),Et(function(){e||S()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function YC(e,t,r,n,a){Et(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Pl(o),l=Pl(i),c=lo(i),d=new Set([c].concat(ye(s),ye(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,r])}function ZC(e,t,r,n,a,o,i,s){var l=u.useRef(e);l.current=e,u.useEffect(function(){if(t&&n&&(!a||o)){var c=function(S){var m;l.current&&!i(((m=S.composedPath)===null||m===void 0||(m=m.call(S))===null||m===void 0?void 0:m[0])||S.target)&&s(!1)},d=lo(n);d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0);var f=ii(r);if(f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),process.env.NODE_ENV!=="production"){var v,b,h=r==null||(v=r.getRootNode)===null||v===void 0?void 0:v.call(r),g=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);Un(h===g,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,r,n,a,o])}var QC=["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"];function JC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pc,t=u.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,g=r.mouseEnterDelay,p=r.mouseLeaveDelay,S=p===void 0?.1:p,m=r.focusDelay,y=r.blurDelay,E=r.mask,C=r.maskClosable,x=C===void 0?!0:C,w=r.getPopupContainer,$=r.forceRender,O=r.autoDestroy,T=r.destroyPopupOnHide,F=r.popup,j=r.popupClassName,M=r.popupStyle,A=r.popupPlacement,H=r.builtinPlacements,N=H===void 0?{}:H,R=r.popupAlign,I=r.zIndex,D=r.stretch,k=r.getPopupClassNameFromAlign,V=r.fresh,G=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,Q=r.popupMotion,J=r.maskMotion,ee=r.popupTransitionName,re=r.popupAnimation,de=r.maskTransitionName,se=r.maskAnimation,le=r.className,we=r.getTriggerDOMNode,B=et(r,QC),fe=O||T||!1,ce=u.useState(!1),Ce=K(ce,2),ge=Ce[0],ae=Ce[1];Et(function(){ae(Xv())},[]);var pe=u.useRef({}),xe=u.useContext(Yu),Me=u.useMemo(function(){return{registerSubPopup:function(je,xt){pe.current[je]=xt,xe==null||xe.registerSubPopup(je,xt)}}},[xe]),oe=Wy(),ne=u.useState(null),me=K(ne,2),he=me[0],rt=me[1],Xe=u.useRef(null),Ae=Ut(function(Se){Xe.current=Se,Va(Se)&&he!==Se&&rt(Se),xe==null||xe.registerSubPopup(oe,Se)}),Ke=u.useState(null),Ye=K(Ke,2),Je=Ye[0],Fe=Ye[1],Ne=u.useRef(null),st=Ut(function(Se){Va(Se)&&Je!==Se&&(Fe(Se),Ne.current=Se)}),Ze=u.Children.only(i),Le=(Ze==null?void 0:Ze.props)||{},ve={},Ee=Ut(function(Se){var je,xt,It=Je;return(It==null?void 0:It.contains(Se))||((je=ii(It))===null||je===void 0?void 0:je.host)===Se||Se===It||(he==null?void 0:he.contains(Se))||((xt=ii(he))===null||xt===void 0?void 0:xt.host)===Se||Se===he||Object.values(pe.current).some(function(wt){return(wt==null?void 0:wt.contains(Se))||Se===wt})}),qe=Qu(o,Q,re,ee),nt=Qu(o,J,se,de),Ct=u.useState(v||!1),ft=K(Ct,2),Be=ft[0],ke=ft[1],De=f??Be,Re=Ut(function(Se){f===void 0&&ke(Se)});Et(function(){ke(f||!1)},[f]);var be=u.useRef(De);be.current=De;var Ue=u.useRef([]);Ue.current=[];var bt=Ut(function(Se){var je;Re(Se),((je=Ue.current[Ue.current.length-1])!==null&&je!==void 0?je:De)!==Se&&(Ue.current.push(Se),b==null||b(Se))}),He=u.useRef(),We=function(){clearTimeout(He.current)},lt=function(je){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?bt(je):He.current=setTimeout(function(){bt(je)},xt*1e3)};u.useEffect(function(){return We},[]);var St=u.useState(!1),Tt=K(St,2),Ht=Tt[0],Kt=Tt[1];Et(function(Se){(!Se||De)&&Kt(!0)},[De]);var _=u.useState(null),U=K(_,2),X=U[0],ie=U[1],Pe=u.useState([0,0]),$e=K(Pe,2),_e=$e[0],Ie=$e[1],mt=function(je){Ie([je.clientX,je.clientY])},tt=XC(De,he,G?_e:Je,A,N,R,q),ze=K(tt,11),$t=ze[0],qt=ze[1],Wt=ze[2],gt=ze[3],Rr=ze[4],qr=ze[5],Xt=ze[6],Xr=ze[7],ga=ze[8],sr=ze[9],pr=ze[10],Yr=UC(ge,l,c,d),Fr=K(Yr,2),Pr=Fr[0],Lr=Fr[1],cn=Pr.has("click"),Dr=Lr.has("click")||Lr.has("contextMenu"),mr=Ut(function(){Ht||pr()}),ha=function(){be.current&&G&&Dr&&lt(!1)};YC(De,Je,he,mr,ha),Et(function(){mr()},[_e,A]),Et(function(){De&&!(N!=null&&N[A])&&mr()},[JSON.stringify(R)]);var ba=u.useMemo(function(){var Se=qC(N,o,sr,G);return Z(Se,k==null?void 0:k(sr))},[sr,k,N,o,G]);u.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:mr}});var ya=u.useState(0),On=K(ya,2),ht=On[0],at=On[1],vt=u.useState(0),jt=K(vt,2),Dt=jt[0],_r=jt[1],Nr=function(){if(D&&Je){var je=Je.getBoundingClientRect();at(je.width),_r(je.height)}},Sa=function(){Nr(),mr()},Yt=function(je){Kt(!1),pr(),h==null||h(je)},un=function(){return new Promise(function(je){Nr(),ie(function(){return je})})};Et(function(){X&&(pr(),X(),ie(null))},[X]);function Zt(Se,je,xt,It){ve[Se]=function(wt){var po;It==null||It(wt),lt(je,xt);for(var Ki=arguments.length,Mc=new Array(Ki>1?Ki-1:0),mo=1;mo<Ki;mo++)Mc[mo-1]=arguments[mo];(po=Le[Se])===null||po===void 0||po.call.apply(po,[Le,wt].concat(Mc))}}(cn||Dr)&&(ve.onClick=function(Se){var je;be.current&&Dr?lt(!1):!be.current&&cn&&(mt(Se),lt(!0));for(var xt=arguments.length,It=new Array(xt>1?xt-1:0),wt=1;wt<xt;wt++)It[wt-1]=arguments[wt];(je=Le.onClick)===null||je===void 0||je.call.apply(je,[Le,Se].concat(It))}),ZC(De,Dr,Je,he,E,x,Ee,lt);var gr=Pr.has("hover"),Zr=Lr.has("hover"),Rn,Ca;gr&&(Zt("onMouseEnter",!0,g,function(Se){mt(Se)}),Zt("onPointerEnter",!0,g,function(Se){mt(Se)}),Rn=function(je){(De||Ht)&&he!==null&&he!==void 0&&he.contains(je.target)&&lt(!0,g)},G&&(ve.onMouseMove=function(Se){var je;(je=Le.onMouseMove)===null||je===void 0||je.call(Le,Se)})),Zr&&(Zt("onMouseLeave",!1,S),Zt("onPointerLeave",!1,S),Ca=function(){lt(!1,S)}),Pr.has("focus")&&Zt("onFocus",!0,m),Lr.has("focus")&&Zt("onBlur",!1,y),Pr.has("contextMenu")&&(ve.onContextMenu=function(Se){var je;be.current&&Lr.has("contextMenu")?lt(!1):(mt(Se),lt(!0)),Se.preventDefault();for(var xt=arguments.length,It=new Array(xt>1?xt-1:0),wt=1;wt<xt;wt++)It[wt-1]=arguments[wt];(je=Le.onContextMenu)===null||je===void 0||je.call.apply(je,[Le,Se].concat(It))}),le&&(ve.className=Z(Le.className,le));var Ea=z(z({},Le),ve),vo={},Hi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Hi.forEach(function(Se){B[Se]&&(vo[Se]=function(){for(var je,xt=arguments.length,It=new Array(xt),wt=0;wt<xt;wt++)It[wt]=arguments[wt];(je=Ea[Se])===null||je===void 0||je.call.apply(je,[Ea].concat(It)),B[Se].apply(B,It)})});var Wi=u.cloneElement(Ze,z(z({},Ea),vo)),Gi={x:qr,y:Xt},Ui=Y?z({},Y!==!0?Y:{}):null;return u.createElement(u.Fragment,null,u.createElement(Sr,{disabled:!De,ref:st,onResize:Sa},u.createElement(tp,{getTriggerDOMNode:we},Wi)),u.createElement(Yu.Provider,{value:Me},u.createElement(ep,{portal:e,ref:Ae,prefixCls:o,popup:F,className:Z(j,ba),style:M,target:Je,onMouseEnter:Rn,onMouseLeave:Ca,onPointerEnter:Rn,zIndex:I,open:De,keepDom:Ht,fresh:V,onClick:W,mask:E,motion:qe,maskMotion:nt,onVisibleChanged:Yt,onPrepare:un,forceRender:$,autoDestroy:fe,getPopupContainer:w,align:sr,arrow:Ui,arrowPos:Gi,ready:$t,offsetX:qt,offsetY:Wt,offsetR:gt,offsetB:Rr,onAlign:mr,stretch:D,targetWidth:ht/Xr,targetHeight:Dt/ga})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gc=JC(pc);function _l(e,t,r){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const rp=(e,t)=>t||e,np=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=P.useContext(it),s=P.useContext(kS),l=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const d=a0.includes(c);return[c,d]};var e1={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"},t1=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:e1}))},ap=u.forwardRef(t1);process.env.NODE_ENV!=="production"&&(ap.displayName="CheckOutlined");const to=["xxl","xl","lg","md","sm","xs"],r1=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)`}),n1=e=>{const t=e,r=[].concat(to).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function a1(){const[,e]=Kr(),t=r1(n1(e));return P.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=c=>{let{matches:d}=c;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function op(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return u.createElement("div",{className:Z("".concat(r,"-content"),o),style:i},u.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var Mn={shiftX:64,adjustY:1},An={adjustX:1,shiftY:!0},cr=[0,0],o1={left:{points:["cr","cl"],overflow:An,offset:[-4,0],targetOffset:cr},right:{points:["cl","cr"],overflow:An,offset:[4,0],targetOffset:cr},top:{points:["bc","tc"],overflow:Mn,offset:[0,-4],targetOffset:cr},bottom:{points:["tc","bc"],overflow:Mn,offset:[0,4],targetOffset:cr},topLeft:{points:["bl","tl"],overflow:Mn,offset:[0,-4],targetOffset:cr},leftTop:{points:["tr","tl"],overflow:An,offset:[-4,0],targetOffset:cr},topRight:{points:["br","tr"],overflow:Mn,offset:[0,-4],targetOffset:cr},rightTop:{points:["tl","tr"],overflow:An,offset:[4,0],targetOffset:cr},bottomRight:{points:["tr","br"],overflow:Mn,offset:[0,4],targetOffset:cr},rightBottom:{points:["bl","br"],overflow:An,offset:[4,0],targetOffset:cr},bottomLeft:{points:["tl","bl"],overflow:Mn,offset:[0,4],targetOffset:cr},leftBottom:{points:["br","bl"],overflow:An,offset:[-4,0],targetOffset:cr}},i1=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],s1=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,g=t.afterVisibleChange,p=t.transitionName,S=t.animation,m=t.motion,y=t.placement,E=y===void 0?"right":y,C=t.align,x=C===void 0?{}:C,w=t.destroyTooltipOnHide,$=w===void 0?!1:w,O=t.defaultVisible,T=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,M=t.id,A=t.showArrow,H=A===void 0?!0:A,N=et(t,i1),R=P.useRef(null);P.useImperativeHandle(r,function(){return R.current});var I=z({},N);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return u.createElement(op,{key:"content",prefixCls:v,id:M,overlayInnerStyle:F},j)};return u.createElement(gc,Oe({popupClassName:n,prefixCls:v,popup:D,action:o,builtinPlacements:o1,popupPlacement:E,ref:R,popupAlign:x,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:S,popupMotion:m,defaultPopupVisible:O,autoDestroy:$,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:s,arrow:H},I),b)};const l1=P.forwardRef(s1);function c1(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-c,v=d,b=2*a-s,h=l,g=2*a-o,p=i,S=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,E=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${g} ${p} Z')`;return{arrowShadowWidth:S,arrowPath:E,arrowPolygon:y}}const u1=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},ip=8;function sp(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?ip:n}}function Po(e,t){return e?t:{}}function d1(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},u1(e,t,a)),{"&:before":{background:t}})]},Po(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Po(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Po(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Po(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function f1(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const nd={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},v1={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"]}},p1=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function m1(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(nd).forEach(c=>{const d=n&&v1[c]||nd[c],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,p1.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=sp({contentRadius:o,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=f1(c,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const g1=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ca(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${te(e.calc(c).div(2).equal())} ${te(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,ip)}},[`${t}-content`]:{position:"relative"}}),A0(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},d1(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},h1=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},sp({contentRadius:e.borderRadius,limitVerticalRadius:!0})),c1(Bt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),lp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Or("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=Bt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[g1(s),IC(n,"zoom-big-fast")]},h1,{resetStyle:!1,injectStyle:t})(e)},b1=oi.map(e=>`${e}-inverse`);function y1(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ye(b1),ye(oi)).includes(e):oi.includes(e)}function cp(e,t){const r=y1(t),n=Z({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const S1=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=u.useContext(it),l=s("tooltip",t),[c,d,f]=lp(l),v=cp(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),g=Z(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return c(u.createElement("div",{className:g,style:b},u.createElement("div",{className:`${l}-arrow`}),u.createElement(op,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var C1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const E1=u.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:g,overlay:p,builtinPlacements:S,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,E=!!h,[,C]=Kr(),{getPopupContainer:x,getPrefixCls:w,direction:$}=u.useContext(it),O=Lt("Tooltip"),T=u.useRef(null),F=()=>{var oe;(oe=T.current)===null||oe===void 0||oe.forceAlign()};u.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=T.current)===null||oe===void 0?void 0:oe.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(oe=>{let[ne,me]=oe;O.deprecated(!(ne in e),ne,me)}),process.env.NODE_ENV!=="production"&&O(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&O(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,M]=dr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),A=!g&&!p&&g!==0,H=oe=>{var ne,me;M(A?!1:oe),A||((ne=e.onOpenChange)===null||ne===void 0||ne.call(e,oe),(me=e.onVisibleChange)===null||me===void 0||me.call(e,oe))},N=u.useMemo(()=>{var oe,ne;let me=m;return typeof h=="object"&&(me=(ne=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&ne!==void 0?ne:m),S||m1({arrowPointAtCenter:me,autoAdjustOverflow:y,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[m,h,S,C]),R=u.useMemo(()=>g===0?g:p||g||"",[p,g]),I=u.createElement(Rl,{space:!0},typeof R=="function"?R():R),{getPopupContainer:D,placement:k="top",mouseEnterDelay:V=.1,mouseLeaveDelay:G=.1,overlayStyle:W,rootClassName:q}=e,Y=C1(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=w("tooltip",a),J=w(),ee=e["data-popover-inject"];let re=j;!("open"in e)&&!("visible"in e)&&A&&(re=!1);const de=u.isValidElement(d)&&!xv(d)?d:u.createElement("span",null,d),se=de.props,le=!se.className||typeof se.className=="string"?Z(se.className,o||`${Q}-open`):se.className,[we,B,fe]=lp(Q,!ee),ce=cp(Q,l),Ce=ce.arrowStyle,ge=Object.assign(Object.assign({},c),ce.overlayStyle),ae=Z(s,{[`${Q}-rtl`]:$==="rtl"},ce.className,q,B,fe),[pe,xe]=jb("Tooltip",Y.zIndex),Me=u.createElement(l1,Object.assign({},Y,{zIndex:pe,showArrow:E,placement:k,mouseEnterDelay:V,mouseLeaveDelay:G,prefixCls:Q,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},Ce),W),getTooltipContainer:D||i||x,ref:T,builtinPlacements:N,overlay:I,visible:re,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:ge,arrowContent:u.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:$v(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),re?wi(de,{className:le}):de);return we(u.createElement(uc.Provider,{value:xe},Me))}),co=E1;process.env.NODE_ENV!=="production"&&(co.displayName="Tooltip");co._InternalPanelDoNotUseOrYouWillBeFired=S1;var x1=ue.ESC,w1=ue.TAB;function $1(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=u.useRef(!1),s=function(){if(t){var f,v;(f=r.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),n==null||n(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},c=function(f){switch(f.keyCode){case x1:s();break;case w1:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),a&&Mt(l,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}},[t])}var O1=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=jr(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:En(o)?i:void 0}))}),jn={adjustX:1,adjustY:1},Fn=[0,0],R1={topLeft:{points:["bl","tl"],overflow:jn,offset:[0,-4],targetOffset:Fn},top:{points:["bc","tc"],overflow:jn,offset:[0,-4],targetOffset:Fn},topRight:{points:["br","tr"],overflow:jn,offset:[0,-4],targetOffset:Fn},bottomLeft:{points:["tl","bl"],overflow:jn,offset:[0,4],targetOffset:Fn},bottom:{points:["tc","bc"],overflow:jn,offset:[0,4],targetOffset:Fn},bottomRight:{points:["tr","br"],overflow:jn,offset:[0,4],targetOffset:Fn}},P1=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _1(e,t){var r,n=e.arrow,a=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,b=v===void 0?R1:v,h=e.getPopupContainer,g=e.showAction,p=e.hideAction,S=e.overlayClassName,m=e.overlayStyle,y=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,x=e.autoFocus,w=e.overlay,$=e.children,O=e.onVisibleChange,T=et(e,P1),F=P.useState(),j=K(F,2),M=j[0],A=j[1],H="visible"in e?y:M,N=P.useRef(null),R=P.useRef(null),I=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var D=function(ee){A(ee),O==null||O(ee)};$1({visible:H,triggerRef:I,onVisibleChange:D,autoFocus:x,overlayRef:R});var k=function(ee){var re=e.onOverlayClick;A(!1),re&&re(ee)},V=function(){return P.createElement(O1,{ref:R,overlay:w,prefixCls:i,arrow:a})},G=function(){return typeof w=="function"?V:V()},W=function(){var ee=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ee:!re},q=function(){var ee=e.openClassName;return ee!==void 0?ee:"".concat(i,"-open")},Y=P.cloneElement($,{className:Z((r=$.props)===null||r===void 0?void 0:r.className,H&&q()),ref:En($)?jr(I,$.ref):void 0}),Q=p;return!Q&&C.indexOf("contextMenu")!==-1&&(Q=["click"]),P.createElement(gc,Oe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Z(S,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:C,showAction:g,hideAction:Q,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:W()?"minWidth":"",popup:G(),onPopupVisibleChange:D,onPopupClick:k,getPopupContainer:h}),Y)}const N1=P.forwardRef(_1);var up=u.createContext(null);function dp(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function fp(e){var t=u.useContext(up);return dp(t,e)}var T1=["children","locked"],wr=u.createContext(null);function I1(e,t){var r=z({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function ro(e){var t=e.children,r=e.locked,n=et(e,T1),a=u.useContext(wr),o=hi(function(){return I1(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!Ua(i[1],s[1],!0))});return u.createElement(wr.Provider,{value:o},t)}var M1=[],vp=u.createContext(null);function Ni(){return u.useContext(vp)}var pp=u.createContext(M1);function uo(e){var t=u.useContext(pp);return u.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var mp=u.createContext(null),hc=u.createContext({});function ad(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(dc(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:n&&i===null&&(i=0),n&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function A1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ye(e.querySelectorAll("*")).filter(function(n){return ad(n,t)});return ad(e,t)&&r.unshift(e),r}var Nl=ue.LEFT,Tl=ue.RIGHT,Il=ue.UP,Go=ue.DOWN,Uo=ue.ENTER,gp=ue.ESC,Pa=ue.HOME,_a=ue.END,od=[Il,Go,Nl,Tl];function j1(e,t,r,n){var a,o,i,s,l="prev",c="next",d="children",f="parent";if(e==="inline"&&n===Uo)return{inlineTrigger:!0};var v=(a={},L(a,Il,l),L(a,Go,c),a),b=(o={},L(o,Nl,r?c:l),L(o,Tl,r?l:c),L(o,Go,d),L(o,Uo,d),o),h=(i={},L(i,Il,l),L(i,Go,c),L(i,Uo,d),L(i,gp,f),L(i,Nl,r?d:f),L(i,Tl,r?f:d),i),g={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},p=(s=g["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(p){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function F1(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function L1(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function bc(e,t){var r=A1(e,!0);return r.filter(function(n){return t.has(n)})}function id(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=bc(e,t),o=a.length,i=a.findIndex(function(s){return r===s});return n<0?i===-1?i=o-1:i-=1:n>0&&(i+=1),i=(i+o)%o,a[i]}var Ml=function(t,r){var n=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(dp(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function D1(e,t,r,n,a,o,i,s,l,c){var d=u.useRef(),f=u.useRef();f.current=t;var v=function(){Mt.cancel(d.current)};return u.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(od,[Uo,gp,Pa,_a]).includes(h)){var g=o(),p=Ml(g,n),S=p,m=S.elements,y=S.key2element,E=S.element2key,C=y.get(t),x=L1(C,m),w=E.get(x),$=j1(e,i(w,!0).length===1,r,h);if(!$&&h!==Pa&&h!==_a)return;(od.includes(h)||[Pa,_a].includes(h))&&b.preventDefault();var O=function(R){if(R){var I=R,D=R.querySelector("a");D!=null&&D.getAttribute("href")&&(I=D);var k=E.get(R);s(k),v(),d.current=Mt(function(){f.current===k&&I.focus()})}};if([Pa,_a].includes(h)||$.sibling||!x){var T;!x||e==="inline"?T=a.current:T=F1(x);var F,j=bc(T,m);h===Pa?F=j[0]:h===_a?F=j[j.length-1]:F=id(T,m,x,$.offset),O(F)}else if($.inlineTrigger)l(w);else if($.offset>0)l(w,!0),v(),d.current=Mt(function(){p=Ml(g,n);var N=x.getAttribute("aria-controls"),R=document.getElementById(N),I=id(R,p.elements);O(I)},5);else if($.offset<0){var M=i(w,!0),A=M[M.length-2],H=y.get(A);l(A,!1),O(H)}}c==null||c(b)}}function z1(e){Promise.resolve().then(e)}var yc="__RC_UTIL_PATH_SPLIT__",sd=function(t){return t.join(yc)},k1=function(t){return t.split(yc)},Al="rc-menu-more";function V1(){var e=u.useState({}),t=K(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=u.useState([]),i=K(o,2),s=i[0],l=i[1],c=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,E){process.env.NODE_ENV!=="production"&&ot(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(E.join(" > "),"]"));var C=sd(E);a.current.set(C,y),n.current.set(y,C),c.current+=1;var x=c.current;z1(function(){x===c.current&&f()})},[]),b=P.useCallback(function(y,E){var C=sd(E);a.current.delete(C),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),g=P.useCallback(function(y,E){var C=n.current.get(y)||"",x=k1(C);return E&&s.includes(x[0])&&x.unshift(Al),x},[s]),p=P.useCallback(function(y,E){return y.filter(function(C){return C!==void 0}).some(function(C){var x=g(C,!0);return x.includes(E)})},[g]),S=function(){var E=ye(n.current.keys());return s.length&&E.push(Al),E},m=P.useCallback(function(y){var E="".concat(n.current.get(y)).concat(yc),C=new Set;return ye(a.current.keys()).forEach(function(x){x.startsWith(E)&&C.add(a.current.get(x))}),C},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:g,getKeys:S,getSubPathKeys:m}}function Ta(e){var t=u.useRef(e);t.current=e;var r=u.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var B1=Math.random().toFixed(5).toString().slice(2),ld=0;function H1(e){var t=dr(e,{value:e}),r=K(t,2),n=r[0],a=r[1];return u.useEffect(function(){ld+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(B1,"-").concat(ld);a("rc-menu-uuid-".concat(o))},[]),n}function hp(e,t,r,n){var a=u.useContext(wr),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){r==null||r({key:e,domEvent:c}),i(e)},l.onMouseLeave=function(c){n==null||n({key:e,domEvent:c}),s(e)}),l}function bp(e){var t=u.useContext(wr),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function yp(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=u.createElement(t,z({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var W1=["item"];function di(e){var t=e.item,r=et(e,W1);return Object.defineProperty(r,"item",{get:function(){return ot(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var G1=["title","attribute","elementRef"],U1=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],K1=["active"],q1=function(e){on(r,e);var t=sn(r);function r(){return kt(this,r),t.apply(this,arguments)}return Vt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=et(a,G1),c=$r(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ot(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(Gr.Item,Oe({},i,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),r}(u.Component),X1=u.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,c=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,g=e.onFocus,p=et(e,U1),S=fp(o),m=u.useContext(wr),y=m.prefixCls,E=m.onItemClick,C=m.disabled,x=m.overflowDisabled,w=m.itemIcon,$=m.selectedKeys,O=m.onActive,T=u.useContext(hc),F=T._internalRenderMenuItem,j="".concat(y,"-item"),M=u.useRef(),A=u.useRef(),H=C||s,N=no(t,A),R=uo(o);process.env.NODE_ENV!=="production"&&i&&ot(!1,"MenuItem should not leave undefined `key`.");var I=function(se){return{key:o,keyPath:ye(R).reverse(),item:M.current,domEvent:se}},D=l||w,k=hp(o,H,f,v),V=k.active,G=et(k,K1),W=$.includes(o),q=bp(R.length),Y=function(se){if(!H){var le=I(se);b==null||b(di(le)),E(le)}},Q=function(se){if(h==null||h(se),se.which===ue.ENTER){var le=I(se);b==null||b(di(le)),E(le)}},J=function(se){O(o),g==null||g(se)},ee={};e.role==="option"&&(ee["aria-selected"]=W);var re=u.createElement(q1,Oe({ref:M,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&S?null:S},p,G,ee,{component:"li","aria-disabled":s,style:z(z({},q),n),className:Z(j,(r={},L(r,"".concat(j,"-active"),V),L(r,"".concat(j,"-selected"),W),L(r,"".concat(j,"-disabled"),H),r),a),onClick:Y,onKeyDown:Q,onFocus:J}),c,u.createElement(yp,{props:z(z({},e),{},{isSelected:W}),icon:D}));return F&&(re=F(re,e,{selected:W})),re});function Y1(e,t){var r=e.eventKey,n=Ni(),a=uo(r);return u.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:u.createElement(X1,Oe({},e,{ref:t}))}const Ti=u.forwardRef(Y1);var Z1=["className","children"],Q1=function(t,r){var n=t.className,a=t.children,o=et(t,Z1),i=u.useContext(wr),s=i.prefixCls,l=i.mode,c=i.rtl;return u.createElement("ul",Oe({className:Z(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},Sc=u.forwardRef(Q1);Sc.displayName="SubMenuList";function Cc(e,t){return Ar(e).map(function(r,n){if(u.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(ye(t),[n]).join("-")));var c={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),u.cloneElement(r,c)}return r})}var Gt={adjustX:1,adjustY:1},J1={topLeft:{points:["bl","tl"],overflow:Gt},topRight:{points:["br","tr"],overflow:Gt},bottomLeft:{points:["tl","bl"],overflow:Gt},bottomRight:{points:["tr","br"],overflow:Gt},leftTop:{points:["tr","tl"],overflow:Gt},leftBottom:{points:["br","bl"],overflow:Gt},rightTop:{points:["tl","tr"],overflow:Gt},rightBottom:{points:["bl","br"],overflow:Gt}},eE={topLeft:{points:["bl","tl"],overflow:Gt},topRight:{points:["br","tr"],overflow:Gt},bottomLeft:{points:["tl","bl"],overflow:Gt},bottomRight:{points:["tr","br"],overflow:Gt},rightTop:{points:["tr","tl"],overflow:Gt},rightBottom:{points:["br","bl"],overflow:Gt},leftTop:{points:["tl","tr"],overflow:Gt},leftBottom:{points:["bl","br"],overflow:Gt}};function Sp(e,t,r){if(t)return t;if(r)return r[e]||r.other}var tE={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function rE(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,d=e.onVisibleChange,f=u.useContext(wr),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,g=f.subMenuCloseDelay,p=f.builtinPlacements,S=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,E=f.motion,C=f.defaultMotions,x=u.useState(!1),w=K(x,2),$=w[0],O=w[1],T=z(b?z({},eE):z({},J1),p),F=tE[c],j=Sp(c,E,C),M=u.useRef(j);c!=="inline"&&(M.current=j);var A=z(z({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=u.useRef();return u.useEffect(function(){return H.current=Mt(function(){O(r)}),function(){Mt.cancel(H.current)}},[r]),u.createElement(gc,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:F,popupVisible:$,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:m,popupMotion:A,fresh:!0},n)}function nE(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=u.useContext(wr),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,d=i.defaultMotions,f=i.mode,v=u.useRef(!1);v.current=f===o;var b=u.useState(!v.current),h=K(b,2),g=h[0],p=h[1],S=v.current?r:!1;u.useEffect(function(){v.current&&p(!1)},[f]);var m=z({},Sp(o,c,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(E){return!v.current&&!E&&p(!0),y==null?void 0:y(E)},g?null:u.createElement(ro,{mode:o,locked:!v.current},u.createElement(xn,Oe({visible:S},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,x=E.style;return u.createElement(Sc,{id:t,className:C,style:x},a)}))}var aE=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],oE=["active"],iE=u.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,c=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,g=e.popupStyle,p=e.onClick,S=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,E=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=et(e,aE),w=fp(i),$=u.useContext(wr),O=$.prefixCls,T=$.mode,F=$.openKeys,j=$.disabled,M=$.overflowDisabled,A=$.activeKey,H=$.selectedKeys,N=$.itemIcon,R=$.expandIcon,I=$.onItemClick,D=$.onOpenChange,k=$.onActive,V=u.useContext(hc),G=V._internalRenderSubMenuItem,W=u.useContext(mp),q=W.isSubPathKey,Y=uo(),Q="".concat(O,"-submenu"),J=j||l,ee=u.useRef(),re=u.useRef();process.env.NODE_ENV!=="production"&&s&&ot(!1,"SubMenu should not leave undefined `key`.");var de=f??N,se=v??R,le=F.includes(i),we=!M&&le,B=q(H,i),fe=hp(i,J,E,C),ce=fe.active,Ce=et(fe,oE),ge=u.useState(!1),ae=K(ge,2),pe=ae[0],xe=ae[1],Me=function(Le){J||xe(Le)},oe=function(Le){Me(!0),S==null||S({key:i,domEvent:Le})},ne=function(Le){Me(!1),m==null||m({key:i,domEvent:Le})},me=u.useMemo(function(){return ce||(T!=="inline"?pe||q([A],i):!1)},[T,ce,A,pe,i,q]),he=bp(Y.length),rt=function(Le){J||(y==null||y({key:i,domEvent:Le}),T==="inline"&&D(i,!le))},Xe=Ta(function(Ze){p==null||p(di(Ze)),I(Ze)}),Ae=function(Le){T!=="inline"&&D(i,Le)},Ke=function(){k(i)},Ye=w&&"".concat(w,"-popup"),Je=u.createElement("div",Oe({role:"menuitem",style:he,className:"".concat(Q,"-title"),tabIndex:J?null:-1,ref:ee,title:typeof o=="string"?o:null,"data-menu-id":M&&w?null:w,"aria-expanded":we,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":J,onClick:rt,onFocus:Ke},Ce),o,u.createElement(yp,{icon:T!=="horizontal"?se:void 0,props:z(z({},e),{},{isOpen:we,isSubMenu:!0})},u.createElement("i",{className:"".concat(Q,"-arrow")}))),Fe=u.useRef(T);if(T!=="inline"&&Y.length>1?Fe.current="vertical":Fe.current=T,!M){var Ne=Fe.current;Je=u.createElement(rE,{mode:Ne,prefixCls:Q,visible:!c&&we&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:g,popup:u.createElement(ro,{mode:Ne==="horizontal"?"vertical":Ne},u.createElement(Sc,{id:Ye,ref:re},d)),disabled:J,onVisibleChange:Ae},Je)}var st=u.createElement(Gr.Item,Oe({ref:t,role:"none"},x,{component:"li",style:n,className:Z(Q,"".concat(Q,"-").concat(T),a,(r={},L(r,"".concat(Q,"-open"),we),L(r,"".concat(Q,"-active"),me),L(r,"".concat(Q,"-selected"),B),L(r,"".concat(Q,"-disabled"),J),r)),onMouseEnter:oe,onMouseLeave:ne}),Je,!M&&u.createElement(nE,{id:Ye,open:we,keyPath:Y},d));return G&&(st=G(st,e,{selected:B,active:me,open:we,disabled:J})),u.createElement(ro,{onItemClick:Xe,mode:T==="horizontal"?"vertical":T,itemIcon:de,expandIcon:se},st)}),Ii=u.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=uo(r),o=Cc(n,a),i=Ni();u.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]);var s;return i?s=o:s=u.createElement(iE,Oe({ref:t},e),o),u.createElement(pp.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Ii.displayName="SubMenu");function Cp(e){var t=e.className,r=e.style,n=u.useContext(wr),a=n.prefixCls,o=Ni();return o?null:u.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var sE=["className","title","eventKey","children"],lE=u.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=et(e,sE),i=u.useContext(wr),s=i.prefixCls,l="".concat(s,"-item-group");return u.createElement("li",Oe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(l,r)}),u.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),u.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),Ec=u.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=uo(r),o=Cc(n,a),i=Ni();return i?o:u.createElement(lE,Oe({ref:t},$r(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Ec.displayName="MenuItemGroup");var cE=["label","children","key","type"];function jl(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Te(i)==="object"){var l=i,c=l.label,d=l.children,f=l.key,v=l.type,b=et(l,cE),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?u.createElement(n,Oe({key:h},b,{title:c}),jl(d,t)):u.createElement(a,Oe({key:h},b,{title:c}),jl(d,t)):v==="divider"?u.createElement(o,Oe({key:h},b)):u.createElement(r,Oe({key:h},b),c)}return null}).filter(function(i){return i})}function cd(e,t,r,n){var a=e,o=z({divider:Cp,item:Ti,group:Ec,submenu:Ii},n);return t&&(a=jl(t,o)),Cc(a,r)}var uE=["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"],dn=[],dE=u.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,c=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,g=a.id,p=a.mode,S=p===void 0?"vertical":p,m=a.inlineCollapsed,y=a.disabled,E=a.disabledOverflow,C=a.subMenuOpenDelay,x=C===void 0?.1:C,w=a.subMenuCloseDelay,$=w===void 0?.1:w,O=a.forceSubMenuRender,T=a.defaultOpenKeys,F=a.openKeys,j=a.activeKey,M=a.defaultActiveFirst,A=a.selectable,H=A===void 0?!0:A,N=a.multiple,R=N===void 0?!1:N,I=a.defaultSelectedKeys,D=a.selectedKeys,k=a.onSelect,V=a.onDeselect,G=a.inlineIndent,W=G===void 0?24:G,q=a.motion,Y=a.defaultMotions,Q=a.triggerSubMenuAction,J=Q===void 0?"hover":Q,ee=a.builtinPlacements,re=a.itemIcon,de=a.expandIcon,se=a.overflowedIndicator,le=se===void 0?"...":se,we=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,fe=a.onClick,ce=a.onOpenChange,Ce=a.onKeyDown,ge=a.openAnimation,ae=a.openTransitionName,pe=a._internalRenderMenuItem,xe=a._internalRenderSubMenuItem,Me=a._internalComponents,oe=et(a,uE),ne=u.useMemo(function(){return[cd(b,v,dn,Me),cd(b,v,dn,{})]},[b,v,Me]),me=K(ne,2),he=me[0],rt=me[1],Xe=u.useState(!1),Ae=K(Xe,2),Ke=Ae[0],Ye=Ae[1],Je=u.useRef(),Fe=H1(g),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&ot(!ge&&!ae,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=dr(T,{value:F,postState:function(at){return at||dn}}),Ze=K(st,2),Le=Ze[0],ve=Ze[1],Ee=function(at){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function jt(){ve(at),ce==null||ce(at)}vt?Gn.flushSync(jt):jt()},qe=u.useState(Le),nt=K(qe,2),Ct=nt[0],ft=nt[1],Be=u.useRef(!1),ke=u.useMemo(function(){return(S==="inline"||S==="vertical")&&m?["vertical",m]:[S,!1]},[S,m]),De=K(ke,2),Re=De[0],be=De[1],Ue=Re==="inline",bt=u.useState(Re),He=K(bt,2),We=He[0],lt=He[1],St=u.useState(be),Tt=K(St,2),Ht=Tt[0],Kt=Tt[1];u.useEffect(function(){lt(Re),Kt(be),Be.current&&(Ue?ve(Ct):Ee(dn))},[Re,be]);var _=u.useState(0),U=K(_,2),X=U[0],ie=U[1],Pe=X>=he.length-1||We!=="horizontal"||E;u.useEffect(function(){Ue&&ft(Le)},[Le]),u.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var $e=V1(),_e=$e.registerPath,Ie=$e.unregisterPath,mt=$e.refreshOverflowKeys,tt=$e.isSubPathKey,ze=$e.getKeyPath,$t=$e.getKeys,qt=$e.getSubPathKeys,Wt=u.useMemo(function(){return{registerPath:_e,unregisterPath:Ie}},[_e,Ie]),gt=u.useMemo(function(){return{isSubPathKey:tt}},[tt]);u.useEffect(function(){mt(Pe?dn:he.slice(X+1).map(function(ht){return ht.key}))},[X,Pe]);var Rr=dr(j||M&&((r=he[0])===null||r===void 0?void 0:r.key),{value:j}),qr=K(Rr,2),Xt=qr[0],Xr=qr[1],ga=Ta(function(ht){Xr(ht)}),sr=Ta(function(){Xr(void 0)});P.useImperativeHandle(t,function(){return{list:Je.current,focus:function(at){var vt,jt=$t(),Dt=Ml(jt,Fe),_r=Dt.elements,Nr=Dt.key2element,Sa=Dt.element2key,Yt=bc(Je.current,_r),un=Xt??(Yt[0]?Sa.get(Yt[0]):(vt=he.find(function(Zr){return!Zr.props.disabled}))===null||vt===void 0?void 0:vt.key),Zt=Nr.get(un);if(un&&Zt){var gr;Zt==null||(gr=Zt.focus)===null||gr===void 0||gr.call(Zt,at)}}}});var pr=dr(I||[],{value:D,postState:function(at){return Array.isArray(at)?at:at==null?dn:[at]}}),Yr=K(pr,2),Fr=Yr[0],Pr=Yr[1],Lr=function(at){if(H){var vt=at.key,jt=Fr.includes(vt),Dt;R?jt?Dt=Fr.filter(function(Nr){return Nr!==vt}):Dt=[].concat(ye(Fr),[vt]):Dt=[vt],Pr(Dt);var _r=z(z({},at),{},{selectedKeys:Dt});jt?V==null||V(_r):k==null||k(_r)}!R&&Le.length&&We!=="inline"&&Ee(dn)},cn=Ta(function(ht){fe==null||fe(di(ht)),Lr(ht)}),Dr=Ta(function(ht,at){var vt=Le.filter(function(Dt){return Dt!==ht});if(at)vt.push(ht);else if(We!=="inline"){var jt=qt(ht);vt=vt.filter(function(Dt){return!jt.has(Dt)})}Ua(Le,vt,!0)||Ee(vt,!0)}),mr=function(at,vt){var jt=vt??!Le.includes(at);Dr(at,jt)},ha=D1(We,Xt,Ne,Fe,Je,$t,ze,Xr,mr,Ce);u.useEffect(function(){Ye(!0)},[]);var ba=u.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:xe}},[pe,xe]),ya=We!=="horizontal"||E?he:he.map(function(ht,at){return u.createElement(ro,{key:ht.key,overflowDisabled:at>X},ht)}),On=u.createElement(Gr,Oe({id:g,ref:Je,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ti,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),c,(n={},L(n,"".concat(i,"-inline-collapsed"),Ht),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:ya,renderRawItem:function(at){return at},renderRawRest:function(at){var vt=at.length,jt=vt?he.slice(-vt):null;return u.createElement(Ii,{eventKey:Al,title:le,disabled:Pe,internalPopupClose:vt===0,popupClassName:we},jt)},maxCount:We!=="horizontal"||E?Gr.INVALIDATE:Gr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(at){ie(at)},onKeyDown:ha},oe));return u.createElement(hc.Provider,{value:ba},u.createElement(up.Provider,{value:Fe},u.createElement(ro,{prefixCls:i,rootClassName:s,mode:We,openKeys:Le,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Xt,onActive:ga,onInactive:sr,selectedKeys:Fr,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:$,forceSubMenuRender:O,builtinPlacements:ee,triggerSubMenuAction:J,getPopupContainer:B,itemIcon:re,expandIcon:de,onItemClick:cn,onOpenChange:Dr},u.createElement(mp.Provider,{value:gt},On),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(vp.Provider,{value:Wt},rt)))))}),fo=dE;fo.Item=Ti;fo.SubMenu=Ii;fo.ItemGroup=Ec;fo.Divider=Cp;var fE={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"},vE=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:fE}))},Ep=u.forwardRef(vE);process.env.NODE_ENV!=="production"&&(Ep.displayName="EllipsisOutlined");function pE(e){return Bt(e,{inputAffixPadding:e.paddingXXS})}const mE=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:g,controlOutline:p,colorErrorOutline:S,colorWarningOutline:m,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:c-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${g}px ${p}`,errorActiveShadow:`0 0 0 ${g}px ${S}`,warningActiveShadow:`0 0 0 ${g}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},gE=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),xc=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({},gE(Bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),xp=(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}}),ud=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},xp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),hE=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},xc(e))}),ud(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ud(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),dd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),bE=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},dd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),dd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},xc(e))}})}),yE=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},wp=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),fd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),SE=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},xc(e))}),fd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),fd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),vd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),CE=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:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},vd(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),vd(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),EE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),$p=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${te(t)} ${te(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Op=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Rp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},EE(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({},$p(e)),"&-sm":Object.assign({},Op(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),xE=e=>{const{componentCls:t,antCls:r}=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({},$p(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Op(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${te(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},ao()),{[`${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},[`
176
176
  & > ${t}-affix-wrapper,
177
177
  & > ${t}-number-affix-wrapper,
178
178
  & > ${r}-picker-range
@@ -185,23 +185,23 @@ html body {
185
185
  & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
186
186
  & > ${r}-select:last-child > ${r}-select-selector,
187
187
  & > ${r}-cascader-picker:last-child ${t},
188
- & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},OC=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),Jf(e)),yC(e)),EC(e)),CC(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},RC=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 ${ee(e.inputAffixPadding)}`}}}},PC=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Jf(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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),RC(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},_C=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Vn(e)),$C(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},SC(e)),xC(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}}})})}},NC=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-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,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-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,
188
+ & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},wE=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ca(e)),Rp(e)),hE(e)),SE(e)),yE(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},$E=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 ${te(e.inputAffixPadding)}`}}}},OE=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Rp(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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),$E(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},RE=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ca(e)),xE(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},bE(e)),CE(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}}})})}},PE=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-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,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-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,
189
189
  > ${t},
190
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},TC=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{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"}},[`
190
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},_E=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{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"}},[`
191
191
  &-allow-clear > ${t},
192
192
  &-affix-wrapper${n}-has-feedback ${t}
193
- `]:{paddingInlineEnd:r},[`&-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},[`${n}-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}}}}}},IC=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},ev=br("Input",e=>{const t=Lt(e,pC(e));return[OC(t),TC(t),PC(t),_C(t),NC(t),IC(t),cf(t)]},hC,{resetFont:!1});var MC={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"},AC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:MC}))},tv=c.forwardRef(AC);process.env.NODE_ENV!=="production"&&(tv.displayName="PlusOutlined");const Ko=P.createContext(null);var jC=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=P.useState(),f=U(d,2),v=f[0],b=f[1],h=P.useRef(),p=P.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function m(){_t.cancel(h.current)}return P.useEffect(function(){var S={};if(r)if(n){S.width=p(r.width);var g=a?"right":"left";u==="start"&&(S[g]=r[g]),u==="center"&&(S[g]=r[g]+r.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[g]=r[g]+r.width,S.transform="translateX(-100%)")}else S.height=p(r.height),u==="start"&&(S.top=r.top),u==="center"&&(S.top=r.top+r.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=r.top+r.height,S.transform="translateY(-100%)");return m(),h.current=_t(function(){b(S)}),m},[r,n,a,u,p]),{style:v}},au={width:0,height:0,left:0,top:0};function FC(e,t,r){return P.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||au,i=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,u=t.get(l);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||au}var f=a.get(l)||z({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function ou(e,t){var r=c.useRef(e),n=c.useState({}),a=U(n,2),o=a[1];function i(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,i]}var LC=.1,iu=.01,go=20,su=Math.pow(.995,go);function DC(e,t){var r=P.useState(),n=U(r,2),a=n[0],o=n[1],i=P.useState(0),s=U(i,2),l=s[0],u=s[1],d=P.useState(0),f=U(d,2),v=f[0],b=f[1],h=P.useState(),p=U(h,2),m=p[0],S=p[1],g=P.useRef();function y($){var T=$.touches[0],F=T.screenX,j=T.screenY;o({x:F,y:j}),window.clearInterval(g.current)}function E($){if(a){$.preventDefault();var T=$.touches[0],F=T.screenX,j=T.screenY;o({x:F,y:j});var A=F-a.x,M=j-a.y;t(A,M);var H=Date.now();u(H),b(H-l),S({x:A,y:M})}}function C(){if(a&&(o(null),S(null),m)){var $=m.x/v,T=m.y/v,F=Math.abs($),j=Math.abs(T);if(Math.max(F,j)<LC)return;var A=$,M=T;g.current=window.setInterval(function(){if(Math.abs(A)<iu&&Math.abs(M)<iu){window.clearInterval(g.current);return}A*=su,M*=su,t(A*go,M*go)},go)}}var x=P.useRef();function R($){var T=$.deltaX,F=$.deltaY,j=0,A=Math.abs(T),M=Math.abs(F);A===M?j=x.current==="x"?T:F:A>M?(j=T,x.current="x"):(j=F,x.current="y"),t(-j,-j)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:E,onTouchEnd:C,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function T(A){w.current.onTouchMove(A)}function F(A){w.current.onTouchEnd(A)}function j(A){w.current.onWheel(A)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",F,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",F)}},[])}function rv(e){var t=P.useState(0),r=U(t,2),n=r[0],a=r[1],o=P.useRef(0),i=P.useRef();return i.current=e,Gi(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[n]),function(){o.current===n&&(o.current+=1,a(o.current))}}function zC(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=rv(function(){var l=o.current;t.current.forEach(function(u){l=u(l)}),t.current=[],o.current=l,a({})});function s(l){t.current.push(l),i()}return[o.current,s]}var lu={width:0,height:0,left:0,top:0,right:0};function VC(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var m=e.get(s[p].key)||lu;if(m[f]+m[d]>v+t){h=p-1;break}}for(var S=0,g=b-1;g>=0;g-=1){var y=e.get(s[g].key)||lu;if(y[f]<v){S=g+1;break}}return S>=h?[0,0]:[S,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function cu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var BC="TABS_DQ";function nv(e){return String(e).replace(/"/g,BC)}function av(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var ov=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,o=e.style;return!n||n.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Vs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Te(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Vs.displayName="ExtraContent");var kC=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,m=e.getPopupContainer,S=e.popupClassName,g=P.useState(!1),y=U(g,2),E=y[0],C=y[1],x=P.useState(null),R=U(x,2),w=R[0],$=R[1],T=l.icon,F=T===void 0?"More":T,j="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),M=w!==null?"".concat(j,"-").concat(w):null,H=o==null?void 0:o.dropdownAriaLabel;function N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(La,{onClick:function(q){var Q=q.key,Z=q.domEvent;p(Q,Z),C(!1)},prefixCls:"".concat(A,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[w],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(W){var q=W.closable,Q=W.disabled,Z=W.closeIcon,J=W.key,te=W.label,ae=av(q,Z,f,Q);return c.createElement(Go,{key:J,id:"".concat(j,"-").concat(J),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(J),disabled:Q},c.createElement("span",null,te),ae&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),N(de,J)}},Z||f.removeIcon||"×"))}));function I(W){for(var q=a.filter(function(ae){return!ae.disabled}),Q=q.findIndex(function(ae){return ae.key===w})||0,Z=q.length,J=0;J<Z;J+=1){Q=(Q+W+Z)%Z;var te=q[Q];if(!te.disabled){$(te.key);return}}}function D(W){var q=W.which;if(!E){[le.DOWN,le.SPACE,le.ENTER].includes(q)&&(C(!0),W.preventDefault());return}switch(q){case le.UP:I(-1),W.preventDefault();break;case le.DOWN:I(1),W.preventDefault();break;case le.ESC:C(!1);break;case le.SPACE:case le.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(M);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){E||$(null)},[E]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var k=Y(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(IS,Oe({prefixCls:A,overlay:O,visible:a.length?E:!1,onVisibleChange:C,overlayClassName:Y(k,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(n,"-more"),"aria-expanded":E,onKeyDown:D},F));return c.createElement("div",{className:Y("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(ov,{prefixCls:r,locale:o,editable:f}))});const HC=c.memo(kC,function(e,t){return t.tabMoving});var WC=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,m=t.onFocus,S=t.style,g="".concat(r,"-tab"),y=av(f,u,h,l);function E(w){l||p(w)}function C(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var x=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":nv(i),className:Y(g,L(L(L({},"".concat(g,"-with-remove"),y),"".concat(g,"-active"),a),"".concat(g,"-disabled"),l)),style:S,onClick:E},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(g,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),E($)},onKeyDown:function($){[le.SPACE,le.ENTER].includes($.which)&&($.preventDefault(),E($))},onFocus:m},d&&c.createElement("span",{className:"".concat(g,"-icon")},d),s&&x),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(g,"-remove"),onClick:function($){$.stopPropagation(),C($)}},u||h.removeIcon||"×"));return v?v(R):R},GC=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},Cn=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},eo=function(t,r){return t[r?0:1]},uu=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,m=e.indicator,S=c.useContext(Ko),g=S.prefixCls,y=S.tabs,E=P.useRef(null),C=P.useRef(null),x=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),T=P.useRef(null),F=f==="top"||f==="bottom",j=ou(0,function(G,X){F&&p&&p({direction:G>X?"left":"right"})}),A=U(j,2),M=A[0],H=A[1],N=ou(0,function(G,X){!F&&p&&p({direction:G>X?"top":"bottom"})}),O=U(N,2),I=O[0],D=O[1],V=P.useState([0,0]),k=U(V,2),K=k[0],W=k[1],q=P.useState([0,0]),Q=U(q,2),Z=Q[0],J=Q[1],te=P.useState([0,0]),ae=U(te,2),fe=ae[0],de=ae[1],ve=P.useState([0,0]),we=U(ve,2),B=we[0],ce=we[1],se=zC(new Map),Ce=U(se,2),pe=Ce[0],ne=Ce[1],me=FC(y,pe,Z[0]),xe=eo(K,F),Me=eo(Z,F),oe=eo(fe,F),re=eo(B,F),ge=xe<Me+oe,he=ge?xe-re:xe-oe,tt="".concat(g,"-nav-operations-hidden"),qe=0,Ae=0;F&&s?(qe=0,Ae=Math.max(0,Me-he)):(qe=Math.min(0,he-Me),Ae=0);function Ue(G){return G<qe?qe:G>Ae?Ae:G}var Xe=P.useRef(null),Ze=P.useState(),Fe=U(Ze,2),Ne=Fe[0],it=Fe[1];function Ye(){it(Date.now())}function Le(){Xe.current&&clearTimeout(Xe.current)}DC(R,function(G,X){function ie(Pe,$e){Pe(function(_e){var Ie=Ue(_e+$e);return Ie})}return ge?(F?ie(H,G):ie(D,X),Le(),Ye(),!0):!1}),P.useEffect(function(){return Le(),Ne&&(Xe.current=setTimeout(function(){it(0)},100)),Le},[Ne]);var ue=VC(me,he,F?M:I,Me,oe,re,z(z({},e),{},{tabs:y})),Ee=U(ue,2),Ke=Ee[0],rt=Ee[1],bt=Bt(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=me.get(G)||{width:0,height:0,left:0,right:0,top:0};if(F){var ie=M;s?X.right<M?ie=X.right:X.right+X.width>M+he&&(ie=X.right+X.width-he):X.left<-M?ie=-X.left:X.left+X.width>-M+he&&(ie=-(X.left+X.width-he)),D(0),H(Ue(ie))}else{var Pe=I;X.top<-I?Pe=-X.top:X.top+X.height>-I+he&&(Pe=-(X.top+X.height-he)),H(0),D(Ue(Pe))}}),ut={};f==="top"||f==="bottom"?ut[s?"marginRight":"marginLeft"]=v:ut.marginTop=v;var Be=y.map(function(G,X){var ie=G.key;return c.createElement(WC,{id:a,prefixCls:g,key:ie,tab:G,style:X===0?void 0:ut,closable:G.closable,editable:u,active:ie===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function($e){h(ie,$e)},onFocus:function(){bt(ie),Ye(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Ve=function(){return ne(function(){var X,ie=new Map,Pe=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function($e){var _e,Ie=$e.key,vt=(_e=w.current)===null||_e===void 0?void 0:_e.querySelector('[data-node-key="'.concat(nv(Ie),'"]'));if(vt){var et=GC(vt,Pe),ze=U(et,4),Et=ze[0],Ht=ze[1],zt=ze[2],mt=ze[3];ie.set(Ie,{width:Et,height:Ht,left:zt,top:mt})}}),ie})};P.useEffect(function(){Ve()},[y.map(function(G){return G.key}).join("_")]);var De=rv(function(){var G=Cn(E),X=Cn(C),ie=Cn(x);W([G[0]-X[0]-ie[0],G[1]-X[1]-ie[1]]);var Pe=Cn(T);de(Pe);var $e=Cn($);ce($e);var _e=Cn(w);J([_e[0]-Pe[0],_e[1]-Pe[1]]),Ve()}),Re=y.slice(0,Ke),be=y.slice(rt+1),Ge=[].concat(ye(Re),ye(be)),pt=me.get(i),ke=jC({activeTabOffset:pt,horizontal:F,indicator:m,rtl:s}),He=ke.style;P.useEffect(function(){bt()},[i,qe,Ae,cu(pt),cu(me),F]),P.useEffect(function(){De()},[s]);var st=!!Ge.length,ht="".concat(g,"-nav-wrap"),Rt,Dt,kt,_;return F?s?(Dt=M>0,Rt=M!==Ae):(Rt=M<0,Dt=M!==qe):(kt=I<0,_=I!==qe),c.createElement(vr,{onResize:De},c.createElement("div",{ref:_a(t,E),role:"tablist",className:Y("".concat(g,"-nav"),r),style:n,onKeyDown:function(){Ye()}},c.createElement(Vs,{ref:C,position:"left",extra:l,prefixCls:g}),c.createElement(vr,{onResize:De},c.createElement("div",{className:Y(ht,L(L(L(L({},"".concat(ht,"-ping-left"),Rt),"".concat(ht,"-ping-right"),Dt),"".concat(ht,"-ping-top"),kt),"".concat(ht,"-ping-bottom"),_)),ref:R},c.createElement(vr,{onResize:De},c.createElement("div",{ref:w,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(I,"px)"),transition:Ne?"none":void 0}},Be,c.createElement(ov,{ref:T,prefixCls:g,locale:d,editable:u,style:z(z({},Be.length===0?void 0:ut),{},{visibility:st?"hidden":null})}),c.createElement("div",{className:Y("".concat(g,"-ink-bar"),L({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:He}))))),c.createElement(HC,Oe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:g,tabs:Ge,className:!st&&tt,tabMoving:!!Ne})),c.createElement(Vs,{ref:x,position:"right",extra:l,prefixCls:g})))}),Sl=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Y(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(Sl.displayName="TabPane");var UC=["renderTabBar"],KC=["label","key"],iv=function(t){var r=t.renderTabBar,n=Je(t,UC),a=c.useContext(Ko),o=a.tabs;if(r){var i=z(z({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,KC);return c.createElement(Sl,Oe({tab:l,key:u,tabKey:u},d))})});return r(i,uu)}return c.createElement(uu,n)};process.env.NODE_ENV!=="production"&&(iv.displayName="TabNavListWrapper");var qC=["key","forceRender","style","className","destroyInactiveTabPane"],XC=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Ko),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Y("".concat(l,"-content-holder"))},c.createElement("div",{className:Y("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,m=v.className,S=v.destroyInactiveTabPane,g=Je(v,qC),y=b===n;return c.createElement(sn,Oe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(E,C){var x=E.style,R=E.className;return c.createElement(Sl,Oe({},g,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:z(z({},p),x),className:Y(m,R),ref:C}))})})))};function YC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=z({inkBar:!0},Te(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&at(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var QC=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],du=0,sv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,m=e.tabBarExtraContent,S=e.locale,g=e.more,y=e.destroyInactiveTabPane,E=e.renderTabBar,C=e.onChange,x=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,T=e.indicator,F=Je(e,QC),j=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Te(B)==="object"&&"key"in B})},[i]),A=s==="rtl",M=YC(f),H=P.useState(!1),N=U(H,2),O=N[0],I=N[1];P.useEffect(function(){I(Cf())},[]);var D=or(function(){var B;return(B=j[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(D,2),k=V[0],K=V[1],W=P.useState(function(){return j.findIndex(function(B){return B.key===k})}),q=U(W,2),Q=q[0],Z=q[1];P.useEffect(function(){var B=j.findIndex(function(se){return se.key===k});if(B===-1){var ce;B=Math.max(0,Math.min(Q,j.length-1)),K((ce=j[B])===null||ce===void 0?void 0:ce.key)}Z(B)},[j.map(function(B){return B.key}).join("_"),k,Q]);var J=or(null,{value:r}),te=U(J,2),ae=te[0],fe=te[1];P.useEffect(function(){r||(fe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":du)),du+=1)},[]);function de(B,ce){x==null||x(B,ce);var se=B!==k;K(B),se&&(C==null||C(B))}var ve={id:ae,activeKey:k,animated:M,tabPosition:b,rtl:A,mobile:O},we=z(z({},ve),{},{editable:d,locale:S,more:g,tabBarGutter:h,onTabClick:de,onTabScroll:R,extra:m,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:T});return c.createElement(Ko.Provider,{value:{tabs:j,prefixCls:a}},c.createElement("div",Oe({ref:t,id:r,className:Y(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},F),c.createElement(iv,Oe({},we,{renderTabBar:E})),c.createElement(XC,Oe({destroyInactiveTabPane:y},ve,{animated:M}))))});process.env.NODE_ENV!=="production"&&(sv.displayName="Tabs");const ZC={motionAppear:!1,motionEnter:!0,motionLeave:!0};function JC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},ZC),{motionName:Yd(e,"switch")})),r}var eE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function tE(e){return e.filter(t=>t)}function rE(e,t){if(process.env.NODE_ENV!=="production"&&It("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=$r(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=eE(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return tE(r)}const nE=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Lc(e,"slide-up"),Lc(e,"slide-down")]]},aE=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${ee(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:ee(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ee(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadiusLG)} 0 0 ${ee(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 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},oE=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Vn(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:`${ee(n)} 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({},tl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ee(e.paddingXXS)} ${ee(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},iE=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
193
+ `]:{paddingInlineEnd:r},[`&-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},[`${n}-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}}}}}},NE=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Pp=Or("Input",e=>{const t=Bt(e,pE(e));return[wE(t),_E(t),OE(t),RE(t),PE(t),NE(t),Lv(t)]},mE,{resetFont:!1});var TE={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"},IE=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:TE}))},_p=u.forwardRef(IE);process.env.NODE_ENV!=="production"&&(_p.displayName="PlusOutlined");const Mi=P.createContext(null);var ME=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,c=l===void 0?"center":l,d=P.useState(),f=K(d,2),v=f[0],b=f[1],h=P.useRef(),g=P.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function p(){Mt.cancel(h.current)}return P.useEffect(function(){var S={};if(r)if(n){S.width=g(r.width);var m=a?"right":"left";c==="start"&&(S[m]=r[m]),c==="center"&&(S[m]=r[m]+r.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),c==="end"&&(S[m]=r[m]+r.width,S.transform="translateX(-100%)")}else S.height=g(r.height),c==="start"&&(S.top=r.top),c==="center"&&(S.top=r.top+r.height/2,S.transform="translateY(-50%)"),c==="end"&&(S.top=r.top+r.height,S.transform="translateY(-100%)");return p(),h.current=Mt(function(){b(S)}),p},[r,n,a,c,g]),{style:v}},pd={width:0,height:0,left:0,top:0};function AE(e,t,r){return P.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||pd,i=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var d;c=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||pd}var f=a.get(l)||z({},c);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function md(e,t){var r=u.useRef(e),n=u.useState({}),a=K(n,2),o=a[1];function i(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,i]}var jE=.1,gd=.01,Ko=20,hd=Math.pow(.995,Ko);function FE(e,t){var r=P.useState(),n=K(r,2),a=n[0],o=n[1],i=P.useState(0),s=K(i,2),l=s[0],c=s[1],d=P.useState(0),f=K(d,2),v=f[0],b=f[1],h=P.useState(),g=K(h,2),p=g[0],S=g[1],m=P.useRef();function y(O){var T=O.touches[0],F=T.screenX,j=T.screenY;o({x:F,y:j}),window.clearInterval(m.current)}function E(O){if(a){O.preventDefault();var T=O.touches[0],F=T.screenX,j=T.screenY;o({x:F,y:j});var M=F-a.x,A=j-a.y;t(M,A);var H=Date.now();c(H),b(H-l),S({x:M,y:A})}}function C(){if(a&&(o(null),S(null),p)){var O=p.x/v,T=p.y/v,F=Math.abs(O),j=Math.abs(T);if(Math.max(F,j)<jE)return;var M=O,A=T;m.current=window.setInterval(function(){if(Math.abs(M)<gd&&Math.abs(A)<gd){window.clearInterval(m.current);return}M*=hd,A*=hd,t(M*Ko,A*Ko)},Ko)}}var x=P.useRef();function w(O){var T=O.deltaX,F=O.deltaY,j=0,M=Math.abs(T),A=Math.abs(F);M===A?j=x.current==="x"?T:F:M>A?(j=T,x.current="x"):(j=F,x.current="y"),t(-j,-j)&&O.preventDefault()}var $=P.useRef(null);$.current={onTouchStart:y,onTouchMove:E,onTouchEnd:C,onWheel:w},u.useEffect(function(){function O(M){$.current.onTouchStart(M)}function T(M){$.current.onTouchMove(M)}function F(M){$.current.onTouchEnd(M)}function j(M){$.current.onWheel(M)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",F,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",F)}},[])}function Np(e){var t=P.useState(0),r=K(t,2),n=r[0],a=r[1],o=P.useRef(0),i=P.useRef();return i.current=e,Vs(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[n]),function(){o.current===n&&(o.current+=1,a(o.current))}}function LE(e){var t=P.useRef([]),r=P.useState({}),n=K(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=Np(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,a({})});function s(l){t.current.push(l),i()}return[o.current,s]}var bd={width:0,height:0,left:0,top:0,right:0};function DE(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,c=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=c?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,g=0;g<b;g+=1){var p=e.get(s[g].key)||bd;if(p[f]+p[d]>v+t){h=g-1;break}}for(var S=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||bd;if(y[f]<v){S=m+1;break}}return S>=h?[0,0]:[S,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),c])}function yd(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var zE="TABS_DQ";function Tp(e){return String(e).replace(/"/g,zE)}function Ip(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var Mp=u.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,o=e.style;return!n||n.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Fl=u.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Te(a)==="object"&&!u.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?u.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Fl.displayName="ExtraContent");var kE=u.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,p=e.getPopupContainer,S=e.popupClassName,m=P.useState(!1),y=K(m,2),E=y[0],C=y[1],x=P.useState(null),w=K(x,2),$=w[0],O=w[1],T=l.icon,F=T===void 0?"More":T,j="".concat(n,"-more-popup"),M="".concat(r,"-dropdown"),A=$!==null?"".concat(j,"-").concat($):null,H=o==null?void 0:o.dropdownAriaLabel;function N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var R=u.createElement(fo,{onClick:function(q){var Y=q.key,Q=q.domEvent;g(Y,Q),C(!1)},prefixCls:"".concat(M,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[$],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,Q=W.closeIcon,J=W.key,ee=W.label,re=Ip(q,Q,f,Y);return u.createElement(Ti,{key:J,id:"".concat(j,"-").concat(J),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(J),disabled:Y},u.createElement("span",null,ee),re&&u.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(se){se.stopPropagation(),N(se,J)}},Q||f.removeIcon||"×"))}));function I(W){for(var q=a.filter(function(re){return!re.disabled}),Y=q.findIndex(function(re){return re.key===$})||0,Q=q.length,J=0;J<Q;J+=1){Y=(Y+W+Q)%Q;var ee=q[Y];if(!ee.disabled){O(ee.key);return}}}function D(W){var q=W.which;if(!E){[ue.DOWN,ue.SPACE,ue.ENTER].includes(q)&&(C(!0),W.preventDefault());return}switch(q){case ue.UP:I(-1),W.preventDefault();break;case ue.DOWN:I(1),W.preventDefault();break;case ue.ESC:C(!1);break;case ue.SPACE:case ue.ENTER:$!==null&&g($,W);break}}P.useEffect(function(){var W=document.getElementById(A);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[$]),P.useEffect(function(){E||O(null)},[E]);var k=L({},b?"marginRight":"marginLeft",v);a.length||(k.visibility="hidden",k.order=1);var V=Z(L({},"".concat(M,"-rtl"),b)),G=i?null:u.createElement(N1,Oe({prefixCls:M,overlay:R,visible:a.length?E:!1,onVisibleChange:C,overlayClassName:Z(V,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:p},l),u.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:k,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(n,"-more"),"aria-expanded":E,onKeyDown:D},F));return u.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:c,ref:t},G,u.createElement(Mp,{prefixCls:r,locale:o,editable:f}))});const VE=u.memo(kE,function(e,t){return t.tabMoving});var BE=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,c=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,g=t.onClick,p=t.onFocus,S=t.style,m="".concat(r,"-tab"),y=Ip(f,c,h,l);function E($){l||g($)}function C($){$.preventDefault(),$.stopPropagation(),h.onEdit("remove",{key:i,event:$})}var x=u.useMemo(function(){return d&&typeof s=="string"?u.createElement("span",null,s):s},[s,d]),w=u.createElement("div",{key:i,"data-node-key":Tp(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:S,onClick:E},u.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(O){O.stopPropagation(),E(O)},onKeyDown:function(O){[ue.SPACE,ue.ENTER].includes(O.which)&&(O.preventDefault(),E(O))},onFocus:p},d&&u.createElement("span",{className:"".concat(m,"-icon")},d),s&&x),y&&u.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function(O){O.stopPropagation(),C(O)}},c||h.removeIcon||"×"));return v?v(w):w},HE=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,c,d-r.x,f-r.y]:[n,a,i,o]},Ln=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-a)<1)return[l,c]}return[a,i]},_o=function(t,r){return t[r?0:1]},Sd=u.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,g=e.onTabScroll,p=e.indicator,S=u.useContext(Mi),m=S.prefixCls,y=S.tabs,E=P.useRef(null),C=P.useRef(null),x=P.useRef(null),w=P.useRef(null),$=P.useRef(null),O=P.useRef(null),T=P.useRef(null),F=f==="top"||f==="bottom",j=md(0,function(U,X){F&&g&&g({direction:U>X?"left":"right"})}),M=K(j,2),A=M[0],H=M[1],N=md(0,function(U,X){!F&&g&&g({direction:U>X?"top":"bottom"})}),R=K(N,2),I=R[0],D=R[1],k=P.useState([0,0]),V=K(k,2),G=V[0],W=V[1],q=P.useState([0,0]),Y=K(q,2),Q=Y[0],J=Y[1],ee=P.useState([0,0]),re=K(ee,2),de=re[0],se=re[1],le=P.useState([0,0]),we=K(le,2),B=we[0],fe=we[1],ce=LE(new Map),Ce=K(ce,2),ge=Ce[0],ae=Ce[1],pe=AE(y,ge,Q[0]),xe=_o(G,F),Me=_o(Q,F),oe=_o(de,F),ne=_o(B,F),me=xe<Me+oe,he=me?xe-ne:xe-oe,rt="".concat(m,"-nav-operations-hidden"),Xe=0,Ae=0;F&&s?(Xe=0,Ae=Math.max(0,Me-he)):(Xe=Math.min(0,he-Me),Ae=0);function Ke(U){return U<Xe?Xe:U>Ae?Ae:U}var Ye=P.useRef(null),Je=P.useState(),Fe=K(Je,2),Ne=Fe[0],st=Fe[1];function Ze(){st(Date.now())}function Le(){Ye.current&&clearTimeout(Ye.current)}FE(w,function(U,X){function ie(Pe,$e){Pe(function(_e){var Ie=Ke(_e+$e);return Ie})}return me?(F?ie(H,U):ie(D,X),Le(),Ze(),!0):!1}),P.useEffect(function(){return Le(),Ne&&(Ye.current=setTimeout(function(){st(0)},100)),Le},[Ne]);var ve=DE(pe,he,F?A:I,Me,oe,ne,z(z({},e),{},{tabs:y})),Ee=K(ve,2),qe=Ee[0],nt=Ee[1],Ct=Ut(function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=pe.get(U)||{width:0,height:0,left:0,right:0,top:0};if(F){var ie=A;s?X.right<A?ie=X.right:X.right+X.width>A+he&&(ie=X.right+X.width-he):X.left<-A?ie=-X.left:X.left+X.width>-A+he&&(ie=-(X.left+X.width-he)),D(0),H(Ke(ie))}else{var Pe=I;X.top<-I?Pe=-X.top:X.top+X.height>-I+he&&(Pe=-(X.top+X.height-he)),H(0),D(Ke(Pe))}}),ft={};f==="top"||f==="bottom"?ft[s?"marginRight":"marginLeft"]=v:ft.marginTop=v;var Be=y.map(function(U,X){var ie=U.key;return u.createElement(BE,{id:a,prefixCls:m,key:ie,tab:U,style:X===0?void 0:ft,closable:U.closable,editable:c,active:ie===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function($e){h(ie,$e)},onFocus:function(){Ct(ie),Ze(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),ke=function(){return ae(function(){var X,ie=new Map,Pe=(X=$.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function($e){var _e,Ie=$e.key,mt=(_e=$.current)===null||_e===void 0?void 0:_e.querySelector('[data-node-key="'.concat(Tp(Ie),'"]'));if(mt){var tt=HE(mt,Pe),ze=K(tt,4),$t=ze[0],qt=ze[1],Wt=ze[2],gt=ze[3];ie.set(Ie,{width:$t,height:qt,left:Wt,top:gt})}}),ie})};P.useEffect(function(){ke()},[y.map(function(U){return U.key}).join("_")]);var De=Np(function(){var U=Ln(E),X=Ln(C),ie=Ln(x);W([U[0]-X[0]-ie[0],U[1]-X[1]-ie[1]]);var Pe=Ln(T);se(Pe);var $e=Ln(O);fe($e);var _e=Ln($);J([_e[0]-Pe[0],_e[1]-Pe[1]]),ke()}),Re=y.slice(0,qe),be=y.slice(nt+1),Ue=[].concat(ye(Re),ye(be)),bt=pe.get(i),He=ME({activeTabOffset:bt,horizontal:F,indicator:p,rtl:s}),We=He.style;P.useEffect(function(){Ct()},[i,Xe,Ae,yd(bt),yd(pe),F]),P.useEffect(function(){De()},[s]);var lt=!!Ue.length,St="".concat(m,"-nav-wrap"),Tt,Ht,Kt,_;return F?s?(Ht=A>0,Tt=A!==Ae):(Tt=A<0,Ht=A!==Xe):(Kt=I<0,_=I!==Xe),u.createElement(Sr,{onResize:De},u.createElement("div",{ref:no(t,E),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},u.createElement(Fl,{ref:C,position:"left",extra:l,prefixCls:m}),u.createElement(Sr,{onResize:De},u.createElement("div",{className:Z(St,L(L(L(L({},"".concat(St,"-ping-left"),Tt),"".concat(St,"-ping-right"),Ht),"".concat(St,"-ping-top"),Kt),"".concat(St,"-ping-bottom"),_)),ref:w},u.createElement(Sr,{onResize:De},u.createElement("div",{ref:$,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(I,"px)"),transition:Ne?"none":void 0}},Be,u.createElement(Mp,{ref:T,prefixCls:m,locale:d,editable:c,style:z(z({},Be.length===0?void 0:ft),{},{visibility:lt?"hidden":null})}),u.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),u.createElement(VE,Oe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:m,tabs:Ue,className:!lt&&rt,tabMoving:!!Ne})),u.createElement(Fl,{ref:x,position:"right",extra:l,prefixCls:m})))}),wc=u.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return u.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(wc.displayName="TabPane");var WE=["renderTabBar"],GE=["label","key"],Ap=function(t){var r=t.renderTabBar,n=et(t,WE),a=u.useContext(Mi),o=a.tabs;if(r){var i=z(z({},n),{},{panes:o.map(function(s){var l=s.label,c=s.key,d=et(s,GE);return u.createElement(wc,Oe({tab:l,key:c,tabKey:c},d))})});return r(i,Sd)}return u.createElement(Sd,n)};process.env.NODE_ENV!=="production"&&(Ap.displayName="TabNavListWrapper");var UE=["key","forceRender","style","className","destroyInactiveTabPane"],KE=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=u.useContext(Mi),l=s.prefixCls,c=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return u.createElement("div",{className:Z("".concat(l,"-content-holder"))},u.createElement("div",{className:Z("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},c.map(function(v){var b=v.key,h=v.forceRender,g=v.style,p=v.className,S=v.destroyInactiveTabPane,m=et(v,UE),y=b===n;return u.createElement(xn,Oe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(E,C){var x=E.style,w=E.className;return u.createElement(wc,Oe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:z(z({},g),x),className:Z(p,w),ref:C}))})})))};function qE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=z({inkBar:!0},Te(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&ot(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var XE=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Cd=0,jp=u.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,g=e.tabBarStyle,p=e.tabBarExtraContent,S=e.locale,m=e.more,y=e.destroyInactiveTabPane,E=e.renderTabBar,C=e.onChange,x=e.onTabClick,w=e.onTabScroll,$=e.getPopupContainer,O=e.popupClassName,T=e.indicator,F=et(e,XE),j=u.useMemo(function(){return(i||[]).filter(function(B){return B&&Te(B)==="object"&&"key"in B})},[i]),M=s==="rtl",A=qE(f),H=P.useState(!1),N=K(H,2),R=N[0],I=N[1];P.useEffect(function(){I(Xv())},[]);var D=dr(function(){var B;return(B=j[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:c}),k=K(D,2),V=k[0],G=k[1],W=P.useState(function(){return j.findIndex(function(B){return B.key===V})}),q=K(W,2),Y=q[0],Q=q[1];P.useEffect(function(){var B=j.findIndex(function(ce){return ce.key===V});if(B===-1){var fe;B=Math.max(0,Math.min(Y,j.length-1)),G((fe=j[B])===null||fe===void 0?void 0:fe.key)}Q(B)},[j.map(function(B){return B.key}).join("_"),V,Y]);var J=dr(null,{value:r}),ee=K(J,2),re=ee[0],de=ee[1];P.useEffect(function(){r||(de("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":Cd)),Cd+=1)},[]);function se(B,fe){x==null||x(B,fe);var ce=B!==V;G(B),ce&&(C==null||C(B))}var le={id:re,activeKey:V,animated:A,tabPosition:b,rtl:M,mobile:R},we=z(z({},le),{},{editable:d,locale:S,more:m,tabBarGutter:h,onTabClick:se,onTabScroll:w,extra:p,style:g,panes:null,getPopupContainer:$,popupClassName:O,indicator:T});return u.createElement(Mi.Provider,{value:{tabs:j,prefixCls:a}},u.createElement("div",Oe({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),R),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),M),o)},F),u.createElement(Ap,Oe({},we,{renderTabBar:E})),u.createElement(KE,Oe({destroyInactiveTabPane:y},le,{animated:A}))))});process.env.NODE_ENV!=="production"&&(jp.displayName="Tabs");const YE={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ZE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},YE),{motionName:$v(e,"switch")})),r}var QE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function JE(e){return e.filter(t=>t)}function ex(e,t){if(process.env.NODE_ENV!=="production"&&Lt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Ar(t).map(n=>{if(u.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=QE(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return JE(r)}const tx=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Ku(e,"slide-up"),Ku(e,"slide-down")]]},rx=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${te(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:te(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:te(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadiusLG)} 0 0 ${te(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 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},nx=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ca(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:`${te(n)} 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({},oc),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${te(e.paddingXXS)} ${te(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ax=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${te(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
194
194
  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,
195
- > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,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:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:ee(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ee(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sE=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadius)} ${ee(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ee(e.borderRadius)} ${ee(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ee(e.borderRadius)} ${ee(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadius)} 0 0 ${ee(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},lE=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},rl(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-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:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},cE=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ee(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ee(e.marginXS)},marginLeft:{_skip_check_:!0,value:ee(o(e.marginXXS).mul(-1).equal())},[n]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},uE=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(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:r,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:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${ee(e.paddingXS)}`,background:"transparent",border:`${ee(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},rl(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),lE(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"}}}}}},dE=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:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}},fE=br("Tabs",e=>{const t=Lt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ee(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ee(e.horizontalItemGutter)}`});return[sE(t),cE(t),iE(t),oE(t),aE(t),uE(t),nE(t)]},dE),lv=()=>null;process.env.NODE_ENV!=="production"&&(lv.displayName="DeprecatedTabPane");var vE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:m,hideAdd:S,centered:g,addIcon:y,removeIcon:E,moreIcon:C,more:x,popupClassName:R,children:w,items:$,animated:T,style:F,indicatorSize:j,indicator:A}=e,M=vE(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=M,{direction:N,tabs:O,getPrefixCls:I,getPopupContainer:D}=c.useContext(ot),V=I("tabs",H),k=al(V),[K,W,q]=fE(V,k);let Q;v==="editable-card"&&(Q={onEdit:(ve,we)=>{let{key:B,event:ce}=we;m==null||m(ve==="add"?ce:B,ve)},removeIcon:(t=E??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(Kd,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(tv,null),showAdd:S!==!0});const Z=I();if(process.env.NODE_ENV!=="production"){const ve=It("Tabs");process.env.NODE_ENV!=="production"&&ve(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ve(!(j||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const J=Hn(p),te=rE($,w),ae=JC(V,T),fe=Object.assign(Object.assign({},O==null?void 0:O.style),F),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(n=O==null?void 0:O.indicator)===null||n===void 0?void 0:n.align,size:(s=(o=(a=A==null?void 0:A.size)!==null&&a!==void 0?a:j)!==null&&o!==void 0?o:(i=O==null?void 0:O.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:O==null?void 0:O.indicatorSize};return K(c.createElement(sv,Object.assign({direction:N,getPopupContainer:D},M,{items:te,className:Y({[`${V}-${J}`]:J,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:g},O==null?void 0:O.className,b,h,W,q,k),popupClassName:Y(R,W,q,k),style:fe,editable:Q,more:Object.assign({icon:(f=(d=(u=(l=O==null?void 0:O.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:O==null?void 0:O.moreIcon)!==null&&d!==void 0?d:C)!==null&&f!==void 0?f:c.createElement(qf,null),transitionName:`${Z}-slide-up`},x),prefixCls:V,animated:ae,indicator:de})))};Cl.TabPane=lv;process.env.NODE_ENV!=="production"&&(Cl.displayName="Tabs");var mE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const cv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=mE(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(ot),i=o("card",t),s=Y(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},gE=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${ee(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},Na()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},tl),{[`
195
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,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:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:te(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${te(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ox=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadius)} ${te(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${te(e.borderRadius)} ${te(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadius)} ${te(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadius)} 0 0 ${te(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},ix=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},ic(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:n},[`&${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 ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},sx=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:te(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:te(e.marginXS)},marginLeft:{_skip_check_:!0,value:te(o(e.marginXXS).mul(-1).equal())},[n]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},lx=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ca(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:r,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:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${te(e.paddingXS)}`,background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},ic(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ix(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"}}}}}},cx=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:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}},ux=Or("Tabs",e=>{const t=Bt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${te(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${te(e.horizontalItemGutter)}`});return[ox(t),sx(t),ax(t),nx(t),rx(t),lx(t),tx(t)]},cx),Fp=()=>null;process.env.NODE_ENV!=="production"&&(Fp.displayName="DeprecatedTabPane");var dx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $c=e=>{var t,r,n,a,o,i,s,l,c,d,f;const{type:v,className:b,rootClassName:h,size:g,onEdit:p,hideAdd:S,centered:m,addIcon:y,removeIcon:E,moreIcon:C,more:x,popupClassName:w,children:$,items:O,animated:T,style:F,indicatorSize:j,indicator:M}=e,A=dx(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=A,{direction:N,tabs:R,getPrefixCls:I,getPopupContainer:D}=u.useContext(it),k=I("tabs",H),V=lc(k),[G,W,q]=ux(k,V);let Y;v==="editable-card"&&(Y={onEdit:(le,we)=>{let{key:B,event:fe}=we;p==null||p(le==="add"?fe:B,le)},removeIcon:(t=E??(R==null?void 0:R.removeIcon))!==null&&t!==void 0?t:u.createElement(Ev,null),addIcon:(y??(R==null?void 0:R.addIcon))||u.createElement(_p,null),showAdd:S!==!0});const Q=I();if(process.env.NODE_ENV!=="production"){const le=Lt("Tabs");process.env.NODE_ENV!=="production"&&le(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&le(!(j||R!=null&&R.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const J=fa(g),ee=ex(O,$),re=ZE(k,T),de=Object.assign(Object.assign({},R==null?void 0:R.style),F),se={align:(r=M==null?void 0:M.align)!==null&&r!==void 0?r:(n=R==null?void 0:R.indicator)===null||n===void 0?void 0:n.align,size:(s=(o=(a=M==null?void 0:M.size)!==null&&a!==void 0?a:j)!==null&&o!==void 0?o:(i=R==null?void 0:R.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:R==null?void 0:R.indicatorSize};return G(u.createElement(jp,Object.assign({direction:N,getPopupContainer:D},A,{items:ee,className:Z({[`${k}-${J}`]:J,[`${k}-card`]:["card","editable-card"].includes(v),[`${k}-editable-card`]:v==="editable-card",[`${k}-centered`]:m},R==null?void 0:R.className,b,h,W,q,V),popupClassName:Z(w,W,q,V),style:de,editable:Y,more:Object.assign({icon:(f=(d=(c=(l=R==null?void 0:R.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:R==null?void 0:R.moreIcon)!==null&&d!==void 0?d:C)!==null&&f!==void 0?f:u.createElement(Ep,null),transitionName:`${Q}-slide-up`},x),prefixCls:k,animated:re,indicator:se})))};$c.TabPane=Fp;process.env.NODE_ENV!=="production"&&($c.displayName="Tabs");var fx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Lp=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=fx(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=u.useContext(it),i=o("card",t),s=Z(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return u.createElement("div",Object.assign({},a,{className:s}))},vx=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${te(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},ao()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},oc),{[`
196
196
  > ${r}-typography,
197
197
  > ${r}-typography-edit-content
198
- `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},pE=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
199
- ${ee(a)} 0 0 0 ${r},
200
- 0 ${ee(a)} 0 0 ${r},
201
- ${ee(a)} ${ee(a)} 0 0 ${r},
202
- ${ee(a)} 0 0 0 ${r} inset,
203
- 0 ${ee(a)} 0 0 ${r} inset;
204
- `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},hE=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Na()),{"& > li":{margin:n,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), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ee(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:ee(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${o}`}}})},bE=e=>Object.assign(Object.assign({margin:`${ee(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Na()),{"&-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},tl),"&-description":{color:e.colorTextDescription}}),yE=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${ee(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ee(e.padding)} ${ee(r)}`}}},SE=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},CE=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Vn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:gE(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Na()),[`${t}-grid`]:pE(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:hE(e),[`${t}-meta`]:bE(e)}),[`${t}-bordered`]:{border:`${ee(e.lineWidth)} ${e.lineType} ${a}`,[`${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:r}},[`${t}-contain-grid`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(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:n}}},[`${t}-type-inner`]:yE(e),[`${t}-loading`]:SE(e),[`${t}-rtl`]:{direction:"rtl"}}},EE=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${ee(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},xE=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),wE=br("Card",e=>{const t=Lt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[CE(t),EE(t)]},xE);var fu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $E=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return c.createElement("ul",{className:t,style:n},r.map((a,o)=>{const i=`action-${o}`;return c.createElement("li",{style:{width:`${100/r.length}%`},key:i},c.createElement("span",null,a))}))},OE=c.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:v,type:b,cover:h,actions:p,tabList:m,children:S,activeTabKey:g,defaultActiveTabKey:y,tabBarExtraContent:E,hoverable:C,tabProps:x={},classNames:R,styles:w}=e,$=fu(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:T,direction:F,card:j}=c.useContext(ot);if(process.env.NODE_ENV!=="production"){const pe=It("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ne=>{let[me,xe]=ne;pe.deprecated(!(me in e),me,xe)})}const A=pe=>{var ne;(ne=e.onTabChange)===null||ne===void 0||ne.call(e,pe)},M=pe=>{var ne;return Y((ne=j==null?void 0:j.classNames)===null||ne===void 0?void 0:ne[pe],R==null?void 0:R[pe])},H=pe=>{var ne;return Object.assign(Object.assign({},(ne=j==null?void 0:j.styles)===null||ne===void 0?void 0:ne[pe]),w==null?void 0:w[pe])},N=c.useMemo(()=>{let pe=!1;return c.Children.forEach(S,ne=>{(ne==null?void 0:ne.type)===cv&&(pe=!0)}),pe},[S]),O=T("card",r),[I,D,V]=wE(O),k=c.createElement(cn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),K=g!==void 0,W=Object.assign(Object.assign({},x),{[K?"activeKey":"defaultActiveKey"]:K?g:y,tabBarExtraContent:E});let q;const Q=Hn(v),Z=!Q||Q==="default"?"large":Q,J=m?c.createElement(Cl,Object.assign({size:Z},W,{className:`${O}-head-tabs`,onChange:A,items:m.map(pe=>{var{tab:ne}=pe,me=fu(pe,["tab"]);return Object.assign({label:ne},me)})})):null;if(u||i||J){const pe=Y(`${O}-head`,M("header")),ne=Y(`${O}-head-title`,M("title")),me=Y(`${O}-extra`,M("extra")),xe=Object.assign(Object.assign({},s),H("header"));q=c.createElement("div",{className:pe,style:xe},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ne,style:H("title")},u),i&&c.createElement("div",{className:me,style:H("extra")},i)),J)}const te=Y(`${O}-cover`,M("cover")),ae=h?c.createElement("div",{className:te,style:H("cover")},h):null,fe=Y(`${O}-body`,M("body")),de=Object.assign(Object.assign({},l),H("body")),ve=c.createElement("div",{className:fe,style:de},d?k:S),we=Y(`${O}-actions`,M("actions")),B=p!=null&&p.length?c.createElement($E,{actionClasses:we,actionStyle:H("actions"),actions:p}):null,ce=hr($,["onTabChange"]),se=Y(O,j==null?void 0:j.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:C,[`${O}-contain-grid`]:N,[`${O}-contain-tabs`]:m==null?void 0:m.length,[`${O}-${Q}`]:Q,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:F==="rtl"},n,a,D,V),Ce=Object.assign(Object.assign({},j==null?void 0:j.style),o);return I(c.createElement("div",Object.assign({ref:t},ce,{className:se,style:Ce}),q,ae,ve,B))});var RE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const PE=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=RE(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(ot),l=s("card",t),u=Y(`${l}-meta`,r),d=n?c.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?c.createElement("div",{className:`${l}-meta-title`},a):null,v=o?c.createElement("div",{className:`${l}-meta-description`},o):null,b=f||v?c.createElement("div",{className:`${l}-meta-detail`},f,v):null;return c.createElement("div",Object.assign({},i,{className:u}),d,b)},qo=OE;qo.Grid=cv;qo.Meta=PE;process.env.NODE_ENV!=="production"&&(qo.displayName="Card");const uv=P.createContext({}),_E=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"}}}},NE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},TE=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},Bs=(e,t)=>TE(e,t),IE=(e,t,r)=>({[`@media (min-width: ${ee(t)})`]:Object.assign({},Bs(e,r))}),ME=()=>({}),AE=()=>({}),jE=br("Grid",_E,ME),FE=br("Grid",e=>{const t=Lt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[NE(t),Bs(t,""),Bs(t,"-xs"),Object.keys(r).map(n=>IE(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},AE);var LE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function vu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const DE=["xs","sm","md","lg","xl","xxl"],sa=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(ot),{gutter:a,wrap:o}=c.useContext(uv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,m=LE(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=r("col",i),[g,y,E]=FE(S),C={};let x={};DE.forEach($=>{let T={};const F=e[$];typeof F=="number"?T.span=F:typeof F=="object"&&(T=F||{}),delete m[$],x=Object.assign(Object.assign({},x),{[`${S}-${$}-${T.span}`]:T.span!==void 0,[`${S}-${$}-order-${T.order}`]:T.order||T.order===0,[`${S}-${$}-offset-${T.offset}`]:T.offset||T.offset===0,[`${S}-${$}-push-${T.push}`]:T.push||T.push===0,[`${S}-${$}-pull-${T.pull}`]:T.pull||T.pull===0,[`${S}-rtl`]:n==="rtl"}),T.flex&&(x[`${S}-${$}-flex`]=!0,C[`--${S}-${$}-flex`]=vu(T.flex))});const R=Y(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},v,x,y,E),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=vu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),g(c.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},w),p),C),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(sa.displayName="Col");var zE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function mu(e,t){const[r,n]=c.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<Ra.length;o++){const i=Ra[o];if(!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return c.useEffect(()=>{a()},[JSON.stringify(e),t]),r}const ks=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=zE(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(ot),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,m]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=mu(a,p),g=mu(n,p),y=c.useRef(l),E=iS();c.useEffect(()=>{const O=E.subscribe(I=>{m(I);const D=y.current||0;(!Array.isArray(D)&&typeof D=="object"||Array.isArray(D)&&(typeof D[0]=="object"||typeof D[1]=="object"))&&h(I)});return()=>E.unsubscribe(O)},[]);const C=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((D,V)=>{if(typeof D=="object")for(let k=0;k<Ra.length;k++){const K=Ra[k];if(b[K]&&D[K]!==void 0){O[V]=D[K];break}}else O[V]=D}),O},x=f("row",r),[R,w,$]=jE(x),T=C(),F=Y(x,{[`${x}-no-wrap`]:u===!1,[`${x}-${g}`]:g,[`${x}-${S}`]:S,[`${x}-rtl`]:v==="rtl"},o,w,$),j={},A=T[0]!=null&&T[0]>0?T[0]/-2:void 0;A&&(j.marginLeft=A,j.marginRight=A);const[M,H]=T;j.rowGap=H;const N=c.useMemo(()=>({gutter:[M,H],wrap:u}),[M,H,u]);return R(c.createElement(uv.Provider,{value:N},c.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},j),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(ks.displayName="Row");function VE(e){return!!(e.addonBefore||e.addonAfter)}function BE(e){return!!(e.prefix||e.suffix||e.allowClear)}function gu(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function _o(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=gu(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=gu(t,e,n),r(a);return}r(a)}}function kE(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var dv=P.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,p=e.focused,m=e.triggerFocus,S=e.allowClear,g=e.value,y=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,T=e.onClear,F=o??a,j=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",M=($==null?void 0:$.wrapper)||"span",H=($==null?void 0:$.groupAddon)||"span",N=P.useRef(null),O=function(B){var ce;(ce=N.current)!==null&&ce!==void 0&&ce.contains(B.target)&&(m==null||m())},I=BE(e),D=P.cloneElement(F,{value:g,className:Y(F.props.className,!I&&(x==null?void 0:x.variant))||null}),V=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),I){var k=null;if(S){var K=!b&&!h&&g,W="".concat(i,"-clear-icon"),q=Te(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";k=P.createElement("span",{onClick:function(B){y==null||y(B),T==null||T()},onMouseDown:function(B){return B.preventDefault()},className:Y(W,L(L({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Q="".concat(i,"-affix-wrapper"),Z=Y(Q,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Q,"-disabled"),b),"".concat(Q,"-focused"),p),"".concat(Q,"-readonly"),h),"".concat(Q,"-input-with-clear-btn"),l&&S&&g),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),J=(l||S)&&P.createElement("span",{className:Y("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:w==null?void 0:w.suffix},k,l);D=P.createElement(j,Oe({className:Z,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:N}),s&&P.createElement("span",{className:Y("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:w==null?void 0:w.prefix},s),D,J)}if(VE(e)){var te="".concat(i,"-group"),ae="".concat(te,"-addon"),fe="".concat(te,"-wrapper"),de=Y("".concat(i,"-wrapper"),te,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),ve=Y(fe,L({},"".concat(fe,"-disabled"),b),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);D=P.createElement(A,{className:ve,ref:V},P.createElement(M,{className:de},u&&P.createElement(H,{className:ae},u),D,d&&P.createElement(H,{className:ae},d)))}return P.cloneElement(D,{className:Y((r=D.props)===null||r===void 0?void 0:r.className,f)||null,style:z(z({},(n=D.props)===null||n===void 0?void 0:n.style),v),hidden:E})}),HE=["show"];function fv(e,t){return c.useMemo(function(){var r={};t&&(r.show=Te(t)==="object"&&t.formatter?t.formatter:!!t),r=z(z({},r),e);var n=r,a=n.show,o=Je(n,HE);return z(z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var WE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],GE=P.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,p=e.suffix,m=e.showCount,S=e.count,g=e.type,y=g===void 0?"text":g,E=e.classes,C=e.classNames,x=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=Je(e,WE),T=P.useState(!1),F=U(T,2),j=F[0],A=F[1],M=P.useRef(!1),H=P.useRef(!1),N=P.useRef(null),O=P.useRef(null),I=function(re){N.current&&kE(N.current,re)},D=or(e.defaultValue,{value:e.value}),V=U(D,2),k=V[0],K=V[1],W=k==null?"":String(k),q=P.useState(null),Q=U(q,2),Z=Q[0],J=Q[1],te=fv(S,m),ae=te.max||h,fe=te.strategy(W),de=!!ae&&fe>ae;P.useImperativeHandle(t,function(){var oe;return{focus:I,blur:function(){var ge;(ge=N.current)===null||ge===void 0||ge.blur()},setSelectionRange:function(ge,he,tt){var qe;(qe=N.current)===null||qe===void 0||qe.setSelectionRange(ge,he,tt)},select:function(){var ge;(ge=N.current)===null||ge===void 0||ge.select()},input:N.current,nativeElement:((oe=O.current)===null||oe===void 0?void 0:oe.nativeElement)||N.current}}),P.useEffect(function(){A(function(oe){return oe&&f?!1:oe})},[f]);var ve=function(re,ge,he){var tt=ge;if(!M.current&&te.exceedFormatter&&te.max&&te.strategy(ge)>te.max){if(tt=te.exceedFormatter(ge,{max:te.max}),ge!==tt){var qe,Ae;J([((qe=N.current)===null||qe===void 0?void 0:qe.selectionStart)||0,((Ae=N.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;K(tt),N.current&&_o(N.current,re,n,tt)};P.useEffect(function(){if(Z){var oe;(oe=N.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ye(Z))}},[Z]);var we=function(re){ve(re,re.target.value,{source:"change"})},B=function(re){M.current=!1,ve(re,re.currentTarget.value,{source:"compositionEnd"}),w==null||w(re)},ce=function(re){i&&re.key==="Enter"&&!H.current&&(H.current=!0,i(re)),s==null||s(re)},se=function(re){re.key==="Enter"&&(H.current=!1),l==null||l(re)},Ce=function(re){A(!0),a==null||a(re)},pe=function(re){A(!1),o==null||o(re)},ne=function(re){K(""),I(),N.current&&_o(N.current,re,n)},me=de&&"".concat(d,"-out-of-range"),xe=function(){var re=hr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",Oe({autoComplete:r},re,{onChange:we,onFocus:Ce,onBlur:pe,onKeyDown:ce,onKeyUp:se,className:Y(d,L({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:x==null?void 0:x.input,ref:N,size:v,type:y,onCompositionStart:function(he){M.current=!0,R==null||R(he)},onCompositionEnd:B}))},Me=function(){var re=Number(ae)>0;if(p||te.show){var ge=te.showFormatter?te.showFormatter({value:W,count:fe,maxLength:ae}):"".concat(fe).concat(re?" / ".concat(ae):"");return P.createElement(P.Fragment,null,te.show&&P.createElement("span",{className:Y("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),C==null?void 0:C.count),style:z({},x==null?void 0:x.count)},ge),p)}return null};return P.createElement(dv,Oe({},$,{prefixCls:d,className:Y(b,me),handleReset:ne,value:W,focused:j,triggerFocus:I,suffix:Me(),disabled:f,classes:E,classNames:C,styles:x}),xe())});const vv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(Ud,null)}),t};function UE(e,t){const r=P.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return P.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function KE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var qE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function XE(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const YE=P.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:p,styles:m,rootClassName:S,onChange:g,classNames:y,variant:E}=e,C=qE(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:B}=It("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:R,input:w}=P.useContext(ot),$=x("input",n),T=P.useRef(null),F=al($),[j,A,M]=ev($,F),{compactSize:H,compactItemClassnames:N}=tf($,R),O=Hn(B=>{var ce;return(ce=i??H)!==null&&ce!==void 0?ce:B}),I=P.useContext(jn),D=s??I,{status:V,hasFeedback:k,feedbackIcon:K}=P.useContext($a),W=Pf(V,o),q=KE(e)||!!k,Q=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=It("Input");P.useEffect(()=>{var ce;q&&!Q.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ce=T.current)===null||ce===void 0?void 0:ce.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=q},[q])}const Z=UE(T),J=B=>{Z(),l==null||l(B)},te=B=>{Z(),u==null||u(B)},ae=B=>{Z(),g==null||g(B)},fe=(k||d)&&P.createElement(P.Fragment,null,d,k&&K),de=vv(f??(w==null?void 0:w.allowClear)),[ve,we]=_f("input",E,a);return j(P.createElement(GE,Object.assign({ref:Or(t,T),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},C,{disabled:D,onBlur:J,onFocus:te,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),m),suffix:fe,allowClear:de,className:Y(h,S,M,F,N,w==null?void 0:w.className),onChange:ae,addonBefore:b&&P.createElement(Ts,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Ts,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Y({[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-rtl`]:R==="rtl"},y==null?void 0:y.input,(r=w==null?void 0:w.classNames)===null||r===void 0?void 0:r.input,A),variant:Y({[`${$}-${ve}`]:we},Ms($,W)),affixWrapper:Y({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Y({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Y({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ve}`]:we},Ms(`${$}-group-wrapper`,W,k),A)})})))});process.env.NODE_ENV!=="production"&&(YE.displayName="Input");var QE=`
198
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},px=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
199
+ ${te(a)} 0 0 0 ${r},
200
+ 0 ${te(a)} 0 0 ${r},
201
+ ${te(a)} ${te(a)} 0 0 ${r},
202
+ ${te(a)} 0 0 0 ${r} inset,
203
+ 0 ${te(a)} 0 0 ${r} inset;
204
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},mx=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${te(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},ao()),{"& > li":{margin:n,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), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:te(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:te(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${o}`}}})},gx=e=>Object.assign(Object.assign({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ao()),{"&-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},oc),"&-description":{color:e.colorTextDescription}}),hx=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(r)}`}}},bx=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},yx=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ca(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:vx(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},ao()),[`${t}-grid`]:px(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:mx(e),[`${t}-meta`]:gx(e)}),[`${t}-bordered`]:{border:`${te(e.lineWidth)} ${e.lineType} ${a}`,[`${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:r}},[`${t}-contain-grid`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(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:n}}},[`${t}-type-inner`]:hx(e),[`${t}-loading`]:bx(e),[`${t}-rtl`]:{direction:"rtl"}}},Sx=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${te(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Cx=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),Ex=Or("Card",e=>{const t=Bt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[yx(t),Sx(t)]},Cx);var Ed=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const xx=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return u.createElement("ul",{className:t,style:n},r.map((a,o)=>{const i=`action-${o}`;return u.createElement("li",{style:{width:`${100/r.length}%`},key:i},u.createElement("span",null,a))}))},wx=u.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:c,loading:d,bordered:f=!0,size:v,type:b,cover:h,actions:g,tabList:p,children:S,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:E,hoverable:C,tabProps:x={},classNames:w,styles:$}=e,O=Ed(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:T,direction:F,card:j}=u.useContext(it);if(process.env.NODE_ENV!=="production"){const ge=Lt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ae=>{let[pe,xe]=ae;ge.deprecated(!(pe in e),pe,xe)})}const M=ge=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,ge)},A=ge=>{var ae;return Z((ae=j==null?void 0:j.classNames)===null||ae===void 0?void 0:ae[ge],w==null?void 0:w[ge])},H=ge=>{var ae;return Object.assign(Object.assign({},(ae=j==null?void 0:j.styles)===null||ae===void 0?void 0:ae[ge]),$==null?void 0:$[ge])},N=u.useMemo(()=>{let ge=!1;return u.Children.forEach(S,ae=>{(ae==null?void 0:ae.type)===Lp&&(ge=!0)}),ge},[S]),R=T("card",r),[I,D,k]=Ex(R),V=u.createElement($n,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),G=m!==void 0,W=Object.assign(Object.assign({},x),{[G?"activeKey":"defaultActiveKey"]:G?m:y,tabBarExtraContent:E});let q;const Y=fa(v),Q=!Y||Y==="default"?"large":Y,J=p?u.createElement($c,Object.assign({size:Q},W,{className:`${R}-head-tabs`,onChange:M,items:p.map(ge=>{var{tab:ae}=ge,pe=Ed(ge,["tab"]);return Object.assign({label:ae},pe)})})):null;if(c||i||J){const ge=Z(`${R}-head`,A("header")),ae=Z(`${R}-head-title`,A("title")),pe=Z(`${R}-extra`,A("extra")),xe=Object.assign(Object.assign({},s),H("header"));q=u.createElement("div",{className:ge,style:xe},u.createElement("div",{className:`${R}-head-wrapper`},c&&u.createElement("div",{className:ae,style:H("title")},c),i&&u.createElement("div",{className:pe,style:H("extra")},i)),J)}const ee=Z(`${R}-cover`,A("cover")),re=h?u.createElement("div",{className:ee,style:H("cover")},h):null,de=Z(`${R}-body`,A("body")),se=Object.assign(Object.assign({},l),H("body")),le=u.createElement("div",{className:de,style:se},d?V:S),we=Z(`${R}-actions`,A("actions")),B=g!=null&&g.length?u.createElement(xx,{actionClasses:we,actionStyle:H("actions"),actions:g}):null,fe=$r(O,["onTabChange"]),ce=Z(R,j==null?void 0:j.className,{[`${R}-loading`]:d,[`${R}-bordered`]:f,[`${R}-hoverable`]:C,[`${R}-contain-grid`]:N,[`${R}-contain-tabs`]:p==null?void 0:p.length,[`${R}-${Y}`]:Y,[`${R}-type-${b}`]:!!b,[`${R}-rtl`]:F==="rtl"},n,a,D,k),Ce=Object.assign(Object.assign({},j==null?void 0:j.style),o);return I(u.createElement("div",Object.assign({ref:t},fe,{className:ce,style:Ce}),q,re,le,B))});var $x=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Ox=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=$x(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=u.useContext(it),l=s("card",t),c=Z(`${l}-meta`,r),d=n?u.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?u.createElement("div",{className:`${l}-meta-title`},a):null,v=o?u.createElement("div",{className:`${l}-meta-description`},o):null,b=f||v?u.createElement("div",{className:`${l}-meta-detail`},f,v):null;return u.createElement("div",Object.assign({},i,{className:c}),d,b)},Ai=wx;Ai.Grid=Lp;Ai.Meta=Ox;process.env.NODE_ENV!=="production"&&(Ai.displayName="Card");const Dp=P.createContext({}),Rx=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"}}}},Px=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_x=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},Ll=(e,t)=>_x(e,t),Nx=(e,t,r)=>({[`@media (min-width: ${te(t)})`]:Object.assign({},Ll(e,r))}),Tx=()=>({}),Ix=()=>({}),Mx=Or("Grid",Rx,Tx),Ax=Or("Grid",e=>{const t=Bt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Px(t),Ll(t,""),Ll(t,"-xs"),Object.keys(r).map(n=>Nx(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},Ix);var jx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function xd(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Fx=["xs","sm","md","lg","xl","xxl"],Ia=u.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=u.useContext(it),{gutter:a,wrap:o}=u.useContext(Dp),{prefixCls:i,span:s,order:l,offset:c,push:d,pull:f,className:v,children:b,flex:h,style:g}=e,p=jx(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=r("col",i),[m,y,E]=Ax(S),C={};let x={};Fx.forEach(O=>{let T={};const F=e[O];typeof F=="number"?T.span=F:typeof F=="object"&&(T=F||{}),delete p[O],x=Object.assign(Object.assign({},x),{[`${S}-${O}-${T.span}`]:T.span!==void 0,[`${S}-${O}-order-${T.order}`]:T.order||T.order===0,[`${S}-${O}-offset-${T.offset}`]:T.offset||T.offset===0,[`${S}-${O}-push-${T.push}`]:T.push||T.push===0,[`${S}-${O}-pull-${T.pull}`]:T.pull||T.pull===0,[`${S}-rtl`]:n==="rtl"}),T.flex&&(x[`${S}-${O}-flex`]=!0,C[`--${S}-${O}-flex`]=xd(T.flex))});const w=Z(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${c}`]:c,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},v,x,y,E),$={};if(a&&a[0]>0){const O=a[0]/2;$.paddingLeft=O,$.paddingRight=O}return h&&($.flex=xd(h),o===!1&&!$.minWidth&&($.minWidth=0)),m(u.createElement("div",Object.assign({},p,{style:Object.assign(Object.assign(Object.assign({},$),g),C),className:w,ref:t}),b))});process.env.NODE_ENV!=="production"&&(Ia.displayName="Col");var Lx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function wd(e,t){const[r,n]=u.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<to.length;o++){const i=to[o];if(!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return u.useEffect(()=>{a()},[JSON.stringify(e),t]),r}const Dl=u.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:c}=e,d=Lx(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=u.useContext(it),[b,h]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,p]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=wd(a,g),m=wd(n,g),y=u.useRef(l),E=a1();u.useEffect(()=>{const R=E.subscribe(I=>{p(I);const D=y.current||0;(!Array.isArray(D)&&typeof D=="object"||Array.isArray(D)&&(typeof D[0]=="object"||typeof D[1]=="object"))&&h(I)});return()=>E.unsubscribe(R)},[]);const C=()=>{const R=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((D,k)=>{if(typeof D=="object")for(let V=0;V<to.length;V++){const G=to[V];if(b[G]&&D[G]!==void 0){R[k]=D[G];break}}else R[k]=D}),R},x=f("row",r),[w,$,O]=Mx(x),T=C(),F=Z(x,{[`${x}-no-wrap`]:c===!1,[`${x}-${m}`]:m,[`${x}-${S}`]:S,[`${x}-rtl`]:v==="rtl"},o,$,O),j={},M=T[0]!=null&&T[0]>0?T[0]/-2:void 0;M&&(j.marginLeft=M,j.marginRight=M);const[A,H]=T;j.rowGap=H;const N=u.useMemo(()=>({gutter:[A,H],wrap:c}),[A,H,c]);return w(u.createElement(Dp.Provider,{value:N},u.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},j),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Dl.displayName="Row");function Dx(e){return!!(e.addonBefore||e.addonAfter)}function zx(e){return!!(e.prefix||e.suffix||e.allowClear)}function $d(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function fi(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=$d(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=$d(t,e,n),r(a);return}r(a)}}function kx(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var zp=P.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,g=e.focused,p=e.triggerFocus,S=e.allowClear,m=e.value,y=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,w=e.dataAttrs,$=e.styles,O=e.components,T=e.onClear,F=o??a,j=(O==null?void 0:O.affixWrapper)||"span",M=(O==null?void 0:O.groupWrapper)||"span",A=(O==null?void 0:O.wrapper)||"span",H=(O==null?void 0:O.groupAddon)||"span",N=P.useRef(null),R=function(B){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(B.target)&&(p==null||p())},I=zx(e),D=P.cloneElement(F,{value:m,className:Z(F.props.className,!I&&(x==null?void 0:x.variant))||null}),k=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:k.current||N.current}}),I){var V=null;if(S){var G=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Te(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";V=P.createElement("span",{onClick:function(B){y==null||y(B),T==null||T()},onMouseDown:function(B){return B.preventDefault()},className:Z(W,L(L({},"".concat(W,"-hidden"),!G),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),Q=Z(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),g),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&S&&m),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),J=(l||S)&&P.createElement("span",{className:Z("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:$==null?void 0:$.suffix},V,l);D=P.createElement(j,Oe({className:Q,style:$==null?void 0:$.affixWrapper,onClick:R},w==null?void 0:w.affixWrapper,{ref:N}),s&&P.createElement("span",{className:Z("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:$==null?void 0:$.prefix},s),D,J)}if(Dx(e)){var ee="".concat(i,"-group"),re="".concat(ee,"-addon"),de="".concat(ee,"-wrapper"),se=Z("".concat(i,"-wrapper"),ee,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),le=Z(de,L({},"".concat(de,"-disabled"),b),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);D=P.createElement(M,{className:le,ref:k},P.createElement(A,{className:se},c&&P.createElement(H,{className:re},c),D,d&&P.createElement(H,{className:re},d)))}return P.cloneElement(D,{className:Z((r=D.props)===null||r===void 0?void 0:r.className,f)||null,style:z(z({},(n=D.props)===null||n===void 0?void 0:n.style),v),hidden:E})}),Vx=["show"];function kp(e,t){return u.useMemo(function(){var r={};t&&(r.show=Te(t)==="object"&&t.formatter?t.formatter:!!t),r=z(z({},r),e);var n=r,a=n.show,o=et(n,Vx);return z(z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var Bx=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Hx=P.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,d=c===void 0?"rc-input":c,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,g=e.suffix,p=e.showCount,S=e.count,m=e.type,y=m===void 0?"text":m,E=e.classes,C=e.classNames,x=e.styles,w=e.onCompositionStart,$=e.onCompositionEnd,O=et(e,Bx),T=P.useState(!1),F=K(T,2),j=F[0],M=F[1],A=P.useRef(!1),H=P.useRef(!1),N=P.useRef(null),R=P.useRef(null),I=function(ne){N.current&&kx(N.current,ne)},D=dr(e.defaultValue,{value:e.value}),k=K(D,2),V=k[0],G=k[1],W=V==null?"":String(V),q=P.useState(null),Y=K(q,2),Q=Y[0],J=Y[1],ee=kp(S,p),re=ee.max||h,de=ee.strategy(W),se=!!re&&de>re;P.useImperativeHandle(t,function(){var oe;return{focus:I,blur:function(){var me;(me=N.current)===null||me===void 0||me.blur()},setSelectionRange:function(me,he,rt){var Xe;(Xe=N.current)===null||Xe===void 0||Xe.setSelectionRange(me,he,rt)},select:function(){var me;(me=N.current)===null||me===void 0||me.select()},input:N.current,nativeElement:((oe=R.current)===null||oe===void 0?void 0:oe.nativeElement)||N.current}}),P.useEffect(function(){M(function(oe){return oe&&f?!1:oe})},[f]);var le=function(ne,me,he){var rt=me;if(!A.current&&ee.exceedFormatter&&ee.max&&ee.strategy(me)>ee.max){if(rt=ee.exceedFormatter(me,{max:ee.max}),me!==rt){var Xe,Ae;J([((Xe=N.current)===null||Xe===void 0?void 0:Xe.selectionStart)||0,((Ae=N.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;G(rt),N.current&&fi(N.current,ne,n,rt)};P.useEffect(function(){if(Q){var oe;(oe=N.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ye(Q))}},[Q]);var we=function(ne){le(ne,ne.target.value,{source:"change"})},B=function(ne){A.current=!1,le(ne,ne.currentTarget.value,{source:"compositionEnd"}),$==null||$(ne)},fe=function(ne){i&&ne.key==="Enter"&&!H.current&&(H.current=!0,i(ne)),s==null||s(ne)},ce=function(ne){ne.key==="Enter"&&(H.current=!1),l==null||l(ne)},Ce=function(ne){M(!0),a==null||a(ne)},ge=function(ne){M(!1),o==null||o(ne)},ae=function(ne){G(""),I(),N.current&&fi(N.current,ne,n)},pe=se&&"".concat(d,"-out-of-range"),xe=function(){var ne=$r(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",Oe({autoComplete:r},ne,{onChange:we,onFocus:Ce,onBlur:ge,onKeyDown:fe,onKeyUp:ce,className:Z(d,L({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:x==null?void 0:x.input,ref:N,size:v,type:y,onCompositionStart:function(he){A.current=!0,w==null||w(he)},onCompositionEnd:B}))},Me=function(){var ne=Number(re)>0;if(g||ee.show){var me=ee.showFormatter?ee.showFormatter({value:W,count:de,maxLength:re}):"".concat(de).concat(ne?" / ".concat(re):"");return P.createElement(P.Fragment,null,ee.show&&P.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:z({},x==null?void 0:x.count)},me),g)}return null};return P.createElement(zp,Oe({},O,{prefixCls:d,className:Z(b,pe),handleReset:ae,value:W,focused:j,triggerFocus:I,suffix:Me(),disabled:f,classes:E,classNames:C,styles:x}),xe())});const Vp=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(Cv,null)}),t};function Wx(e,t){const r=P.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return P.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function Gx(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Ux=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Kx(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const qx=P.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:c,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:g,styles:p,rootClassName:S,onChange:m,classNames:y,variant:E}=e,C=Ux(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:B}=Lt("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:w,input:$}=P.useContext(it),O=x("input",n),T=P.useRef(null),F=lc(O),[j,M,A]=Pp(O,F),{compactSize:H,compactItemClassnames:N}=Nv(O,w),R=fa(B=>{var fe;return(fe=i??H)!==null&&fe!==void 0?fe:B}),I=P.useContext(Qn),D=s??I,{status:k,hasFeedback:V,feedbackIcon:G}=P.useContext(Ja),W=rp(k,o),q=Gx(e)||!!V,Y=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=Lt("Input");P.useEffect(()=>{var fe;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((fe=T.current)===null||fe===void 0?void 0:fe.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"),Y.current=q},[q])}const Q=Wx(T),J=B=>{Q(),l==null||l(B)},ee=B=>{Q(),c==null||c(B)},re=B=>{Q(),m==null||m(B)},de=(V||d)&&P.createElement(P.Fragment,null,d,V&&G),se=Vp(f??($==null?void 0:$.allowClear)),[le,we]=np("input",E,a);return j(P.createElement(Hx,Object.assign({ref:jr(t,T),prefixCls:O,autoComplete:$==null?void 0:$.autoComplete},C,{disabled:D,onBlur:J,onFocus:ee,style:Object.assign(Object.assign({},$==null?void 0:$.style),g),styles:Object.assign(Object.assign({},$==null?void 0:$.styles),p),suffix:de,allowClear:se,className:Z(h,S,A,F,N,$==null?void 0:$.className),onChange:re,addonBefore:b&&P.createElement(Rl,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Rl,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),$==null?void 0:$.classNames),{input:Z({[`${O}-sm`]:R==="small",[`${O}-lg`]:R==="large",[`${O}-rtl`]:w==="rtl"},y==null?void 0:y.input,(r=$==null?void 0:$.classNames)===null||r===void 0?void 0:r.input,M),variant:Z({[`${O}-${le}`]:we},_l(O,W)),affixWrapper:Z({[`${O}-affix-wrapper-sm`]:R==="small",[`${O}-affix-wrapper-lg`]:R==="large",[`${O}-affix-wrapper-rtl`]:w==="rtl"},M),wrapper:Z({[`${O}-group-rtl`]:w==="rtl"},M),groupWrapper:Z({[`${O}-group-wrapper-sm`]:R==="small",[`${O}-group-wrapper-lg`]:R==="large",[`${O}-group-wrapper-rtl`]:w==="rtl",[`${O}-group-wrapper-${le}`]:we},_l(`${O}-group-wrapper`,W,V),M)})})))});process.env.NODE_ENV!=="production"&&(qx.displayName="Input");var Xx=`
205
205
  min-height:0 !important;
206
206
  max-height:none !important;
207
207
  height:0 !important;
@@ -212,21 +212,96 @@ html body {
212
212
  top:0 !important;
213
213
  right:0 !important;
214
214
  pointer-events: none !important;
215
- `,ZE=["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"],Oi={},ar;function JE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Oi[r])return Oi[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=ZE.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Oi[r]=l),l}function ex(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ar||(ar=document.createElement("textarea"),ar.setAttribute("tab-index","-1"),ar.setAttribute("aria-hidden","true"),document.body.appendChild(ar)),e.getAttribute("wrap")?ar.setAttribute("wrap",e.getAttribute("wrap")):ar.removeAttribute("wrap");var a=JE(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ar.setAttribute("style","".concat(l,";").concat(QE)),ar.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=ar.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ar.value=" ";var b=ar.scrollHeight-o;r!==null&&(u=b*r,s==="border-box"&&(u=u+o+i),v=Math.max(u,v)),n!==null&&(d=b*n,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var tx=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ri=0,Pi=1,_i=2,rx=c.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=Je(r,tx),h=or(a,{value:o,postState:function(Q){return Q??""}}),p=U(h,2),m=p[0],S=p[1],g=function(Q){S(Q.target.value),f==null||f(Q)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var E=c.useMemo(function(){return i&&Te(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=U(E,2),x=C[0],R=C[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Q=y.current,Z=Q.selectionStart,J=Q.selectionEnd,te=Q.scrollTop;y.current.setSelectionRange(Z,J),y.current.scrollTop=te}}catch{}},T=c.useState(_i),F=U(T,2),j=F[0],A=F[1],M=c.useState(),H=U(M,2),N=H[0],O=H[1],I=function(){A(Ri),process.env.NODE_ENV==="test"&&(v==null||v())};yt(function(){w&&I()},[o,x,R,w]),yt(function(){if(j===Ri)A(Pi);else if(j===Pi){var q=ex(y.current,!1,x,R);A(_i),O(q)}else $()},[j]);var D=c.useRef(),V=function(){_t.cancel(D.current)},k=function(Q){j===_i&&(s==null||s(Q),i&&(V(),D.current=_t(function(){I()})))};c.useEffect(function(){return V},[]);var K=w?N:null,W=z(z({},u),K);return(j===Ri||j===Pi)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(vr,{onResize:k,disabled:!(i||s)},c.createElement("textarea",Oe({},b,{ref:y,style:W,className:Y(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:m,onChange:g})))}),nx=["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"],ax=P.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,p=e.showCount,m=e.count,S=e.className,g=e.style,y=e.disabled,E=e.hidden,C=e.classNames,x=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,T=e.readOnly,F=e.autoSize,j=e.onKeyDown,A=Je(e,nx),M=or(n,{value:a,defaultValue:n}),H=U(M,2),N=H[0],O=H[1],I=N==null?"":String(N),D=P.useState(!1),V=U(D,2),k=V[0],K=V[1],W=P.useRef(!1),q=P.useState(null),Q=U(q,2),Z=Q[0],J=Q[1],te=P.useRef(null),ae=P.useRef(null),fe=function(){var Ne;return(Ne=ae.current)===null||Ne===void 0?void 0:Ne.textArea},de=function(){fe().focus()};P.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:ae.current,focus:de,blur:function(){fe().blur()},nativeElement:((Fe=te.current)===null||Fe===void 0?void 0:Fe.nativeElement)||fe()}}),P.useEffect(function(){K(function(Fe){return!y&&Fe})},[y]);var ve=P.useState(null),we=U(ve,2),B=we[0],ce=we[1];P.useEffect(function(){if(B){var Fe;(Fe=fe()).setSelectionRange.apply(Fe,ye(B))}},[B]);var se=fv(m,p),Ce=(r=se.max)!==null&&r!==void 0?r:u,pe=Number(Ce)>0,ne=se.strategy(I),me=!!Ce&&ne>Ce,xe=function(Ne,it){var Ye=it;!W.current&&se.exceedFormatter&&se.max&&se.strategy(it)>se.max&&(Ye=se.exceedFormatter(it,{max:se.max}),it!==Ye&&ce([fe().selectionStart||0,fe().selectionEnd||0])),O(Ye),_o(Ne.currentTarget,Ne,s,Ye)},Me=function(Ne){W.current=!0,d==null||d(Ne)},oe=function(Ne){W.current=!1,xe(Ne,Ne.currentTarget.value),f==null||f(Ne)},re=function(Ne){xe(Ne,Ne.target.value)},ge=function(Ne){Ne.key==="Enter"&&$&&$(Ne),j==null||j(Ne)},he=function(Ne){K(!0),o==null||o(Ne)},tt=function(Ne){K(!1),i==null||i(Ne)},qe=function(Ne){O(""),de(),_o(fe(),Ne,s)},Ae=v,Ue;se.show&&(se.showFormatter?Ue=se.showFormatter({value:I,count:ne,maxLength:Ce}):Ue="".concat(ne).concat(pe?" / ".concat(Ce):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Y("".concat(h,"-data-count"),C==null?void 0:C.count),style:x==null?void 0:x.count},Ue)));var Xe=function(Ne){var it;R==null||R(Ne),(it=fe())!==null&&it!==void 0&&it.style.height&&J(!0)},Ze=!F&&!p&&!l;return P.createElement(dv,{ref:te,value:I,allowClear:l,handleReset:qe,suffix:Ae,prefixCls:h,classNames:z(z({},C),{},{affixWrapper:Y(C==null?void 0:C.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:k,className:Y(S,me&&"".concat(h,"-out-of-range")),style:z(z({},g),Z&&!Ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ue=="string"?Ue:void 0}},hidden:E,readOnly:T,onClear:w},P.createElement(rx,Oe({},A,{autoSize:F,maxLength:u,onKeyDown:ge,onChange:re,onFocus:he,onBlur:tt,onCompositionStart:Me,onCompositionEnd:oe,className:Y(C==null?void 0:C.textarea),style:z(z({},x==null?void 0:x.textarea),{},{resize:g==null?void 0:g.resize}),disabled:y,prefixCls:h,onResize:Xe,ref:ae,readOnly:T})))}),ox=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const ix=P.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:p}=e,m=ox(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=It("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:g,textArea:y}=c.useContext(ot),E=Hn(i),C=c.useContext(jn),x=s??C,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext($a),T=Pf(R,l),F=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=F.current)===null||V===void 0?void 0:V.resizableTextArea,focus:k=>{var K,W;XE((W=(K=F.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,k)},blur:()=>{var k;return(k=F.current)===null||k===void 0?void 0:k.blur()}}});const j=S("input",a),A=al(j),[M,H,N]=ev(j,A),[O,I]=_f("textArea",p,o),D=vv(u??(y==null?void 0:y.allowClear));return M(c.createElement(ax,Object.assign({autoComplete:y==null?void 0:y.autoComplete},m,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:x,allowClear:D,className:Y(N,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Y({[`${j}-sm`]:E==="small",[`${j}-lg`]:E==="large"},H,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Y({[`${j}-${O}`]:I},Ms(j,T)),affixWrapper:Y(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:g==="rtl",[`${j}-affix-wrapper-sm`]:E==="small",[`${j}-affix-wrapper-lg`]:E==="large",[`${j}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:j,suffix:w&&c.createElement("span",{className:`${j}-textarea-suffix`},$),ref:F})))});function No(e){return["small","middle","large"].includes(e)}function pu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const mv=P.createContext({latestIndex:0}),sx=mv.Provider,lx=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(mv);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},n),r<i&&a&&c.createElement("span",{className:`${t}-split`},a))};var cx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const ux=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(ot),{size:l=(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:h,split:p,style:m,wrap:S=!1,classNames:g,styles:y}=e,E=cx(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,x]=Array.isArray(l)?l:[l,l],R=No(x),w=No(C),$=pu(x),T=pu(C),F=$r(v,{keepEmpty:!0}),j=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[M,H,N]=Jd(A),O=Y(A,i==null?void 0:i.className,H,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${j}`]:j,[`${A}-gap-row-${x}`]:R,[`${A}-gap-col-${C}`]:w},d,f,N),I=Y(`${A}-item`,(n=g==null?void 0:g.item)!==null&&n!==void 0?n:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let D=0;const V=F.map((W,q)=>{var Q,Z;W!=null&&(D=q);const J=(W==null?void 0:W.key)||`${I}-${q}`;return c.createElement(lx,{className:I,key:J,index:q,split:p,style:(Q=y==null?void 0:y.item)!==null&&Q!==void 0?Q:(Z=i==null?void 0:i.styles)===null||Z===void 0?void 0:Z.item},W)}),k=c.useMemo(()=>({latestIndex:D}),[D]);if(F.length===0)return null;const K={};return S&&(K.flexWrap="wrap"),!w&&T&&(K.columnGap=C),!R&&$&&(K.rowGap=x),M(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),m)},E),c.createElement(sx,{value:k},V)))}),Xo=ux;Xo.Compact=i0;process.env.NODE_ENV!=="production"&&(Xo.displayName="Space");const gv=["wrap","nowrap","wrap-reverse"],pv=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],hv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],dx=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&gv.includes(r)}},fx=(e,t)=>{const r={};return hv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},vx=(e,t)=>{const r={};return pv.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function mx(e,t){return Y(Object.assign(Object.assign(Object.assign({},dx(e,t)),fx(e,t)),vx(e,t)))}const gx=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},px=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},hx=e=>{const{componentCls:t}=e,r={};return gv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},bx=e=>{const{componentCls:t}=e,r={};return hv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},yx=e=>{const{componentCls:t}=e,r={};return pv.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},Sx=()=>({}),Cx=br("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=Lt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[gx(a),px(a),hx(a),bx(a),yx(a)]},Sx,{resetStyle:!1});var Ex=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const bv=P.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=Ex(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(ot),p=h("flex",r),[m,S,g]=Cx(p),y=u??(v==null?void 0:v.vertical),E=Y(a,n,v==null?void 0:v.className,p,S,g,mx(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:No(s),[`${p}-vertical`]:y}),C=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(C.flex=i),s&&!No(s)&&(C.gap=s),m(P.createElement(d,Object.assign({ref:t,className:E,style:C},hr(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(bv.displayName="Flex");var xx={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"},wx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:xx}))},yv=c.forwardRef(wx);process.env.NODE_ENV!=="production"&&(yv.displayName="CopyOutlined");var $x={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"},Ox=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:$x}))},Sv=c.forwardRef(Ox);process.env.NODE_ENV!=="production"&&(Sv.displayName="EditOutlined");var Rx={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"},Px=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Rx}))},Cv=c.forwardRef(Px);process.env.NODE_ENV!=="production"&&(Cv.displayName="EnterOutlined");var _x={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Nx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:_x}))},Ev=c.forwardRef(Nx);process.env.NODE_ENV!=="production"&&(Ev.displayName="InfoCircleOutlined");var Tx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Ix={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Hs=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===le.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===le.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=Tx(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},Ix)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),c.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:r,onKeyUp:n,style:u}))}),Mx=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},Ax=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
215
+ `,Yx=["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"],bs={},ur;function Zx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&bs[r])return bs[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=Yx.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(bs[r]=l),l}function Qx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ur||(ur=document.createElement("textarea"),ur.setAttribute("tab-index","-1"),ur.setAttribute("aria-hidden","true"),document.body.appendChild(ur)),e.getAttribute("wrap")?ur.setAttribute("wrap",e.getAttribute("wrap")):ur.removeAttribute("wrap");var a=Zx(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ur.setAttribute("style","".concat(l,";").concat(Xx)),ur.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=ur.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ur.value=" ";var b=ur.scrollHeight-o;r!==null&&(c=b*r,s==="border-box"&&(c=c+o+i),v=Math.max(c,v)),n!==null&&(d=b*n,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return c&&(h.minHeight=c),d&&(h.maxHeight=d),h}var Jx=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ys=0,Ss=1,Cs=2,ew=u.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=et(r,Jx),h=dr(a,{value:o,postState:function(Y){return Y??""}}),g=K(h,2),p=g[0],S=g[1],m=function(Y){S(Y.target.value),f==null||f(Y)},y=u.useRef();u.useImperativeHandle(t,function(){return{textArea:y.current}});var E=u.useMemo(function(){return i&&Te(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=K(E,2),x=C[0],w=C[1],$=!!i,O=function(){try{if(document.activeElement===y.current){var Y=y.current,Q=Y.selectionStart,J=Y.selectionEnd,ee=Y.scrollTop;y.current.setSelectionRange(Q,J),y.current.scrollTop=ee}}catch{}},T=u.useState(Cs),F=K(T,2),j=F[0],M=F[1],A=u.useState(),H=K(A,2),N=H[0],R=H[1],I=function(){M(ys),process.env.NODE_ENV==="test"&&(v==null||v())};Et(function(){$&&I()},[o,x,w,$]),Et(function(){if(j===ys)M(Ss);else if(j===Ss){var q=Qx(y.current,!1,x,w);M(Cs),R(q)}else O()},[j]);var D=u.useRef(),k=function(){Mt.cancel(D.current)},V=function(Y){j===Cs&&(s==null||s(Y),i&&(k(),D.current=Mt(function(){I()})))};u.useEffect(function(){return k},[]);var G=$?N:null,W=z(z({},c),G);return(j===ys||j===Ss)&&(W.overflowY="hidden",W.overflowX="hidden"),u.createElement(Sr,{onResize:V,disabled:!(i||s)},u.createElement("textarea",Oe({},b,{ref:y,style:W,className:Z(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:p,onChange:m})))}),tw=["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"],rw=P.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,g=e.showCount,p=e.count,S=e.className,m=e.style,y=e.disabled,E=e.hidden,C=e.classNames,x=e.styles,w=e.onResize,$=e.onClear,O=e.onPressEnter,T=e.readOnly,F=e.autoSize,j=e.onKeyDown,M=et(e,tw),A=dr(n,{value:a,defaultValue:n}),H=K(A,2),N=H[0],R=H[1],I=N==null?"":String(N),D=P.useState(!1),k=K(D,2),V=k[0],G=k[1],W=P.useRef(!1),q=P.useState(null),Y=K(q,2),Q=Y[0],J=Y[1],ee=P.useRef(null),re=P.useRef(null),de=function(){var Ne;return(Ne=re.current)===null||Ne===void 0?void 0:Ne.textArea},se=function(){de().focus()};P.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:re.current,focus:se,blur:function(){de().blur()},nativeElement:((Fe=ee.current)===null||Fe===void 0?void 0:Fe.nativeElement)||de()}}),P.useEffect(function(){G(function(Fe){return!y&&Fe})},[y]);var le=P.useState(null),we=K(le,2),B=we[0],fe=we[1];P.useEffect(function(){if(B){var Fe;(Fe=de()).setSelectionRange.apply(Fe,ye(B))}},[B]);var ce=kp(p,g),Ce=(r=ce.max)!==null&&r!==void 0?r:c,ge=Number(Ce)>0,ae=ce.strategy(I),pe=!!Ce&&ae>Ce,xe=function(Ne,st){var Ze=st;!W.current&&ce.exceedFormatter&&ce.max&&ce.strategy(st)>ce.max&&(Ze=ce.exceedFormatter(st,{max:ce.max}),st!==Ze&&fe([de().selectionStart||0,de().selectionEnd||0])),R(Ze),fi(Ne.currentTarget,Ne,s,Ze)},Me=function(Ne){W.current=!0,d==null||d(Ne)},oe=function(Ne){W.current=!1,xe(Ne,Ne.currentTarget.value),f==null||f(Ne)},ne=function(Ne){xe(Ne,Ne.target.value)},me=function(Ne){Ne.key==="Enter"&&O&&O(Ne),j==null||j(Ne)},he=function(Ne){G(!0),o==null||o(Ne)},rt=function(Ne){G(!1),i==null||i(Ne)},Xe=function(Ne){R(""),se(),fi(de(),Ne,s)},Ae=v,Ke;ce.show&&(ce.showFormatter?Ke=ce.showFormatter({value:I,count:ae,maxLength:Ce}):Ke="".concat(ae).concat(ge?" / ".concat(Ce):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Z("".concat(h,"-data-count"),C==null?void 0:C.count),style:x==null?void 0:x.count},Ke)));var Ye=function(Ne){var st;w==null||w(Ne),(st=de())!==null&&st!==void 0&&st.style.height&&J(!0)},Je=!F&&!g&&!l;return P.createElement(zp,{ref:ee,value:I,allowClear:l,handleReset:Xe,suffix:Ae,prefixCls:h,classNames:z(z({},C),{},{affixWrapper:Z(C==null?void 0:C.affixWrapper,L(L({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:V,className:Z(S,pe&&"".concat(h,"-out-of-range")),style:z(z({},m),Q&&!Je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:E,readOnly:T,onClear:$},P.createElement(ew,Oe({},M,{autoSize:F,maxLength:c,onKeyDown:me,onChange:ne,onFocus:he,onBlur:rt,onCompositionStart:Me,onCompositionEnd:oe,className:Z(C==null?void 0:C.textarea),style:z(z({},x==null?void 0:x.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Ye,ref:re,readOnly:T})))}),nw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const aw=P.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:c,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:g}=e,p=nw(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:k}=Lt("TextArea");k(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:m,textArea:y}=u.useContext(it),E=fa(i),C=u.useContext(Qn),x=s??C,{status:w,hasFeedback:$,feedbackIcon:O}=u.useContext(Ja),T=rp(w,l),F=u.useRef(null);u.useImperativeHandle(t,()=>{var k;return{resizableTextArea:(k=F.current)===null||k===void 0?void 0:k.resizableTextArea,focus:V=>{var G,W;Kx((W=(G=F.current)===null||G===void 0?void 0:G.resizableTextArea)===null||W===void 0?void 0:W.textArea,V)},blur:()=>{var V;return(V=F.current)===null||V===void 0?void 0:V.blur()}}});const j=S("input",a),M=lc(j),[A,H,N]=Pp(j,M),[R,I]=np("textArea",g,o),D=Vp(c??(y==null?void 0:y.allowClear));return A(u.createElement(rw,Object.assign({autoComplete:y==null?void 0:y.autoComplete},p,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:x,allowClear:D,className:Z(N,M,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Z({[`${j}-sm`]:E==="small",[`${j}-lg`]:E==="large"},H,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Z({[`${j}-${R}`]:I},_l(j,T)),affixWrapper:Z(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:m==="rtl",[`${j}-affix-wrapper-sm`]:E==="small",[`${j}-affix-wrapper-lg`]:E==="large",[`${j}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:j,suffix:$&&u.createElement("span",{className:`${j}-textarea-suffix`},O),ref:F})))});function vi(e){return["small","middle","large"].includes(e)}function Od(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Bp=P.createContext({latestIndex:0}),ow=Bp.Provider,iw=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=u.useContext(Bp);return n==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:o},n),r<i&&a&&u.createElement("span",{className:`${t}-split`},a))};var sw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const lw=u.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=u.useContext(it),{size:l=(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"small",align:c,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:h,split:g,style:p,wrap:S=!1,classNames:m,styles:y}=e,E=sw(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,x]=Array.isArray(l)?l:[l,l],w=vi(x),$=vi(C),O=Od(x),T=Od(C),F=Ar(v,{keepEmpty:!0}),j=c===void 0&&b==="horizontal"?"center":c,M=o("space",h),[A,H,N]=Pv(M),R=Z(M,i==null?void 0:i.className,H,`${M}-${b}`,{[`${M}-rtl`]:s==="rtl",[`${M}-align-${j}`]:j,[`${M}-gap-row-${x}`]:w,[`${M}-gap-col-${C}`]:$},d,f,N),I=Z(`${M}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let D=0;const k=F.map((W,q)=>{var Y,Q;W!=null&&(D=q);const J=(W==null?void 0:W.key)||`${I}-${q}`;return u.createElement(iw,{className:I,key:J,index:q,split:g,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(Q=i==null?void 0:i.styles)===null||Q===void 0?void 0:Q.item},W)}),V=u.useMemo(()=>({latestIndex:D}),[D]);if(F.length===0)return null;const G={};return S&&(G.flexWrap="wrap"),!$&&T&&(G.columnGap=C),!w&&O&&(G.rowGap=x),A(u.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},G),i==null?void 0:i.style),p)},E),u.createElement(ow,{value:V},k)))}),ji=lw;ji.Compact=ay;process.env.NODE_ENV!=="production"&&(ji.displayName="Space");const Hp=["wrap","nowrap","wrap-reverse"],Wp=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Gp=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],cw=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&Hp.includes(r)}},uw=(e,t)=>{const r={};return Gp.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},dw=(e,t)=>{const r={};return Wp.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function fw(e,t){return Z(Object.assign(Object.assign(Object.assign({},cw(e,t)),uw(e,t)),dw(e,t)))}const vw=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},pw=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},mw=e=>{const{componentCls:t}=e,r={};return Hp.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},gw=e=>{const{componentCls:t}=e,r={};return Gp.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},hw=e=>{const{componentCls:t}=e,r={};return Wp.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},bw=()=>({}),yw=Or("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=Bt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[vw(a),pw(a),mw(a),gw(a),hw(a)]},bw,{resetStyle:!1});var Sw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Up=P.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:c=!1,component:d="div"}=e,f=Sw(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(it),g=h("flex",r),[p,S,m]=yw(g),y=c??(v==null?void 0:v.vertical),E=Z(a,n,v==null?void 0:v.className,g,S,m,fw(g,e),{[`${g}-rtl`]:b==="rtl",[`${g}-gap-${s}`]:vi(s),[`${g}-vertical`]:y}),C=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(C.flex=i),s&&!vi(s)&&(C.gap=s),p(P.createElement(d,Object.assign({ref:t,className:E,style:C},$r(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(Up.displayName="Flex");var Cw={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"},Ew=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:Cw}))},Kp=u.forwardRef(Ew);process.env.NODE_ENV!=="production"&&(Kp.displayName="CopyOutlined");var xw={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"},ww=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:xw}))},qp=u.forwardRef(ww);process.env.NODE_ENV!=="production"&&(qp.displayName="EditOutlined");var $w={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"},Ow=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:$w}))},Xp=u.forwardRef(Ow);process.env.NODE_ENV!=="production"&&(Xp.displayName="EnterOutlined");var Rw={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Pw=function(t,r){return u.createElement(tr,Oe({},t,{ref:r,icon:Rw}))},Yp=u.forwardRef(Pw);process.env.NODE_ENV!=="production"&&(Yp.displayName="InfoCircleOutlined");var _w=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Nw={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},zl=u.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===ue.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===ue.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=_w(e,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},Nw)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),a),u.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:r,onKeyUp:n,style:c}))}),Tw=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},Iw=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
216
216
  h${n}&,
217
217
  div&-h${n},
218
218
  div&-h${n} > textarea,
219
219
  h${n}
220
- `]=Mx(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},jx=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Pd(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"}}})}},Fx=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:yo[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}}),Lx=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${ee(n)})`},[`${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"}}}},Dx=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),zx=()=>({"\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"}}),Vx=e=>{const{componentCls:t,titleMarginTop:r}=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"}},Ax(e)),{[`
220
+ `]=Tw(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Mw=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},nv(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"}}})}},Aw=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:ri[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}}),jw=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${te(n)})`},[`${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"}}}},Fw=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Lw=()=>({"\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"}}),Dw=e=>{const{componentCls:t,titleMarginTop:r}=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"}},Iw(e)),{[`
221
221
  & + h1${t},
222
222
  & + h2${t},
223
223
  & + h3${t},
224
224
  & + h4${t},
225
225
  & + h5${t}
226
- `]:{marginTop:r},"\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:r}}}),Fx(e)),jx(e)),{[`
226
+ `]:{marginTop:r},"\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:r}}}),Aw(e)),Mw(e)),{[`
227
227
  ${t}-expand,
228
228
  ${t}-collapse,
229
229
  ${t}-edit,
230
230
  ${t}-copy
231
- `]:Object.assign(Object.assign({},Pd(e)),{marginInlineStart:e.marginXXS})}),Lx(e)),Dx(e)),zx()),{"&-rtl":{direction:"rtl"}})}},Bx=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),xv=br("Typography",e=>[Vx(e)],Bx),kx=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:b=c.createElement(Cv,null)}=e,h=c.useRef(null),p=c.useRef(!1),m=c.useRef(),[S,g]=c.useState(l);c.useEffect(()=>{g(l)},[l]),c.useEffect(()=>{var H;if(!((H=h.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=H=>{let{target:N}=H;g(N.value.replace(/[\n\r]/g,""))},E=()=>{p.current=!0},C=()=>{p.current=!1},x=H=>{let{keyCode:N}=H;p.current||(m.current=N)},R=()=>{u(S.trim())},w=H=>{let{keyCode:N,ctrlKey:O,altKey:I,metaKey:D,shiftKey:V}=H;m.current===N&&!p.current&&!O&&!I&&!D&&!V&&(N===le.ENTER?(R(),f==null||f()):N===le.ESC&&d())},$=()=>{R()},T=v?`${t}-${v}`:"",[F,j,A]=xv(t),M=Y(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,j,A);return F(c.createElement("div",{className:M,style:a},c.createElement(ix,{ref:h,maxLength:i,value:S,onChange:y,onKeyDown:x,onKeyUp:w,onCompositionStart:E,onCompositionEnd:C,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Do(b,{className:`${t}-edit-content-confirm`}):null))};var Hx=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},Wx=Hx,hu={"text/plain":"Text","text/html":"Url",default:"Text"},Gx="Copy to clipboard: #{key}, Enter";function Ux(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Kx(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=Wx(),o=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.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(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=hu[t.format]||hu.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=Ux("message"in t?t.message:Gx),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var qx=Kx;const Xx=wu(qx);var Yx=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{u(n.next(d))}catch(f){i(f)}}function l(d){try{u(n.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const Qx=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Bt(f=>Yx(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;Xx(b||String(r)||"",u),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(b){throw i(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function Ni(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const Zx=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},Jx=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var ew=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const El=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=ew(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(ot),h=l??v;let p=t;i&&(p=Or(t,i)),process.env.NODE_ENV!=="production"&&It("Typography").deprecated(!i,"setContentRef","ref");const m=f("typography",r),[S,g,y]=xv(m),E=Y(m,b==null?void 0:b.className,{[`${m}-rtl`]:h==="rtl"},a,o,g,y),C=Object.assign(Object.assign({},b==null?void 0:b.style),u);return S(c.createElement(n,Object.assign({className:E,style:C,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(El.displayName="Typography");function bu(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function to(e,t,r){return e===!0||e===void 0?t:e||r&&t}function tw(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),!(r.left<=n.left&&n.right<=r.right&&r.top<=n.top&&n.bottom<=r.bottom)}const rw=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=bu(o),f=bu(i),{copied:v,copy:b}=n??{},h=r?to(d[1],v):to(d[0],b),m=typeof h=="string"?h:r?v:b;return c.createElement(ja,{key:"copy",title:h},c.createElement(Hs,{className:Y(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":m,tabIndex:l},r?to(f[1],c.createElement(Nf,null),!0):to(f[0],s?c.createElement(ol,null):c.createElement(yv,null),!0)))},ro=c.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function wv(e){const t=typeof e;return t==="string"||t==="number"}function nw(e){let t=0;return e.forEach(r=>{wv(r)?t+=String(r).length:t+=1}),t}function yu(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=wv(o)?String(o).length:1,l=r+s;if(l>t){const u=t-r;return n.push(String(o).slice(0,u)),n}n.push(o),r=l}return e}const Ti=0,Ii=1,Mi=2,Ai=3,Su=4,no={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function aw(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>$r(n),[n]),d=c.useMemo(()=>nw(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),m=c.useRef(null),S=c.useRef(null),g=c.useRef(null),[y,E]=c.useState(!1),[C,x]=c.useState(Ti),[R,w]=c.useState(0),[$,T]=c.useState(null);yt(()=>{x(t&&r&&d?Ii:Ti)},[r,n,o,t,u]),yt(()=>{var M,H,N,O;if(C===Ii){x(Mi);const I=p.current&&getComputedStyle(p.current).whiteSpace;T(I)}else if(C===Mi){const I=!!(!((M=m.current)===null||M===void 0)&&M.isExceed());x(I?Ai:Su),b(I?[0,d]:null),E(I);const D=((H=m.current)===null||H===void 0?void 0:H.getHeight())||0,V=o===1?0:((N=S.current)===null||N===void 0?void 0:N.getHeight())||0,k=((O=g.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+k,W=Math.max(D,K);w(W+1),l(I)}},[C]);const F=v?Math.ceil((v[0]+v[1])/2):0;yt(()=>{var M;const[H,N]=v||[0,0];if(H!==N){const I=(((M=h.current)===null||M===void 0?void 0:M.getHeight())||0)>R;let D=F;N-H===1&&(D=I?H:N),b(I?[H,D]:[D,N])}},[v,F]);const j=c.useMemo(()=>{if(!t)return a(u,!1);if(C!==Ai||!v||v[0]!==v[1]){const M=a(u,!1);return C!==Su&&C!==Ti?c.createElement("span",{style:Object.assign(Object.assign({},no),{WebkitLineClamp:o})},M):M}return a(i?u:yu(u,v[0]),y)},[i,C,v,u].concat(ye(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,j,C===Mi&&c.createElement(c.Fragment,null,c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o}),ref:m},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o-1}),ref:S},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:1}),ref:g},a([],!0))),C===Ai&&v&&v[0]!==v[1]&&c.createElement(ro,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(yu(u,F),!0)),C===Ii&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const $v=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(ja,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&($v.displayName="EllipsisTooltip");var ow=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function iw(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,u=t;function d(f,v){v&&(u=c.createElement(f,{},u))}return d("strong",i),d("u",a),d("del",o),d("code",n),d("mark",r),d("kbd",s),d("i",l),u}const sw="...",Yo=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,m=ow(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:g}=c.useContext(ot),[y]=Mg("Text"),E=c.useRef(null),C=c.useRef(null),x=S("typography",o),R=hr(m,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Ni(v),[T,F]=or(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,A=ue=>{var Ee;ue&&((Ee=$.onStart)===null||Ee===void 0||Ee.call($)),F(ue)},M=Zx(T);Jx(()=>{var ue;!T&&M&&((ue=C.current)===null||ue===void 0||ue.focus())},[T]);const H=ue=>{ue==null||ue.preventDefault(),A(!0)},N=ue=>{var Ee;(Ee=$.onChange)===null||Ee===void 0||Ee.call($,ue),A(!1)},O=()=>{var ue;(ue=$.onCancel)===null||ue===void 0||ue.call($),A(!1)},[I,D]=Ni(b),{copied:V,copyLoading:k,onClick:K}=Qx({copyConfig:D,children:d}),[W,q]=c.useState(!1),[Q,Z]=c.useState(!1),[J,te]=c.useState(!1),[ae,fe]=c.useState(!1),[de,ve]=c.useState(!0),[we,B]=Ni(f,{expandable:!1,symbol:ue=>ue?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ce,se]=or(B.defaultExpanded||!1,{value:B.expanded}),Ce=we&&(!ce||B.expandable==="collapsible"),{rows:pe=1}=B,ne=c.useMemo(()=>Ce&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||I),[Ce,B,w,I]);yt(()=>{we&&!ne&&(q(jc("webkitLineClamp")),Z(jc("textOverflow")))},[ne,we]);const[me,xe]=c.useState(Ce),Me=c.useMemo(()=>ne?!1:pe===1?Q:W,[ne,Q,W]);yt(()=>{xe(Me&&Ce)},[Me,Ce]);const oe=Ce&&(me?ae:J),re=Ce&&pe===1&&me,ge=Ce&&pe>1&&me,he=(ue,Ee)=>{var Ke;se(Ee.expanded),(Ke=B.onExpand)===null||Ke===void 0||Ke.call(B,ue,Ee)},[tt,qe]=c.useState(0),Ae=ue=>{let{offsetWidth:Ee}=ue;qe(Ee)},Ue=ue=>{var Ee;te(ue),J!==ue&&((Ee=B.onEllipsis)===null||Ee===void 0||Ee.call(B,ue))};c.useEffect(()=>{const ue=E.current;if(we&&me&&ue){const Ee=tw(ue);ae!==Ee&&fe(Ee)}},[we,me,d,ge,de,tt]),c.useEffect(()=>{const ue=E.current;if(typeof IntersectionObserver>"u"||!ue||!me||!Ce)return;const Ee=new IntersectionObserver(()=>{ve(!!ue.offsetParent)});return Ee.observe(ue),()=>{Ee.disconnect()}},[me,Ce]);let Xe={};B.tooltip===!0?Xe={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Xe={title:B.tooltip}:typeof B.tooltip=="object"?Xe=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Xe={title:B.tooltip};const Ze=c.useMemo(()=>{const ue=Ee=>["string","number"].includes(typeof Ee);if(!(!we||me)){if(ue($.text))return $.text;if(ue(d))return d;if(ue(p))return p;if(ue(Xe.title))return Xe.title}},[we,me,p,Xe.title,oe]);if(T)return c.createElement(kx,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:O,onEnd:$.onEnd,prefixCls:x,className:i,style:s,direction:g,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Fe=()=>{const{expandable:ue,symbol:Ee}=B;return ue?c.createElement(Hs,{key:"expand",className:`${x}-${ce?"collapse":"expand"}`,onClick:Ke=>he(Ke,{expanded:!ce}),"aria-label":ce?y.collapse:y==null?void 0:y.expand},typeof Ee=="function"?Ee(ce):Ee):null},Ne=()=>{if(!w)return;const{icon:ue,tooltip:Ee,tabIndex:Ke}=$,rt=$r(Ee)[0]||(y==null?void 0:y.edit),bt=typeof rt=="string"?rt:"";return j.includes("icon")?c.createElement(ja,{key:"edit",title:Ee===!1?"":rt},c.createElement(Hs,{ref:C,className:`${x}-edit`,onClick:H,"aria-label":bt,tabIndex:Ke},ue||c.createElement(Sv,{role:"button"}))):null},it=()=>I?c.createElement(rw,Object.assign({key:"copy"},D,{prefixCls:x,copied:V,locale:y,onCopy:K,loading:k,iconOnly:d==null})):null,Ye=ue=>[ue&&Fe(),Ne(),it()],Le=ue=>[ue&&!ce&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},sw),B.suffix,Ye(ue)];return c.createElement(vr,{onResize:Ae,disabled:!Ce},ue=>c.createElement($v,{tooltipProps:Xe,enableEllipsis:Ce,isEllipsis:oe},c.createElement(El,Object.assign({className:Y({[`${x}-${l}`]:l,[`${x}-disabled`]:u,[`${x}-ellipsis`]:we,[`${x}-ellipsis-single-line`]:re,[`${x}-ellipsis-multiple-line`]:ge},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ge?pe:void 0}),component:h,ref:Or(ue,E,t),direction:g,onClick:j.includes("text")?H:void 0,"aria-label":Ze==null?void 0:Ze.toString(),title:p},R),c.createElement(aw,{enableMeasure:Ce&&!me,text:d,rows:pe,width:tt,onEllipsis:Ue,expanded:ce,miscDeps:[V,ce,k,w,I]},(Ee,Ke)=>iw(e,c.createElement(c.Fragment,null,Ee.length>0&&Ke&&!ce&&Ze?c.createElement("span",{key:"show-content","aria-hidden":!0},Ee):Ee,Le(Ke)))))))});var lw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const cw=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=lw(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=It("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(Yo,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),uw=c.forwardRef((e,t)=>c.createElement(Yo,Object.assign({ref:t},e,{component:"div"})));var dw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const fw=(e,t)=>{var{ellipsis:r}=e,n=dw(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?hr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=It("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(Yo,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},vw=c.forwardRef(fw);var mw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cu=[1,2,3,4,5],gw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=mw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=It("Typography.Title");process.env.NODE_ENV!=="production"&&o(Cu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Cu.includes(r)?a=`h${r}`:a="h1",c.createElement(Yo,Object.assign({ref:t},n,{component:a}))}),Yr=El;Yr.Text=vw;Yr.Link=cw;Yr.Title=gw;Yr.Paragraph=uw;const pw=({type:e="default",disabled:t=!1,label:r,onClick:n,...a})=>{const o=Y("gf-button",{"gf-button-primary":e==="primary"},a==null?void 0:a.className);return wt.jsx(Bo,{type:e,disabled:t,onClick:n,...a,className:o,children:r})},Ov=({cardType:e,...t})=>{const r=Y("gf-card",{"gf-card-default":e==="default","gf-card-grey":e==="grey","gf-card-debug":e==="debug"},t==null?void 0:t.className);return wt.jsx(qo,{...t,className:r})},Wr={style:{colorBgBase:"#FFFFFF",colorPrimaryHover:"#3858F2",colorBgDebug:"orange",colorBorder:"#EAECF0",colorTextSecondary:"#475467",colorTextHeading:"#1D2939",radiusSm:2,paddingMd:16}},{Text:hw}=Yr,bw=({disabled:e=!1,icon:t=Ev,title:r="Title",description:n,onClick:a,...o})=>{const[i,s]=P.useState(!1),l={backgroundColor:Wr.style.colorBgBase,border:`1px solid ${i?Wr.style.colorPrimaryHover:Wr.style.colorBorder}`,borderRadius:Wr.style.radiusSm,padding:Wr.style.paddingMd},u={color:i?Wr.style.colorPrimaryHover:Wr.style.colorTextHeading,fontWeight:700};return wt.jsxs("div",{style:l,onClick:()=>a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...o,children:[wt.jsxs(ks,{gutter:16,children:[wt.jsx(sa,{span:1,children:t}),wt.jsx(sa,{span:23,children:wt.jsx(hw,{style:u,children:r})})]}),wt.jsxs(ks,{gutter:16,children:[wt.jsx(sa,{span:1}),wt.jsx(sa,{span:23,children:n})]})]})},{Paragraph:yw}=Yr,Sw=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return wt.jsx(Ov,{className:"gf-metrics",cardType:"grey",...a,children:wt.jsxs(bv,{vertical:!0,gap:8,children:[wt.jsxs(Xo,{direction:"horizontal",size:16,align:"end",children:[wt.jsx("text",{className:"gf-value-bold",children:`${e}%`}),wt.jsx("text",{className:"gf-cost-italic",children:`€${t} md`})]}),wt.jsx(yw,{className:"gf-metrics-description",editable:s,children:o})]})})},{Text:Eu}=Yr,Cw=({title:e,subtitle:t,type:r="primary"})=>{const n=Y({"gf-title-primary":r==="primary","gf-title-secondary":r==="secondary"}),a=Y({"gf-subtitle-primary":r==="primary","gf-subtitle-secondary":r==="secondary"});return wt.jsxs(Xo,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[wt.jsx(Eu,{className:n,children:e}),wt.jsx(Eu,{className:a,children:t})]})},{Text:Ew}=Yr,xw=({text:e,columns:t=2,editable:r=!1,style:n,className:a})=>{const[o,i]=P.useState(e),s=r?{onChange:i}:!1,l=Y(`gf-description-${t}`,a);return wt.jsx("div",{className:l,style:n||{},children:wt.jsx(Ew,{className:"gf-description-body",editable:s,children:o})})};exports.Description=xw;exports.GFButton=pw;exports.GFCard=Ov;exports.Metrics=Sw;exports.NavCard=bw;exports.Title=Cw;exports.globals=Wr;
231
+ `]:Object.assign(Object.assign({},nv(e)),{marginInlineStart:e.marginXXS})}),jw(e)),Fw(e)),Lw()),{"&-rtl":{direction:"rtl"}})}},zw=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Zp=Or("Typography",e=>[Dw(e)],zw),kw=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:c,onCancel:d,onEnd:f,component:v,enterIcon:b=u.createElement(Xp,null)}=e,h=u.useRef(null),g=u.useRef(!1),p=u.useRef(),[S,m]=u.useState(l);u.useEffect(()=>{m(l)},[l]),u.useEffect(()=>{var H;if(!((H=h.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:R}=N.value;N.setSelectionRange(R,R)}},[]);const y=H=>{let{target:N}=H;m(N.value.replace(/[\n\r]/g,""))},E=()=>{g.current=!0},C=()=>{g.current=!1},x=H=>{let{keyCode:N}=H;g.current||(p.current=N)},w=()=>{c(S.trim())},$=H=>{let{keyCode:N,ctrlKey:R,altKey:I,metaKey:D,shiftKey:k}=H;p.current===N&&!g.current&&!R&&!I&&!D&&!k&&(N===ue.ENTER?(w(),f==null||f()):N===ue.ESC&&d())},O=()=>{w()},T=v?`${t}-${v}`:"",[F,j,M]=Zp(t),A=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,j,M);return F(u.createElement("div",{className:A,style:a},u.createElement(aw,{ref:h,maxLength:i,value:S,onChange:y,onKeyDown:x,onKeyUp:$,onCompositionStart:E,onCompositionEnd:C,onBlur:O,"aria-label":r,rows:1,autoSize:s}),b!==null?wi(b,{className:`${t}-edit-content-confirm`}):null))};var Vw=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},Bw=Vw,Rd={"text/plain":"Text","text/html":"Url",default:"Text"},Hw="Copy to clipboard: #{key}, Enter";function Ww(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Gw(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=Bw(),o=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.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(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Rd[t.format]||Rd.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=Ww("message"in t?t.message:Hw),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var Uw=Gw;const Kw=Qd(Uw);var qw=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{c(n.next(d))}catch(f){i(f)}}function l(d){try{c(n.throw(d))}catch(f){i(f)}}function c(d){d.done?o(d.value):a(d.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Xw=e=>{let{copyConfig:t,children:r}=e;const[n,a]=u.useState(!1),[o,i]=u.useState(!1),s=u.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),u.useEffect(()=>l,[]);const d=Ut(f=>qw(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;Kw(b||String(r)||"",c),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(b){throw i(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function Es(e,t){return u.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const Yw=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},Zw=(e,t)=>{const r=u.useRef(!1);u.useEffect(()=>{r.current?e():r.current=!0},t)};var Qw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Oc=u.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:c}=e,d=Qw(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=u.useContext(it),h=l??v;let g=t;i&&(g=jr(t,i)),process.env.NODE_ENV!=="production"&&Lt("Typography").deprecated(!i,"setContentRef","ref");const p=f("typography",r),[S,m,y]=Zp(p),E=Z(p,b==null?void 0:b.className,{[`${p}-rtl`]:h==="rtl"},a,o,m,y),C=Object.assign(Object.assign({},b==null?void 0:b.style),c);return S(u.createElement(n,Object.assign({className:E,style:C,ref:g},d),s))});process.env.NODE_ENV!=="production"&&(Oc.displayName="Typography");function Pd(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function No(e,t,r){return e===!0||e===void 0?t:e||r&&t}function Jw(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),!(r.left<=n.left&&n.right<=r.right&&r.top<=n.top&&n.bottom<=r.bottom)}const e$=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:c}=e,d=Pd(o),f=Pd(i),{copied:v,copy:b}=n??{},h=r?No(d[1],v):No(d[0],b),p=typeof h=="string"?h:r?v:b;return u.createElement(co,{key:"copy",title:h},u.createElement(zl,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":p,tabIndex:l},r?No(f[1],u.createElement(ap,null),!0):No(f[0],s?u.createElement(cc,null):u.createElement(Kp,null),!0)))},To=u.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=u.useRef(null);return u.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function Qp(e){const t=typeof e;return t==="string"||t==="number"}function t$(e){let t=0;return e.forEach(r=>{Qp(r)?t+=String(r).length:t+=1}),t}function _d(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Qp(o)?String(o).length:1,l=r+s;if(l>t){const c=t-r;return n.push(String(o).slice(0,c)),n}n.push(o),r=l}return e}const xs=0,ws=1,$s=2,Os=3,Nd=4,Io={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function r$(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,c=u.useMemo(()=>Ar(n),[n]),d=u.useMemo(()=>t$(c),[n]),f=u.useMemo(()=>a(c,!1),[n]),[v,b]=u.useState(null),h=u.useRef(null),g=u.useRef(null),p=u.useRef(null),S=u.useRef(null),m=u.useRef(null),[y,E]=u.useState(!1),[C,x]=u.useState(xs),[w,$]=u.useState(0),[O,T]=u.useState(null);Et(()=>{x(t&&r&&d?ws:xs)},[r,n,o,t,c]),Et(()=>{var A,H,N,R;if(C===ws){x($s);const I=g.current&&getComputedStyle(g.current).whiteSpace;T(I)}else if(C===$s){const I=!!(!((A=p.current)===null||A===void 0)&&A.isExceed());x(I?Os:Nd),b(I?[0,d]:null),E(I);const D=((H=p.current)===null||H===void 0?void 0:H.getHeight())||0,k=o===1?0:((N=S.current)===null||N===void 0?void 0:N.getHeight())||0,V=((R=m.current)===null||R===void 0?void 0:R.getHeight())||0,G=k+V,W=Math.max(D,G);$(W+1),l(I)}},[C]);const F=v?Math.ceil((v[0]+v[1])/2):0;Et(()=>{var A;const[H,N]=v||[0,0];if(H!==N){const I=(((A=h.current)===null||A===void 0?void 0:A.getHeight())||0)>w;let D=F;N-H===1&&(D=I?H:N),b(I?[H,D]:[D,N])}},[v,F]);const j=u.useMemo(()=>{if(!t)return a(c,!1);if(C!==Os||!v||v[0]!==v[1]){const A=a(c,!1);return C!==Nd&&C!==xs?u.createElement("span",{style:Object.assign(Object.assign({},Io),{WebkitLineClamp:o})},A):A}return a(i?c:_d(c,v[0]),y)},[i,C,v,c].concat(ye(s))),M={width:r,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,j,C===$s&&u.createElement(u.Fragment,null,u.createElement(To,{style:Object.assign(Object.assign(Object.assign({},M),Io),{WebkitLineClamp:o}),ref:p},f),u.createElement(To,{style:Object.assign(Object.assign(Object.assign({},M),Io),{WebkitLineClamp:o-1}),ref:S},f),u.createElement(To,{style:Object.assign(Object.assign(Object.assign({},M),Io),{WebkitLineClamp:1}),ref:m},a([],!0))),C===Os&&v&&v[0]!==v[1]&&u.createElement(To,{style:Object.assign(Object.assign({},M),{top:400}),ref:h},a(_d(c,F),!0)),C===ws&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const Jp=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:u.createElement(co,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Jp.displayName="EllipsisTooltip");var n$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function a$(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,c=t;function d(f,v){v&&(c=u.createElement(f,{},c))}return d("strong",i),d("u",a),d("del",o),d("code",n),d("mark",r),d("kbd",s),d("i",l),c}const o$="...",Fi=u.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:c,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:g}=e,p=n$(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:m}=u.useContext(it),[y]=Th("Text"),E=u.useRef(null),C=u.useRef(null),x=S("typography",o),w=$r(p,["mark","code","delete","underline","strong","keyboard","italic"]),[$,O]=Es(v),[T,F]=dr(!1,{value:O.editing}),{triggerType:j=["icon"]}=O,M=ve=>{var Ee;ve&&((Ee=O.onStart)===null||Ee===void 0||Ee.call(O)),F(ve)},A=Yw(T);Zw(()=>{var ve;!T&&A&&((ve=C.current)===null||ve===void 0||ve.focus())},[T]);const H=ve=>{ve==null||ve.preventDefault(),M(!0)},N=ve=>{var Ee;(Ee=O.onChange)===null||Ee===void 0||Ee.call(O,ve),M(!1)},R=()=>{var ve;(ve=O.onCancel)===null||ve===void 0||ve.call(O),M(!1)},[I,D]=Es(b),{copied:k,copyLoading:V,onClick:G}=Xw({copyConfig:D,children:d}),[W,q]=u.useState(!1),[Y,Q]=u.useState(!1),[J,ee]=u.useState(!1),[re,de]=u.useState(!1),[se,le]=u.useState(!0),[we,B]=Es(f,{expandable:!1,symbol:ve=>ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[fe,ce]=dr(B.defaultExpanded||!1,{value:B.expanded}),Ce=we&&(!fe||B.expandable==="collapsible"),{rows:ge=1}=B,ae=u.useMemo(()=>Ce&&(B.suffix!==void 0||B.onEllipsis||B.expandable||$||I),[Ce,B,$,I]);Et(()=>{we&&!ae&&(q(Gu("webkitLineClamp")),Q(Gu("textOverflow")))},[ae,we]);const[pe,xe]=u.useState(Ce),Me=u.useMemo(()=>ae?!1:ge===1?Y:W,[ae,Y,W]);Et(()=>{xe(Me&&Ce)},[Me,Ce]);const oe=Ce&&(pe?re:J),ne=Ce&&ge===1&&pe,me=Ce&&ge>1&&pe,he=(ve,Ee)=>{var qe;ce(Ee.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,ve,Ee)},[rt,Xe]=u.useState(0),Ae=ve=>{let{offsetWidth:Ee}=ve;Xe(Ee)},Ke=ve=>{var Ee;ee(ve),J!==ve&&((Ee=B.onEllipsis)===null||Ee===void 0||Ee.call(B,ve))};u.useEffect(()=>{const ve=E.current;if(we&&pe&&ve){const Ee=Jw(ve);re!==Ee&&de(Ee)}},[we,pe,d,me,se,rt]),u.useEffect(()=>{const ve=E.current;if(typeof IntersectionObserver>"u"||!ve||!pe||!Ce)return;const Ee=new IntersectionObserver(()=>{le(!!ve.offsetParent)});return Ee.observe(ve),()=>{Ee.disconnect()}},[pe,Ce]);let Ye={};B.tooltip===!0?Ye={title:(r=O.text)!==null&&r!==void 0?r:d}:u.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=O.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const Je=u.useMemo(()=>{const ve=Ee=>["string","number"].includes(typeof Ee);if(!(!we||pe)){if(ve(O.text))return O.text;if(ve(d))return d;if(ve(g))return g;if(ve(Ye.title))return Ye.title}},[we,pe,g,Ye.title,oe]);if(T)return u.createElement(kw,{value:(a=O.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:R,onEnd:O.onEnd,prefixCls:x,className:i,style:s,direction:m,component:h,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const Fe=()=>{const{expandable:ve,symbol:Ee}=B;return ve?u.createElement(zl,{key:"expand",className:`${x}-${fe?"collapse":"expand"}`,onClick:qe=>he(qe,{expanded:!fe}),"aria-label":fe?y.collapse:y==null?void 0:y.expand},typeof Ee=="function"?Ee(fe):Ee):null},Ne=()=>{if(!$)return;const{icon:ve,tooltip:Ee,tabIndex:qe}=O,nt=Ar(Ee)[0]||(y==null?void 0:y.edit),Ct=typeof nt=="string"?nt:"";return j.includes("icon")?u.createElement(co,{key:"edit",title:Ee===!1?"":nt},u.createElement(zl,{ref:C,className:`${x}-edit`,onClick:H,"aria-label":Ct,tabIndex:qe},ve||u.createElement(qp,{role:"button"}))):null},st=()=>I?u.createElement(e$,Object.assign({key:"copy"},D,{prefixCls:x,copied:k,locale:y,onCopy:G,loading:V,iconOnly:d==null})):null,Ze=ve=>[ve&&Fe(),Ne(),st()],Le=ve=>[ve&&!fe&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},o$),B.suffix,Ze(ve)];return u.createElement(Sr,{onResize:Ae,disabled:!Ce},ve=>u.createElement(Jp,{tooltipProps:Ye,enableEllipsis:Ce,isEllipsis:oe},u.createElement(Oc,Object.assign({className:Z({[`${x}-${l}`]:l,[`${x}-disabled`]:c,[`${x}-ellipsis`]:we,[`${x}-ellipsis-single-line`]:ne,[`${x}-ellipsis-multiple-line`]:me},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:me?ge:void 0}),component:h,ref:jr(ve,E,t),direction:m,onClick:j.includes("text")?H:void 0,"aria-label":Je==null?void 0:Je.toString(),title:g},w),u.createElement(r$,{enableMeasure:Ce&&!pe,text:d,rows:ge,width:rt,onEllipsis:Ke,expanded:fe,miscDeps:[k,fe,V,$,I]},(Ee,qe)=>a$(e,u.createElement(u.Fragment,null,Ee.length>0&&qe&&!fe&&Je?u.createElement("span",{key:"show-content","aria-hidden":!0},Ee):Ee,Le(qe)))))))});var i$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const s$=u.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=i$(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Lt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,u.createElement(Fi,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),l$=u.forwardRef((e,t)=>u.createElement(Fi,Object.assign({ref:t},e,{component:"div"})));var c$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const u$=(e,t)=>{var{ellipsis:r}=e,n=c$(e,["ellipsis"]);const a=u.useMemo(()=>r&&typeof r=="object"?$r(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Lt("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return u.createElement(Fi,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},d$=u.forwardRef(u$);var f$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Td=[1,2,3,4,5],v$=u.forwardRef((e,t)=>{const{level:r=1}=e,n=f$(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Lt("Typography.Title");process.env.NODE_ENV!=="production"&&o(Td.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Td.includes(r)?a=`h${r}`:a="h1",u.createElement(Fi,Object.assign({ref:t},n,{component:a}))}),ln=Oc;ln.Text=d$;ln.Link=s$;ln.Title=v$;ln.Paragraph=l$;var er=function(){return er=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},er.apply(this,arguments)};function ta(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function p$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var m$=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,g$=p$(function(e){return m$.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),yt="-ms-",za="-moz-",dt="-webkit-",em="comm",Li="rule",Rc="decl",h$="@import",tm="@keyframes",b$="@layer",rm=Math.abs,Pc=String.fromCharCode,kl=Object.assign;function y$(e,t){return Ft(e,0)^45?(((t<<2^Ft(e,0))<<2^Ft(e,1))<<2^Ft(e,2))<<2^Ft(e,3):0}function nm(e){return e.trim()}function Br(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,r){return e.replace(t,r)}function qo(e,t,r){return e.indexOf(t,r)}function Ft(e,t){return e.charCodeAt(t)|0}function ra(e,t,r){return e.slice(t,r)}function Ir(e){return e.length}function am(e){return e.length}function Ma(e,t){return t.push(e),e}function S$(e,t){return e.map(t).join("")}function Id(e,t){return e.filter(function(r){return!Br(r,t)})}var Di=1,na=1,om=0,vr=0,Nt=0,pa="";function zi(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Di,column:na,length:i,return:"",siblings:s}}function en(e,t){return kl(zi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Dn(e){for(;e.root;)e=en(e.root,{children:[e]});Ma(e,e.siblings)}function C$(){return Nt}function E$(){return Nt=vr>0?Ft(pa,--vr):0,na--,Nt===10&&(na=1,Di--),Nt}function xr(){return Nt=vr<om?Ft(pa,vr++):0,na++,Nt===10&&(na=1,Di++),Nt}function yn(){return Ft(pa,vr)}function Xo(){return vr}function ki(e,t){return ra(pa,e,t)}function Vl(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 x$(e){return Di=na=1,om=Ir(pa=e),vr=0,[]}function w$(e){return pa="",e}function Rs(e){return nm(ki(vr-1,Bl(e===91?e+2:e===40?e+1:e)))}function $$(e){for(;(Nt=yn())&&Nt<33;)xr();return Vl(e)>2||Vl(Nt)>3?"":" "}function O$(e,t){for(;--t&&xr()&&!(Nt<48||Nt>102||Nt>57&&Nt<65||Nt>70&&Nt<97););return ki(e,Xo()+(t<6&&yn()==32&&xr()==32))}function Bl(e){for(;xr();)switch(Nt){case e:return vr;case 34:case 39:e!==34&&e!==39&&Bl(Nt);break;case 40:e===41&&Bl(e);break;case 92:xr();break}return vr}function R$(e,t){for(;xr()&&e+Nt!==57;)if(e+Nt===84&&yn()===47)break;return"/*"+ki(t,vr-1)+"*"+Pc(e===47?e:xr())}function P$(e){for(;!Vl(yn());)xr();return ki(e,vr)}function _$(e){return w$(Yo("",null,null,null,[""],e=x$(e),0,[0],e))}function Yo(e,t,r,n,a,o,i,s,l){for(var c=0,d=0,f=i,v=0,b=0,h=0,g=1,p=1,S=1,m=0,y="",E=a,C=o,x=n,w=y;p;)switch(h=m,m=xr()){case 40:if(h!=108&&Ft(w,f-1)==58){qo(w+=Ve(Rs(m),"&","&\f"),"&\f",rm(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:w+=Rs(m);break;case 9:case 10:case 13:case 32:w+=$$(h);break;case 92:w+=O$(Xo()-1,7);continue;case 47:switch(yn()){case 42:case 47:Ma(N$(R$(xr(),Xo()),t,r,l),l);break;default:w+="/"}break;case 123*g:s[c++]=Ir(w)*S;case 125*g:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+d:S==-1&&(w=Ve(w,/\f/g,"")),b>0&&Ir(w)-f&&Ma(b>32?Ad(w+";",n,r,f-1,l):Ad(Ve(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(Ma(x=Md(w,t,r,c,d,a,s,y,E=[],C=[],f,o),o),m===123)if(d===0)Yo(w,t,x,x,E,o,f,s,C);else switch(v===99&&Ft(w,3)===110?100:v){case 100:case 108:case 109:case 115:Yo(e,x,x,n&&Ma(Md(e,x,x,0,0,a,s,y,a,E=[],f,C),C),a,C,f,s,n?E:C);break;default:Yo(w,x,x,x,[""],C,0,s,C)}}c=d=b=0,g=S=1,y=w="",f=i;break;case 58:f=1+Ir(w),b=h;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&E$()==125)continue}switch(w+=Pc(m),m*g){case 38:S=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(Ir(w)-1)*S,S=1;break;case 64:yn()===45&&(w+=Rs(xr())),v=yn(),d=f=Ir(y=w+=P$(Xo())),m++;break;case 45:h===45&&Ir(w)==2&&(g=0)}}return o}function Md(e,t,r,n,a,o,i,s,l,c,d,f){for(var v=a-1,b=a===0?o:[""],h=am(b),g=0,p=0,S=0;g<n;++g)for(var m=0,y=ra(e,v+1,v=rm(p=i[g])),E=e;m<h;++m)(E=nm(p>0?b[m]+" "+y:Ve(y,/&\f/g,b[m])))&&(l[S++]=E);return zi(e,t,r,a===0?Li:s,l,c,d,f)}function N$(e,t,r,n){return zi(e,t,r,em,Pc(C$()),ra(e,2,-2),0,n)}function Ad(e,t,r,n,a){return zi(e,t,r,Rc,ra(e,0,n),ra(e,n+1,-1),n,a)}function im(e,t,r){switch(y$(e,t)){case 5103:return dt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+e+e;case 4789:return za+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+za+e+yt+e+e;case 5936:switch(Ft(e,t+11)){case 114:return dt+e+yt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+yt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+yt+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return dt+e+yt+e+e;case 6165:return dt+e+yt+"flex-"+e+e;case 5187:return dt+e+Ve(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+yt+"flex-$1$2")+e;case 5443:return dt+e+yt+"flex-item-"+Ve(e,/flex-|-self/g,"")+(Br(e,/flex-|baseline/)?"":yt+"grid-row-"+Ve(e,/flex-|-self/g,""))+e;case 4675:return dt+e+yt+"flex-line-pack"+Ve(e,/align-content|flex-|-self/g,"")+e;case 5548:return dt+e+yt+Ve(e,"shrink","negative")+e;case 5292:return dt+e+yt+Ve(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+Ve(e,"-grow","")+dt+e+yt+Ve(e,"grow","positive")+e;case 4554:return dt+Ve(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4200:if(!Br(e,/flex-|baseline/))return yt+"grid-column-align"+ra(e,t)+e;break;case 2592:case 3360:return yt+Ve(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,a){return t=a,Br(n.props,/grid-\w+-end/)})?~qo(e+(r=r[t].value),"span",0)?e:yt+Ve(e,"-start","")+e+yt+"grid-row-span:"+(~qo(r,"span",0)?Br(r,/\d+/):+Br(r,/\d+/)-+Br(e,/\d+/))+";":yt+Ve(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Br(n.props,/grid-\w+-start/)})?e:yt+Ve(Ve(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,dt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ir(e)-1-t>6)switch(Ft(e,t+1)){case 109:if(Ft(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+za+(Ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qo(e,"stretch",0)?im(Ve(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ve(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,a,o,i,s,l,c){return yt+a+":"+o+c+(i?yt+a+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(Ft(e,t+6)===121)return Ve(e,":",":"+dt)+e;break;case 6444:switch(Ft(e,Ft(e,14)===45?18:11)){case 120:return Ve(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+dt+(Ft(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+yt+"$2box$3")+e;case 100:return Ve(e,":",":"+yt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ve(e,"scroll-","scroll-snap-")+e}return e}function pi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function T$(e,t,r,n){switch(e.type){case b$:if(e.children.length)break;case h$:case Rc:return e.return=e.return||e.value;case em:return"";case tm:return e.return=e.value+"{"+pi(e.children,n)+"}";case Li:if(!Ir(e.value=e.props.join(",")))return""}return Ir(r=pi(e.children,n))?e.return=e.value+"{"+r+"}":""}function I$(e){var t=am(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}function M$(e){return function(t){t.root||(t=t.return)&&e(t)}}function A$(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Rc:e.return=im(e.value,e.length,r);return;case tm:return pi([en(e,{value:Ve(e.value,"@","@"+dt)})],n);case Li:if(e.length)return S$(r=e.props,function(a){switch(Br(a,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Dn(en(e,{props:[Ve(a,/:(read-\w+)/,":"+za+"$1")]})),Dn(en(e,{props:[a]})),kl(e,{props:Id(r,n)});break;case"::placeholder":Dn(en(e,{props:[Ve(a,/:(plac\w+)/,":"+dt+"input-$1")]})),Dn(en(e,{props:[Ve(a,/:(plac\w+)/,":"+za+"$1")]})),Dn(en(e,{props:[Ve(a,/:(plac\w+)/,yt+"input-$1")]})),Dn(en(e,{props:[a]})),kl(e,{props:Id(r,n)});break}return""})}}var j$={animationIterationCount:1,aspectRatio: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},Cn=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",sm="active",lm="data-styled-version",Vi="6.1.13",_c=`/*!sc*/
232
+ `,mi=typeof window<"u"&&"HTMLElement"in window,F$=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),jd=/invalid hook call/i,Mo=new Set,L$=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
233
+ `)+`You may see this warning because you've called styled inside another component.
234
+ To resolve this only create new StyledComponents outside of any render method and function component.`,a=console.error;try{var o=!0;console.error=function(i){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];jd.test(i)?(o=!1,Mo.delete(n)):a.apply(void 0,ta([i],s,!1))},P.useRef(),o&&!Mo.has(n)&&(console.warn(n),Mo.add(n))}catch(i){jd.test(i.message)&&Mo.delete(n)}finally{console.error=a}}},Bi=Object.freeze([]),aa=Object.freeze({});function D$(e,t,r){return r===void 0&&(r=aa),e.theme!==r.theme&&e.theme||t||r.theme}var Hl=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),z$=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,k$=/(^-|-$)/g;function Fd(e){return e.replace(z$,"-").replace(k$,"")}var V$=/(a)(d)/gi,Ao=52,Ld=function(e){return String.fromCharCode(e+(e>25?39:97))};function Wl(e){var t,r="";for(t=Math.abs(e);t>Ao;t=t/Ao|0)r=Ld(t%Ao)+r;return(Ld(t%Ao)+r).replace(V$,"$1-$2")}var Ps,cm=5381,pn=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},um=function(e){return pn(cm,e)};function B$(e){return Wl(um(e)>>>0)}function dm(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function _s(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var fm=typeof Symbol=="function"&&Symbol.for,vm=fm?Symbol.for("react.memo"):60115,H$=fm?Symbol.for("react.forward_ref"):60112,W$={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G$={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},U$=((Ps={})[H$]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ps[vm]=pm,Ps);function Dd(e){return("type"in(t=e)&&t.type.$$typeof)===vm?pm:"$$typeof"in e?U$[e.$$typeof]:W$;var t}var K$=Object.defineProperty,q$=Object.getOwnPropertyNames,zd=Object.getOwnPropertySymbols,X$=Object.getOwnPropertyDescriptor,Y$=Object.getPrototypeOf,kd=Object.prototype;function mm(e,t,r){if(typeof t!="string"){if(kd){var n=Y$(t);n&&n!==kd&&mm(e,n,r)}var a=q$(t);zd&&(a=a.concat(zd(t)));for(var o=Dd(e),i=Dd(t),s=0;s<a.length;++s){var l=a[s];if(!(l in G$||r&&r[l]||i&&l in i||o&&l in o)){var c=X$(t,l);try{K$(e,l,c)}catch{}}}}return e}function oa(e){return typeof e=="function"}function Nc(e){return typeof e=="object"&&"styledComponentId"in e}function hn(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Vd(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function ia(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Gl(e,t,r){if(r===void 0&&(r=!1),!r&&!ia(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Gl(e[n],t[n]);else if(ia(t))for(var n in t)e[n]=Gl(e[n],t[n]);return e}function Tc(e,t){Object.defineProperty(e,"toString",{value:t})}var Z$=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
235
+
236
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
237
+
238
+ - Are you trying to reuse it across renders?
239
+ - Are you accidentally calling collectStyles twice?
240
+
241
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
242
+
243
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
244
+
245
+ - Does this error occur on the client and is your target falsy?
246
+ - Does this error occur on the server and is the sheet falsy?
247
+
248
+ `,5:`The clone method cannot be used on the client!
249
+
250
+ - Are you running in a client-like environment on the server?
251
+ - Are you trying to run SSR on the client?
252
+
253
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
254
+
255
+ - Are you using a custom target that isn't mounted?
256
+ - Does your document not have a valid head element?
257
+ - Have you accidentally removed a style tag manually?
258
+
259
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
260
+
261
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
262
+
263
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
264
+
265
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
266
+
267
+ `,14:`ThemeProvider: "theme" prop is required.
268
+
269
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
270
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
271
+ as for instance in your render method then you may be running into this limitation.
272
+
273
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
274
+ Has styled-components' style tag been unmounted or altered by another script?
275
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Q$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],a=1,o=e.length;a<o;a+=1)n.push(e[a]);return n.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function ma(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Q$.apply(void 0,ta([Z$[e]],t,!1)).trim())}var J$=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,a=n.length,o=a;t>=o;)if((o<<=1)<0)throw ma(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=a;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),a=n+r;this.groupSizes[t]=0;for(var o=n;o<a;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],a=this.indexOfGroup(t),o=a+n,i=a;i<o;i++)r+="".concat(this.tag.getRule(i)).concat(_c);return r},e}(),eO=1<<30,Zo=new Map,gi=new Map,Qo=1,jo=function(e){if(Zo.has(e))return Zo.get(e);for(;gi.has(Qo);)Qo++;var t=Qo++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>eO))throw ma(16,"".concat(t));return Zo.set(e,t),gi.set(t,e),t},tO=function(e,t){Qo=t+1,Zo.set(e,t),gi.set(t,e)},rO="style[".concat(Cn,"][").concat(lm,'="').concat(Vi,'"]'),nO=new RegExp("^".concat(Cn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),aO=function(e,t,r){for(var n,a=r.split(","),o=0,i=a.length;o<i;o++)(n=a[o])&&e.registerName(t,n)},oO=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(_c),a=[],o=0,i=n.length;o<i;o++){var s=n[o].trim();if(s){var l=s.match(nO);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(tO(d,c),aO(e,d,l[3]),e.getTag().insertRules(c,a)),a.length=0}else a.push(s)}}},Bd=function(e){for(var t=document.querySelectorAll(rO),r=0,n=t.length;r<n;r++){var a=t[r];a&&a.getAttribute(Cn)!==sm&&(oO(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function iO(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var gm=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(s){var l=Array.from(s.querySelectorAll("style[".concat(Cn,"]")));return l[l.length-1]}(r),o=a!==void 0?a.nextSibling:null;n.setAttribute(Cn,sm),n.setAttribute(lm,Vi);var i=iO();return i&&n.setAttribute("nonce",i),r.insertBefore(n,o),n},sO=function(){function e(t){this.element=gm(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,a=0,o=n.length;a<o;a++){var i=n[a];if(i.ownerNode===r)return i}throw ma(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),lO=function(){function e(t){this.element=gm(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),cO=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Hd=mi,uO={isServer:!mi,useCSSOMInjection:!F$},hm=function(){function e(t,r,n){t===void 0&&(t=aa),r===void 0&&(r={});var a=this;this.options=er(er({},uO),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&mi&&Hd&&(Hd=!1,Bd(this)),Tc(this,function(){return function(o){for(var i=o.getTag(),s=i.length,l="",c=function(f){var v=function(S){return gi.get(S)}(f);if(v===void 0)return"continue";var b=o.names.get(v),h=i.getGroup(f);if(b===void 0||!b.size||h.length===0)return"continue";var g="".concat(Cn,".g").concat(f,'[id="').concat(v,'"]'),p="";b!==void 0&&b.forEach(function(S){S.length>0&&(p+="".concat(S,","))}),l+="".concat(h).concat(g,'{content:"').concat(p,'"}').concat(_c)},d=0;d<s;d++)c(d);return l}(a)})}return e.registerId=function(t){return jo(t)},e.prototype.rehydrate=function(){!this.server&&mi&&Bd(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(er(er({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,a=r.target;return r.isServer?new cO(a):n?new sO(a):new lO(a)}(this.options),new J$(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(jo(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(jo(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(jo(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),dO=/&/g,fO=/^\s*\/\/.*$/gm;function bm(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=bm(r.children,t)),r})}function vO(e){var t,r,n,a=aa,o=a.options,i=o===void 0?aa:o,s=a.plugins,l=s===void 0?Bi:s,c=function(v,b,h){return h.startsWith(r)&&h.endsWith(r)&&h.replaceAll(r,"").length>0?".".concat(t):v},d=l.slice();d.push(function(v){v.type===Li&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(dO,r).replace(n,c))}),i.prefix&&d.push(A$),d.push(T$);var f=function(v,b,h,g){b===void 0&&(b=""),h===void 0&&(h=""),g===void 0&&(g="&"),t=g,r=b,n=new RegExp("\\".concat(r,"\\b"),"g");var p=v.replace(fO,""),S=_$(h||b?"".concat(h," ").concat(b," { ").concat(p," }"):p);i.namespace&&(S=bm(S,i.namespace));var m=[];return pi(S,I$(d.concat(M$(function(y){return m.push(y)})))),m};return f.hash=l.length?l.reduce(function(v,b){return b.name||ma(15),pn(v,b.name)},cm).toString():"",f}var pO=new hm,Ul=vO(),ym=P.createContext({shouldForwardProp:void 0,styleSheet:pO,stylis:Ul});ym.Consumer;P.createContext(void 0);function Wd(){return P.useContext(ym)}var Gd=function(){function e(t,r){var n=this;this.inject=function(a,o){o===void 0&&(o=Ul);var i=n.name+o.hash;a.hasNameForId(n.id,i)||a.insertRules(n.id,i,o(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Tc(this,function(){throw ma(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ul),this.name+t.hash},e}(),mO=function(e){return e>="A"&&e<="Z"};function Ud(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;mO(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Sm=function(e){return e==null||e===!1||e===""},Cm=function(e){var t,r,n=[];for(var a in e){var o=e[a];e.hasOwnProperty(a)&&!Sm(o)&&(Array.isArray(o)&&o.isCss||oa(o)?n.push("".concat(Ud(a),":"),o,";"):ia(o)?n.push.apply(n,ta(ta(["".concat(a," {")],Cm(o),!1),["}"],!1)):n.push("".concat(Ud(a),": ").concat((t=a,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in j$||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Sn(e,t,r,n){if(Sm(e))return[];if(Nc(e))return[".".concat(e.styledComponentId)];if(oa(e)){if(!oa(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var a=e(t);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof Gd||ia(a)||a===null||console.error("".concat(dm(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Sn(a,t,r,n)}var o;return e instanceof Gd?r?(e.inject(r,n),[e.getName(n)]):[e]:ia(e)?Cm(e):Array.isArray(e)?Array.prototype.concat.apply(Bi,e.map(function(i){return Sn(i,t,r,n)})):[e.toString()]}function gO(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(oa(r)&&!Nc(r))return!1}return!0}var hO=um(Vi),bO=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&gO(t),this.componentId=r,this.baseHash=pn(hO,r),this.baseStyle=n,hm.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))a=hn(a,this.staticRulesId);else{var o=Vd(Sn(this.rules,t,r,n)),i=Wl(pn(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(o,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}a=hn(a,i),this.staticRulesId=i}else{for(var l=pn(this.baseHash,n.hash),c="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")c+=f,process.env.NODE_ENV!=="production"&&(l=pn(l,f));else if(f){var v=Vd(Sn(f,t,r,n));l=pn(l,v+d),c+=v}}if(c){var b=Wl(l>>>0);r.hasNameForId(this.componentId,b)||r.insertRules(this.componentId,b,n(c,".".concat(b),void 0,this.componentId)),a=hn(a,b)}}return a},e}(),Em=P.createContext(void 0);Em.Consumer;var Ns={},Kd=new Set;function yO(e,t,r){var n=Nc(e),a=e,o=!_s(e),i=t.attrs,s=i===void 0?Bi:i,l=t.componentId,c=l===void 0?function(E,C){var x=typeof E!="string"?"sc":Fd(E);Ns[x]=(Ns[x]||0)+1;var w="".concat(x,"-").concat(B$(Vi+x+Ns[x]));return C?"".concat(C,"-").concat(w):w}(t.displayName,t.parentComponentId):l,d=t.displayName,f=d===void 0?function(E){return _s(E)?"styled.".concat(E):"Styled(".concat(dm(E),")")}(e):d,v=t.displayName&&t.componentId?"".concat(Fd(t.displayName),"-").concat(t.componentId):t.componentId||c,b=n&&a.attrs?a.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&a.shouldForwardProp){var g=a.shouldForwardProp;if(t.shouldForwardProp){var p=t.shouldForwardProp;h=function(E,C){return g(E,C)&&p(E,C)}}else h=g}var S=new bO(r,v,n?a.componentStyle:void 0);function m(E,C){return function(x,w,$){var O=x.attrs,T=x.componentStyle,F=x.defaultProps,j=x.foldedComponentIds,M=x.styledComponentId,A=x.target,H=P.useContext(Em),N=Wd(),R=x.shouldForwardProp||N.shouldForwardProp;process.env.NODE_ENV!=="production"&&P.useDebugValue(M);var I=D$(w,H,F)||aa,D=function(Y,Q,J){for(var ee,re=er(er({},Q),{className:void 0,theme:J}),de=0;de<Y.length;de+=1){var se=oa(ee=Y[de])?ee(re):ee;for(var le in se)re[le]=le==="className"?hn(re[le],se[le]):le==="style"?er(er({},re[le]),se[le]):se[le]}return Q.className&&(re.className=hn(re.className,Q.className)),re}(O,w,I),k=D.as||A,V={};for(var G in D)D[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&D.theme===I||(G==="forwardedAs"?V.as=D.forwardedAs:R&&!R(G,k)||(V[G]=D[G],R||process.env.NODE_ENV!=="development"||g$(G)||Kd.has(G)||!Hl.has(k)||(Kd.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var W=function(Y,Q){var J=Wd(),ee=Y.generateAndInjectStyles(Q,J.styleSheet,J.stylis);return process.env.NODE_ENV!=="production"&&P.useDebugValue(ee),ee}(T,D);process.env.NODE_ENV!=="production"&&x.warnTooManyClasses&&x.warnTooManyClasses(W);var q=hn(j,M);return W&&(q+=" "+W),D.className&&(q+=" "+D.className),V[_s(k)&&!Hl.has(k)?"class":"className"]=q,V.ref=$,P.createElement(k,V)}(y,E,C)}m.displayName=f;var y=P.forwardRef(m);return y.attrs=b,y.componentStyle=S,y.displayName=f,y.shouldForwardProp=h,y.foldedComponentIds=n?hn(a.foldedComponentIds,a.styledComponentId):"",y.styledComponentId=v,y.target=n?a.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=n?function(C){for(var x=[],w=1;w<arguments.length;w++)x[w-1]=arguments[w];for(var $=0,O=x;$<O.length;$++)Gl(C,O[$],!0);return C}({},a.defaultProps,E):E}}),process.env.NODE_ENV!=="production"&&(L$(f,v),y.warnTooManyClasses=function(E,C){var x={},w=!1;return function($){if(!w&&(x[$]=!0,Object.keys(x).length>=200)){var O=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(E).concat(O,`.
276
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
277
+ Example:
278
+ const Component = styled.div.attrs(props => ({
279
+ style: {
280
+ background: props.background,
281
+ },
282
+ }))\`width: 100%;\`
283
+
284
+ <Component />`),w=!0,x={}}}}(f,v)),Tc(y,function(){return".".concat(y.styledComponentId)}),o&&mm(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function qd(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r}var Xd=function(e){return Object.assign(e,{isCss:!0})};function ka(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(oa(e)||ia(e))return Xd(Sn(qd(Bi,ta([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Sn(n):Xd(Sn(qd(n,t)))}function Kl(e,t,r){if(r===void 0&&(r=aa),!t)throw ma(1,t);var n=function(a){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,ka.apply(void 0,ta([a],o,!1)))};return n.attrs=function(a){return Kl(e,t,er(er({},r),{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},n.withConfig=function(a){return Kl(e,t,er(er({},r),a))},n}var xm=function(e){return Kl(yO,e)},Ic=xm;Hl.forEach(function(e){Ic[e]=xm(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
285
+ Perhaps you're looking to import 'styled-components/native'?
286
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Fo="__sc-".concat(Cn,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Fo]||(window[Fo]=0),window[Fo]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
287
+
288
+ See https://s-c.sh/2BAXzed for more info.`),window[Fo]+=1);const SO=Ic(Ri)`
289
+ border-radius: var(--gf-radius-sm);
290
+ // background: ${e=>e.type==="primary"?"var(--gf-color-button-primary)":""};
291
+ ${e=>e.type==="primary"&&ka`
292
+ background: var(--gf-color-button-primary);
293
+ `}
294
+ `,CO=({type:e="default",disabled:t=!1,label:r,onClick:n,...a})=>Rt.jsx(SO,{type:e,disabled:t,onClick:n,...a,children:r}),EO=Ic(Ai)`
295
+ border-radius: var(--gf-radius-sm);
296
+ border-color: var(--gf-color-border-base);
297
+ ${e=>e.cardType==="default"&&ka`
298
+ background: var(--gf-color-bg-base);
299
+ `}
300
+ ${e=>e.cardType==="grey"&&ka`
301
+ background: var(--gf-color-bg-tertiary);
302
+ `}
303
+ ${e=>e.cardType==="debug"&&ka`
304
+ background: var(--gf-color-bg-debug);
305
+ `}
306
+ `,wm=({cardType:e,...t})=>Rt.jsx(EO,{cardType:e,...t}),tn={style:{colorBgBase:"#FFFFFF",colorPrimaryHover:"#3858F2",colorBgDebug:"orange",colorBorder:"#EAECF0",colorTextSecondary:"#475467",colorTextHeading:"#1D2939",radiusSm:2,paddingMd:16}},{Text:xO}=ln,wO=({disabled:e=!1,icon:t=Yp,title:r="Title",description:n,onClick:a,...o})=>{const[i,s]=P.useState(!1),l={backgroundColor:tn.style.colorBgBase,border:`1px solid ${i?tn.style.colorPrimaryHover:tn.style.colorBorder}`,borderRadius:tn.style.radiusSm,padding:tn.style.paddingMd},c={color:i?tn.style.colorPrimaryHover:tn.style.colorTextHeading,fontWeight:700};return Rt.jsxs("div",{style:l,onClick:()=>a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...o,children:[Rt.jsxs(Dl,{gutter:16,children:[Rt.jsx(Ia,{span:1,children:t}),Rt.jsx(Ia,{span:23,children:Rt.jsx(xO,{style:c,children:r})})]}),Rt.jsxs(Dl,{gutter:16,children:[Rt.jsx(Ia,{span:1}),Rt.jsx(Ia,{span:23,children:n})]})]})},{Paragraph:$O}=ln,OO=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return Rt.jsx(wm,{className:"gf-metrics",cardType:"grey",...a,children:Rt.jsxs(Up,{vertical:!0,gap:8,children:[Rt.jsxs(ji,{direction:"horizontal",size:16,align:"end",children:[Rt.jsx("text",{className:"gf-value-bold",children:`${e}%`}),Rt.jsx("text",{className:"gf-cost-italic",children:`€${t} md`})]}),Rt.jsx($O,{className:"gf-metrics-description",editable:s,children:o})]})})},{Text:Yd}=ln,RO=({title:e,subtitle:t,type:r="primary"})=>{const n=Z({"gf-title-primary":r==="primary","gf-title-secondary":r==="secondary"}),a=Z({"gf-subtitle-primary":r==="primary","gf-subtitle-secondary":r==="secondary"});return Rt.jsxs(ji,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[Rt.jsx(Yd,{className:n,children:e}),Rt.jsx(Yd,{className:a,children:t})]})},{Text:PO}=ln,_O=({text:e,columns:t=2,editable:r=!1,style:n,className:a})=>{const[o,i]=P.useState(e),s=r?{onChange:i}:!1,l=Z(`gf-description-${t}`,a);return Rt.jsx("div",{className:l,style:n||{},children:Rt.jsx(PO,{className:"gf-description-body",editable:s,children:o})})};exports.Description=_O;exports.GFButton=CO;exports.GFCard=wm;exports.Metrics=OO;exports.NavCard=wO;exports.Title=RO;exports.globals=tn;
232
307
  //# sourceMappingURL=index.cjs.js.map