gf-components 0.1.20 → 0.1.22

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"),tt=require("styled-components"),Mn=require("react-dom");function Mu(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=Mu(P),Xv=Mu(Mn);function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi={exports:{}},ea={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),tt=require("styled-components"),Mn=require("react-dom");function Mu(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=Mu(P),Yv=Mu(Mn);function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi={exports:{}},ea={};/**
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 jl;function Yv(){if(jl)return ea;jl=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 ea.Fragment=r,ea.jsx=i,ea.jsxs=i,ea}var ta={};/**
9
+ */var jl;function Zv(){if(jl)return ea;jl=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 ea.Fragment=r,ea.jsx=i,ea.jsxs=i,ea}var ta={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,7 +14,7 @@
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 Al;function Zv(){return Al||(Al=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 g(I){if(I===null||typeof I!="object")return null;var G=h&&I[h]||I[p];return typeof G=="function"?G:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(I){{for(var G=arguments.length,X=new Array(G>1?G-1:0),se=1;se<G;se++)X[se-1]=arguments[se];y("error",I,X)}}function y(I,G,X){{var se=C.ReactDebugCurrentFrame,_e=se.getStackAddendum();_e!==""&&(G+="%s",X=X.concat([_e]));var Re=X.map(function(Te){return String(Te)});Re.unshift("Warning: "+G),Function.prototype.apply.call(console[I],console,Re)}}var x=!1,S=!1,E=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function T(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===o||w||I===a||I===u||I===d||R||I===b||x||S||E||typeof I=="object"&&I!==null&&(I.$$typeof===v||I.$$typeof===f||I.$$typeof===i||I.$$typeof===s||I.$$typeof===l||I.$$typeof===$||I.getModuleId!==void 0))}function M(I,G,X){var se=I.displayName;if(se)return se;var _e=G.displayName||G.name||"";return _e!==""?X+"("+_e+")":X}function F(I){return I.displayName||"Context"}function A(I){if(I==null)return null;if(typeof I.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){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 I=="object")switch(I.$$typeof){case s:var G=I;return F(G)+".Consumer";case i:var X=I;return F(X._context)+".Provider";case l:return M(I,I.render,"ForwardRef");case f:var se=I.displayName||null;return se!==null?se:A(I.type)||"Memo";case v:{var _e=I,Re=_e._payload,Te=_e._init;try{return A(Te(Re))}catch{return null}}}return null}var _=Object.assign,k=0,N,O,j,z,V,H,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(k===0){N=console.log,O=console.info,j=console.warn,z=console.error,V=console.group,H=console.groupCollapsed,K=console.groupEnd;var I={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}k++}}function Y(){{if(k--,k===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},I,{value:N}),info:_({},I,{value:O}),warn:_({},I,{value:j}),error:_({},I,{value:z}),group:_({},I,{value:V}),groupCollapsed:_({},I,{value:H}),groupEnd:_({},I,{value:K})})}k<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.ReactCurrentDispatcher,ee;function te(I,G,X){{if(ee===void 0)try{throw Error()}catch(_e){var se=_e.stack.trim().match(/\n( *(at )?)/);ee=se&&se[1]||""}return`
17
+ */var Al;function Qv(){return Al||(Al=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 g(I){if(I===null||typeof I!="object")return null;var G=h&&I[h]||I[p];return typeof G=="function"?G:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(I){{for(var G=arguments.length,X=new Array(G>1?G-1:0),se=1;se<G;se++)X[se-1]=arguments[se];y("error",I,X)}}function y(I,G,X){{var se=C.ReactDebugCurrentFrame,_e=se.getStackAddendum();_e!==""&&(G+="%s",X=X.concat([_e]));var Re=X.map(function(Te){return String(Te)});Re.unshift("Warning: "+G),Function.prototype.apply.call(console[I],console,Re)}}var x=!1,S=!1,E=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function T(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===o||w||I===a||I===u||I===d||R||I===b||x||S||E||typeof I=="object"&&I!==null&&(I.$$typeof===v||I.$$typeof===f||I.$$typeof===i||I.$$typeof===s||I.$$typeof===l||I.$$typeof===$||I.getModuleId!==void 0))}function M(I,G,X){var se=I.displayName;if(se)return se;var _e=G.displayName||G.name||"";return _e!==""?X+"("+_e+")":X}function F(I){return I.displayName||"Context"}function A(I){if(I==null)return null;if(typeof I.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){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 I=="object")switch(I.$$typeof){case s:var G=I;return F(G)+".Consumer";case i:var X=I;return F(X._context)+".Provider";case l:return M(I,I.render,"ForwardRef");case f:var se=I.displayName||null;return se!==null?se:A(I.type)||"Memo";case v:{var _e=I,Re=_e._payload,Te=_e._init;try{return A(Te(Re))}catch{return null}}}return null}var _=Object.assign,k=0,N,O,j,z,V,H,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(k===0){N=console.log,O=console.info,j=console.warn,z=console.error,V=console.group,H=console.groupCollapsed,K=console.groupEnd;var I={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}k++}}function Y(){{if(k--,k===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},I,{value:N}),info:_({},I,{value:O}),warn:_({},I,{value:j}),error:_({},I,{value:z}),group:_({},I,{value:V}),groupCollapsed:_({},I,{value:H}),groupEnd:_({},I,{value:K})})}k<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=C.ReactCurrentDispatcher,ee;function te(I,G,X){{if(ee===void 0)try{throw Error()}catch(_e){var se=_e.stack.trim().match(/\n( *(at )?)/);ee=se&&se[1]||""}return`
18
18
  `+ee+I}}var oe=!1,ve;{var fe=typeof WeakMap=="function"?WeakMap:Map;ve=new fe}function ge(I,G){if(!I||oe)return"";{var X=ve.get(I);if(X!==void 0)return X}var se;oe=!0;var _e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Re;Re=J.current,J.current=null,q();try{if(G){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(pt){se=pt}Reflect.construct(I,[],Te)}else{try{Te.call()}catch(pt){se=pt}I.call(Te.prototype)}}else{try{throw Error()}catch(pt){se=pt}I()}}catch(pt){if(pt&&se&&typeof pt.stack=="string"){for(var Me=pt.stack.split(`
19
19
  `),mt=se.stack.split(`
20
20
  `),rt=Me.length-1,ke=mt.length-1;rt>=1&&ke>=0&&Me[rt]!==mt[ke];)ke--;for(;rt>=1&&ke>=0;rt--,ke--)if(Me[rt]!==mt[ke]){if(rt!==1||ke!==1)do if(rt--,ke--,ke<0||Me[rt]!==mt[ke]){var wt=`
@@ -27,7 +27,7 @@ Check the top-level render call using <`+X+">.")}return G}}function ye(I,G){{if(
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} />`,Sr,Vt,Br,Vt),We[Vt+Sr]=!0}}return I===n?He(ke):bt(ke),ke}}function yt(I,G,X){return ct(I,G,X,!0)}function Pt(I,G,X){return ct(I,G,X,!1)}var kt=Pt,Wt=yt;ta.Fragment=n,ta.jsx=kt,ta.jsxs=Wt}()),ta}process.env.NODE_ENV==="production"?Bi.exports=Yv():Bi.exports=Zv();var re=Bi.exports;const Pr=tt.createGlobalStyle`
30
+ <%s key={someKey} {...props} />`,Sr,Vt,Br,Vt),We[Vt+Sr]=!0}}return I===n?He(ke):bt(ke),ke}}function yt(I,G,X){return ct(I,G,X,!0)}function Pt(I,G,X){return ct(I,G,X,!1)}var kt=Pt,Wt=yt;ta.Fragment=n,ta.jsx=kt,ta.jsxs=Wt}()),ta}process.env.NODE_ENV==="production"?Bi.exports=Zv():Bi.exports=Qv();var re=Bi.exports;const Pr=tt.createGlobalStyle`
31
31
  :root {
32
32
  /* colors */
33
33
  --gf-color-bg-base: #FFFFFF;
@@ -51,7 +51,6 @@ React keys must be passed directly to JSX without using spread:
51
51
  --gf-padding-md: 16px;
52
52
 
53
53
  /* fonts */
54
- @import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
55
54
  --gf-font: Roboto, sans-serif;
56
55
  --gf-display-1: normal normal 600 48px/60px Roboto, sans-serif;
57
56
 
@@ -87,7 +86,7 @@ React keys must be passed directly to JSX without using spread:
87
86
  Copyright (c) 2018 Jed Watson.
88
87
  Licensed under the MIT License (MIT), see
89
88
  http://jedwatson.github.io/classnames
90
- */(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})()})(Au);var Qv=Au.exports;const Z=ju(Qv);function xe(){return xe=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},xe.apply(null,arguments)}var Hi={exports:{}},ut={};/**
89
+ */(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})()})(Au);var Jv=Au.exports;const Z=ju(Jv);function xe(){return xe=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},xe.apply(null,arguments)}var Hi={exports:{}},ut={};/**
91
90
  * @license React
92
91
  * react-is.production.min.js
93
92
  *
@@ -95,7 +94,7 @@ React keys must be passed directly to JSX without using spread:
95
94
  *
96
95
  * This source code is licensed under the MIT license found in the
97
96
  * LICENSE file in the root directory of this source tree.
98
- */var Fl;function Jv(){if(Fl)return ut;Fl=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(g){if(typeof g=="object"&&g!==null){var C=g.$$typeof;switch(C){case e:switch(g=g.type,g){case r:case a:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case i:case l:case v:case f:case o:return g;default:return C}}case t:return C}}}return ut.ContextConsumer=i,ut.ContextProvider=o,ut.Element=e,ut.ForwardRef=l,ut.Fragment=r,ut.Lazy=v,ut.Memo=f,ut.Portal=t,ut.Profiler=a,ut.StrictMode=n,ut.Suspense=u,ut.SuspenseList=d,ut.isAsyncMode=function(){return!1},ut.isConcurrentMode=function(){return!1},ut.isContextConsumer=function(g){return p(g)===i},ut.isContextProvider=function(g){return p(g)===o},ut.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ut.isForwardRef=function(g){return p(g)===l},ut.isFragment=function(g){return p(g)===r},ut.isLazy=function(g){return p(g)===v},ut.isMemo=function(g){return p(g)===f},ut.isPortal=function(g){return p(g)===t},ut.isProfiler=function(g){return p(g)===a},ut.isStrictMode=function(g){return p(g)===n},ut.isSuspense=function(g){return p(g)===u},ut.isSuspenseList=function(g){return p(g)===d},ut.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===a||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===f||g.$$typeof===o||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},ut.typeOf=p,ut}var dt={};/**
97
+ */var Fl;function eg(){if(Fl)return ut;Fl=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(g){if(typeof g=="object"&&g!==null){var C=g.$$typeof;switch(C){case e:switch(g=g.type,g){case r:case a:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case i:case l:case v:case f:case o:return g;default:return C}}case t:return C}}}return ut.ContextConsumer=i,ut.ContextProvider=o,ut.Element=e,ut.ForwardRef=l,ut.Fragment=r,ut.Lazy=v,ut.Memo=f,ut.Portal=t,ut.Profiler=a,ut.StrictMode=n,ut.Suspense=u,ut.SuspenseList=d,ut.isAsyncMode=function(){return!1},ut.isConcurrentMode=function(){return!1},ut.isContextConsumer=function(g){return p(g)===i},ut.isContextProvider=function(g){return p(g)===o},ut.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ut.isForwardRef=function(g){return p(g)===l},ut.isFragment=function(g){return p(g)===r},ut.isLazy=function(g){return p(g)===v},ut.isMemo=function(g){return p(g)===f},ut.isPortal=function(g){return p(g)===t},ut.isProfiler=function(g){return p(g)===a},ut.isStrictMode=function(g){return p(g)===n},ut.isSuspense=function(g){return p(g)===u},ut.isSuspenseList=function(g){return p(g)===d},ut.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===a||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===f||g.$$typeof===o||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},ut.typeOf=p,ut}var dt={};/**
99
98
  * @license React
100
99
  * react-is.development.js
101
100
  *
@@ -103,18 +102,18 @@ React keys must be passed directly to JSX without using spread:
103
102
  *
104
103
  * This source code is licensed under the MIT license found in the
105
104
  * LICENSE file in the root directory of this source tree.
106
- */var Ll;function eg(){return Ll||(Ll=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,g=!1,C=!1,m=!1,y;y=Symbol.for("react.module.reference");function x(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===u||B===d||C||B===b||h||p||g||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 S(B){if(typeof B=="object"&&B!==null){var ue=B.$$typeof;switch(ue){case e:var le=B.type;switch(le){case r:case a:case n:case u:case d:return le;default:var Ee=le&&le.$$typeof;switch(Ee){case s:case i:case l:case v:case f:case o:return Ee;default:return ue}}case t:return ue}}}var E=i,R=o,w=e,$=l,T=r,M=v,F=f,A=t,_=a,k=n,N=u,O=d,j=!1,z=!1;function V(B){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(B){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return S(B)===i}function W(B){return S(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return S(B)===l}function J(B){return S(B)===r}function ee(B){return S(B)===v}function te(B){return S(B)===f}function oe(B){return S(B)===t}function ve(B){return S(B)===a}function fe(B){return S(B)===n}function ge(B){return S(B)===u}function Oe(B){return S(B)===d}dt.ContextConsumer=E,dt.ContextProvider=R,dt.Element=w,dt.ForwardRef=$,dt.Fragment=T,dt.Lazy=M,dt.Memo=F,dt.Portal=A,dt.Profiler=_,dt.StrictMode=k,dt.Suspense=N,dt.SuspenseList=O,dt.isAsyncMode=V,dt.isConcurrentMode=H,dt.isContextConsumer=K,dt.isContextProvider=W,dt.isElement=q,dt.isForwardRef=Y,dt.isFragment=J,dt.isLazy=ee,dt.isMemo=te,dt.isPortal=oe,dt.isProfiler=ve,dt.isStrictMode=fe,dt.isSuspense=ge,dt.isSuspenseList=Oe,dt.isValidElementType=x,dt.typeOf=S}()),dt}process.env.NODE_ENV==="production"?Hi.exports=Jv():Hi.exports=eg();var ua=Hi.exports;function Rr(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(Rr(n)):ua.isFragment(n)&&n.props?r=r.concat(Rr(n.props.children,t)):r.push(n))}),r}var Wi={},Zs=[],tg=function(t){Zs.push(t)};function jn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Zs.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function rg(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Zs.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Fu(){Wi={}}function Lu(e,t,r){!t&&!Wi[r]&&(e(!1,r),Wi[r]=!0)}function st(e,t){Lu(jn,e,t)}function ng(e,t){Lu(rg,e,t)}st.preMessage=tg;st.resetWarned=Fu;st.noteOnce=ng;function Ie(e){"@babel/helpers - typeof";return Ie=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},Ie(e)}function ag(e,t){if(Ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Du(e){var t=ag(e,"string");return Ie(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Du(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dl(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 D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ma(e){return e instanceof HTMLElement||e instanceof SVGElement}function og(e){return e&&Ie(e)==="object"&&ma(e.nativeElement)?e.nativeElement:ma(e)?e:null}function fo(e){var t=og(e);if(t)return t;if(e instanceof P.Component){var r;return(r=Mn.findDOMNode)===null||r===void 0?void 0:r.call(Mn,e)}return null}function Do(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 Qs=function(t,r){typeof t=="function"?t(r):Ie(t)==="object"&&t&&"current"in t&&(t.current=r)},yr=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){Qs(i,o)})}},Na=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Do(function(){return yr.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},cn=function(t){var r,n,a=ua.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==ua.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ua.ForwardRef)};function zl(e){return P.isValidElement(e)&&!ua.isFragment(e)}Number(P.version.split(".")[0])>=19;var Gi=c.createContext(null);function ig(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(Gi),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(Gi.Provider,{value:i},t)}var zu=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}()}(),Ui=typeof window<"u"&&typeof document<"u"&&window.document===document,Eo=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")()}(),sg=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Eo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),lg=2;function cg(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){sg(o)}function s(){var l=Date.now();if(r){if(l-a<lg)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var ug=20,dg=["top","right","bottom","left","width","height","size","weight"],fg=typeof MutationObserver<"u",vg=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=cg(this.refresh.bind(this),ug)}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(){!Ui||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fg?(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(){!Ui||!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=dg.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}(),ku=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},An=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Eo},Vu=zo(0,0,0,0);function wo(e){return parseFloat(e)||0}function kl(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+wo(o)},0)}function gg(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]=wo(i)}return r}function mg(e){var t=e.getBBox();return zo(0,0,t.width,t.height)}function pg(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Vu;var n=An(e).getComputedStyle(e),a=gg(n),o=a.left+a.right,i=a.top+a.bottom,s=wo(n.width),l=wo(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=kl(n,"left","right")+o),Math.round(l+i)!==r&&(l-=kl(n,"top","bottom")+i)),!bg(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 zo(a.left,a.top,s,l)}var hg=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof An(e).SVGGraphicsElement}:function(e){return e instanceof An(e).SVGElement&&typeof e.getBBox=="function"}}();function bg(e){return e===An(e).document.documentElement}function yg(e){return Ui?hg(e)?mg(e):pg(e):Vu}function Cg(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 ku(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function zo(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Sg=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=zo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=yg(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}(),xg=function(){function e(t,r){var n=Cg(r);ku(this,{target:t,contentRect:n})}return e}(),Eg=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new zu,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 An(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Sg(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 An(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 xg(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}(),Bu=typeof WeakMap<"u"?new WeakMap:new zu,Hu=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=vg.getInstance(),n=new Eg(t,r,this);Bu.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Hu.prototype[e]=function(){var t;return(t=Bu.get(this))[e].apply(t,arguments)}});var wg=function(){return typeof Eo.ResizeObserver<"u"?Eo.ResizeObserver:Hu}(),Fr=new Map;function Wu(e){e.forEach(function(t){var r,n=t.target;(r=Fr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Gu=new wg(Wu);process.env.NODE_ENV;process.env.NODE_ENV;function $g(e,t){Fr.has(e)||(Fr.set(e,new Set),Gu.observe(e)),Fr.get(e).add(t)}function Og(e,t){Fr.has(e)&&(Fr.get(e).delete(t),Fr.get(e).size||(Gu.unobserve(e),Fr.delete(e)))}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vl(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,Du(n.key),n)}}function Dt(e,t,r){return t&&Vl(e.prototype,t),r&&Vl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pa(e,t){return pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},pa(e,t)}function Zr(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&&pa(e,t)}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ha(e)}function Js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Js=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 Rg(e,t){if(t&&(Ie(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 Qr(e){var t=Js();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 Rg(this,r)}}var Pg=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function _g(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(Gi),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)&&cn(l),f=d?l.ref:null,v=Na(f,a),b=function(){var C;return fo(a.current)||(a.current&&Ie(a.current)==="object"?fo((C=a.current)===null||C===void 0?void 0:C.nativeElement):null)||fo(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(g){var C=h.current,m=C.onResize,y=C.data,x=g.getBoundingClientRect(),S=x.width,E=x.height,R=g.offsetWidth,w=g.offsetHeight,$=Math.floor(S),T=Math.floor(E);if(u.current.width!==$||u.current.height!==T||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var M={width:$,height:T,offsetWidth:R,offsetHeight:w};u.current=M;var F=R===Math.round(S)?S:R,A=w===Math.round(E)?E:w,_=D(D({},M),{},{offsetWidth:F,offsetHeight:A});i==null||i(_,g,y),m&&Promise.resolve().then(function(){m(_,g)})}},[]);return c.useEffect(function(){var g=b();return g&&!n&&$g(g,p),function(){return Og(g,p)}},[a.current,n]),c.createElement(Pg,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Uu=c.forwardRef(_g);process.env.NODE_ENV!=="production"&&(Uu.displayName="SingleObserver");var Tg="rc-observer-key";function Ng(e,t){var r=e.children,n=typeof r=="function"?[r]:Rr(r);return process.env.NODE_ENV!=="production"&&(n.length>1?jn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&jn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(Tg,"-").concat(o);return c.createElement(Uu,xe({},e,{key:i,ref:o===0?t:void 0}),a)})}var mr=c.forwardRef(Ng);process.env.NODE_ENV!=="production"&&(mr.displayName="ResizeObserver");mr.Collection=ig;function Cr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Ki(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 Ig(e){if(Array.isArray(e))return Ki(e)}function Ku(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function el(e,t){if(e){if(typeof e=="string")return Ki(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)?Ki(e,t):void 0}}function Mg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
107
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ce(e){return Ig(e)||Ku(e)||el(e)||Mg()}var qu=function(t){return+setTimeout(t,16)},Xu=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(qu=function(t){return window.requestAnimationFrame(t)},Xu=function(t){return window.cancelAnimationFrame(t)});var Bl=0,ko=new Map;function Yu(e){ko.delete(e)}var Tt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Bl+=1;var n=Bl;function a(o){if(o===0)Yu(n),t();else{var i=qu(function(){a(o-1)});ko.set(n,i)}}return a(r),n};Tt.cancel=function(e){var t=ko.get(e);return Yu(e),Xu(t)};process.env.NODE_ENV!=="production"&&(Tt.ids=function(){return ko});function Zu(e){if(Array.isArray(e))return e}function jg(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 Qu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
108
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Zu(e)||jg(e,t)||el(e,t)||Qu()}function ba(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 Xt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ag(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 Hl="data-rc-order",Wl="data-rc-priority",Fg="rc-util-key",qi=new Map;function Ju(){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 Vo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Lg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function tl(e){return Array.from((qi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ed(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=Lg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Hl,i),s&&o&&l.setAttribute(Wl,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Vo(t),d=u.firstChild;if(n){if(s){var f=(t.styles||tl(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Hl)))return!1;var b=Number(v.getAttribute(Wl)||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 td(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Vo(t);return(t.styles||tl(r)).find(function(n){return n.getAttribute(Ju(t))===e})}function ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=td(e,t);if(r){var n=Vo(t);n.removeChild(r)}}function Dg(e,t){var r=qi.get(e);if(!r||!Ag(document,r)){var n=ed("",t),a=n.parentNode;qi.set(e,a),e.removeChild(n)}}function Lr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Vo(r),a=tl(n),o=D(D({},r),{},{styles:a});Dg(n,o);var i=td(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=ed(e,o);return d.setAttribute(Ju(o),t),d}function zg(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=zg(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 Ca(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(st(!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&&Ie(o)==="object"&&Ie(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 kg="%";function Xi(e){return e.join(kg)}var Vg=function(){function e(t){Lt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Dt(e,[{key:"get",value:function(r){return this.opGet(Xi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Xi(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}(),Fn="data-token-hash",pr="data-css-hash",Bg="data-cache-path",qr="__cssinjs_instance__";function Hg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(pr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[qr]=a[qr]||e,a[qr]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(pr,"]"))).forEach(function(a){var o=a.getAttribute(pr);if(n[o]){if(a[qr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new Vg(e)}var Bo=c.createContext({hashPriority:"low",cache:Hg(),defaultCache:!0});function Wg(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 rl=function(){function e(){Lt(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 Dt(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!Wg(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(rl,"MAX_CACHE_SIZE",20);L(rl,"MAX_CACHE_OFFSET",5);var Gl=0,rd=function(){function e(t){Lt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Gl,t.length===0&&jn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Gl+=1}return Dt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ci=new rl;function Yi(e){var t=Array.isArray(e)?e:[e];return ci.has(t)||ci.set(t,new rd(t)),ci.get(t)}var Gg=new WeakMap,ui={};function Ug(e,t){for(var r=Gg,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(ui)||r.set(ui,e()),r.get(ui)}var Ul=new WeakMap;function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ul.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof rd?r+=a.id:a&&Ie(a)==="object"?r+=da(a,t):r+=a}),t&&(r=ba(r)),Ul.set(e,r)),r}function Kl(e,t){return ba("".concat(t,"_").concat(da(e,!0)))}var Zi=Xt();function Q(e){return typeof e=="number"?"".concat(e,"px"):e}function $o(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=D(D({},n),{},L(L({},Fn,t),pr,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 vo=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()},Kg=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(""),"}"):""},nd=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=vo(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,Kg(a,r,{scope:n==null?void 0:n.scope})]},ql=process.env.NODE_ENV!=="test"&&Xt()?c.useLayoutEffect:c.useEffect,St=function(t,r){var n=c.useRef(!0);ql(function(){return t(n.current)},r),ql(function(){return n.current=!1,function(){n.current=!0}},[])},Qi=function(t,r){St(function(n){if(!n)return t()},r)},qg=D({},c),Xl=qg.useInsertionEffect,Xg=function(t,r,n){c.useMemo(t,n),St(function(){return r(!0)},n)},Yg=Xl?function(e,t,r){return Xl(function(){return e(),t()},r)}:Xg,Zg=D({},c),Qg=Zg.useInsertionEffect,Jg=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&jn(!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},em=function(){return function(t){t()}},tm=typeof Qg<"u"?Jg:em;function rm(){return!1}var Ji=!1;function nm(){return Ji}const am=process.env.NODE_ENV==="production"?rm:nm;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var di=window;if(typeof di.webpackHotUpdate=="function"){var om=di.webpackHotUpdate;di.webpackHotUpdate=function(){return Ji=!0,setTimeout(function(){Ji=!1},0),om.apply(void 0,arguments)}}}function nl(e,t,r,n,a){var o=c.useContext(Bo),i=o.cache,s=[e].concat(Ce(t)),l=Xi(s),u=tm([l]),d=am(),f=function(p){i.opUpdate(l,function(g){var C=g||[void 0,void 0],m=U(C,2),y=m[0],x=y===void 0?0:y,S=m[1],E=S;process.env.NODE_ENV!=="production"&&S&&d&&(n==null||n(E,d),E=null);var R=E||r(),w=[x,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 Yg(function(){a==null||a(b)},function(h){return f(function(p){var g=U(p,2),C=g[0],m=g[1];return h&&C===0&&(a==null||a(b)),[C+1,m]}),function(){i.opUpdate(l,function(p){var g=p||[],C=U(g,2),m=C[0],y=m===void 0?0:m,x=C[1],S=y-1;return S===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(x,!1))}),null):[y-1,x]})}},[l]),b}var im={},sm=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",nn=new Map;function lm(e){nn.set(e,(nn.get(e)||0)+1)}function cm(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Fn,'="').concat(e,'"]'));r.forEach(function(n){if(n[qr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var um=0;function dm(e,t){nn.set(e,(nn.get(e)||0)-1);var r=Array.from(nn.keys()),n=r.filter(function(a){var o=nn.get(a)||0;return o<=0});r.length-n.length>um&&n.forEach(function(a){cm(a,t),nn.delete(a)})}var fm=function(t,r,n,a){var o=n.getDerivativeToken(t),i=D(D({},o),r);return a&&(i=a(i)),i},ad="token";function vm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(Bo),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?im:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=Ug(function(){return Object.assign.apply(Object,[{}].concat(Ce(t)))},t),h=da(b),p=da(u),g=v?da(v):"",C=nl(ad,[s,e.id,h,p,g],function(){var m,y=f?f(b,u,e):fm(b,u,e,d),x=D({},y),S="";if(v){var E=nd(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(E,2);y=R[0],S=R[1]}var w=Kl(y,s);y._tokenKey=w,x._tokenKey=Kl(x,s);var $=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:w;y._themeKey=$,lm($);var T="".concat(sm,"-").concat(ba(w));return y._hashId=T,[y,T,x,S,(v==null?void 0:v.key)||""]},function(m){dm(m[0]._themeKey,a)},function(m){var y=U(m,4),x=y[0],S=y[3];if(v&&S){var E=Lr(S,ba("css-variables-".concat(x._themeKey)),{mark:pr,prepend:"queue",attachTo:o,priority:-999});E[qr]=a,E.setAttribute(Fn,x._themeKey)}});return C}var gm=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=$o(i,s,d,v,u);return[f,d,b]},mm={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},od="comm",id="rule",sd="decl",pm="@import",hm="@keyframes",bm="@layer",ld=Math.abs,al=String.fromCharCode;function cd(e){return e.trim()}function go(e,t,r){return e.replace(t,r)}function ym(e,t,r){return e.indexOf(t,r)}function Sa(e,t){return e.charCodeAt(t)|0}function Ln(e,t,r){return e.slice(t,r)}function $r(e){return e.length}function Cm(e){return e.length}function qa(e,t){return t.push(e),e}var Ho=1,Dn=1,ud=0,sr=0,Rt=0,Hn="";function ol(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Ho,column:Dn,length:i,return:"",siblings:s}}function Sm(){return Rt}function xm(){return Rt=sr>0?Sa(Hn,--sr):0,Dn--,Rt===10&&(Dn=1,Ho--),Rt}function hr(){return Rt=sr<ud?Sa(Hn,sr++):0,Dn++,Rt===10&&(Dn=1,Ho++),Rt}function Xr(){return Sa(Hn,sr)}function mo(){return sr}function Wo(e,t){return Ln(Hn,e,t)}function xa(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 Em(e){return Ho=Dn=1,ud=$r(Hn=e),sr=0,[]}function wm(e){return Hn="",e}function fi(e){return cd(Wo(sr-1,es(e===91?e+2:e===40?e+1:e)))}function $m(e){for(;(Rt=Xr())&&Rt<33;)hr();return xa(e)>2||xa(Rt)>3?"":" "}function Om(e,t){for(;--t&&hr()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Wo(e,mo()+(t<6&&Xr()==32&&hr()==32))}function es(e){for(;hr();)switch(Rt){case e:return sr;case 34:case 39:e!==34&&e!==39&&es(Rt);break;case 40:e===41&&es(e);break;case 92:hr();break}return sr}function Rm(e,t){for(;hr()&&e+Rt!==57;)if(e+Rt===84&&Xr()===47)break;return"/*"+Wo(t,sr-1)+"*"+al(e===47?e:hr())}function Pm(e){for(;!xa(Xr());)hr();return Wo(e,sr)}function _m(e){return wm(po("",null,null,null,[""],e=Em(e),0,[0],e))}function po(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,g=1,C=1,m=0,y="",x=a,S=o,E=n,R=y;g;)switch(h=m,m=hr()){case 40:if(h!=108&&Sa(R,f-1)==58){ym(R+=go(fi(m),"&","&\f"),"&\f",ld(u?s[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:R+=fi(m);break;case 9:case 10:case 13:case 32:R+=$m(h);break;case 92:R+=Om(mo()-1,7);continue;case 47:switch(Xr()){case 42:case 47:qa(Tm(Rm(hr(),mo()),t,r,l),l),(xa(h||1)==5||xa(Xr()||1)==5)&&$r(R)&&Ln(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=$r(R)*C;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:C==-1&&(R=go(R,/\f/g,"")),b>0&&($r(R)-f||p===0&&h===47)&&qa(b>32?Zl(R+";",n,r,f-1,l):Zl(go(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(qa(E=Yl(R,t,r,u,d,a,s,y,x=[],S=[],f,o),o),m===123)if(d===0)po(R,t,E,E,x,o,f,s,S);else switch(v===99&&Sa(R,3)===110?100:v){case 100:case 108:case 109:case 115:po(e,E,E,n&&qa(Yl(e,E,E,0,0,a,s,y,a,x=[],f,S),S),a,S,f,s,n?x:S);break;default:po(R,E,E,E,[""],S,0,s,S)}}u=d=b=0,p=C=1,y=R="",f=i;break;case 58:f=1+$r(R),b=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&xm()==125)continue}switch(R+=al(m),m*p){case 38:C=d>0?1:(R+="\f",-1);break;case 44:s[u++]=($r(R)-1)*C,C=1;break;case 64:Xr()===45&&(R+=fi(hr())),v=Xr(),d=f=$r(y=R+=Pm(mo())),m++;break;case 45:h===45&&$r(R)==2&&(p=0)}}return o}function Yl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=Cm(b),p=0,g=0,C=0;p<n;++p)for(var m=0,y=Ln(e,v+1,v=ld(g=i[p])),x=e;m<h;++m)(x=cd(g>0?b[m]+" "+y:go(y,/&\f/g,b[m])))&&(l[C++]=x);return ol(e,t,r,a===0?id:s,l,u,d,f)}function Tm(e,t,r,n){return ol(e,t,r,od,al(Sm()),Ln(e,2,-2),0,n)}function Zl(e,t,r,n,a){return ol(e,t,r,sd,Ln(e,0,n),Ln(e,n+1,-1),n,a)}function ts(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Nm(e,t,r,n){switch(e.type){case bm:if(e.children.length)break;case pm:case sd:return e.return=e.return||e.value;case od:return"";case hm:return e.return=e.value+"{"+ts(e.children,n)+"}";case id:if(!$r(e.value=e.props.join(",")))return""}return $r(r=ts(e.children,n))?e.return=e.value+"{"+r+"}":""}function dd(e,t){var r=t.path,n=t.parentSelectors;st(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Im=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)!=="'"))&&dd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Mm=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&dd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ql="data-ant-cssinjs-cache-path",fd="_FILE_STYLE__",sn,vd=!0;function jm(){if(!sn&&(sn={},Xt())){var e=document.createElement("div");e.className=Ql,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];sn[s]=l});var r=document.querySelector("style[".concat(Ql,"]"));if(r){var n;vd=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Am(e){return jm(),!!sn[e]}function Fm(e){var t=sn[e],r=null;if(t&&Xt())if(vd)r=fd;else{var n=document.querySelector("style[".concat(pr,'="').concat(sn[e],'"]'));n?r=n.innerHTML:delete sn[e]}return[r,t]}var gd="_skip_check_",md="_multi_value_";function ho(e){var t=ts(_m(e),Nm);return t.replace(/\{%%%\:[^;];}/g,";")}function Lm(e){return Ie(e)==="object"&&e&&(gd in e||md in e)}function Jl(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(Ce(l.slice(1))).join(" ")});return o.join(",")}var Dm=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="",g={};function C(x){var S=x.getName(s);if(!g[S]){var E=e(x.style,r,{root:!1,parentSelectors:i}),R=U(E,1),w=R[0];g[S]="@keyframes ".concat(x.getName(s)).concat(w)}}function m(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(E){Array.isArray(E)?m(E,S):E&&S.push(E)}),S}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(x){var S=typeof x=="string"&&!a?{}:x;if(typeof S=="string")p+="".concat(S,`
109
- `);else if(S._keyframe)C(S);else{var E=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},S);Object.keys(E).forEach(function(R){var w=E[R];if(Ie(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!Lm(w)){var $=!1,T=R.trim(),M=!1;(a||o)&&s?T.startsWith("@")?$=!0:T==="&"?T=Jl("",s,d):T=Jl(R,s,d):a&&!s&&(T==="&"||T==="")&&(T="",M=!0);var F=e(w,r,{root:M,injectHash:$,parentSelectors:[].concat(Ce(i),[T])}),A=U(F,2),_=A[0],k=A[1];g=D(D({},g),k),p+="".concat(T).concat(_)}else{let j=function(z,V){process.env.NODE_ENV!=="production"&&(Ie(w)!=="object"||!(w!=null&&w[gd]))&&[Im,Mm].concat(Ce(h)).forEach(function(W){return W(z,V,{path:u,hashId:s,parentSelectors:i})});var H=z.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=V;!mm[z]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),z==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(C(V),K=V.getName(s)),p+="".concat(H,":").concat(K,";")};var N,O=(N=w==null?void 0:w.value)!==null&&N!==void 0?N:w;Ie(w)==="object"&&w!==null&&w!==void 0&&w[md]&&Array.isArray(O)?O.forEach(function(z){j(R,z)}):j(R,O)}})}}),a?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(l.name,";")}).join(`
110
- `))):p="{".concat(p,"}"),[p,g]};function pd(e,t){return ba("".concat(e.join("%")).concat(t))}function zm(){return null}var hd="style";function rs(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(Bo),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,C=d.transformers,m=d.linters,y=d.cache,x=d.layer,S=r._tokenKey,E=[S];x&&E.push("layer"),E.push.apply(E,Ce(n));var R=Zi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=nl(hd,E,function(){var A=E.join("|");if(Am(A)){var _=Fm(A),k=U(_,2),N=k[0],O=k[1];if(N)return[N,S,O,{},s,u]}var j=t(),z=Dm(j,{hashId:a,hashPriority:h,layer:x?o:void 0,path:n.join("-"),transformers:C,linters:m}),V=U(z,2),H=V[0],K=V[1],W=ho(H),q=pd(E,W);return[W,S,q,K,s,u]},function(A,_){var k=U(A,3),N=k[2];(_||f)&&Zi&&ya(N,{mark:pr})},function(A){var _=U(A,4),k=_[0];_[1];var N=_[2],O=_[3];if(R&&k!==fd){var j={mark:pr,prepend:x?!1:"queue",attachTo:p,priority:u},z=typeof i=="function"?i():i;z&&(j.csp={nonce:z});var V=[],H=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):H.push(W)}),V.forEach(function(W){Lr(ho(O[W]),"_layer-".concat(W),D(D({},j),{},{prepend:!0}))});var K=Lr(k,N,j);K[qr]=y.instanceId,K.setAttribute(Fn,S),process.env.NODE_ENV!=="production"&&K.setAttribute(Bg,E.join("|")),H.forEach(function(W){Lr(ho(O[W]),"_effect-".concat(W),j)})}}),$=U(w,3),T=$[0],M=$[1],F=$[2];return function(A){var _;return!g||R||!b?_=c.createElement(zm,null):_=c.createElement("style",xe({},L(L({},Fn,M),pr,F),{dangerouslySetInnerHTML:{__html:T}})),c.createElement(c.Fragment,null,_,A)}}var km=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=$o(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=ho(l[p]),C=$o(g,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=C+b:b+=C}}),[d,s,b]},bd="cssVar",Vm=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(Bo),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(Ce(t.path),[n,u,b]),p=nl(bd,h,function(){var g=r(),C=nd(g,n,{prefix:a,unitless:o,ignore:i,scope:u}),m=U(C,2),y=m[0],x=m[1],S=pd(h,x);return[y,x,S,n]},function(g){var C=U(g,3),m=C[2];Zi&&ya(m,{mark:pr})},function(g){var C=U(g,3),m=C[1],y=C[2];if(m){var x=Lr(m,y,{mark:pr,prepend:"queue",attachTo:v,priority:-999});x[qr]=f,x.setAttribute(Fn,n)}});return p},Bm=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=$o(o,s,i,f,u);return[d,i,v]};L(L(L({},hd,km),ad,gm),bd,Bm);var Ot=function(){function e(t,r){Lt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Dt(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 hn(e){return e.notSplit=!0,e}hn(["borderTop","borderBottom"]),hn(["borderTop"]),hn(["borderBottom"]),hn(["borderLeft","borderRight"]),hn(["borderLeft"]),hn(["borderRight"]);var il=P.createContext({});function Hm(e){return Zu(e)||Ku(e)||el(e)||Qu()}function Or(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function yd(e,t,r,n){if(!t.length)return r;var a=Hm(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Ce(e):s=D({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=yd(s[o],i,r,n),s}function vr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Or(e,t.slice(0,-1))?e:yd(e,t,r,n)}function Wm(e){return Ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ec(e){return Array.isArray(e)?[]:{}}var Gm=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Pn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ec(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=Or(a,i),d=Array.isArray(u);if(d||Wm(u)){if(!l.has(u)){l.add(u);var f=Or(n,i);d?n=vr(n,i,[]):(!f||Ie(f)!=="object")&&(n=vr(n,i,ec(u))),Gm(u).forEach(function(v){o([].concat(Ce(i),[v]),l)})}}else n=vr(n,i,u)}o([])}),n}function Cd(){}let Ar=null;function Um(){Ar=null,Fu()}let Wn=Cd;process.env.NODE_ENV!=="production"&&(Wn=(e,t,r)=>{st(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Um()});const Sd=c.createContext({}),Nt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(Sd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Ar;Ar||(Ar={}),Ar[e]=Ar[e]||[],Ar[e].includes(o||"")||Ar[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ar)}else process.env.NODE_ENV!=="production"&&Wn(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=Cd,e},Km=P.createContext(void 0);var qm={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"},Xm={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Ym=D(D({},Xm),{},{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 xd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},tc={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"]},Ym),timePickerLocale:Object.assign({},xd)},Qt="${label} is not a valid ${type}",zn={locale:"en",Pagination:qm,DatePicker:tc,TimePicker:xd,Calendar:tc,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: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:"${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 bo=[];const rc=()=>bo.reduce((e,t)=>Object.assign(Object.assign({},e),t),zn.Modal);function Zm(e){if(e){const t=Object.assign({},e);return bo.push(t),rc(),()=>{bo=bo.filter(r=>r!==t),rc()}}Object.assign({},zn.Modal)}const sl=P.createContext(void 0),Qm=(e,t)=>{const r=c.useContext(sl),n=c.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=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?zn.locale:o},[r]);return[n,a]},Ed="internalMark",wd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=Nt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===Ed,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Zm(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(sl.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(wd.displayName="LocaleProvider");function Ft(e,t){Jm(e)&&(e="100%");var r=ep(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 Xa(e){return Math.min(1,Math.max(0,e))}function Jm(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ep(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $d(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ya(e){return e<=1?"".concat(Number(e)*100,"%"):e}function an(e){return e.length===1?"0"+e:String(e)}function tp(e,t,r){return{r:Ft(e,255)*255,g:Ft(t,255)*255,b:Ft(r,255)*255}}function nc(e,t,r){e=Ft(e,255),t=Ft(t,255),r=Ft(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 vi(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 rp(e,t,r){var n,a,o;if(e=Ft(e,360),t=Ft(t,100),r=Ft(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=vi(s,i,e+1/3),a=vi(s,i,e),o=vi(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function ns(e,t,r){e=Ft(e,255),t=Ft(t,255),r=Ft(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 np(e,t,r){e=Ft(e,360)*6,t=Ft(t,100),r=Ft(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 as(e,t,r,n){var a=[an(Math.round(e).toString(16)),an(Math.round(t).toString(16)),an(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 ap(e,t,r,n,a){var o=[an(Math.round(e).toString(16)),an(Math.round(t).toString(16)),an(Math.round(r).toString(16)),an(op(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 op(e){return Math.round(parseFloat(e)*255).toString(16)}function ac(e){return er(e)/255}function er(e){return parseInt(e,16)}function ip(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var os={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 Rn(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=cp(e)),typeof e=="object"&&(Mr(e.r)&&Mr(e.g)&&Mr(e.b)?(t=tp(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Mr(e.h)&&Mr(e.s)&&Mr(e.v)?(n=Ya(e.s),a=Ya(e.v),t=np(e.h,n,a),i=!0,s="hsv"):Mr(e.h)&&Mr(e.s)&&Mr(e.l)&&(n=Ya(e.s),o=Ya(e.l),t=rp(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=$d(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 sp="[-\\+]?\\d+%?",lp="[-\\+]?\\d*\\.\\d+%?",Yr="(?:".concat(lp,")|(?:").concat(sp,")"),gi="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),mi="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),fr={CSS_UNIT:new RegExp(Yr),rgb:new RegExp("rgb"+gi),rgba:new RegExp("rgba"+mi),hsl:new RegExp("hsl"+gi),hsla:new RegExp("hsla"+mi),hsv:new RegExp("hsv"+gi),hsva:new RegExp("hsva"+mi),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 cp(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(os[e])e=os[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=fr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=fr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=fr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=fr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=fr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=fr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=fr.hex8.exec(e),r?{r:er(r[1]),g:er(r[2]),b:er(r[3]),a:ac(r[4]),format:t?"name":"hex8"}:(r=fr.hex6.exec(e),r?{r:er(r[1]),g:er(r[2]),b:er(r[3]),format:t?"name":"hex"}:(r=fr.hex4.exec(e),r?{r:er(r[1]+r[1]),g:er(r[2]+r[2]),b:er(r[3]+r[3]),a:ac(r[4]+r[4]),format:t?"name":"hex8"}:(r=fr.hex3.exec(e),r?{r:er(r[1]+r[1]),g:er(r[2]+r[2]),b:er(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Mr(e){return!!fr.CSS_UNIT.exec(String(e))}var tr=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=ip(t)),this.originalInput=t;var a=Rn(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=$d(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=ns(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=ns(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=nc(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=nc(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),as(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),ap(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(Ft(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(Ft(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="#"+as(this.r,this.g,this.b,!1),r=0,n=Object.entries(os);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=Xa(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=Xa(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=Xa(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=Xa(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}(),Za=2,oc=.16,up=.05,dp=.05,fp=.15,Od=5,Rd=4,vp=[{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 ic(e){var t=e.r,r=e.g,n=e.b,a=ns(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Qa(e){var t=e.r,r=e.g,n=e.b;return"#".concat(as(t,r,n,!1))}function gp(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 sc(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Za*t:Math.round(e.h)+Za*t:n=r?Math.round(e.h)+Za*t:Math.round(e.h)-Za*t,n<0?n+=360:n>=360&&(n-=360),n}function lc(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-oc*t:t===Rd?n=e.s+oc:n=e.s+up*t,n>1&&(n=1),r&&t===Od&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function cc(e,t,r){var n;return r?n=e.v+dp*t:n=e.v-fp*t,n>1&&(n=1),Number(n.toFixed(2))}function Ea(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Rn(e),a=Od;a>0;a-=1){var o=ic(n),i=Qa(Rn({h:sc(o,a,!0),s:lc(o,a,!0),v:cc(o,a,!0)}));r.push(i)}r.push(Qa(n));for(var s=1;s<=Rd;s+=1){var l=ic(n),u=Qa(Rn({h:sc(l,s),s:lc(l,s),v:cc(l,s)}));r.push(u)}return t.theme==="dark"?vp.map(function(d){var f=d.index,v=d.opacity,b=Qa(gp(Rn(t.backgroundColor||"#141414"),Rn(r[f]),v*100));return b}):r}var pi={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"},is=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];is.primary=is[5];var ss=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ss.primary=ss[5];var ls=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ls.primary=ls[5];var Oo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Oo.primary=Oo[5];var cs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];cs.primary=cs[5];var us=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];us.primary=us[5];var ds=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ds.primary=ds[5];var fs=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fs.primary=fs[5];var Ro=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ro.primary=Ro[5];var vs=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];vs.primary=vs[5];var gs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gs.primary=gs[5];var ms=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ms.primary=ms[5];var ps=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ps.primary=ps[5];var hi={red:is,volcano:ss,orange:ls,gold:Oo,yellow:cs,lime:us,green:ds,cyan:fs,blue:Ro,geekblue:vs,purple:gs,magenta:ms,grey:ps};const Pd={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"},wa=Object.assign(Object.assign({},Pd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
105
+ */var Ll;function tg(){return Ll||(Ll=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,g=!1,C=!1,m=!1,y;y=Symbol.for("react.module.reference");function x(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===u||B===d||C||B===b||h||p||g||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 S(B){if(typeof B=="object"&&B!==null){var ue=B.$$typeof;switch(ue){case e:var le=B.type;switch(le){case r:case a:case n:case u:case d:return le;default:var Ee=le&&le.$$typeof;switch(Ee){case s:case i:case l:case v:case f:case o:return Ee;default:return ue}}case t:return ue}}}var E=i,R=o,w=e,$=l,T=r,M=v,F=f,A=t,_=a,k=n,N=u,O=d,j=!1,z=!1;function V(B){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(B){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return S(B)===i}function W(B){return S(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return S(B)===l}function J(B){return S(B)===r}function ee(B){return S(B)===v}function te(B){return S(B)===f}function oe(B){return S(B)===t}function ve(B){return S(B)===a}function fe(B){return S(B)===n}function ge(B){return S(B)===u}function Oe(B){return S(B)===d}dt.ContextConsumer=E,dt.ContextProvider=R,dt.Element=w,dt.ForwardRef=$,dt.Fragment=T,dt.Lazy=M,dt.Memo=F,dt.Portal=A,dt.Profiler=_,dt.StrictMode=k,dt.Suspense=N,dt.SuspenseList=O,dt.isAsyncMode=V,dt.isConcurrentMode=H,dt.isContextConsumer=K,dt.isContextProvider=W,dt.isElement=q,dt.isForwardRef=Y,dt.isFragment=J,dt.isLazy=ee,dt.isMemo=te,dt.isPortal=oe,dt.isProfiler=ve,dt.isStrictMode=fe,dt.isSuspense=ge,dt.isSuspenseList=Oe,dt.isValidElementType=x,dt.typeOf=S}()),dt}process.env.NODE_ENV==="production"?Hi.exports=eg():Hi.exports=tg();var ua=Hi.exports;function Rr(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(Rr(n)):ua.isFragment(n)&&n.props?r=r.concat(Rr(n.props.children,t)):r.push(n))}),r}var Wi={},Zs=[],rg=function(t){Zs.push(t)};function jn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Zs.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function ng(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Zs.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Fu(){Wi={}}function Lu(e,t,r){!t&&!Wi[r]&&(e(!1,r),Wi[r]=!0)}function st(e,t){Lu(jn,e,t)}function ag(e,t){Lu(ng,e,t)}st.preMessage=rg;st.resetWarned=Fu;st.noteOnce=ag;function Ie(e){"@babel/helpers - typeof";return Ie=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},Ie(e)}function og(e,t){if(Ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Du(e){var t=og(e,"string");return Ie(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Du(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dl(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 D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ma(e){return e instanceof HTMLElement||e instanceof SVGElement}function ig(e){return e&&Ie(e)==="object"&&ma(e.nativeElement)?e.nativeElement:ma(e)?e:null}function vo(e){var t=ig(e);if(t)return t;if(e instanceof P.Component){var r;return(r=Mn.findDOMNode)===null||r===void 0?void 0:r.call(Mn,e)}return null}function zo(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 Qs=function(t,r){typeof t=="function"?t(r):Ie(t)==="object"&&t&&"current"in t&&(t.current=r)},yr=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){Qs(i,o)})}},Na=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zo(function(){return yr.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},cn=function(t){var r,n,a=ua.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==ua.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ua.ForwardRef)};function zl(e){return P.isValidElement(e)&&!ua.isFragment(e)}Number(P.version.split(".")[0])>=19;var Gi=c.createContext(null);function sg(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(Gi),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(Gi.Provider,{value:i},t)}var zu=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}()}(),Ui=typeof window<"u"&&typeof document<"u"&&window.document===document,wo=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")()}(),lg=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(wo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),cg=2;function ug(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){lg(o)}function s(){var l=Date.now();if(r){if(l-a<cg)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var dg=20,fg=["top","right","bottom","left","width","height","size","weight"],vg=typeof MutationObserver<"u",gg=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ug(this.refresh.bind(this),dg)}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(){!Ui||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vg?(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(){!Ui||!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=fg.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}(),ku=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},An=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||wo},Vu=ko(0,0,0,0);function $o(e){return parseFloat(e)||0}function kl(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+$o(o)},0)}function mg(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]=$o(i)}return r}function pg(e){var t=e.getBBox();return ko(0,0,t.width,t.height)}function hg(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Vu;var n=An(e).getComputedStyle(e),a=mg(n),o=a.left+a.right,i=a.top+a.bottom,s=$o(n.width),l=$o(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=kl(n,"left","right")+o),Math.round(l+i)!==r&&(l-=kl(n,"top","bottom")+i)),!yg(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 ko(a.left,a.top,s,l)}var bg=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof An(e).SVGGraphicsElement}:function(e){return e instanceof An(e).SVGElement&&typeof e.getBBox=="function"}}();function yg(e){return e===An(e).document.documentElement}function Cg(e){return Ui?bg(e)?pg(e):hg(e):Vu}function Sg(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 ku(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function ko(e,t,r,n){return{x:e,y:t,width:r,height:n}}var xg=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ko(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Cg(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}(),Eg=function(){function e(t,r){var n=Sg(r);ku(this,{target:t,contentRect:n})}return e}(),wg=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new zu,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 An(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new xg(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 An(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 Eg(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}(),Bu=typeof WeakMap<"u"?new WeakMap:new zu,Hu=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=gg.getInstance(),n=new wg(t,r,this);Bu.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Hu.prototype[e]=function(){var t;return(t=Bu.get(this))[e].apply(t,arguments)}});var $g=function(){return typeof wo.ResizeObserver<"u"?wo.ResizeObserver:Hu}(),Fr=new Map;function Wu(e){e.forEach(function(t){var r,n=t.target;(r=Fr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Gu=new $g(Wu);process.env.NODE_ENV;process.env.NODE_ENV;function Og(e,t){Fr.has(e)||(Fr.set(e,new Set),Gu.observe(e)),Fr.get(e).add(t)}function Rg(e,t){Fr.has(e)&&(Fr.get(e).delete(t),Fr.get(e).size||(Gu.unobserve(e),Fr.delete(e)))}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vl(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,Du(n.key),n)}}function Dt(e,t,r){return t&&Vl(e.prototype,t),r&&Vl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pa(e,t){return pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},pa(e,t)}function Zr(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&&pa(e,t)}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ha(e)}function Js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Js=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 Pg(e,t){if(t&&(Ie(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 Qr(e){var t=Js();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 Pg(this,r)}}var _g=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Tg(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(Gi),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)&&cn(l),f=d?l.ref:null,v=Na(f,a),b=function(){var C;return vo(a.current)||(a.current&&Ie(a.current)==="object"?vo((C=a.current)===null||C===void 0?void 0:C.nativeElement):null)||vo(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(g){var C=h.current,m=C.onResize,y=C.data,x=g.getBoundingClientRect(),S=x.width,E=x.height,R=g.offsetWidth,w=g.offsetHeight,$=Math.floor(S),T=Math.floor(E);if(u.current.width!==$||u.current.height!==T||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var M={width:$,height:T,offsetWidth:R,offsetHeight:w};u.current=M;var F=R===Math.round(S)?S:R,A=w===Math.round(E)?E:w,_=D(D({},M),{},{offsetWidth:F,offsetHeight:A});i==null||i(_,g,y),m&&Promise.resolve().then(function(){m(_,g)})}},[]);return c.useEffect(function(){var g=b();return g&&!n&&Og(g,p),function(){return Rg(g,p)}},[a.current,n]),c.createElement(_g,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Uu=c.forwardRef(Tg);process.env.NODE_ENV!=="production"&&(Uu.displayName="SingleObserver");var Ng="rc-observer-key";function Ig(e,t){var r=e.children,n=typeof r=="function"?[r]:Rr(r);return process.env.NODE_ENV!=="production"&&(n.length>1?jn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&jn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(Ng,"-").concat(o);return c.createElement(Uu,xe({},e,{key:i,ref:o===0?t:void 0}),a)})}var mr=c.forwardRef(Ig);process.env.NODE_ENV!=="production"&&(mr.displayName="ResizeObserver");mr.Collection=sg;function Cr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Ki(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 Mg(e){if(Array.isArray(e))return Ki(e)}function Ku(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function el(e,t){if(e){if(typeof e=="string")return Ki(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)?Ki(e,t):void 0}}function jg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
106
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ce(e){return Mg(e)||Ku(e)||el(e)||jg()}var qu=function(t){return+setTimeout(t,16)},Xu=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(qu=function(t){return window.requestAnimationFrame(t)},Xu=function(t){return window.cancelAnimationFrame(t)});var Bl=0,Vo=new Map;function Yu(e){Vo.delete(e)}var Tt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Bl+=1;var n=Bl;function a(o){if(o===0)Yu(n),t();else{var i=qu(function(){a(o-1)});Vo.set(n,i)}}return a(r),n};Tt.cancel=function(e){var t=Vo.get(e);return Yu(e),Xu(t)};process.env.NODE_ENV!=="production"&&(Tt.ids=function(){return Vo});function Zu(e){if(Array.isArray(e))return e}function Ag(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 Qu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
107
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Zu(e)||Ag(e,t)||el(e,t)||Qu()}function ba(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 Xt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fg(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 Hl="data-rc-order",Wl="data-rc-priority",Lg="rc-util-key",qi=new Map;function Ju(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Lg}function Bo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Dg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function tl(e){return Array.from((qi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ed(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=Dg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Hl,i),s&&o&&l.setAttribute(Wl,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Bo(t),d=u.firstChild;if(n){if(s){var f=(t.styles||tl(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Hl)))return!1;var b=Number(v.getAttribute(Wl)||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 td(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Bo(t);return(t.styles||tl(r)).find(function(n){return n.getAttribute(Ju(t))===e})}function ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=td(e,t);if(r){var n=Bo(t);n.removeChild(r)}}function zg(e,t){var r=qi.get(e);if(!r||!Fg(document,r)){var n=ed("",t),a=n.parentNode;qi.set(e,a),e.removeChild(n)}}function Lr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Bo(r),a=tl(n),o=D(D({},r),{},{styles:a});zg(n,o);var i=td(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=ed(e,o);return d.setAttribute(Ju(o),t),d}function kg(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=kg(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 Ca(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(st(!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&&Ie(o)==="object"&&Ie(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 Vg="%";function Xi(e){return e.join(Vg)}var Bg=function(){function e(t){Lt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Dt(e,[{key:"get",value:function(r){return this.opGet(Xi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Xi(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}(),Fn="data-token-hash",pr="data-css-hash",Hg="data-cache-path",qr="__cssinjs_instance__";function Wg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(pr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[qr]=a[qr]||e,a[qr]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(pr,"]"))).forEach(function(a){var o=a.getAttribute(pr);if(n[o]){if(a[qr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new Bg(e)}var Ho=c.createContext({hashPriority:"low",cache:Wg(),defaultCache:!0});function Gg(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 rl=function(){function e(){Lt(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 Dt(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!Gg(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(rl,"MAX_CACHE_SIZE",20);L(rl,"MAX_CACHE_OFFSET",5);var Gl=0,rd=function(){function e(t){Lt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Gl,t.length===0&&jn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Gl+=1}return Dt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ci=new rl;function Yi(e){var t=Array.isArray(e)?e:[e];return ci.has(t)||ci.set(t,new rd(t)),ci.get(t)}var Ug=new WeakMap,ui={};function Kg(e,t){for(var r=Ug,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(ui)||r.set(ui,e()),r.get(ui)}var Ul=new WeakMap;function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ul.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof rd?r+=a.id:a&&Ie(a)==="object"?r+=da(a,t):r+=a}),t&&(r=ba(r)),Ul.set(e,r)),r}function Kl(e,t){return ba("".concat(t,"_").concat(da(e,!0)))}var Zi=Xt();function Q(e){return typeof e=="number"?"".concat(e,"px"):e}function Oo(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=D(D({},n),{},L(L({},Fn,t),pr,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 go=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()},qg=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(""),"}"):""},nd=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=go(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,qg(a,r,{scope:n==null?void 0:n.scope})]},ql=process.env.NODE_ENV!=="test"&&Xt()?c.useLayoutEffect:c.useEffect,St=function(t,r){var n=c.useRef(!0);ql(function(){return t(n.current)},r),ql(function(){return n.current=!1,function(){n.current=!0}},[])},Qi=function(t,r){St(function(n){if(!n)return t()},r)},Xg=D({},c),Xl=Xg.useInsertionEffect,Yg=function(t,r,n){c.useMemo(t,n),St(function(){return r(!0)},n)},Zg=Xl?function(e,t,r){return Xl(function(){return e(),t()},r)}:Yg,Qg=D({},c),Jg=Qg.useInsertionEffect,em=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&jn(!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},tm=function(){return function(t){t()}},rm=typeof Jg<"u"?em:tm;function nm(){return!1}var Ji=!1;function am(){return Ji}const om=process.env.NODE_ENV==="production"?nm:am;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var di=window;if(typeof di.webpackHotUpdate=="function"){var im=di.webpackHotUpdate;di.webpackHotUpdate=function(){return Ji=!0,setTimeout(function(){Ji=!1},0),im.apply(void 0,arguments)}}}function nl(e,t,r,n,a){var o=c.useContext(Ho),i=o.cache,s=[e].concat(Ce(t)),l=Xi(s),u=rm([l]),d=om(),f=function(p){i.opUpdate(l,function(g){var C=g||[void 0,void 0],m=U(C,2),y=m[0],x=y===void 0?0:y,S=m[1],E=S;process.env.NODE_ENV!=="production"&&S&&d&&(n==null||n(E,d),E=null);var R=E||r(),w=[x,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 Zg(function(){a==null||a(b)},function(h){return f(function(p){var g=U(p,2),C=g[0],m=g[1];return h&&C===0&&(a==null||a(b)),[C+1,m]}),function(){i.opUpdate(l,function(p){var g=p||[],C=U(g,2),m=C[0],y=m===void 0?0:m,x=C[1],S=y-1;return S===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(x,!1))}),null):[y-1,x]})}},[l]),b}var sm={},lm=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",nn=new Map;function cm(e){nn.set(e,(nn.get(e)||0)+1)}function um(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Fn,'="').concat(e,'"]'));r.forEach(function(n){if(n[qr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var dm=0;function fm(e,t){nn.set(e,(nn.get(e)||0)-1);var r=Array.from(nn.keys()),n=r.filter(function(a){var o=nn.get(a)||0;return o<=0});r.length-n.length>dm&&n.forEach(function(a){um(a,t),nn.delete(a)})}var vm=function(t,r,n,a){var o=n.getDerivativeToken(t),i=D(D({},o),r);return a&&(i=a(i)),i},ad="token";function gm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(Ho),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?sm:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=Kg(function(){return Object.assign.apply(Object,[{}].concat(Ce(t)))},t),h=da(b),p=da(u),g=v?da(v):"",C=nl(ad,[s,e.id,h,p,g],function(){var m,y=f?f(b,u,e):vm(b,u,e,d),x=D({},y),S="";if(v){var E=nd(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(E,2);y=R[0],S=R[1]}var w=Kl(y,s);y._tokenKey=w,x._tokenKey=Kl(x,s);var $=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:w;y._themeKey=$,cm($);var T="".concat(lm,"-").concat(ba(w));return y._hashId=T,[y,T,x,S,(v==null?void 0:v.key)||""]},function(m){fm(m[0]._themeKey,a)},function(m){var y=U(m,4),x=y[0],S=y[3];if(v&&S){var E=Lr(S,ba("css-variables-".concat(x._themeKey)),{mark:pr,prepend:"queue",attachTo:o,priority:-999});E[qr]=a,E.setAttribute(Fn,x._themeKey)}});return C}var mm=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=Oo(i,s,d,v,u);return[f,d,b]},pm={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},od="comm",id="rule",sd="decl",hm="@import",bm="@keyframes",ym="@layer",ld=Math.abs,al=String.fromCharCode;function cd(e){return e.trim()}function mo(e,t,r){return e.replace(t,r)}function Cm(e,t,r){return e.indexOf(t,r)}function Sa(e,t){return e.charCodeAt(t)|0}function Ln(e,t,r){return e.slice(t,r)}function $r(e){return e.length}function Sm(e){return e.length}function Xa(e,t){return t.push(e),e}var Wo=1,Dn=1,ud=0,sr=0,Rt=0,Hn="";function ol(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Wo,column:Dn,length:i,return:"",siblings:s}}function xm(){return Rt}function Em(){return Rt=sr>0?Sa(Hn,--sr):0,Dn--,Rt===10&&(Dn=1,Wo--),Rt}function hr(){return Rt=sr<ud?Sa(Hn,sr++):0,Dn++,Rt===10&&(Dn=1,Wo++),Rt}function Xr(){return Sa(Hn,sr)}function po(){return sr}function Go(e,t){return Ln(Hn,e,t)}function xa(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 wm(e){return Wo=Dn=1,ud=$r(Hn=e),sr=0,[]}function $m(e){return Hn="",e}function fi(e){return cd(Go(sr-1,es(e===91?e+2:e===40?e+1:e)))}function Om(e){for(;(Rt=Xr())&&Rt<33;)hr();return xa(e)>2||xa(Rt)>3?"":" "}function Rm(e,t){for(;--t&&hr()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Go(e,po()+(t<6&&Xr()==32&&hr()==32))}function es(e){for(;hr();)switch(Rt){case e:return sr;case 34:case 39:e!==34&&e!==39&&es(Rt);break;case 40:e===41&&es(e);break;case 92:hr();break}return sr}function Pm(e,t){for(;hr()&&e+Rt!==57;)if(e+Rt===84&&Xr()===47)break;return"/*"+Go(t,sr-1)+"*"+al(e===47?e:hr())}function _m(e){for(;!xa(Xr());)hr();return Go(e,sr)}function Tm(e){return $m(ho("",null,null,null,[""],e=wm(e),0,[0],e))}function ho(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,g=1,C=1,m=0,y="",x=a,S=o,E=n,R=y;g;)switch(h=m,m=hr()){case 40:if(h!=108&&Sa(R,f-1)==58){Cm(R+=mo(fi(m),"&","&\f"),"&\f",ld(u?s[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:R+=fi(m);break;case 9:case 10:case 13:case 32:R+=Om(h);break;case 92:R+=Rm(po()-1,7);continue;case 47:switch(Xr()){case 42:case 47:Xa(Nm(Pm(hr(),po()),t,r,l),l),(xa(h||1)==5||xa(Xr()||1)==5)&&$r(R)&&Ln(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=$r(R)*C;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:C==-1&&(R=mo(R,/\f/g,"")),b>0&&($r(R)-f||p===0&&h===47)&&Xa(b>32?Zl(R+";",n,r,f-1,l):Zl(mo(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(Xa(E=Yl(R,t,r,u,d,a,s,y,x=[],S=[],f,o),o),m===123)if(d===0)ho(R,t,E,E,x,o,f,s,S);else switch(v===99&&Sa(R,3)===110?100:v){case 100:case 108:case 109:case 115:ho(e,E,E,n&&Xa(Yl(e,E,E,0,0,a,s,y,a,x=[],f,S),S),a,S,f,s,n?x:S);break;default:ho(R,E,E,E,[""],S,0,s,S)}}u=d=b=0,p=C=1,y=R="",f=i;break;case 58:f=1+$r(R),b=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&Em()==125)continue}switch(R+=al(m),m*p){case 38:C=d>0?1:(R+="\f",-1);break;case 44:s[u++]=($r(R)-1)*C,C=1;break;case 64:Xr()===45&&(R+=fi(hr())),v=Xr(),d=f=$r(y=R+=_m(po())),m++;break;case 45:h===45&&$r(R)==2&&(p=0)}}return o}function Yl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=Sm(b),p=0,g=0,C=0;p<n;++p)for(var m=0,y=Ln(e,v+1,v=ld(g=i[p])),x=e;m<h;++m)(x=cd(g>0?b[m]+" "+y:mo(y,/&\f/g,b[m])))&&(l[C++]=x);return ol(e,t,r,a===0?id:s,l,u,d,f)}function Nm(e,t,r,n){return ol(e,t,r,od,al(xm()),Ln(e,2,-2),0,n)}function Zl(e,t,r,n,a){return ol(e,t,r,sd,Ln(e,0,n),Ln(e,n+1,-1),n,a)}function ts(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Im(e,t,r,n){switch(e.type){case ym:if(e.children.length)break;case hm:case sd:return e.return=e.return||e.value;case od:return"";case bm:return e.return=e.value+"{"+ts(e.children,n)+"}";case id:if(!$r(e.value=e.props.join(",")))return""}return $r(r=ts(e.children,n))?e.return=e.value+"{"+r+"}":""}function dd(e,t){var r=t.path,n=t.parentSelectors;st(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Mm=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)!=="'"))&&dd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},jm=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&dd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ql="data-ant-cssinjs-cache-path",fd="_FILE_STYLE__",sn,vd=!0;function Am(){if(!sn&&(sn={},Xt())){var e=document.createElement("div");e.className=Ql,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];sn[s]=l});var r=document.querySelector("style[".concat(Ql,"]"));if(r){var n;vd=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Fm(e){return Am(),!!sn[e]}function Lm(e){var t=sn[e],r=null;if(t&&Xt())if(vd)r=fd;else{var n=document.querySelector("style[".concat(pr,'="').concat(sn[e],'"]'));n?r=n.innerHTML:delete sn[e]}return[r,t]}var gd="_skip_check_",md="_multi_value_";function bo(e){var t=ts(Tm(e),Im);return t.replace(/\{%%%\:[^;];}/g,";")}function Dm(e){return Ie(e)==="object"&&e&&(gd in e||md in e)}function Jl(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(Ce(l.slice(1))).join(" ")});return o.join(",")}var zm=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="",g={};function C(x){var S=x.getName(s);if(!g[S]){var E=e(x.style,r,{root:!1,parentSelectors:i}),R=U(E,1),w=R[0];g[S]="@keyframes ".concat(x.getName(s)).concat(w)}}function m(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(E){Array.isArray(E)?m(E,S):E&&S.push(E)}),S}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(x){var S=typeof x=="string"&&!a?{}:x;if(typeof S=="string")p+="".concat(S,`
108
+ `);else if(S._keyframe)C(S);else{var E=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},S);Object.keys(E).forEach(function(R){var w=E[R];if(Ie(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!Dm(w)){var $=!1,T=R.trim(),M=!1;(a||o)&&s?T.startsWith("@")?$=!0:T==="&"?T=Jl("",s,d):T=Jl(R,s,d):a&&!s&&(T==="&"||T==="")&&(T="",M=!0);var F=e(w,r,{root:M,injectHash:$,parentSelectors:[].concat(Ce(i),[T])}),A=U(F,2),_=A[0],k=A[1];g=D(D({},g),k),p+="".concat(T).concat(_)}else{let j=function(z,V){process.env.NODE_ENV!=="production"&&(Ie(w)!=="object"||!(w!=null&&w[gd]))&&[Mm,jm].concat(Ce(h)).forEach(function(W){return W(z,V,{path:u,hashId:s,parentSelectors:i})});var H=z.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=V;!pm[z]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),z==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(C(V),K=V.getName(s)),p+="".concat(H,":").concat(K,";")};var N,O=(N=w==null?void 0:w.value)!==null&&N!==void 0?N:w;Ie(w)==="object"&&w!==null&&w!==void 0&&w[md]&&Array.isArray(O)?O.forEach(function(z){j(R,z)}):j(R,O)}})}}),a?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(l.name,";")}).join(`
109
+ `))):p="{".concat(p,"}"),[p,g]};function pd(e,t){return ba("".concat(e.join("%")).concat(t))}function km(){return null}var hd="style";function rs(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(Ho),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,C=d.transformers,m=d.linters,y=d.cache,x=d.layer,S=r._tokenKey,E=[S];x&&E.push("layer"),E.push.apply(E,Ce(n));var R=Zi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=nl(hd,E,function(){var A=E.join("|");if(Fm(A)){var _=Lm(A),k=U(_,2),N=k[0],O=k[1];if(N)return[N,S,O,{},s,u]}var j=t(),z=zm(j,{hashId:a,hashPriority:h,layer:x?o:void 0,path:n.join("-"),transformers:C,linters:m}),V=U(z,2),H=V[0],K=V[1],W=bo(H),q=pd(E,W);return[W,S,q,K,s,u]},function(A,_){var k=U(A,3),N=k[2];(_||f)&&Zi&&ya(N,{mark:pr})},function(A){var _=U(A,4),k=_[0];_[1];var N=_[2],O=_[3];if(R&&k!==fd){var j={mark:pr,prepend:x?!1:"queue",attachTo:p,priority:u},z=typeof i=="function"?i():i;z&&(j.csp={nonce:z});var V=[],H=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):H.push(W)}),V.forEach(function(W){Lr(bo(O[W]),"_layer-".concat(W),D(D({},j),{},{prepend:!0}))});var K=Lr(k,N,j);K[qr]=y.instanceId,K.setAttribute(Fn,S),process.env.NODE_ENV!=="production"&&K.setAttribute(Hg,E.join("|")),H.forEach(function(W){Lr(bo(O[W]),"_effect-".concat(W),j)})}}),$=U(w,3),T=$[0],M=$[1],F=$[2];return function(A){var _;return!g||R||!b?_=c.createElement(km,null):_=c.createElement("style",xe({},L(L({},Fn,M),pr,F),{dangerouslySetInnerHTML:{__html:T}})),c.createElement(c.Fragment,null,_,A)}}var Vm=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=Oo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=bo(l[p]),C=Oo(g,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=C+b:b+=C}}),[d,s,b]},bd="cssVar",Bm=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(Ho),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(Ce(t.path),[n,u,b]),p=nl(bd,h,function(){var g=r(),C=nd(g,n,{prefix:a,unitless:o,ignore:i,scope:u}),m=U(C,2),y=m[0],x=m[1],S=pd(h,x);return[y,x,S,n]},function(g){var C=U(g,3),m=C[2];Zi&&ya(m,{mark:pr})},function(g){var C=U(g,3),m=C[1],y=C[2];if(m){var x=Lr(m,y,{mark:pr,prepend:"queue",attachTo:v,priority:-999});x[qr]=f,x.setAttribute(Fn,n)}});return p},Hm=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=Oo(o,s,i,f,u);return[d,i,v]};L(L(L({},hd,Vm),ad,mm),bd,Hm);var Ot=function(){function e(t,r){Lt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Dt(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 hn(e){return e.notSplit=!0,e}hn(["borderTop","borderBottom"]),hn(["borderTop"]),hn(["borderBottom"]),hn(["borderLeft","borderRight"]),hn(["borderLeft"]),hn(["borderRight"]);var il=P.createContext({});function Wm(e){return Zu(e)||Ku(e)||el(e)||Qu()}function Or(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function yd(e,t,r,n){if(!t.length)return r;var a=Wm(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Ce(e):s=D({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=yd(s[o],i,r,n),s}function vr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Or(e,t.slice(0,-1))?e:yd(e,t,r,n)}function Gm(e){return Ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ec(e){return Array.isArray(e)?[]:{}}var Um=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Pn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ec(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=Or(a,i),d=Array.isArray(u);if(d||Gm(u)){if(!l.has(u)){l.add(u);var f=Or(n,i);d?n=vr(n,i,[]):(!f||Ie(f)!=="object")&&(n=vr(n,i,ec(u))),Um(u).forEach(function(v){o([].concat(Ce(i),[v]),l)})}}else n=vr(n,i,u)}o([])}),n}function Cd(){}let Ar=null;function Km(){Ar=null,Fu()}let Wn=Cd;process.env.NODE_ENV!=="production"&&(Wn=(e,t,r)=>{st(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Km()});const Sd=c.createContext({}),Nt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(Sd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Ar;Ar||(Ar={}),Ar[e]=Ar[e]||[],Ar[e].includes(o||"")||Ar[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ar)}else process.env.NODE_ENV!=="production"&&Wn(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=Cd,e},qm=P.createContext(void 0);var Xm={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"},Ym={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Zm=D(D({},Ym),{},{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 xd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},tc={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"]},Zm),timePickerLocale:Object.assign({},xd)},Qt="${label} is not a valid ${type}",zn={locale:"en",Pagination:Xm,DatePicker:tc,TimePicker:xd,Calendar:tc,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: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:"${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 yo=[];const rc=()=>yo.reduce((e,t)=>Object.assign(Object.assign({},e),t),zn.Modal);function Qm(e){if(e){const t=Object.assign({},e);return yo.push(t),rc(),()=>{yo=yo.filter(r=>r!==t),rc()}}Object.assign({},zn.Modal)}const sl=P.createContext(void 0),Jm=(e,t)=>{const r=c.useContext(sl),n=c.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=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?zn.locale:o},[r]);return[n,a]},Ed="internalMark",wd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=Nt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===Ed,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Qm(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(sl.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(wd.displayName="LocaleProvider");function Ft(e,t){ep(e)&&(e="100%");var r=tp(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 Ya(e){return Math.min(1,Math.max(0,e))}function ep(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function tp(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $d(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Za(e){return e<=1?"".concat(Number(e)*100,"%"):e}function an(e){return e.length===1?"0"+e:String(e)}function rp(e,t,r){return{r:Ft(e,255)*255,g:Ft(t,255)*255,b:Ft(r,255)*255}}function nc(e,t,r){e=Ft(e,255),t=Ft(t,255),r=Ft(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 vi(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 np(e,t,r){var n,a,o;if(e=Ft(e,360),t=Ft(t,100),r=Ft(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=vi(s,i,e+1/3),a=vi(s,i,e),o=vi(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function ns(e,t,r){e=Ft(e,255),t=Ft(t,255),r=Ft(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 ap(e,t,r){e=Ft(e,360)*6,t=Ft(t,100),r=Ft(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 as(e,t,r,n){var a=[an(Math.round(e).toString(16)),an(Math.round(t).toString(16)),an(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 op(e,t,r,n,a){var o=[an(Math.round(e).toString(16)),an(Math.round(t).toString(16)),an(Math.round(r).toString(16)),an(ip(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 ip(e){return Math.round(parseFloat(e)*255).toString(16)}function ac(e){return er(e)/255}function er(e){return parseInt(e,16)}function sp(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var os={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 Rn(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=up(e)),typeof e=="object"&&(Mr(e.r)&&Mr(e.g)&&Mr(e.b)?(t=rp(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Mr(e.h)&&Mr(e.s)&&Mr(e.v)?(n=Za(e.s),a=Za(e.v),t=ap(e.h,n,a),i=!0,s="hsv"):Mr(e.h)&&Mr(e.s)&&Mr(e.l)&&(n=Za(e.s),o=Za(e.l),t=np(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=$d(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 lp="[-\\+]?\\d+%?",cp="[-\\+]?\\d*\\.\\d+%?",Yr="(?:".concat(cp,")|(?:").concat(lp,")"),gi="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),mi="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),fr={CSS_UNIT:new RegExp(Yr),rgb:new RegExp("rgb"+gi),rgba:new RegExp("rgba"+mi),hsl:new RegExp("hsl"+gi),hsla:new RegExp("hsla"+mi),hsv:new RegExp("hsv"+gi),hsva:new RegExp("hsva"+mi),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 up(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(os[e])e=os[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=fr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=fr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=fr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=fr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=fr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=fr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=fr.hex8.exec(e),r?{r:er(r[1]),g:er(r[2]),b:er(r[3]),a:ac(r[4]),format:t?"name":"hex8"}:(r=fr.hex6.exec(e),r?{r:er(r[1]),g:er(r[2]),b:er(r[3]),format:t?"name":"hex"}:(r=fr.hex4.exec(e),r?{r:er(r[1]+r[1]),g:er(r[2]+r[2]),b:er(r[3]+r[3]),a:ac(r[4]+r[4]),format:t?"name":"hex8"}:(r=fr.hex3.exec(e),r?{r:er(r[1]+r[1]),g:er(r[2]+r[2]),b:er(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Mr(e){return!!fr.CSS_UNIT.exec(String(e))}var tr=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=sp(t)),this.originalInput=t;var a=Rn(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=$d(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=ns(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=ns(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=nc(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=nc(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),as(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),op(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(Ft(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(Ft(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="#"+as(this.r,this.g,this.b,!1),r=0,n=Object.entries(os);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=Ya(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=Ya(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=Ya(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=Ya(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}(),Qa=2,oc=.16,dp=.05,fp=.05,vp=.15,Od=5,Rd=4,gp=[{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 ic(e){var t=e.r,r=e.g,n=e.b,a=ns(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ja(e){var t=e.r,r=e.g,n=e.b;return"#".concat(as(t,r,n,!1))}function mp(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 sc(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Qa*t:Math.round(e.h)+Qa*t:n=r?Math.round(e.h)+Qa*t:Math.round(e.h)-Qa*t,n<0?n+=360:n>=360&&(n-=360),n}function lc(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-oc*t:t===Rd?n=e.s+oc:n=e.s+dp*t,n>1&&(n=1),r&&t===Od&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function cc(e,t,r){var n;return r?n=e.v+fp*t:n=e.v-vp*t,n>1&&(n=1),Number(n.toFixed(2))}function Ea(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Rn(e),a=Od;a>0;a-=1){var o=ic(n),i=Ja(Rn({h:sc(o,a,!0),s:lc(o,a,!0),v:cc(o,a,!0)}));r.push(i)}r.push(Ja(n));for(var s=1;s<=Rd;s+=1){var l=ic(n),u=Ja(Rn({h:sc(l,s),s:lc(l,s),v:cc(l,s)}));r.push(u)}return t.theme==="dark"?gp.map(function(d){var f=d.index,v=d.opacity,b=Ja(mp(Rn(t.backgroundColor||"#141414"),Rn(r[f]),v*100));return b}):r}var pi={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"},is=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];is.primary=is[5];var ss=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ss.primary=ss[5];var ls=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ls.primary=ls[5];var Ro=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ro.primary=Ro[5];var cs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];cs.primary=cs[5];var us=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];us.primary=us[5];var ds=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ds.primary=ds[5];var fs=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fs.primary=fs[5];var Po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Po.primary=Po[5];var vs=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];vs.primary=vs[5];var gs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gs.primary=gs[5];var ms=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ms.primary=ms[5];var ps=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ps.primary=ps[5];var hi={red:is,volcano:ss,orange:ls,gold:Ro,yellow:cs,lime:us,green:ds,cyan:fs,blue:Po,geekblue:vs,purple:gs,magenta:ms,grey:ps};const Pd={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"},wa=Object.assign(Object.assign({},Pd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
111
110
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
112
- '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 mp(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),g=n(u,d),C=e.colorLink||e.colorInfo,m=r(C);return Object.assign(Object.assign({},g),{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:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new tr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const pp=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 hp(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},pp(n))}const bp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function yo(e){return(e+8)/e}function yp(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:yo(r)}))}const Cp=e=>{const t=yp(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 Sp(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 jr=(e,t)=>new tr(e).setAlpha(t).toRgbString(),ra=(e,t)=>new tr(e).darken(t).toHexString(),xp=e=>{const t=Ea(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]}},Ep=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:jr(n,.88),colorTextSecondary:jr(n,.65),colorTextTertiary:jr(n,.45),colorTextQuaternary:jr(n,.25),colorFill:jr(n,.15),colorFillSecondary:jr(n,.06),colorFillTertiary:jr(n,.04),colorFillQuaternary:jr(n,.02),colorBgLayout:ra(r,4),colorBgContainer:ra(r,0),colorBgElevated:ra(r,0),colorBgSpotlight:jr(n,.85),colorBgBlur:"transparent",colorBorder:ra(r,15),colorBorderSecondary:ra(r,6)}};function wp(e){pi.pink=pi.magenta,hi.pink=hi.magenta;const t=Object.keys(Pd).map(r=>{const n=e[r]===pi[r]?hi[r]:Ea(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),mp(e,{generateColorPalettes:xp,generateNeutralColorPalettes:Ep})),Cp(e.fontSize)),Sp(e)),bp(e)),hp(e))}const _d=Yi(wp),hs={token:wa,override:{override:wa},hashed:!0},Td=P.createContext(hs),Po="ant",Nd="anticon",$p=["outlined","borderless","filled"],Op=(e,t)=>t||(e?`${Po}-${e}`:Po),nt=c.createContext({getPrefixCls:Op,iconPrefixCls:Nd}),Rp=`-ant-${Date.now()}-${Math.random()}`;function Pp(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 tr(i),u=Ea(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 tr(t.primaryColor),s=Ea(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 tr(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"),`
111
+ '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 pp(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),g=n(u,d),C=e.colorLink||e.colorInfo,m=r(C);return Object.assign(Object.assign({},g),{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:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new tr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const hp=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 bp(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},hp(n))}const yp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Co(e){return(e+8)/e}function Cp(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:Co(r)}))}const Sp=e=>{const t=Cp(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 xp(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 jr=(e,t)=>new tr(e).setAlpha(t).toRgbString(),ra=(e,t)=>new tr(e).darken(t).toHexString(),Ep=e=>{const t=Ea(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]}},wp=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:jr(n,.88),colorTextSecondary:jr(n,.65),colorTextTertiary:jr(n,.45),colorTextQuaternary:jr(n,.25),colorFill:jr(n,.15),colorFillSecondary:jr(n,.06),colorFillTertiary:jr(n,.04),colorFillQuaternary:jr(n,.02),colorBgLayout:ra(r,4),colorBgContainer:ra(r,0),colorBgElevated:ra(r,0),colorBgSpotlight:jr(n,.85),colorBgBlur:"transparent",colorBorder:ra(r,15),colorBorderSecondary:ra(r,6)}};function $p(e){pi.pink=pi.magenta,hi.pink=hi.magenta;const t=Object.keys(Pd).map(r=>{const n=e[r]===pi[r]?hi[r]:Ea(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),pp(e,{generateColorPalettes:Ep,generateNeutralColorPalettes:wp})),Sp(e.fontSize)),xp(e)),yp(e)),bp(e))}const _d=Yi($p),hs={token:wa,override:{override:wa},hashed:!0},Td=P.createContext(hs),_o="ant",Nd="anticon",Op=["outlined","borderless","filled"],Rp=(e,t)=>t||(e?`${_o}-${e}`:_o),nt=c.createContext({getPrefixCls:Rp,iconPrefixCls:Nd}),Pp=`-ant-${Date.now()}-${Math.random()}`;function _p(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 tr(i),u=Ea(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 tr(t.primaryColor),s=Ea(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 tr(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"),`
113
112
  :root {
114
113
  ${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
115
114
  `)}
116
115
  }
117
- `.trim()}function _p(e,t){const r=Pp(e,t);Xt()?Lr(r,`${Rp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ln=c.createContext(!1),Tp=e=>{let{children:t,disabled:r}=e;const n=c.useContext(ln);return c.createElement(ln.Provider,{value:r??n},t)},kn=c.createContext(void 0),Np=e=>{let{children:t,size:r}=e;const n=c.useContext(kn);return c.createElement(kn.Provider,{value:r||n},t)};function Ip(){const e=P.useContext(ln),t=P.useContext(kn);return{componentDisabled:e,componentSize:t}}var Id=Dt(function e(){Lt(this,e)}),Md="CALC_UNIT",Mp=new RegExp(Md,"g");function bi(e){return typeof e=="number"?"".concat(e).concat(Md):e}var jp=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;Lt(this,r),o=t.call(this),L(Ge(o),"result",""),L(Ge(o),"unitlessCssVar",void 0),L(Ge(o),"lowPriority",void 0);var i=Ie(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=bi(n):i==="string"&&(o.result=n),o}return Dt(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(bi(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(bi(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}(Id),Ap=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;return Lt(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 Dt(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}(Id),Fp=function(t,r){var n=t==="css"?jp:Ap;return function(a){return new n(a,r)}},uc=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 Ht(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 $a(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 yi(e){return e!==void 0}function Zt(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=$a(function(){return yi(a)?a:yi(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=Ht(o),h=$a([f]),p=U(h,2),g=p[0],C=p[1];Qi(function(){var y=g[0];u!==y&&b(u,y)},[g]),Qi(function(){yi(a)||d(a)},[a]);var m=Ht(function(y,x){d(y,x),C([f],x)});return[v,m]}function dc(e,t,r,n){var a=D({},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"&&st(!(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=D(D({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var jd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",bs=!0;function jt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!jd)return Object.assign.apply(Object,[{}].concat(t));bs=!1;var n={};return t.forEach(function(a){if(Ie(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),bs=!0,n}var fc={};function Lp(){}var Dp=function(t){var r,n=t,a=Lp;return jd&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return bs&&r.add(s),i[s]}}),a=function(i,s){var l;fc[i]={global:Array.from(r),component:D(D({},(l=fc[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function vc(e,t,r){if(typeof r=="function"){var n;return r(jt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function zp(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 Q(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 Q(o)}).join(","),")")}}}var kp=1e3*60*10,Vp=function(){function e(){Lt(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 Dt(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&&Ie(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ie(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>kp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),gc=new Vp;function Bp(e,t){return P.useMemo(function(){var r=gc.get(t);if(r)return r;var n=e();return gc.set(t,n),n},t)}var Hp=function(){return{}};function Wp(e){var t=e.useCSP,r=t===void 0?Hp:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var g=Array.isArray(v)?v[0]:v;function C(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var m=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},x=D(D({},y),{},L({},C("zIndexPopup"),!0));Object.keys(m).forEach(function(w){x[C(w)]=m[w]});var S=D(D({},p),{},{unitless:x,prefixToken:C}),E=d(v,b,h,S),R=u(g,h,S);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,T=E(w,$),M=U(T,2),F=M[1],A=R($),_=U(A,2),k=_[0],N=_[1];return[k,F,N]}}function u(v,b,h){var p=h.unitless,g=h.injectStyle,C=g===void 0?!0:g,m=h.prefixToken,y=h.ignore,x=function(R){var w=R.rootCls,$=R.cssVar,T=$===void 0?{}:$,M=n(),F=M.realToken;return Vm({path:[v],prefix:T.prefix,key:T.key,unitless:p,ignore:y,token:F,scope:w},function(){var A=vc(v,F,b),_=dc(v,F,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(k){_[m(k)]=_[k],delete _[k]}),_}),null},S=function(R){var w=n(),$=w.cssVar;return[function(T){return C&&$?P.createElement(P.Fragment,null,P.createElement(x,{rootCls:R,cssVar:$,component:v}),T):T},$==null?void 0:$.key]};return S}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(v)?v:[v,v],C=U(g,1),m=C[0],y=g.join("-");return function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=n(),R=E.theme,w=E.realToken,$=E.hashId,T=E.token,M=E.cssVar,F=a(),A=F.rootPrefixCls,_=F.iconPrefixCls,k=r(),N=M?"css":"js",O=Bp(function(){var W=new Set;return M&&Object.keys(p.unitless||{}).forEach(function(q){W.add(vo(q,M.prefix)),W.add(vo(q,uc(m,M.prefix)))}),Fp(N,W)},[N,m,M==null?void 0:M.prefix]),j=zp(N),z=j.max,V=j.min,H={theme:R,token:T,hashId:$,nonce:function(){return k.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};rs(D(D({},H),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(T):[]});var K=rs(D(D({},H),{},{path:[y,x,_]}),function(){if(p.injectStyle===!1)return[];var W=Dp(T),q=W.token,Y=W.flush,J=vc(m,w,h),ee=".".concat(x),te=dc(m,w,J,{deprecatedTokens:p.deprecatedTokens});M&&Ie(J)==="object"&&Object.keys(J).forEach(function(ge){J[ge]="var(".concat(vo(ge,uc(m,M.prefix)),")")});var oe=jt(q,{componentCls:ee,prefixCls:x,iconCls:".".concat(_),antCls:".".concat(A),calc:O,max:z,min:V},M?J:te),ve=b(oe,{hashId:$,prefixCls:x,rootPrefixCls:A,iconPrefixCls:_});Y(m,te);var fe=typeof i=="function"?i(oe,x,S,p.resetFont):null;return[p.resetStyle===!1?null:fe,ve]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(v,b,h,D({resetStyle:!1,order:-998},p)),C=function(y){var x=y.prefixCls,S=y.rootCls,E=S===void 0?x:S;return g(x,E),null};return process.env.NODE_ENV!=="production"&&(C.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),C}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const _o=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Gp="5.20.3";function Ci(e){return e>=0&&e<=255}function Ja(e,t){const{r,g:n,b:a,a:o}=new tr(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new tr(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(Ci(d)&&Ci(f)&&Ci(v))return new tr({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new tr({r,g:n,b:a,a:1}).toRgbString()}var Up=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 Ad(e){const{override:t}=e,r=Up(e,["override"]),n=Object.assign({},t);Object.keys(wa).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:Ja(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:Ja(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ja(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:Ja(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:`
116
+ `.trim()}function Tp(e,t){const r=_p(e,t);Xt()?Lr(r,`${Pp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ln=c.createContext(!1),Np=e=>{let{children:t,disabled:r}=e;const n=c.useContext(ln);return c.createElement(ln.Provider,{value:r??n},t)},kn=c.createContext(void 0),Ip=e=>{let{children:t,size:r}=e;const n=c.useContext(kn);return c.createElement(kn.Provider,{value:r||n},t)};function Mp(){const e=P.useContext(ln),t=P.useContext(kn);return{componentDisabled:e,componentSize:t}}var Id=Dt(function e(){Lt(this,e)}),Md="CALC_UNIT",jp=new RegExp(Md,"g");function bi(e){return typeof e=="number"?"".concat(e).concat(Md):e}var Ap=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;Lt(this,r),o=t.call(this),L(Ge(o),"result",""),L(Ge(o),"unitlessCssVar",void 0),L(Ge(o),"lowPriority",void 0);var i=Ie(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=bi(n):i==="string"&&(o.result=n),o}return Dt(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(bi(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(bi(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(jp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Id),Fp=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;return Lt(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 Dt(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}(Id),Lp=function(t,r){var n=t==="css"?Ap:Fp;return function(a){return new n(a,r)}},uc=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 Ht(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 $a(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 yi(e){return e!==void 0}function Zt(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=$a(function(){return yi(a)?a:yi(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=Ht(o),h=$a([f]),p=U(h,2),g=p[0],C=p[1];Qi(function(){var y=g[0];u!==y&&b(u,y)},[g]),Qi(function(){yi(a)||d(a)},[a]);var m=Ht(function(y,x){d(y,x),C([f],x)});return[v,m]}function dc(e,t,r,n){var a=D({},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"&&st(!(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=D(D({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var jd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",bs=!0;function jt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!jd)return Object.assign.apply(Object,[{}].concat(t));bs=!1;var n={};return t.forEach(function(a){if(Ie(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),bs=!0,n}var fc={};function Dp(){}var zp=function(t){var r,n=t,a=Dp;return jd&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return bs&&r.add(s),i[s]}}),a=function(i,s){var l;fc[i]={global:Array.from(r),component:D(D({},(l=fc[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function vc(e,t,r){if(typeof r=="function"){var n;return r(jt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function kp(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 Q(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 Q(o)}).join(","),")")}}}var Vp=1e3*60*10,Bp=function(){function e(){Lt(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 Dt(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&&Ie(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ie(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>Vp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),gc=new Bp;function Hp(e,t){return P.useMemo(function(){var r=gc.get(t);if(r)return r;var n=e();return gc.set(t,n),n},t)}var Wp=function(){return{}};function Gp(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 g=Array.isArray(v)?v[0]:v;function C(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var m=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},x=D(D({},y),{},L({},C("zIndexPopup"),!0));Object.keys(m).forEach(function(w){x[C(w)]=m[w]});var S=D(D({},p),{},{unitless:x,prefixToken:C}),E=d(v,b,h,S),R=u(g,h,S);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,T=E(w,$),M=U(T,2),F=M[1],A=R($),_=U(A,2),k=_[0],N=_[1];return[k,F,N]}}function u(v,b,h){var p=h.unitless,g=h.injectStyle,C=g===void 0?!0:g,m=h.prefixToken,y=h.ignore,x=function(R){var w=R.rootCls,$=R.cssVar,T=$===void 0?{}:$,M=n(),F=M.realToken;return Bm({path:[v],prefix:T.prefix,key:T.key,unitless:p,ignore:y,token:F,scope:w},function(){var A=vc(v,F,b),_=dc(v,F,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(k){_[m(k)]=_[k],delete _[k]}),_}),null},S=function(R){var w=n(),$=w.cssVar;return[function(T){return C&&$?P.createElement(P.Fragment,null,P.createElement(x,{rootCls:R,cssVar:$,component:v}),T):T},$==null?void 0:$.key]};return S}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(v)?v:[v,v],C=U(g,1),m=C[0],y=g.join("-");return function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=n(),R=E.theme,w=E.realToken,$=E.hashId,T=E.token,M=E.cssVar,F=a(),A=F.rootPrefixCls,_=F.iconPrefixCls,k=r(),N=M?"css":"js",O=Hp(function(){var W=new Set;return M&&Object.keys(p.unitless||{}).forEach(function(q){W.add(go(q,M.prefix)),W.add(go(q,uc(m,M.prefix)))}),Lp(N,W)},[N,m,M==null?void 0:M.prefix]),j=kp(N),z=j.max,V=j.min,H={theme:R,token:T,hashId:$,nonce:function(){return k.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};rs(D(D({},H),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(T):[]});var K=rs(D(D({},H),{},{path:[y,x,_]}),function(){if(p.injectStyle===!1)return[];var W=zp(T),q=W.token,Y=W.flush,J=vc(m,w,h),ee=".".concat(x),te=dc(m,w,J,{deprecatedTokens:p.deprecatedTokens});M&&Ie(J)==="object"&&Object.keys(J).forEach(function(ge){J[ge]="var(".concat(go(ge,uc(m,M.prefix)),")")});var oe=jt(q,{componentCls:ee,prefixCls:x,iconCls:".".concat(_),antCls:".".concat(A),calc:O,max:z,min:V},M?J:te),ve=b(oe,{hashId:$,prefixCls:x,rootPrefixCls:A,iconPrefixCls:_});Y(m,te);var fe=typeof i=="function"?i(oe,x,S,p.resetFont):null;return[p.resetStyle===!1?null:fe,ve]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(v,b,h,D({resetStyle:!1,order:-998},p)),C=function(y){var x=y.prefixCls,S=y.rootCls,E=S===void 0?x:S;return g(x,E),null};return process.env.NODE_ENV!=="production"&&(C.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),C}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const To=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Up="5.20.3";function Ci(e){return e>=0&&e<=255}function eo(e,t){const{r,g:n,b:a,a:o}=new tr(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new tr(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(Ci(d)&&Ci(f)&&Ci(v))return new tr({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new tr({r,g:n,b:a,a:1}).toRgbString()}var Kp=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 Ad(e){const{override:t}=e,r=Kp(e,["override"]),n=Object.assign({},t);Object.keys(wa).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:eo(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:eo(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:eo(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:eo(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:`
118
117
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
119
118
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
120
119
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
@@ -146,7 +145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
146
145
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
147
146
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
148
147
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
149
- `,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 mc=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 Fd={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},Kp={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},qp={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},Ld=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=mc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Ad(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=mc(u,["theme"]);let v=f;d&&(v=Ld(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Vr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Td),o=`${Gp}-${t||""}`,i=r||_d,[s,l,u]=vm(i,[wa,e],{salt:o,override:n,getComputedToken:Ld,formatToken:Ad,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Fd,ignore:Kp,preserve:qp}});return[i,u,t?l:"",s,a]}const Dd=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ll={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zr=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}},Xp=()=>({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"}}),Ia=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Yp=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"}}}),Zp=(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})}},cl=e=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ul=e=>({"&:focus-visible":Object.assign({},cl(e))}),zd=(e,t)=>{const[r,n]=Vr();return rs({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({},Xp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:lr,genComponentStyleHook:Qp,genSubStyleComponent:Jp}=Wp({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(nt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Vr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(nt);return zd(t,e),e??{}},getResetStyles:e=>[{"&":Yp(e)}],getCommonStyle:Zp,getCompUnitless:()=>Fd});function eh(e,t){return _o.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 th=Object.assign({},c),{useId:pc}=th,rh=()=>"",nh=typeof pc>"u"?rh:pc;function ah(e,t,r){var n,a;const o=Nt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},hs),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:hs.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=nh();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 Do(()=>{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!Ca(f,b,!0)}))}var oh=["children"],kd=c.createContext({});function ih(e){var t=e.children,r=Je(e,oh);return c.createElement(kd.Provider,{value:r},t)}var sh=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function lh(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Ht(function(){return a.current}),i=Ht(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Kr="none",eo="appear",to="enter",ro="leave",hc="none",gr="prepare",_n="start",Tn="active",dl="end",Vd="prepared";function bc(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 ch(e,t){var r={animationend:bc("Animation","AnimationEnd"),transitionend:bc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var uh=ch(Xt(),typeof window<"u"?window:{}),Bd={};if(Xt()){var dh=document.createElement("div");Bd=dh.style}var no={};function Hd(e){if(no[e])return no[e];var t=uh[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 Bd)return no[e]=t[o],no[e]}return""}var Wd=Hd("animationend"),Gd=Hd("transitionend"),Ud=!!(Wd&&Gd),yc=Wd||"animationend",Cc=Gd||"transitionend";function Sc(e,t){if(!e)return null;if(Ie(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const fh=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(Cc,e),a.removeEventListener(yc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Cc,e),a.addEventListener(yc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Kd=Xt()?P.useLayoutEffect:P.useEffect;const vh=function(){var e=c.useRef(null);function t(){Tt.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Tt(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 gh=[gr,_n,Tn,dl],mh=[gr,Vd],qd=!1,ph=!0;function Xd(e){return e===Tn||e===dl}const hh=function(e,t,r){var n=$a(hc),a=U(n,2),o=a[0],i=a[1],s=vh(),l=U(s,2),u=l[0],d=l[1];function f(){i(gr,!0)}var v=t?mh:gh;return Kd(function(){if(o!==hc&&o!==dl){var b=v.indexOf(o),h=v[b+1],p=r(o);p===qd?i(h,!0):h&&u(function(g){function C(){g.isCanceled()||i(h,!0)}p===!0?C():Promise.resolve(p).then(C)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function bh(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,g=n.onEnterStart,C=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,x=n.onLeaveActive,S=n.onAppearEnd,E=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=$a(),T=U($,2),M=T[0],F=T[1],A=lh(Kr),_=U(A,2),k=_[0],N=_[1],O=$a(null),j=U(O,2),z=j[0],V=j[1],H=k(),K=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Y=P.useRef(!1);function J(){N(Kr),V(null,!0)}var ee=Ht(function(me){var $e=k();if($e!==Kr){var je=q();if(!(me&&!me.deadline&&me.target!==je)){var ie=Y.current,ne;$e===eo&&ie?ne=S==null?void 0:S(je,me):$e===to&&ie?ne=E==null?void 0:E(je,me):$e===ro&&ie&&(ne=R==null?void 0:R(je,me)),ie&&ne!==!1&&J()}}}),te=fh(ee),oe=U(te,1),ve=oe[0],fe=function($e){switch($e){case eo:return L(L(L({},gr,v),_n,p),Tn,m);case to:return L(L(L({},gr,b),_n,g),Tn,y);case ro:return L(L(L({},gr,h),_n,C),Tn,x);default:return{}}},ge=c.useMemo(function(){return fe(H)},[H]),Oe=hh(H,!e,function(me){if(me===gr){var $e=ge[gr];return $e?$e(q()):qd}if(le in ge){var je;V(((je=ge[le])===null||je===void 0?void 0:je.call(ge,q(),null))||null)}return le===Tn&&H!==Kr&&(ve(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){ee({deadline:!0})},d))),le===Vd&&J(),ph}),B=U(Oe,2),ue=B[0],le=B[1],Ee=Xd(le);Y.current=Ee,Kd(function(){F(t);var me=K.current;K.current=!0;var $e;!me&&t&&s&&($e=eo),me&&t&&o&&($e=to),(me&&!t&&u||!me&&f&&!t&&u)&&($e=ro);var je=fe($e);$e&&(e||je[gr])?(N($e),ue()):N(Kr)},[t]),P.useEffect(function(){(H===eo&&!s||H===to&&!o||H===ro&&!u)&&N(Kr)},[s,o,u]),P.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var he=c.useRef(!1);P.useEffect(function(){M&&(he.current=!0),M!==void 0&&H===Kr&&((he.current||M)&&(w==null||w(M)),he.current=!0)},[M,H]);var ae=z;return ge[gr]&&le===_n&&(ae=D({transition:"none"},ae)),[H,le,ae,M??t]}function yh(e){var t=e;Ie(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(kd),g=p.motion,C=r(a,g),m=P.useRef(),y=P.useRef();function x(){try{return m.current instanceof HTMLElement?m.current:fo(y.current)}catch{return null}}var S=bh(C,s,x,a),E=U(S,4),R=E[0],w=E[1],$=E[2],T=E[3],M=c.useRef(T);T&&(M.current=!0);var F=c.useCallback(function(z){m.current=z,Qs(o,z)},[o]),A,_=D(D({},h),{},{visible:s});if(!f)A=null;else if(R===Kr)T?A=f(D({},_),F):!u&&M.current&&b?A=f(D(D({},_),{},{className:b}),F):d||!u&&!b?A=f(D(D({},_),{},{style:{display:"none"}}),F):A=null;else{var k;w===gr?k="prepare":Xd(w)?k="active":w===_n&&(k="start");var N=Sc(v,"".concat(R,"-").concat(k));A=f(D(D({},_),{},{className:Z(Sc(v,R),L(L({},N,N&&k),v,typeof v=="string")),style:$}),F)}if(c.isValidElement(A)&&cn(A)){var O=A,j=O.ref;j||(A=c.cloneElement(A,{ref:F}))}return c.createElement(sh,{ref:y},A)});return n.displayName="CSSMotion",n}const un=yh(Ud);var ys="add",Cs="keep",Ss="remove",Si="removed";function Ch(e){var t;return e&&Ie(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function xs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Ch)}function Sh(){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=xs(e),i=xs(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 D(D({},b),{},{status:ys})})),n=f),r.push(D(D({},v),{},{status:Cs})),n+=1,d=!0;break}}d||r.push(D(D({},u),{},{status:Ss}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return D(D({},u),{},{status:ys})})));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!==Ss}),r.forEach(function(d){d.key===u&&(d.status=Cs)})}),r}var xh=["component","children","onVisibleChanged","onAllRemoved"],Eh=["status"],wh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $h(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un,r=function(n){Zr(o,n);var a=Qr(o);function o(){var i;Lt(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(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:D(D({},b),{},{status:Si})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==Si}).length}),i}return Dt(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,xh),p=d||c.Fragment,g={};return wh.forEach(function(C){g[C]=h[C],delete h[C]}),delete h.keys,c.createElement(p,h,l.map(function(C,m){var y=C.status,x=Je(C,Eh),S=y===ys||y===Cs;return c.createElement(t,xe({},g,{key:x.key,visible:S,eventProps:x,onVisibleChanged:function(R){if(v==null||v(R,{key:x.key}),!R){var w=s.removeKey(x.key);w===0&&b&&b()}}}),function(E,R){return f(D(D({},E),{},{index:m}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=xs(u),v=Sh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var g=p.key;return b.key===g});return!(h&&h.status===Si&&b.status===Ss)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}$h(Ud);function Oh(e){const{children:t}=e,[,r]=Vr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(ih,{motion:n},t):t}const Yd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Nt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Yd.displayName="PropWarning");const Rh=process.env.NODE_ENV!=="production"?Yd:()=>null;var Ph=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 Es=!1;process.env.NODE_ENV;const _h=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Zd;function Th(){return Zd||Po}function Nh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Ih=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Zd=t),n&&Nh(n)&&(process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),_p(Th(),n))},Mh=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:g,iconPrefixCls:C,theme:m,componentDisabled:y,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:T,typography:M,checkbox:F,descriptions:A,divider:_,drawer:k,skeleton:N,steps:O,image:j,layout:z,list:V,mentions:H,modal:K,progress:W,result:q,slider:Y,breadcrumb:J,menu:ee,pagination:te,input:oe,textArea:ve,empty:fe,badge:ge,radio:Oe,rate:B,switch:ue,transfer:le,avatar:Ee,message:he,tag:ae,table:me,card:$e,tabs:je,timeline:ie,timePicker:ne,upload:pe,notification:be,tree:at,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:et,dropdown:Le,warning:Ne,tour:lt,floatButtonGroup:Ze,variant:De,inputNumber:de,treeSelect:we}=e,qe=c.useCallback((He,We)=>{const{prefixCls:ct}=e;if(We)return We;const yt=ct||g.getPrefixCls("");return He?`${yt}-${He}`:yt},[g.getPrefixCls,e.prefixCls]),ot=C||g.iconPrefixCls||Nd,Ct=r||g.csp;zd(ot,Ct);const ft=ah(m,g.theme,{prefixCls:qe("")});process.env.NODE_ENV!=="production"&&(Es=Es||!!ft);const Be={csp:Ct,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:qe,iconPrefixCls:ot,theme:ft,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:T,typography:M,checkbox:F,descriptions:A,divider:_,drawer:k,skeleton:N,steps:O,image:j,input:oe,textArea:ve,layout:z,list:V,mentions:H,modal:K,progress:W,result:q,slider:Y,breadcrumb:J,menu:ee,pagination:te,empty:fe,badge:ge,radio:Oe,rate:B,switch:ue,transfer:le,avatar:Ee,message:he,tag:ae,table:me,card:$e,tabs:je,timeline:ie,timePicker:ne,upload:pe,notification:be,tree:at,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:et,dropdown:Le,warning:Ne,tour:lt,floatButtonGroup:Ze,variant:De,inputNumber:de,treeSelect:we};process.env.NODE_ENV!=="production"&&Nt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ve=Object.assign({},g);Object.keys(Be).forEach(He=>{Be[He]!==void 0&&(Ve[He]=Be[He])}),_h.forEach(He=>{const We=e[He];We&&(Ve[He]=We)}),typeof n<"u"&&(Ve.button=Object.assign({autoInsertSpace:n},Ve.button));const ze=Do(()=>Ve,Ve,(He,We)=>{const ct=Object.keys(He),yt=Object.keys(We);return ct.length!==yt.length||ct.some(Pt=>He[Pt]!==We[Pt])}),Pe=c.useMemo(()=>({prefixCls:ot,csp:Ct}),[ot,Ct]);let ye=c.createElement(c.Fragment,null,c.createElement(Rh,{dropdownMatchSelectWidth:v}),t);const Ue=c.useMemo(()=>{var He,We,ct,yt;return Pn(((He=zn.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((ct=(We=ze.locale)===null||We===void 0?void 0:We.Form)===null||ct===void 0?void 0:ct.defaultValidateMessages)||{},((yt=ze.form)===null||yt===void 0?void 0:yt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ze,i==null?void 0:i.validateMessages]);Object.keys(Ue).length>0&&(ye=c.createElement(Km.Provider,{value:Ue},ye)),s&&(ye=c.createElement(wd,{locale:s,_ANT_MARK__:Ed},ye)),(ot||Ct)&&(ye=c.createElement(il.Provider,{value:Pe},ye)),l&&(ye=c.createElement(Np,{size:l},ye)),ye=c.createElement(Oh,null,ye);const bt=c.useMemo(()=>{const He=ft||{},{algorithm:We,token:ct,components:yt,cssVar:Pt}=He,kt=Ph(He,["algorithm","token","components","cssVar"]),Wt=We&&(!Array.isArray(We)||We.length>0)?Yi(We):_d,I={};Object.entries(yt||{}).forEach(X=>{let[se,_e]=X;const Re=Object.assign({},_e);"algorithm"in Re&&(Re.algorithm===!0?Re.theme=Wt:(Array.isArray(Re.algorithm)||typeof Re.algorithm=="function")&&(Re.theme=Yi(Re.algorithm)),delete Re.algorithm),I[se]=Re});const G=Object.assign(Object.assign({},wa),ct);return Object.assign(Object.assign({},kt),{theme:Wt,token:G,components:I,override:Object.assign({override:G},I),cssVar:Pt})},[ft]);return m&&(ye=c.createElement(Td.Provider,{value:bt},ye)),ze.warning&&(ye=c.createElement(Sd.Provider,{value:ze.warning},ye)),y!==void 0&&(ye=c.createElement(Tp,{disabled:y},ye)),c.createElement(nt.Provider,{value:ze},ye)},dn=e=>{const t=c.useContext(nt),r=c.useContext(sl);return c.createElement(Mh,Object.assign({parentContext:t,legacyLocale:r},e))};dn.ConfigContext=nt;dn.SizeContext=kn;dn.config=Ih;dn.useConfig=Ip;Object.defineProperty(dn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),kn)});process.env.NODE_ENV!=="production"&&(dn.displayName="ConfigProvider");function Qd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function jh(e){return Qd(e)instanceof ShadowRoot}function To(e){return jh(e)?Qd(e):null}function Ah(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Fh(e,t){st(e,"[@ant-design/icons] ".concat(t))}function xc(e){return Ie(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ie(e.icon)==="object"||typeof e.icon=="function")}function Ec(){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[Ah(r)]=n}return t},{})}function ws(e,t,r){return r?P.createElement(e.tag,D(D({key:t},Ec(e.attrs)),r),(e.children||[]).map(function(n,a){return ws(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,D({key:t},Ec(e.attrs)),(e.children||[]).map(function(n,a){return ws(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Jd(e){return Ea(e)[0]}function ef(e){return e?Array.isArray(e)?e:[e]:[]}var Lh=`
148
+ `,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 mc=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 Fd={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},qp={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},Xp={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},Ld=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=mc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Ad(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=mc(u,["theme"]);let v=f;d&&(v=Ld(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Vr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Td),o=`${Up}-${t||""}`,i=r||_d,[s,l,u]=gm(i,[wa,e],{salt:o,override:n,getComputedToken:Ld,formatToken:Ad,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Fd,ignore:qp,preserve:Xp}});return[i,u,t?l:"",s,a]}const Dd=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ll={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zr=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}},Yp=()=>({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"}}),Ia=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Zp=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"}}}),Qp=(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})}},cl=e=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ul=e=>({"&:focus-visible":Object.assign({},cl(e))}),zd=(e,t)=>{const[r,n]=Vr();return rs({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({},Yp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:lr,genComponentStyleHook:Jp,genSubStyleComponent:eh}=Gp({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(nt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Vr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(nt);return zd(t,e),e??{}},getResetStyles:e=>[{"&":Zp(e)}],getCommonStyle:Qp,getCompUnitless:()=>Fd});function th(e,t){return To.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 rh=Object.assign({},c),{useId:pc}=rh,nh=()=>"",ah=typeof pc>"u"?nh:pc;function oh(e,t,r){var n,a;const o=Nt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},hs),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:hs.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=ah();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 zo(()=>{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!Ca(f,b,!0)}))}var ih=["children"],kd=c.createContext({});function sh(e){var t=e.children,r=Je(e,ih);return c.createElement(kd.Provider,{value:r},t)}var lh=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function ch(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Ht(function(){return a.current}),i=Ht(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Kr="none",to="appear",ro="enter",no="leave",hc="none",gr="prepare",_n="start",Tn="active",dl="end",Vd="prepared";function bc(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 uh(e,t){var r={animationend:bc("Animation","AnimationEnd"),transitionend:bc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var dh=uh(Xt(),typeof window<"u"?window:{}),Bd={};if(Xt()){var fh=document.createElement("div");Bd=fh.style}var ao={};function Hd(e){if(ao[e])return ao[e];var t=dh[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 Bd)return ao[e]=t[o],ao[e]}return""}var Wd=Hd("animationend"),Gd=Hd("transitionend"),Ud=!!(Wd&&Gd),yc=Wd||"animationend",Cc=Gd||"transitionend";function Sc(e,t){if(!e)return null;if(Ie(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const vh=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(Cc,e),a.removeEventListener(yc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Cc,e),a.addEventListener(yc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Kd=Xt()?P.useLayoutEffect:P.useEffect;const gh=function(){var e=c.useRef(null);function t(){Tt.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Tt(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 mh=[gr,_n,Tn,dl],ph=[gr,Vd],qd=!1,hh=!0;function Xd(e){return e===Tn||e===dl}const bh=function(e,t,r){var n=$a(hc),a=U(n,2),o=a[0],i=a[1],s=gh(),l=U(s,2),u=l[0],d=l[1];function f(){i(gr,!0)}var v=t?ph:mh;return Kd(function(){if(o!==hc&&o!==dl){var b=v.indexOf(o),h=v[b+1],p=r(o);p===qd?i(h,!0):h&&u(function(g){function C(){g.isCanceled()||i(h,!0)}p===!0?C():Promise.resolve(p).then(C)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function yh(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,g=n.onEnterStart,C=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,x=n.onLeaveActive,S=n.onAppearEnd,E=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=$a(),T=U($,2),M=T[0],F=T[1],A=ch(Kr),_=U(A,2),k=_[0],N=_[1],O=$a(null),j=U(O,2),z=j[0],V=j[1],H=k(),K=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Y=P.useRef(!1);function J(){N(Kr),V(null,!0)}var ee=Ht(function(me){var $e=k();if($e!==Kr){var je=q();if(!(me&&!me.deadline&&me.target!==je)){var ie=Y.current,ne;$e===to&&ie?ne=S==null?void 0:S(je,me):$e===ro&&ie?ne=E==null?void 0:E(je,me):$e===no&&ie&&(ne=R==null?void 0:R(je,me)),ie&&ne!==!1&&J()}}}),te=vh(ee),oe=U(te,1),ve=oe[0],fe=function($e){switch($e){case to:return L(L(L({},gr,v),_n,p),Tn,m);case ro:return L(L(L({},gr,b),_n,g),Tn,y);case no:return L(L(L({},gr,h),_n,C),Tn,x);default:return{}}},ge=c.useMemo(function(){return fe(H)},[H]),Oe=bh(H,!e,function(me){if(me===gr){var $e=ge[gr];return $e?$e(q()):qd}if(le in ge){var je;V(((je=ge[le])===null||je===void 0?void 0:je.call(ge,q(),null))||null)}return le===Tn&&H!==Kr&&(ve(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){ee({deadline:!0})},d))),le===Vd&&J(),hh}),B=U(Oe,2),ue=B[0],le=B[1],Ee=Xd(le);Y.current=Ee,Kd(function(){F(t);var me=K.current;K.current=!0;var $e;!me&&t&&s&&($e=to),me&&t&&o&&($e=ro),(me&&!t&&u||!me&&f&&!t&&u)&&($e=no);var je=fe($e);$e&&(e||je[gr])?(N($e),ue()):N(Kr)},[t]),P.useEffect(function(){(H===to&&!s||H===ro&&!o||H===no&&!u)&&N(Kr)},[s,o,u]),P.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var he=c.useRef(!1);P.useEffect(function(){M&&(he.current=!0),M!==void 0&&H===Kr&&((he.current||M)&&(w==null||w(M)),he.current=!0)},[M,H]);var ae=z;return ge[gr]&&le===_n&&(ae=D({transition:"none"},ae)),[H,le,ae,M??t]}function Ch(e){var t=e;Ie(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(kd),g=p.motion,C=r(a,g),m=P.useRef(),y=P.useRef();function x(){try{return m.current instanceof HTMLElement?m.current:vo(y.current)}catch{return null}}var S=yh(C,s,x,a),E=U(S,4),R=E[0],w=E[1],$=E[2],T=E[3],M=c.useRef(T);T&&(M.current=!0);var F=c.useCallback(function(z){m.current=z,Qs(o,z)},[o]),A,_=D(D({},h),{},{visible:s});if(!f)A=null;else if(R===Kr)T?A=f(D({},_),F):!u&&M.current&&b?A=f(D(D({},_),{},{className:b}),F):d||!u&&!b?A=f(D(D({},_),{},{style:{display:"none"}}),F):A=null;else{var k;w===gr?k="prepare":Xd(w)?k="active":w===_n&&(k="start");var N=Sc(v,"".concat(R,"-").concat(k));A=f(D(D({},_),{},{className:Z(Sc(v,R),L(L({},N,N&&k),v,typeof v=="string")),style:$}),F)}if(c.isValidElement(A)&&cn(A)){var O=A,j=O.ref;j||(A=c.cloneElement(A,{ref:F}))}return c.createElement(lh,{ref:y},A)});return n.displayName="CSSMotion",n}const un=Ch(Ud);var ys="add",Cs="keep",Ss="remove",Si="removed";function Sh(e){var t;return e&&Ie(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function xs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Sh)}function xh(){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=xs(e),i=xs(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 D(D({},b),{},{status:ys})})),n=f),r.push(D(D({},v),{},{status:Cs})),n+=1,d=!0;break}}d||r.push(D(D({},u),{},{status:Ss}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return D(D({},u),{},{status:ys})})));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!==Ss}),r.forEach(function(d){d.key===u&&(d.status=Cs)})}),r}var Eh=["component","children","onVisibleChanged","onAllRemoved"],wh=["status"],$h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un,r=function(n){Zr(o,n);var a=Qr(o);function o(){var i;Lt(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(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:D(D({},b),{},{status:Si})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==Si}).length}),i}return Dt(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,Eh),p=d||c.Fragment,g={};return $h.forEach(function(C){g[C]=h[C],delete h[C]}),delete h.keys,c.createElement(p,h,l.map(function(C,m){var y=C.status,x=Je(C,wh),S=y===ys||y===Cs;return c.createElement(t,xe({},g,{key:x.key,visible:S,eventProps:x,onVisibleChanged:function(R){if(v==null||v(R,{key:x.key}),!R){var w=s.removeKey(x.key);w===0&&b&&b()}}}),function(E,R){return f(D(D({},E),{},{index:m}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=xs(u),v=xh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var g=p.key;return b.key===g});return!(h&&h.status===Si&&b.status===Ss)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}Oh(Ud);function Rh(e){const{children:t}=e,[,r]=Vr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(sh,{motion:n},t):t}const Yd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Nt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Yd.displayName="PropWarning");const Ph=process.env.NODE_ENV!=="production"?Yd:()=>null;var _h=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 Es=!1;process.env.NODE_ENV;const Th=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Zd;function Nh(){return Zd||_o}function Ih(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&&(Zd=t),n&&Ih(n)&&(process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Tp(Nh(),n))},jh=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:g,iconPrefixCls:C,theme:m,componentDisabled:y,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:T,typography:M,checkbox:F,descriptions:A,divider:_,drawer:k,skeleton:N,steps:O,image:j,layout:z,list:V,mentions:H,modal:K,progress:W,result:q,slider:Y,breadcrumb:J,menu:ee,pagination:te,input:oe,textArea:ve,empty:fe,badge:ge,radio:Oe,rate:B,switch:ue,transfer:le,avatar:Ee,message:he,tag:ae,table:me,card:$e,tabs:je,timeline:ie,timePicker:ne,upload:pe,notification:be,tree:at,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:et,dropdown:Le,warning:Ne,tour:lt,floatButtonGroup:Ze,variant:De,inputNumber:de,treeSelect:we}=e,qe=c.useCallback((He,We)=>{const{prefixCls:ct}=e;if(We)return We;const yt=ct||g.getPrefixCls("");return He?`${yt}-${He}`:yt},[g.getPrefixCls,e.prefixCls]),ot=C||g.iconPrefixCls||Nd,Ct=r||g.csp;zd(ot,Ct);const ft=oh(m,g.theme,{prefixCls:qe("")});process.env.NODE_ENV!=="production"&&(Es=Es||!!ft);const Be={csp:Ct,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:qe,iconPrefixCls:ot,theme:ft,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:T,typography:M,checkbox:F,descriptions:A,divider:_,drawer:k,skeleton:N,steps:O,image:j,input:oe,textArea:ve,layout:z,list:V,mentions:H,modal:K,progress:W,result:q,slider:Y,breadcrumb:J,menu:ee,pagination:te,empty:fe,badge:ge,radio:Oe,rate:B,switch:ue,transfer:le,avatar:Ee,message:he,tag:ae,table:me,card:$e,tabs:je,timeline:ie,timePicker:ne,upload:pe,notification:be,tree:at,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:et,dropdown:Le,warning:Ne,tour:lt,floatButtonGroup:Ze,variant:De,inputNumber:de,treeSelect:we};process.env.NODE_ENV!=="production"&&Nt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ve=Object.assign({},g);Object.keys(Be).forEach(He=>{Be[He]!==void 0&&(Ve[He]=Be[He])}),Th.forEach(He=>{const We=e[He];We&&(Ve[He]=We)}),typeof n<"u"&&(Ve.button=Object.assign({autoInsertSpace:n},Ve.button));const ze=zo(()=>Ve,Ve,(He,We)=>{const ct=Object.keys(He),yt=Object.keys(We);return ct.length!==yt.length||ct.some(Pt=>He[Pt]!==We[Pt])}),Pe=c.useMemo(()=>({prefixCls:ot,csp:Ct}),[ot,Ct]);let ye=c.createElement(c.Fragment,null,c.createElement(Ph,{dropdownMatchSelectWidth:v}),t);const Ue=c.useMemo(()=>{var He,We,ct,yt;return Pn(((He=zn.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((ct=(We=ze.locale)===null||We===void 0?void 0:We.Form)===null||ct===void 0?void 0:ct.defaultValidateMessages)||{},((yt=ze.form)===null||yt===void 0?void 0:yt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ze,i==null?void 0:i.validateMessages]);Object.keys(Ue).length>0&&(ye=c.createElement(qm.Provider,{value:Ue},ye)),s&&(ye=c.createElement(wd,{locale:s,_ANT_MARK__:Ed},ye)),(ot||Ct)&&(ye=c.createElement(il.Provider,{value:Pe},ye)),l&&(ye=c.createElement(Ip,{size:l},ye)),ye=c.createElement(Rh,null,ye);const bt=c.useMemo(()=>{const He=ft||{},{algorithm:We,token:ct,components:yt,cssVar:Pt}=He,kt=_h(He,["algorithm","token","components","cssVar"]),Wt=We&&(!Array.isArray(We)||We.length>0)?Yi(We):_d,I={};Object.entries(yt||{}).forEach(X=>{let[se,_e]=X;const Re=Object.assign({},_e);"algorithm"in Re&&(Re.algorithm===!0?Re.theme=Wt:(Array.isArray(Re.algorithm)||typeof Re.algorithm=="function")&&(Re.theme=Yi(Re.algorithm)),delete Re.algorithm),I[se]=Re});const G=Object.assign(Object.assign({},wa),ct);return Object.assign(Object.assign({},kt),{theme:Wt,token:G,components:I,override:Object.assign({override:G},I),cssVar:Pt})},[ft]);return m&&(ye=c.createElement(Td.Provider,{value:bt},ye)),ze.warning&&(ye=c.createElement(Sd.Provider,{value:ze.warning},ye)),y!==void 0&&(ye=c.createElement(Np,{disabled:y},ye)),c.createElement(nt.Provider,{value:ze},ye)},dn=e=>{const t=c.useContext(nt),r=c.useContext(sl);return c.createElement(jh,Object.assign({parentContext:t,legacyLocale:r},e))};dn.ConfigContext=nt;dn.SizeContext=kn;dn.config=Mh;dn.useConfig=Mp;Object.defineProperty(dn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),kn)});process.env.NODE_ENV!=="production"&&(dn.displayName="ConfigProvider");function Qd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ah(e){return Qd(e)instanceof ShadowRoot}function No(e){return Ah(e)?Qd(e):null}function Fh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Lh(e,t){st(e,"[@ant-design/icons] ".concat(t))}function xc(e){return Ie(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ie(e.icon)==="object"||typeof e.icon=="function")}function Ec(){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[Fh(r)]=n}return t},{})}function ws(e,t,r){return r?P.createElement(e.tag,D(D({key:t},Ec(e.attrs)),r),(e.children||[]).map(function(n,a){return ws(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,D({key:t},Ec(e.attrs)),(e.children||[]).map(function(n,a){return ws(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Jd(e){return Ea(e)[0]}function ef(e){return e?Array.isArray(e)?e:[e]:[]}var Dh=`
150
149
  .anticon {
151
150
  display: inline-flex;
152
151
  align-items: center;
@@ -201,7 +200,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
201
200
  transform: rotate(360deg);
202
201
  }
203
202
  }
204
- `,Dh=function(t){var r=P.useContext(il),n=r.csp,a=r.prefixCls,o=Lh;a&&(o=o.replace(/anticon/g,a)),P.useEffect(function(){var i=t.current,s=To(i);Lr(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},zh=["icon","className","onClick","style","primaryColor","secondaryColor"],fa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kh(e){var t=e.primaryColor,r=e.secondaryColor;fa.primaryColor=t,fa.secondaryColor=r||Jd(t),fa.calculated=!!r}function Vh(){return D({},fa)}var Gn=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=Je(t,zh),u=c.useRef(),d=fa;if(i&&(d={primaryColor:i,secondaryColor:s||Jd(i)}),Dh(u),Fh(xc(r),"icon should be icon definiton, but got ".concat(r)),!xc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=D(D({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ws(f.icon,"svg-".concat(f.name),D(D({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};Gn.displayName="IconReact";Gn.getTwoToneColors=Vh;Gn.setTwoToneColors=kh;function tf(e){var t=ef(e),r=U(t,2),n=r[0],a=r[1];return Gn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Bh(){var e=Gn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Hh=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];tf(Ro.primary);var zt=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,Hh),d=c.useContext(il),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),p=i;p===void 0&&s&&(p=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=ef(l),m=U(C,2),y=m[0],x=m[1];return c.createElement("span",xe({role:"img","aria-label":n.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),c.createElement(Gn,{icon:n,primaryColor:y,secondaryColor:x,style:g}))});zt.displayName="AntdIcon";zt.getTwoToneColor=Bh;zt.setTwoToneColor=tf;var Wh={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"},Gh=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:Wh}))},rf=c.forwardRef(Gh);process.env.NODE_ENV!=="production"&&(rf.displayName="CloseCircleFilled");var Uh={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"},Kh=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:Uh}))},nf=c.forwardRef(Kh);process.env.NODE_ENV!=="production"&&(nf.displayName="CloseOutlined");var qh=`accept acceptCharset accessKey action allowFullScreen allowTransparency
203
+ `,zh=function(t){var r=P.useContext(il),n=r.csp,a=r.prefixCls,o=Dh;a&&(o=o.replace(/anticon/g,a)),P.useEffect(function(){var i=t.current,s=No(i);Lr(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},kh=["icon","className","onClick","style","primaryColor","secondaryColor"],fa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Vh(e){var t=e.primaryColor,r=e.secondaryColor;fa.primaryColor=t,fa.secondaryColor=r||Jd(t),fa.calculated=!!r}function Bh(){return D({},fa)}var Gn=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=Je(t,kh),u=c.useRef(),d=fa;if(i&&(d={primaryColor:i,secondaryColor:s||Jd(i)}),zh(u),Lh(xc(r),"icon should be icon definiton, but got ".concat(r)),!xc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=D(D({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ws(f.icon,"svg-".concat(f.name),D(D({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};Gn.displayName="IconReact";Gn.getTwoToneColors=Bh;Gn.setTwoToneColors=Vh;function tf(e){var t=ef(e),r=U(t,2),n=r[0],a=r[1];return Gn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Hh(){var e=Gn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Wh=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];tf(Po.primary);var zt=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,Wh),d=c.useContext(il),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),p=i;p===void 0&&s&&(p=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=ef(l),m=U(C,2),y=m[0],x=m[1];return c.createElement("span",xe({role:"img","aria-label":n.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),c.createElement(Gn,{icon:n,primaryColor:y,secondaryColor:x,style:g}))});zt.displayName="AntdIcon";zt.getTwoToneColor=Hh;zt.setTwoToneColor=tf;var Gh={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"},Uh=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:Gh}))},rf=c.forwardRef(Uh);process.env.NODE_ENV!=="production"&&(rf.displayName="CloseCircleFilled");var Kh={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"},qh=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:Kh}))},nf=c.forwardRef(qh);process.env.NODE_ENV!=="production"&&(nf.displayName="CloseOutlined");var Xh=`accept acceptCharset accessKey action allowFullScreen allowTransparency
205
204
  alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
206
205
  charSet checked classID className colSpan cols content contentEditable contextMenu
207
206
  controls coords crossOrigin data dateTime default defer dir disabled download draggable
@@ -212,41 +211,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
212
211
  optimum pattern placeholder poster preload radioGroup readOnly rel required
213
212
  reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
214
213
  shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
215
- summary tabIndex target title type useMap value width wmode wrap`,Xh=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
214
+ summary tabIndex target title type useMap value width wmode wrap`,Yh=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
216
215
  onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
217
216
  onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
218
217
  onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
219
218
  onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
220
219
  onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
221
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Yh="".concat(qh," ").concat(Xh).split(/[\s\n]+/),Zh="aria-",Qh="data-";function wc(e,t){return e.indexOf(t)===0}function Jh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=D({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||wc(a,Zh))||r.data&&wc(a,Qh)||r.attr&&Yh.includes(a))&&(n[a]=e[a])}),n}function af(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const e0=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Go(e,t){return e0(e,e,t)}const Ma=e=>{const[,,,,t]=Vr();return t?`${e}-css-var`:""};var ce={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>=ce.F1&&r<=ce.F12)return!1;switch(r){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},t0={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"},r0=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:t0}))},fl=c.forwardRef(r0);process.env.NODE_ENV!=="production"&&(fl.displayName="LoadingOutlined");const vl=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(vl.displayName="zIndexContext");const rn=100,n0=10,a0=rn*n0,of={Modal:rn,Drawer:rn,Popover:rn,Popconfirm:rn,Tooltip:rn,Tour:rn},o0={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function i0(e){return e in of}function s0(e,t){const[,r]=Vr(),n=P.useContext(vl),a=i0(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+of[e]:i+=o0[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=Nt(e),s=r.zIndexPopupBase+a0,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 Yt(){Yt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(N,O,j){N[O]=j.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(N,O,j){return Object.defineProperty(N,O,{value:j,enumerable:!0,configurable:!0,writable:!0}),N[O]}try{u({},"")}catch{u=function(j,z,V){return j[z]=V}}function d(N,O,j,z){var V=O&&O.prototype instanceof C?O:C,H=Object.create(V.prototype),K=new _(z||[]);return a(H,"_invoke",{value:T(N,j,K)}),H}function f(N,O,j){try{return{type:"normal",arg:N.call(O,j)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",g={};function C(){}function m(){}function y(){}var x={};u(x,i,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(k([])));E&&E!==r&&n.call(E,i)&&(x=E);var R=y.prototype=C.prototype=Object.create(x);function w(N){["next","throw","return"].forEach(function(O){u(N,O,function(j){return this._invoke(O,j)})})}function $(N,O){function j(V,H,K,W){var q=f(N[V],N,H);if(q.type!=="throw"){var Y=q.arg,J=Y.value;return J&&Ie(J)=="object"&&n.call(J,"__await")?O.resolve(J.__await).then(function(ee){j("next",ee,K,W)},function(ee){j("throw",ee,K,W)}):O.resolve(J).then(function(ee){Y.value=ee,K(Y)},function(ee){return j("throw",ee,K,W)})}W(q.arg)}var z;a(this,"_invoke",{value:function(H,K){function W(){return new O(function(q,Y){j(H,K,q,Y)})}return z=z?z.then(W,W):W()}})}function T(N,O,j){var z=v;return function(V,H){if(z===h)throw Error("Generator is already running");if(z===p){if(V==="throw")throw H;return{value:e,done:!0}}for(j.method=V,j.arg=H;;){var K=j.delegate;if(K){var W=M(K,j);if(W){if(W===g)continue;return W}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(z===v)throw z=p,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);z=h;var q=f(N,O,j);if(q.type==="normal"){if(z=j.done?p:b,q.arg===g)continue;return{value:q.arg,done:j.done}}q.type==="throw"&&(z=p,j.method="throw",j.arg=q.arg)}}}function M(N,O){var j=O.method,z=N.iterator[j];if(z===e)return O.delegate=null,j==="throw"&&N.iterator.return&&(O.method="return",O.arg=e,M(N,O),O.method==="throw")||j!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+j+"' method")),g;var V=f(z,N.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,g;var H=V.arg;return H?H.done?(O[N.resultName]=H.value,O.next=N.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,g):H:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function F(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 _(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(F,this),this.reset(!0)}function k(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 j=-1,z=function V(){for(;++j<N.length;)if(n.call(N,j))return V.value=N[j],V.done=!1,V;return V.value=e,V.done=!0,V};return z.next=z}}throw new TypeError(Ie(N)+" is not iterable")}return m.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var O=typeof N=="function"&&N.constructor;return!!O&&(O===m||(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,j,z,V){V===void 0&&(V=Promise);var H=new $(d(N,O,j,z),V);return t.isGeneratorFunction(O)?H:H.next().then(function(K){return K.done?K.value:H.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),j=[];for(var z in O)j.push(z);return j.reverse(),function V(){for(;j.length;){var H=j.pop();if(H in O)return V.value=H,V.done=!1,V}return V.done=!0,V}},t.values=k,_.prototype={constructor:_,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 j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=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 j=this;function z(Y,J){return K.type="throw",K.arg=O,j.next=Y,J&&(j.method="next",j.arg=e),!!J}for(var V=this.tryEntries.length-1;V>=0;--V){var H=this.tryEntries[V],K=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var W=n.call(H,"catchLoc"),q=n.call(H,"finallyLoc");if(W&&q){if(this.prev<H.catchLoc)return z(H.catchLoc,!0);if(this.prev<H.finallyLoc)return z(H.finallyLoc)}else if(W){if(this.prev<H.catchLoc)return z(H.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return z(H.finallyLoc)}}}},abrupt:function(O,j){for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var H=V;break}}H&&(O==="break"||O==="continue")&&H.tryLoc<=j&&j<=H.finallyLoc&&(H=null);var K=H?H.completion:{};return K.type=O,K.arg=j,H?(this.method="next",this.next=H.finallyLoc,g):this.complete(K)},complete:function(O,j){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"&&j&&(this.next=j),g},finish:function(O){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===O)return this.complete(z.completion,z.afterLoc),A(z),g}},catch:function(O){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===O){var V=z.completion;if(V.type==="throw"){var H=V.arg;A(z)}return H}}throw Error("illegal catch attempt")},delegateYield:function(O,j,z){return this.delegate={iterator:k(O),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=e),g}},t}function $c(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 fn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){$c(o,n,a,i,s,"next",l)}function s(l){$c(o,n,a,i,s,"throw",l)}i(void 0)})}}var ja=D({},Xv),l0=ja.version,c0=ja.render,u0=ja.unmountComponentAtNode,Uo;try{var d0=Number((l0||"").split(".")[0]);d0>=18&&(Uo=ja.createRoot)}catch{}function Oc(e){var t=ja.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ie(t)==="object"&&(t.usingClientEntryPoint=e)}var No="__rc_react_root__";function f0(e,t){Oc(!0);var r=t[No]||Uo(t);Oc(!1),r.render(e),t[No]=r}function v0(e,t){c0(e,t)}function g0(e,t){if(Uo){f0(e,t);return}v0(e,t)}function m0(e){return $s.apply(this,arguments)}function $s(){return $s=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[No])===null||a===void 0||a.unmount(),delete t[No]}));case 1:case"end":return n.stop()}},e)})),$s.apply(this,arguments)}function p0(e){u0(e)}function h0(e){return Os.apply(this,arguments)}function Os(){return Os=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Uo===void 0){n.next=2;break}return n.abrupt("return",m0(t));case 2:p0(t);case 3:case"end":return n.stop()}},e)})),Os.apply(this,arguments)}const sf=(e,t,r)=>r!==void 0?r:`${e}-${t}`,gl=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},b0=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(",")}}}}},y0=Qp("Wave",e=>[b0(e)]),ml=`${Po}-wave-target`;function C0(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 xi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&C0(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function S0(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return xi(t)?t:xi(r)?r:xi(n)?n:null}function Ei(e){return Number.isNaN(e)?0:e}const x0=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,g]=c.useState(0),[C,m]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(y["--wave-color"]=o);function x(){const E=getComputedStyle(r);i(S0(r));const R=E.position==="static",{borderLeftWidth:w,borderTopWidth:$}=E;d(R?r.offsetLeft:Ei(-parseFloat(w))),v(R?r.offsetTop:Ei(-parseFloat($))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:M,borderBottomLeftRadius:F,borderBottomRightRadius:A}=E;l([T,M,A,F].map(_=>Ei(parseFloat(_))))}if(c.useEffect(()=>{if(r){const E=Tt(()=>{x(),m(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(r)),()=>{Tt.cancel(E),R==null||R.disconnect()}}},[]),!C)return null;const S=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(ml));return c.createElement(un,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;h0($).then(()=>{$==null||$.remove()})}return!1}},(E,R)=>{let{className:w}=E;return c.createElement("div",{ref:yr(a,R),className:Z(t,w,{"wave-quick":S}),style:y})})},E0=(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),g0(c.createElement(x0,Object.assign({},t,{target:e})),a)},w0=(e,t,r)=>{const{wave:n}=c.useContext(nt),[,a,o]=Vr(),i=Ht(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${ml}`)||d,{showEffect:v}=n||{};(v||E0)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{Tt.cancel(s.current),s.current=Tt(()=>{i(u)})}},pl=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(nt),o=P.useRef(null),i=a("wave"),[,s]=y0(i),l=w0(o,Z(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!gl(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=cn(t)?yr(t.ref,o):o;return Go(t,{ref:u})};process.env.NODE_ENV!=="production"&&(pl.displayName="Wave");const vn=e=>{const t=P.useContext(kn);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},$0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},O0=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"}}}},R0=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}}}},lf=lr("Space",e=>{const t=jt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[O0(t),R0(t),$0(t)]},()=>({}),{resetStyle:!1});var cf=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 Ko=c.createContext(null),uf=(e,t)=>{const r=c.useContext(Ko),n=c.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}},P0=e=>{let{children:t}=e;return c.createElement(Ko.Provider,{value:null},t)},_0=e=>{var{children:t}=e,r=cf(e,["children"]);return c.createElement(Ko.Provider,{value:r},t)},T0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(nt),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=cf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=vn(y=>n??y),v=t("space-compact",i),[b,h]=lf(v),p=Z(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),g=c.useContext(Ko),C=Rr(u),m=c.useMemo(()=>C.map((y,x)=>{const S=(y==null?void 0:y.key)||`${v}-item-${x}`;return c.createElement(_0,{key:S,compactSize:f,compactDirection:a,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===C.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[n,C,g]);return C.length===0?null:b(c.createElement("div",Object.assign({className:p},d),m))},N0=T0;var I0=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 df=c.createContext(void 0),M0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(nt),{prefixCls:n,size:a,className:o}=e,i=I0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Vr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=Nt("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Z(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(df.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},Rc=/^[\u4e00-\u9fa5]{2}$/,Rs=Rc.test.bind(Rc);function Pc(e){return typeof e=="string"}function ao(e){return e==="text"||e==="link"}function j0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Pc(e.type)&&Rs(e.props.children)?Go(e,{children:e.props.children.split("").join(r)}):Pc(e)?Rs(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):af(e)?P.createElement("span",null,e):e}function A0(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=>j0(a,t))}const ff=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)}),_c=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Z(`${r}-loading-icon`,n);return P.createElement(ff,{prefixCls:r,className:i,style:a,ref:t},P.createElement(fl,{className:o}))}),wi=()=>({width:0,opacity:0,transform:"scale(0)"}),$i=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),F0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(_c,{prefixCls:t,className:a,style:o}):P.createElement(un,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:wi,onAppearActive:$i,onEnterStart:wi,onEnterActive:$i,onLeaveStart:$i,onLeaveActive:wi},(s,l)=>{let{className:u,style:d}=s;return P.createElement(_c,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},Tc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),L0=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}},Tc(`${t}-primary`,a),Tc(`${t}-danger`,o)]}},vf=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return jt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},gf=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:yo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:yo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:yo(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)}},D0=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:`${Q(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({},ul(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"}}}},kr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),z0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),k0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),V0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Oa=(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"},kr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),hl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},V0(e))}),mf=e=>Object.assign({},hl(e)),Io=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),pf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),kr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Oa(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},kr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Oa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),hl(e))}),B0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),kr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Oa(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},kr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Oa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hl(e))}),H0=e=>Object.assign(Object.assign({},pf(e)),{borderStyle:"dashed"}),W0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},kr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Io(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},kr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Io(e))}),G0=e=>Object.assign(Object.assign(Object.assign({},kr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Io(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Io(e)),kr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),U0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:pf(e),[`${t}-primary`]:B0(e),[`${t}-dashed`]:H0(e),[`${t}-link`]:W0(e),[`${t}-text`]:G0(e),[`${t}-ghost`]:Oa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},bl=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:`${Q(u)} ${Q(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}`]:z0(e)},{[`${r}${r}-round${t}`]:k0(e)}]},K0=e=>{const t=jt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return bl(t,e.componentCls)},q0=e=>{const t=jt(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 bl(t,`${e.componentCls}-sm`)},X0=e=>{const t=jt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bl(t,`${e.componentCls}-lg`)},Y0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Z0=lr("Button",e=>{const t=vf(e);return[D0(t),K0(t),q0(t),X0(t),Y0(t),U0(t),L0(t)]},gf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Q0(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 J0(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 hf(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({},Q0(e,n,t)),J0(r,n,t))}}function eb(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 tb(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 rb(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},eb(e,t)),tb(e.componentCls,t))}}const nb=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% + ${Q(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% + ${Q(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},ab=Jp(["Button","compact"],e=>{const t=vf(e);return[hf(t),rb(t),nb(t)]},gf);var ob=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 ib(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 sb=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:g,iconPosition:C="start",ghost:m=!1,block:y=!1,htmlType:x="button",classNames:S,style:E={},autoInsertSpace:R}=e,w=ob(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:M,button:F}=P.useContext(nt),A=(r=R??(F==null?void 0:F.autoInsertSpace))!==null&&r!==void 0?r:!0,_=T("btn",i),[k,N,O]=Z0(_),j=P.useContext(ln),z=v??j,V=P.useContext(df),H=P.useMemo(()=>ib(o),[o]),[K,W]=P.useState(H.loading),[q,Y]=P.useState(!1),ee=yr(t,P.createRef()),te=P.Children.count(p)===1&&!g&&!ao($);P.useEffect(()=>{let ne=null;H.delay>0?ne=setTimeout(()=>{ne=null,W(!0)},H.delay):W(H.loading);function pe(){ne&&(clearTimeout(ne),ne=null)}return pe},[H]),P.useEffect(()=>{if(!ee||!ee.current||!A)return;const ne=ee.current.textContent;te&&Rs(ne)?q||Y(!0):q&&Y(!1)},[ee]);const oe=ne=>{const{onClick:pe}=e;if(K||z){ne.preventDefault();return}pe==null||pe(ne)};if(process.env.NODE_ENV!=="production"){const ne=Nt("Button");process.env.NODE_ENV!=="production"&&ne(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ne(!(m&&ao($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ve,compactItemClassnames:fe}=uf(_,M),ge={large:"lg",small:"sm",middle:void 0},Oe=vn(ne=>{var pe,be;return(be=(pe=d??ve)!==null&&pe!==void 0?pe:V)!==null&&be!==void 0?be:ne}),B=Oe&&ge[Oe]||"",ue=K?"loading":g,le=Cr(w,["navigate"]),Ee=Z(_,N,O,{[`${_}-${u}`]:u!=="default"&&u,[`${_}-${$}`]:$,[`${_}-${B}`]:B,[`${_}-icon-only`]:!p&&p!==0&&!!ue,[`${_}-background-ghost`]:m&&!ao($),[`${_}-loading`]:K,[`${_}-two-chinese-chars`]:q&&A&&!K,[`${_}-block`]:y,[`${_}-dangerous`]:l,[`${_}-rtl`]:M==="rtl",[`${_}-icon-end`]:C==="end"},fe,b,h,F==null?void 0:F.className),he=Object.assign(Object.assign({},F==null?void 0:F.style),E),ae=Z(S==null?void 0:S.icon,(n=F==null?void 0:F.classNames)===null||n===void 0?void 0:n.icon),me=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=F==null?void 0:F.styles)===null||a===void 0?void 0:a.icon)||{}),$e=g&&!K?P.createElement(ff,{prefixCls:_,className:ae,style:me},g):P.createElement(F0,{existIcon:!!g,prefixCls:_,loading:K}),je=p||p===0?A0(p,te&&A):null;if(le.href!==void 0)return k(P.createElement("a",Object.assign({},le,{className:Z(Ee,{[`${_}-disabled`]:z}),href:z?void 0:le.href,style:he,onClick:oe,ref:ee,tabIndex:z?-1:0}),$e,je));let ie=P.createElement("button",Object.assign({},w,{type:x,className:Ee,style:he,onClick:oe,disabled:z,ref:ee}),$e,je,!!fe&&P.createElement(ab,{key:"compact",prefixCls:_}));return ao($)||(ie=P.createElement(pl,{component:"Button",disabled:K},ie)),k(ie)}),Aa=sb;Aa.Group=M0;Aa.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Aa.displayName="Button");var bf=c.createContext(null),Nc=[];function lb(e,t){var r=c.useState(function(){if(!Xt())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(bf),s=c.useState(Nc),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var g=[h].concat(Ce(p));return g})});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 St(function(){return e?i?i(v):v():b(),b},[e]),St(function(){u.length&&(u.forEach(function(h){return h()}),d(Nc))},[u]),[a,f]}function cb(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,";"):"";Lr(`
220
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zh="".concat(Xh," ").concat(Yh).split(/[\s\n]+/),Qh="aria-",Jh="data-";function wc(e,t){return e.indexOf(t)===0}function e0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=D({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||wc(a,Qh))||r.data&&wc(a,Jh)||r.attr&&Zh.includes(a))&&(n[a]=e[a])}),n}function af(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const t0=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Uo(e,t){return t0(e,e,t)}const Ma=e=>{const[,,,,t]=Vr();return t?`${e}-css-var`:""};var ce={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>=ce.F1&&r<=ce.F12)return!1;switch(r){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},r0={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"},n0=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:r0}))},fl=c.forwardRef(n0);process.env.NODE_ENV!=="production"&&(fl.displayName="LoadingOutlined");const vl=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(vl.displayName="zIndexContext");const rn=100,a0=10,o0=rn*a0,of={Modal:rn,Drawer:rn,Popover:rn,Popconfirm:rn,Tooltip:rn,Tour:rn},i0={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function s0(e){return e in of}function l0(e,t){const[,r]=Vr(),n=P.useContext(vl),a=s0(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+of[e]:i+=i0[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=Nt(e),s=r.zIndexPopupBase+o0,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 Yt(){Yt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(N,O,j){N[O]=j.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(N,O,j){return Object.defineProperty(N,O,{value:j,enumerable:!0,configurable:!0,writable:!0}),N[O]}try{u({},"")}catch{u=function(j,z,V){return j[z]=V}}function d(N,O,j,z){var V=O&&O.prototype instanceof C?O:C,H=Object.create(V.prototype),K=new _(z||[]);return a(H,"_invoke",{value:T(N,j,K)}),H}function f(N,O,j){try{return{type:"normal",arg:N.call(O,j)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",g={};function C(){}function m(){}function y(){}var x={};u(x,i,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(k([])));E&&E!==r&&n.call(E,i)&&(x=E);var R=y.prototype=C.prototype=Object.create(x);function w(N){["next","throw","return"].forEach(function(O){u(N,O,function(j){return this._invoke(O,j)})})}function $(N,O){function j(V,H,K,W){var q=f(N[V],N,H);if(q.type!=="throw"){var Y=q.arg,J=Y.value;return J&&Ie(J)=="object"&&n.call(J,"__await")?O.resolve(J.__await).then(function(ee){j("next",ee,K,W)},function(ee){j("throw",ee,K,W)}):O.resolve(J).then(function(ee){Y.value=ee,K(Y)},function(ee){return j("throw",ee,K,W)})}W(q.arg)}var z;a(this,"_invoke",{value:function(H,K){function W(){return new O(function(q,Y){j(H,K,q,Y)})}return z=z?z.then(W,W):W()}})}function T(N,O,j){var z=v;return function(V,H){if(z===h)throw Error("Generator is already running");if(z===p){if(V==="throw")throw H;return{value:e,done:!0}}for(j.method=V,j.arg=H;;){var K=j.delegate;if(K){var W=M(K,j);if(W){if(W===g)continue;return W}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(z===v)throw z=p,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);z=h;var q=f(N,O,j);if(q.type==="normal"){if(z=j.done?p:b,q.arg===g)continue;return{value:q.arg,done:j.done}}q.type==="throw"&&(z=p,j.method="throw",j.arg=q.arg)}}}function M(N,O){var j=O.method,z=N.iterator[j];if(z===e)return O.delegate=null,j==="throw"&&N.iterator.return&&(O.method="return",O.arg=e,M(N,O),O.method==="throw")||j!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+j+"' method")),g;var V=f(z,N.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,g;var H=V.arg;return H?H.done?(O[N.resultName]=H.value,O.next=N.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,g):H:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function F(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 _(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(F,this),this.reset(!0)}function k(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 j=-1,z=function V(){for(;++j<N.length;)if(n.call(N,j))return V.value=N[j],V.done=!1,V;return V.value=e,V.done=!0,V};return z.next=z}}throw new TypeError(Ie(N)+" is not iterable")}return m.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var O=typeof N=="function"&&N.constructor;return!!O&&(O===m||(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,j,z,V){V===void 0&&(V=Promise);var H=new $(d(N,O,j,z),V);return t.isGeneratorFunction(O)?H:H.next().then(function(K){return K.done?K.value:H.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),j=[];for(var z in O)j.push(z);return j.reverse(),function V(){for(;j.length;){var H=j.pop();if(H in O)return V.value=H,V.done=!1,V}return V.done=!0,V}},t.values=k,_.prototype={constructor:_,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 j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=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 j=this;function z(Y,J){return K.type="throw",K.arg=O,j.next=Y,J&&(j.method="next",j.arg=e),!!J}for(var V=this.tryEntries.length-1;V>=0;--V){var H=this.tryEntries[V],K=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var W=n.call(H,"catchLoc"),q=n.call(H,"finallyLoc");if(W&&q){if(this.prev<H.catchLoc)return z(H.catchLoc,!0);if(this.prev<H.finallyLoc)return z(H.finallyLoc)}else if(W){if(this.prev<H.catchLoc)return z(H.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return z(H.finallyLoc)}}}},abrupt:function(O,j){for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var H=V;break}}H&&(O==="break"||O==="continue")&&H.tryLoc<=j&&j<=H.finallyLoc&&(H=null);var K=H?H.completion:{};return K.type=O,K.arg=j,H?(this.method="next",this.next=H.finallyLoc,g):this.complete(K)},complete:function(O,j){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"&&j&&(this.next=j),g},finish:function(O){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===O)return this.complete(z.completion,z.afterLoc),A(z),g}},catch:function(O){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===O){var V=z.completion;if(V.type==="throw"){var H=V.arg;A(z)}return H}}throw Error("illegal catch attempt")},delegateYield:function(O,j,z){return this.delegate={iterator:k(O),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=e),g}},t}function $c(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 fn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){$c(o,n,a,i,s,"next",l)}function s(l){$c(o,n,a,i,s,"throw",l)}i(void 0)})}}var ja=D({},Yv),c0=ja.version,u0=ja.render,d0=ja.unmountComponentAtNode,Ko;try{var f0=Number((c0||"").split(".")[0]);f0>=18&&(Ko=ja.createRoot)}catch{}function Oc(e){var t=ja.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ie(t)==="object"&&(t.usingClientEntryPoint=e)}var Io="__rc_react_root__";function v0(e,t){Oc(!0);var r=t[Io]||Ko(t);Oc(!1),r.render(e),t[Io]=r}function g0(e,t){u0(e,t)}function m0(e,t){if(Ko){v0(e,t);return}g0(e,t)}function p0(e){return $s.apply(this,arguments)}function $s(){return $s=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Io])===null||a===void 0||a.unmount(),delete t[Io]}));case 1:case"end":return n.stop()}},e)})),$s.apply(this,arguments)}function h0(e){d0(e)}function b0(e){return Os.apply(this,arguments)}function Os(){return Os=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ko===void 0){n.next=2;break}return n.abrupt("return",p0(t));case 2:h0(t);case 3:case"end":return n.stop()}},e)})),Os.apply(this,arguments)}const sf=(e,t,r)=>r!==void 0?r:`${e}-${t}`,gl=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},y0=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(",")}}}}},C0=Jp("Wave",e=>[y0(e)]),ml=`${_o}-wave-target`;function S0(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 xi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&S0(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function x0(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return xi(t)?t:xi(r)?r:xi(n)?n:null}function Ei(e){return Number.isNaN(e)?0:e}const E0=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,g]=c.useState(0),[C,m]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(y["--wave-color"]=o);function x(){const E=getComputedStyle(r);i(x0(r));const R=E.position==="static",{borderLeftWidth:w,borderTopWidth:$}=E;d(R?r.offsetLeft:Ei(-parseFloat(w))),v(R?r.offsetTop:Ei(-parseFloat($))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:M,borderBottomLeftRadius:F,borderBottomRightRadius:A}=E;l([T,M,A,F].map(_=>Ei(parseFloat(_))))}if(c.useEffect(()=>{if(r){const E=Tt(()=>{x(),m(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(r)),()=>{Tt.cancel(E),R==null||R.disconnect()}}},[]),!C)return null;const S=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(ml));return c.createElement(un,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;b0($).then(()=>{$==null||$.remove()})}return!1}},(E,R)=>{let{className:w}=E;return c.createElement("div",{ref:yr(a,R),className:Z(t,w,{"wave-quick":S}),style:y})})},w0=(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),m0(c.createElement(E0,Object.assign({},t,{target:e})),a)},$0=(e,t,r)=>{const{wave:n}=c.useContext(nt),[,a,o]=Vr(),i=Ht(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${ml}`)||d,{showEffect:v}=n||{};(v||w0)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{Tt.cancel(s.current),s.current=Tt(()=>{i(u)})}},pl=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(nt),o=P.useRef(null),i=a("wave"),[,s]=C0(i),l=$0(o,Z(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!gl(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=cn(t)?yr(t.ref,o):o;return Uo(t,{ref:u})};process.env.NODE_ENV!=="production"&&(pl.displayName="Wave");const vn=e=>{const t=P.useContext(kn);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},O0=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"}}}},P0=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}}}},lf=lr("Space",e=>{const t=jt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[R0(t),P0(t),O0(t)]},()=>({}),{resetStyle:!1});var cf=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 qo=c.createContext(null),uf=(e,t)=>{const r=c.useContext(qo),n=c.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}},_0=e=>{let{children:t}=e;return c.createElement(qo.Provider,{value:null},t)},T0=e=>{var{children:t}=e,r=cf(e,["children"]);return c.createElement(qo.Provider,{value:r},t)},N0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(nt),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=cf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=vn(y=>n??y),v=t("space-compact",i),[b,h]=lf(v),p=Z(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),g=c.useContext(qo),C=Rr(u),m=c.useMemo(()=>C.map((y,x)=>{const S=(y==null?void 0:y.key)||`${v}-item-${x}`;return c.createElement(T0,{key:S,compactSize:f,compactDirection:a,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===C.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[n,C,g]);return C.length===0?null:b(c.createElement("div",Object.assign({className:p},d),m))},I0=N0;var M0=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 df=c.createContext(void 0),j0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(nt),{prefixCls:n,size:a,className:o}=e,i=M0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Vr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=Nt("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Z(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(df.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},Rc=/^[\u4e00-\u9fa5]{2}$/,Rs=Rc.test.bind(Rc);function Pc(e){return typeof e=="string"}function oo(e){return e==="text"||e==="link"}function A0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Pc(e.type)&&Rs(e.props.children)?Uo(e,{children:e.props.children.split("").join(r)}):Pc(e)?Rs(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):af(e)?P.createElement("span",null,e):e}function F0(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=>A0(a,t))}const ff=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)}),_c=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Z(`${r}-loading-icon`,n);return P.createElement(ff,{prefixCls:r,className:i,style:a,ref:t},P.createElement(fl,{className:o}))}),wi=()=>({width:0,opacity:0,transform:"scale(0)"}),$i=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),L0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(_c,{prefixCls:t,className:a,style:o}):P.createElement(un,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:wi,onAppearActive:$i,onEnterStart:wi,onEnterActive:$i,onLeaveStart:$i,onLeaveActive:wi},(s,l)=>{let{className:u,style:d}=s;return P.createElement(_c,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},Tc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),D0=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}},Tc(`${t}-primary`,a),Tc(`${t}-danger`,o)]}},vf=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return jt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},gf=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:Co(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Co(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Co(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)}},z0=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:`${Q(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({},ul(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"}}}},kr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),k0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),V0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),B0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Oa=(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"},kr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),hl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},B0(e))}),mf=e=>Object.assign({},hl(e)),Mo=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),pf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),kr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Oa(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},kr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Oa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),hl(e))}),H0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),kr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Oa(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},kr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Oa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hl(e))}),W0=e=>Object.assign(Object.assign({},pf(e)),{borderStyle:"dashed"}),G0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},kr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Mo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},kr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Mo(e))}),U0=e=>Object.assign(Object.assign(Object.assign({},kr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Mo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Mo(e)),kr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),K0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:pf(e),[`${t}-primary`]:H0(e),[`${t}-dashed`]:W0(e),[`${t}-link`]:G0(e),[`${t}-text`]:U0(e),[`${t}-ghost`]:Oa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},bl=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:`${Q(u)} ${Q(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}`]:k0(e)},{[`${r}${r}-round${t}`]:V0(e)}]},q0=e=>{const t=jt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return bl(t,e.componentCls)},X0=e=>{const t=jt(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 bl(t,`${e.componentCls}-sm`)},Y0=e=>{const t=jt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bl(t,`${e.componentCls}-lg`)},Z0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Q0=lr("Button",e=>{const t=vf(e);return[z0(t),q0(t),X0(t),Y0(t),Z0(t),K0(t),D0(t)]},gf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function J0(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 eb(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 hf(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({},J0(e,n,t)),eb(r,n,t))}}function tb(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 rb(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 nb(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},tb(e,t)),rb(e.componentCls,t))}}const ab=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% + ${Q(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% + ${Q(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},ob=eh(["Button","compact"],e=>{const t=vf(e);return[hf(t),nb(t),ab(t)]},gf);var ib=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 sb(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 lb=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:g,iconPosition:C="start",ghost:m=!1,block:y=!1,htmlType:x="button",classNames:S,style:E={},autoInsertSpace:R}=e,w=ib(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:M,button:F}=P.useContext(nt),A=(r=R??(F==null?void 0:F.autoInsertSpace))!==null&&r!==void 0?r:!0,_=T("btn",i),[k,N,O]=Q0(_),j=P.useContext(ln),z=v??j,V=P.useContext(df),H=P.useMemo(()=>sb(o),[o]),[K,W]=P.useState(H.loading),[q,Y]=P.useState(!1),ee=yr(t,P.createRef()),te=P.Children.count(p)===1&&!g&&!oo($);P.useEffect(()=>{let ne=null;H.delay>0?ne=setTimeout(()=>{ne=null,W(!0)},H.delay):W(H.loading);function pe(){ne&&(clearTimeout(ne),ne=null)}return pe},[H]),P.useEffect(()=>{if(!ee||!ee.current||!A)return;const ne=ee.current.textContent;te&&Rs(ne)?q||Y(!0):q&&Y(!1)},[ee]);const oe=ne=>{const{onClick:pe}=e;if(K||z){ne.preventDefault();return}pe==null||pe(ne)};if(process.env.NODE_ENV!=="production"){const ne=Nt("Button");process.env.NODE_ENV!=="production"&&ne(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ne(!(m&&oo($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ve,compactItemClassnames:fe}=uf(_,M),ge={large:"lg",small:"sm",middle:void 0},Oe=vn(ne=>{var pe,be;return(be=(pe=d??ve)!==null&&pe!==void 0?pe:V)!==null&&be!==void 0?be:ne}),B=Oe&&ge[Oe]||"",ue=K?"loading":g,le=Cr(w,["navigate"]),Ee=Z(_,N,O,{[`${_}-${u}`]:u!=="default"&&u,[`${_}-${$}`]:$,[`${_}-${B}`]:B,[`${_}-icon-only`]:!p&&p!==0&&!!ue,[`${_}-background-ghost`]:m&&!oo($),[`${_}-loading`]:K,[`${_}-two-chinese-chars`]:q&&A&&!K,[`${_}-block`]:y,[`${_}-dangerous`]:l,[`${_}-rtl`]:M==="rtl",[`${_}-icon-end`]:C==="end"},fe,b,h,F==null?void 0:F.className),he=Object.assign(Object.assign({},F==null?void 0:F.style),E),ae=Z(S==null?void 0:S.icon,(n=F==null?void 0:F.classNames)===null||n===void 0?void 0:n.icon),me=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=F==null?void 0:F.styles)===null||a===void 0?void 0:a.icon)||{}),$e=g&&!K?P.createElement(ff,{prefixCls:_,className:ae,style:me},g):P.createElement(L0,{existIcon:!!g,prefixCls:_,loading:K}),je=p||p===0?F0(p,te&&A):null;if(le.href!==void 0)return k(P.createElement("a",Object.assign({},le,{className:Z(Ee,{[`${_}-disabled`]:z}),href:z?void 0:le.href,style:he,onClick:oe,ref:ee,tabIndex:z?-1:0}),$e,je));let ie=P.createElement("button",Object.assign({},w,{type:x,className:Ee,style:he,onClick:oe,disabled:z,ref:ee}),$e,je,!!fe&&P.createElement(ob,{key:"compact",prefixCls:_}));return oo($)||(ie=P.createElement(pl,{component:"Button",disabled:K},ie)),k(ie)}),Aa=lb;Aa.Group=j0;Aa.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Aa.displayName="Button");var bf=c.createContext(null),Nc=[];function cb(e,t){var r=c.useState(function(){if(!Xt())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(bf),s=c.useState(Nc),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var g=[h].concat(Ce(p));return g})});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 St(function(){return e?i?i(v):v():b(),b},[e]),St(function(){u.length&&(u.forEach(function(h){return h()}),d(Nc))},[u]),[a,f]}function ub(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,";"):"";Lr(`
222
221
  #`.concat(t,`::-webkit-scrollbar {
223
222
  `).concat(d,`
224
223
  `).concat(f,`
225
- }`),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),ya(t),{width:v,height:b}}function ub(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:cb(e)}function db(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fb="rc-util-locker-".concat(Date.now()),Ic=0;function vb(e){var t=!!e,r=c.useState(function(){return Ic+=1,"".concat(fb,"_").concat(Ic)}),n=U(r,1),a=n[0];St(function(){if(t){var o=ub(document.body).width,i=db();Lr(`
224
+ }`),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),ya(t),{width:v,height:b}}function db(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ub(e)}function fb(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var vb="rc-util-locker-".concat(Date.now()),Ic=0;function gb(e){var t=!!e,r=c.useState(function(){return Ic+=1,"".concat(vb,"_").concat(Ic)}),n=U(r,1),a=n[0];St(function(){if(t){var o=db(document.body).width,i=fb();Lr(`
226
225
  html body {
227
226
  overflow-y: hidden;
228
227
  `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
229
- }`),a)}else ya(a);return function(){ya(a)}},[t,a])}var gb=!1;function mb(e){return gb}var Mc=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},yl=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"&&st(Xt()||!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 Mc(a)}),p=U(h,2),g=p[0],C=p[1];c.useEffect(function(){var F=Mc(a);C(F??null)});var m=lb(b&&!g,o),y=U(m,2),x=y[0],S=y[1],E=g??x;vb(n&&r&&Xt()&&(E===x||E===document.body));var R=null;if(l&&cn(l)&&t){var w=l;R=w.ref}var $=Na(R,t);if(!b||!Xt()||g===void 0)return null;var T=E===!1||mb(),M=l;return t&&(M=c.cloneElement(l,{ref:$})),c.createElement(bf.Provider,{value:S},T?M:Mn.createPortal(M,E))});process.env.NODE_ENV!=="production"&&(yl.displayName="Portal");function pb(){var e=D({},c);return e.useId}var jc=0,Ac=pb();const hb=Ac?function(t){var r=Ac();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=jc;jc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var on="RC_FORM_INTERNAL_HOOKS",gt=function(){st(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Vn=c.createContext({getFieldValue:gt,getFieldsValue:gt,getFieldError:gt,getFieldWarning:gt,getFieldsError:gt,isFieldsTouched:gt,isFieldTouched:gt,isFieldValidating:gt,isFieldsValidating:gt,resetFields:gt,setFields:gt,setFieldValue:gt,setFieldsValue:gt,validateFields:gt,submit:gt,getInternalHooks:function(){return gt(),{dispatch:gt,initEntityValue:gt,registerField:gt,useSubscribe:gt,setInitialValues:gt,destroyForm:gt,setCallbacks:gt,registerWatch:gt,getFields:gt,setValidateMessages:gt,setPreserve:gt,getInitialValue:gt}}}),Mo=c.createContext(null);function Ps(e){return e==null?[]:Array.isArray(e)?e:[e]}function bb(e){return e&&!!e._init}function _s(){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 Ts=_s();function yb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Cb(e,t,r){if(Js())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&pa(a,r.prototype),a}function Ns(e){var t=typeof Map=="function"?new Map:void 0;return Ns=function(n){if(n===null||!yb(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 Cb(n,arguments,ha(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pa(a,n)},Ns(e)}var Sb=/%[sdj%]/g,yf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(yf=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 Is(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 rr(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(Sb,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 xb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function It(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||xb(t)&&typeof e=="string"&&!e)}function Eb(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Ce(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function Fc(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 wb(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ce(e[r]||[]))}),t}var Lc=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;return Lt(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 Dt(r)}(Ns(Error));function $b(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(C){return n(C),C.length?b(new Lc(C,Is(C))):v(a)},p=wb(e);Fc(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(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Lc(d,Is(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?Fc(g,r,h):Eb(g,r,h)})});return f.catch(function(v){return v}),f}function Ob(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 Dc(e,t){return function(r){var n;return e.fullFields?n=Rb(t,e.fullFields):n=t[r.field||e.fullField],Ob(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 zc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ie(n)==="object"&&Ie(e[r])==="object"?e[r]=D(D({},e[r]),n):e[r]=n}}return e}var bn="enum",Pb=function(t,r,n,a,o){t[bn]=Array.isArray(t[bn])?t[bn]:[],t[bn].indexOf(r)===-1&&a.push(rr(o.messages[bn],t.fullField,t[bn].join(", ")))},_b=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(rr(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(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Tb=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(rr(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(rr(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(rr(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(rr(o.messages[f].range,t.fullField,t.min,t.max))},Cf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||It(r,i||t.type))&&a.push(rr(o.messages.required,t.fullField))},oo;const Nb=function(){if(oo)return oo;var e="[a-fA-F\\d:]",t=function(E){return E&&E.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(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"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]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(C,")").concat(m).concat(y);return oo=new RegExp("(?:^".concat(x,"$)"),"i"),oo};var kc={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},sa={integer:function(t){return sa.number(t)&&parseInt(t,10)===t},float:function(t){return sa.number(t)&&!sa.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 Ie(t)==="object"&&!sa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(kc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Nb())},hex:function(t){return typeof t=="string"&&!!t.match(kc.hex)}},Ib=function(t,r,n,a,o){if(t.required&&r===void 0){Cf(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?sa[s](r)||a.push(rr(o.messages.types[s],t.fullField,t.type)):s&&Ie(r)!==t.type&&a.push(rr(o.messages.types[s],t.fullField,t.type))},Mb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(rr(o.messages.whitespace,t.fullField))};const Qe={required:Cf,whitespace:Mb,type:Ib,range:Tb,enum:Pb,pattern:_b};var jb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},Ab=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)},Fb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Lb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!It(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)},Db="enum",zb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[Db](t,r,a,i,o)}n(i)},kb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(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)},Vb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(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)},Bb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(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(r===""&&(r=void 0),It(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)},Wb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(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(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),It(r,"string")||Qe.pattern(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(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),It(r)||Qe.type(t,r,a,i,o)}n(i)},Kb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ie(r);Qe.required(t,r,a,i,o,s),n(i)},qb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),It(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)},Oi=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(It(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),It(r,i)||Qe.type(t,r,a,s,o)}n(s)};const va={string:qb,method:Bb,number:Hb,boolean:Fb,regexp:Ub,integer:Vb,float:kb,array:Ab,object:Wb,enum:zb,pattern:Gb,date:Lb,url:Oi,hex:Oi,email:Oi,required:Kb,any:jb};var Fa=function(){function e(t){Lt(this,e),L(this,"rules",null),L(this,"_messages",Ts),this.define(t)}return Dt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ie(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=zc(_s(),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=[],g={};function C(y){if(Array.isArray(y)){var x;p=(x=p).concat.apply(x,Ce(y))}else p.push(y)}for(var m=0;m<h.length;m++)C(h[m]);p.length?(g=Is(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===Ts&&(d=_s()),zc(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],g=i[h];p.forEach(function(C){var m=C;typeof m.transform=="function"&&(i===r&&(i=D({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ie(g)))),typeof m=="function"?m={validator:m}:m=D({},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:g,source:i,field:h}))})});var b={};return $b(f,s,function(h,p){var g=h.rule,C=(g.type==="object"||g.type==="array")&&(Ie(g.fields)==="object"||Ie(g.defaultField)==="object");C=C&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return D(D({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(Ce(g.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&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Dc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!C)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Dc(g,i)):s.error&&($=[s.error(g,rr(s.messages.required,g.field))]),p($);var T={};g.defaultField&&Object.keys(h.value).map(function(A){T[A]=g.defaultField}),T=D(D({},T),h.rule.fields);var M={};Object.keys(T).forEach(function(A){var _=T[A],k=Array.isArray(_)?_:[_];M[A]=k.map(m.bind(null,A))});var F=new e(M);F.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),F.validate(h.value,h.rule.options||s,function(A){var _=[];$&&$.length&&_.push.apply(_,Ce($)),A&&A.length&&_.push.apply(_,Ce(A)),p(_.length?_:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,y,h.source,s)}catch(R){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.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&&!va.hasOwnProperty(r.type))throw new Error(rr("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"?va.required:va[this.getType(r)]||void 0}}]),e}();L(Fa,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");va[t]=r});L(Fa,"warning",yf);L(Fa,"messages",Ts);L(Fa,"validators",va);var Jt="'${name}' is not a valid ${type}",Sf={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:Jt,method:Jt,array:Jt,object:Jt,number:Jt,date:Jt,boolean:Jt,integer:Jt,float:Jt,regexp:Jt,email:Jt,url:Jt,hex:Jt},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}"}},Vc=Fa;function Xb(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 Bc="CODE_LOGIC_ERROR";function Ms(e,t,r,n,a){return js.apply(this,arguments)}function js(){return js=fn(Yt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return Yt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=D({},n),delete i.ruleIndex,Vc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(Bc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Vc(L({},t,[i])),d=Pn(Sf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),D({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,m){var y=C.message,x=y===Bc?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(m)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(C,m){return Ms("".concat(t,".").concat(m),C,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(C,m){return[].concat(Ce(C),Ce(m))},[]));case 23:return b=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(C){return typeof C=="string"?Xb(C,b):C}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),js.apply(this,arguments)}function Yb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=D(D({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var C=!1,m=function(){for(var S=arguments.length,E=new Array(S),R=0;R<S;R++)E[R]=arguments[R];Promise.resolve().then(function(){st(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||g.apply(void 0,E)})},y=v(h,p,m);C=y&&typeof y.then=="function"&&typeof y.catch=="function",st(C,"`callback` is deprecated. Please return a promise instead."),C&&y.then(function(){g()}).catch(function(x){g(x||" ")})}),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=fn(Yt().mark(function f(v,b){var h,p,g;return Yt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Ms(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),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 u=s.map(function(d){return Ms(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Qb(u):Zb(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Zb(e){return As.apply(this,arguments)}function As(){return As=fn(Yt().mark(function e(t){return Yt().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,Ce(a));return i}));case 1:case"end":return n.stop()}},e)})),As.apply(this,arguments)}function Qb(e){return Fs.apply(this,arguments)}function Fs(){return Fs=fn(Yt().mark(function e(t){var r;return Yt().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)})),Fs.apply(this,arguments)}function $t(e){return Ps(e)}function Hc(e,t){var r={};return t.forEach(function(n){var a=Or(e,n);r=vr(r,n,a)}),r}function Nn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return xf(t,n,r)})}function xf(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 Jb(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ie(e)!=="object"||Ie(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Ce(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function ey(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ie(t.target)==="object"&&e in t.target?t.target[e]:t}function Wc(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(Ce(e.slice(0,r)),[a],Ce(e.slice(r,t)),Ce(e.slice(t+1,n))):o<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,r+1)),[a],Ce(e.slice(r+1,n))):e}var ty=["name"],ar=[];function Ri(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var Cl=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;if(Lt(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",ar),L(Ge(a),"warnings",ar),L(Ge(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,$t(f)),a.cancelRegisterFunc=null}),L(Ge(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(Ce(v),Ce(u)):[]}),L(Ge(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(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=D(D({},a.getMeta()),{},{destroy:l});Ca(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,C=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),x=u&&Nn(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ca(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ar,a.warnings=ar,a.triggerMetaEvent()),d.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Ri(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||ar),"warnings"in S&&(a.warnings=S.warnings||ar),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Nn(u,C,!0)){a.reRender();return}if(v&&!C.length&&Ri(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map($t);if(E.some(function(R){return Nn(d.relatedFields,R)})){a.reRender();return}break}default:if(x||(!h.length||C.length||v)&&Ri(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(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(fn(Yt().mark(function g(){var C,m,y,x,S,E,R;return Yt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(C=a.props,m=C.validateFirst,y=m===void 0?!1:m,x=C.messageVariables,S=C.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(T){return T}).filter(function(T){var M=T.validateTrigger;if(!M)return!0;var F=Ps(M);return F.includes(v)})),!(S&&v)){$.next=10;break}return $.next=8,new Promise(function(T){setTimeout(T,S)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Yb(u,d,E,l,y,x),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ar;if(a.validatePromise===p){var M;a.validatePromise=null;var F=[],A=[];(M=T.forEach)===null||M===void 0||M.call(T,function(_){var k=_.rule.warningOnly,N=_.errors,O=N===void 0?ar:N;k?A.push.apply(A,Ce(O)):F.push.apply(F,Ce(O))}),a.errors=F,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),a.reRender()),p}),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,u=l.getInternalHooks(on),d=u.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 u=a.getMeta();return D(D({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Rr(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Or(l||u(!0),d)}),L(Ge(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,g=u.getValueProps,C=u.fieldContext,m=v!==void 0?v:C.validateTrigger,y=a.getNamePath(),x=C.getInternalHooks,S=C.getFieldsValue,E=x(on),R=E.dispatch,w=a.getValue(),$=g||function(_){return L({},p,_)},T=l[f],M=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(_){st(typeof M[_]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(_,")"))});var F=D(D({},l),M);F[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,k=arguments.length,N=new Array(k),O=0;O<k;O++)N[O]=arguments[O];b?_=b.apply(void 0,N):_=ey.apply(void 0,[p].concat(N)),h&&(_=h(_,w,S(!0))),R({type:"updateValue",namePath:y,value:_}),T&&T.apply(void 0,N)};var A=Ps(m||[]);return A.forEach(function(_){var k=F[_];F[_]=function(){k&&k.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&R({type:"validateField",namePath:y,triggerName:_})}}),F}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(on),s=i.initEntityValue;s(Ge(a))}return a}return Dt(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(on),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)):(st(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(Cl,"contextType",Vn);L(Cl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ef(e){var t=e.name,r=Je(e,ty),n=c.useContext(Vn),a=c.useContext(Mo),o=t!==void 0?$t(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&&st(!1,"`preserve` should not apply on Form.List fields."),c.createElement(Cl,xe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function ry(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Vn),l=c.useContext(Mo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=$t(s.prefixName)||[];return[].concat(Ce(p),Ce($t(t)))},[s.prefixName,t]),v=c.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var C=f.length,m=g[C];return[d.keys[m],g.slice(C+1)]}}},[f]);if(typeof n!="function")return st(!1,"Form.List only accepts function as children."),null;var h=function(g,C,m){var y=m.source;return y==="internal"?!1:g!==C};return c.createElement(Mo.Provider,{value:b},c.createElement(Vn.Provider,{value:v},c.createElement(Ef,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var C=p.value,m=C===void 0?[]:C,y=p.onChange,x=s.getFieldValue,S=function(){var $=x(f||[]);return $||[]},E={add:function($,T){var M=S();T>=0&&T<=M.length?(d.keys=[].concat(Ce(d.keys.slice(0,T)),[d.id],Ce(d.keys.slice(T))),y([].concat(Ce(M.slice(0,T)),[$],Ce(M.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>M.length)&&st(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Ce(d.keys),[d.id]),y([].concat(Ce(M),[$]))),d.id+=1},remove:function($){var T=S(),M=new Set(Array.isArray($)?$:[$]);M.size<=0||(d.keys=d.keys.filter(function(F,A){return!M.has(A)}),y(T.filter(function(F,A){return!M.has(A)})))},move:function($,T){if($!==T){var M=S();$<0||$>=M.length||T<0||T>=M.length||(d.keys=Wc(d.keys,$,T),y(Wc(M,$,T)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&st(!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}}),E,g)})))}function ny(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 wf="__@field_split__";function Pi(e){return e.map(function(t){return"".concat(Ie(t),":").concat(t)}).join(wf)}var yn=function(){function e(){Lt(this,e),L(this,"kvs",new Map)}return Dt(e,[{key:"set",value:function(r,n){this.kvs.set(Pi(r),n)}},{key:"get",value:function(r){return this.kvs.get(Pi(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(Pi(r))}},{key:"map",value:function(r){return Ce(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(wf);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}(),ay=["name"],oy=Dt(function e(t){var r=this;Lt(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===on?(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}):(st(!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=Pn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=vr(i,l,Or(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new yn;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=Or(r.initialValues,n);return n.length?Pn(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||st(!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 yn;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=$t(o);return a.get(i)||{INVALIDATE_NAME_PATH:$t(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ie(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 g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Hc(r.store,u.map($t))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=$t(n);return Or(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:$t(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$t(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($t),u=!1):(l=null,u=i):(l=i.map($t),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new yn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(C){C.every(function(m,y){return g[y]===m})&&v.update(C,function(m){return[].concat(Ce(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});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($t);return a.some(function(i){var s=i.getNamePath();return Nn(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 yn,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)st(!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)st(!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),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(vr(r.store,v,Ce(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,Ce(Ce(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(Pn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map($t);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(vr(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,ay),u=$t(s);o.push(u),"value"in l&&r.updateStore(vr(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=D(D({},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=Or(r.store,o);i===void 0&&r.updateStore(vr(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!xf(f.getNamePath(),a)})){var d=r.store;r.updateStore(vr(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=D(D({},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(Ce(o))}),o}),L(this,"updateValue",function(n,a){var o=$t(n),i=r.store;r.updateStore(vr(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=Hc(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Ce(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=Pn(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 yn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=$t(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 yn;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 Nn(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($t):[],u=[],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||Nn(l,y,b)){var x=m.validateRules(D({validateMessages:D(D({},Sf),r.validateMessages)},i));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,R=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function($){var T=$.rule.warningOnly,M=$.errors;T?w.push.apply(w,Ce(M)):R.push.apply(R,Ce(M))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=ny(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var C=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(C),g}),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 $f(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 oy(o);t.current=i.getForm()}return[t.current]}var Ls=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),iy=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ls),s=c.useRef({});return c.createElement(Ls.Provider,{value:D(D({},i),{},{validateMessages:D(D({},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=D(D({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=D({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},sy=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ly=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,g=t.onFinish,C=t.onFinishFailed,m=t.clearOnDestroy,y=Je(t,sy),x=c.useRef(null),S=c.useContext(Ls),E=$f(i),R=U(E,1),w=R[0],$=w.getInternalHooks(on),T=$.useSubscribe,M=$.setInitialValues,F=$.setCallbacks,A=$.setValidateMessages,_=$.setPreserve,k=$.destroyForm;c.useImperativeHandle(r,function(){return D(D({},w),{},{nativeElement:x.current})}),c.useEffect(function(){return S.registerForm(n,w),function(){S.unregisterForm(n)}},[S,w,n]),A(D(D({},S.validateMessages),f)),F({onValuesChange:h,onFieldsChange:function(q){if(S.triggerFormChange(n,q),p){for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),ee=1;ee<Y;ee++)J[ee-1]=arguments[ee];p.apply(void 0,[q].concat(J))}},onFinish:function(q){S.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:C}),_(s);var N=c.useRef(null);M(a,!N.current),N.current||(N.current=!0),c.useEffect(function(){return function(){return k(m)}},[]);var O,j=typeof l=="function";if(j){var z=w.getFieldsValue(!0);O=l(z,w)}else O=l;T(!j);var V=c.useRef();c.useEffect(function(){Jb(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var H=c.useMemo(function(){return D(D({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(Mo.Provider,{value:null},c.createElement(Vn.Provider,{value:H},O));return d===!1?K:c.createElement(d,xe({},y,{ref:x,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Gc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var cy=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);st(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function uy(){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=bb(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 Gc(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(Vn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&st(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var C=$t(n),m=P.useRef(C);return m.current=C,cy(C),P.useEffect(function(){if(g){var y=p.getFieldsValue,x=p.getInternalHooks,S=x(on),E=S.registerWatch,R=function(M,F){var A=i.preserve?F:M;return typeof n=="function"?n(A):Or(A,m.current)},w=E(function(T,M){var F=R(T,M),A=Gc(F);b.current!==A&&(b.current=A,f(F))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var dy=c.forwardRef(ly),La=dy;La.FormProvider=iy;La.Field=Ef;La.List=ry;La.useForm=$f;La.useWatch=uy;const Bn=c.createContext({});process.env.NODE_ENV!=="production"&&(Bn.displayName="FormItemInputContext");const fy=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext(Bn),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(Bn.Provider,{value:o},t)},vy=P.createContext(void 0),Ds=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(fy,{override:!0,status:!0},a)),t&&(a=P.createElement(P0,null,a)),a};var Of=function(t){if(Xt()&&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},gy=function(t,r){if(!Of(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Uc(e,t){return!Array.isArray(e)&&t!==void 0?gy(e,t):Of(e)}const qo=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=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},my=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Xo=e=>({height:e,lineHeight:Q(e)}),In=e=>Object.assign({width:e},Xo(e)),py=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:my,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_i=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Xo(e)),hy=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},In(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},In(a)),[`${t}${t}-sm`]:Object.assign({},In(o))}},by=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},_i(t,s)),[`${n}-lg`]:Object.assign({},_i(a,s)),[`${n}-sm`]:Object.assign({},_i(o,s))}},Kc=e=>Object.assign({width:e},Xo(e)),yy=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},Kc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Kc(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%"}}},Ti=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},Ni=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Xo(e)),Cy=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()},Ni(n,s))},Ti(e,n,r)),{[`${r}-lg`]:Object.assign({},Ni(a,s))}),Ti(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},Ni(o,s))}),Ti(e,o,`${r}-sm`))},Sy=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:g,paragraphLiHeight:C,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},In(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},In(u)),[`${r}-sm`]:Object.assign({},In(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:g,"+ 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"},Cy(e)),hy(e)),by(e)),yy(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
228
+ }`),a)}else ya(a);return function(){ya(a)}},[t,a])}var mb=!1;function pb(e){return mb}var Mc=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},yl=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"&&st(Xt()||!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 Mc(a)}),p=U(h,2),g=p[0],C=p[1];c.useEffect(function(){var F=Mc(a);C(F??null)});var m=cb(b&&!g,o),y=U(m,2),x=y[0],S=y[1],E=g??x;gb(n&&r&&Xt()&&(E===x||E===document.body));var R=null;if(l&&cn(l)&&t){var w=l;R=w.ref}var $=Na(R,t);if(!b||!Xt()||g===void 0)return null;var T=E===!1||pb(),M=l;return t&&(M=c.cloneElement(l,{ref:$})),c.createElement(bf.Provider,{value:S},T?M:Mn.createPortal(M,E))});process.env.NODE_ENV!=="production"&&(yl.displayName="Portal");function hb(){var e=D({},c);return e.useId}var jc=0,Ac=hb();const bb=Ac?function(t){var r=Ac();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=jc;jc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var on="RC_FORM_INTERNAL_HOOKS",gt=function(){st(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Vn=c.createContext({getFieldValue:gt,getFieldsValue:gt,getFieldError:gt,getFieldWarning:gt,getFieldsError:gt,isFieldsTouched:gt,isFieldTouched:gt,isFieldValidating:gt,isFieldsValidating:gt,resetFields:gt,setFields:gt,setFieldValue:gt,setFieldsValue:gt,validateFields:gt,submit:gt,getInternalHooks:function(){return gt(),{dispatch:gt,initEntityValue:gt,registerField:gt,useSubscribe:gt,setInitialValues:gt,destroyForm:gt,setCallbacks:gt,registerWatch:gt,getFields:gt,setValidateMessages:gt,setPreserve:gt,getInitialValue:gt}}}),jo=c.createContext(null);function Ps(e){return e==null?[]:Array.isArray(e)?e:[e]}function yb(e){return e&&!!e._init}function _s(){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 Ts=_s();function Cb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Sb(e,t,r){if(Js())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&pa(a,r.prototype),a}function Ns(e){var t=typeof Map=="function"?new Map:void 0;return Ns=function(n){if(n===null||!Cb(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 Sb(n,arguments,ha(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pa(a,n)},Ns(e)}var xb=/%[sdj%]/g,yf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(yf=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 Is(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 rr(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(xb,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 Eb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function It(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Eb(t)&&typeof e=="string"&&!e)}function wb(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Ce(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function Fc(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 $b(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ce(e[r]||[]))}),t}var Lc=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;return Lt(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 Dt(r)}(Ns(Error));function Ob(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(C){return n(C),C.length?b(new Lc(C,Is(C))):v(a)},p=$b(e);Fc(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(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Lc(d,Is(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?Fc(g,r,h):wb(g,r,h)})});return f.catch(function(v){return v}),f}function Rb(e){return!!(e&&e.message!==void 0)}function Pb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Dc(e,t){return function(r){var n;return e.fullFields?n=Pb(t,e.fullFields):n=t[r.field||e.fullField],Rb(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 zc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ie(n)==="object"&&Ie(e[r])==="object"?e[r]=D(D({},e[r]),n):e[r]=n}}return e}var bn="enum",_b=function(t,r,n,a,o){t[bn]=Array.isArray(t[bn])?t[bn]:[],t[bn].indexOf(r)===-1&&a.push(rr(o.messages[bn],t.fullField,t[bn].join(", ")))},Tb=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(rr(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(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Nb=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(rr(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(rr(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(rr(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(rr(o.messages[f].range,t.fullField,t.min,t.max))},Cf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||It(r,i||t.type))&&a.push(rr(o.messages.required,t.fullField))},io;const Ib=function(){if(io)return io;var e="[a-fA-F\\d:]",t=function(E){return E&&E.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(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"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]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(C,")").concat(m).concat(y);return io=new RegExp("(?:^".concat(x,"$)"),"i"),io};var kc={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},sa={integer:function(t){return sa.number(t)&&parseInt(t,10)===t},float:function(t){return sa.number(t)&&!sa.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 Ie(t)==="object"&&!sa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(kc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ib())},hex:function(t){return typeof t=="string"&&!!t.match(kc.hex)}},Mb=function(t,r,n,a,o){if(t.required&&r===void 0){Cf(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?sa[s](r)||a.push(rr(o.messages.types[s],t.fullField,t.type)):s&&Ie(r)!==t.type&&a.push(rr(o.messages.types[s],t.fullField,t.type))},jb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(rr(o.messages.whitespace,t.fullField))};const Qe={required:Cf,whitespace:jb,type:Mb,range:Nb,enum:_b,pattern:Tb};var Ab=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(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(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)},Lb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(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(It(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!It(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)},zb="enum",kb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[zb](t,r,a,i,o)}n(i)},Vb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(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)},Bb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(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(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Wb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),It(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)},Gb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(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(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),It(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},Kb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),It(r)||Qe.type(t,r,a,i,o)}n(i)},qb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ie(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(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),It(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)},Oi=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(It(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),It(r,i)||Qe.type(t,r,a,s,o)}n(s)};const va={string:Xb,method:Hb,number:Wb,boolean:Lb,regexp:Kb,integer:Bb,float:Vb,array:Fb,object:Gb,enum:kb,pattern:Ub,date:Db,url:Oi,hex:Oi,email:Oi,required:qb,any:Ab};var Fa=function(){function e(t){Lt(this,e),L(this,"rules",null),L(this,"_messages",Ts),this.define(t)}return Dt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ie(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=zc(_s(),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=[],g={};function C(y){if(Array.isArray(y)){var x;p=(x=p).concat.apply(x,Ce(y))}else p.push(y)}for(var m=0;m<h.length;m++)C(h[m]);p.length?(g=Is(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===Ts&&(d=_s()),zc(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],g=i[h];p.forEach(function(C){var m=C;typeof m.transform=="function"&&(i===r&&(i=D({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ie(g)))),typeof m=="function"?m={validator:m}:m=D({},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:g,source:i,field:h}))})});var b={};return Ob(f,s,function(h,p){var g=h.rule,C=(g.type==="object"||g.type==="array")&&(Ie(g.fields)==="object"||Ie(g.defaultField)==="object");C=C&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return D(D({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(Ce(g.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&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Dc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!C)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Dc(g,i)):s.error&&($=[s.error(g,rr(s.messages.required,g.field))]),p($);var T={};g.defaultField&&Object.keys(h.value).map(function(A){T[A]=g.defaultField}),T=D(D({},T),h.rule.fields);var M={};Object.keys(T).forEach(function(A){var _=T[A],k=Array.isArray(_)?_:[_];M[A]=k.map(m.bind(null,A))});var F=new e(M);F.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),F.validate(h.value,h.rule.options||s,function(A){var _=[];$&&$.length&&_.push.apply(_,Ce($)),A&&A.length&&_.push.apply(_,Ce(A)),p(_.length?_:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,y,h.source,s)}catch(R){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.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&&!va.hasOwnProperty(r.type))throw new Error(rr("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"?va.required:va[this.getType(r)]||void 0}}]),e}();L(Fa,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");va[t]=r});L(Fa,"warning",yf);L(Fa,"messages",Ts);L(Fa,"validators",va);var Jt="'${name}' is not a valid ${type}",Sf={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:Jt,method:Jt,array:Jt,object:Jt,number:Jt,date:Jt,boolean:Jt,integer:Jt,float:Jt,regexp:Jt,email:Jt,url:Jt,hex:Jt},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}"}},Vc=Fa;function Yb(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 Bc="CODE_LOGIC_ERROR";function Ms(e,t,r,n,a){return js.apply(this,arguments)}function js(){return js=fn(Yt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return Yt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=D({},n),delete i.ruleIndex,Vc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(Bc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Vc(L({},t,[i])),d=Pn(Sf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),D({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,m){var y=C.message,x=y===Bc?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(m)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(C,m){return Ms("".concat(t,".").concat(m),C,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(C,m){return[].concat(Ce(C),Ce(m))},[]));case 23:return b=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(C){return typeof C=="string"?Yb(C,b):C}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),js.apply(this,arguments)}function Zb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=D(D({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var C=!1,m=function(){for(var S=arguments.length,E=new Array(S),R=0;R<S;R++)E[R]=arguments[R];Promise.resolve().then(function(){st(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||g.apply(void 0,E)})},y=v(h,p,m);C=y&&typeof y.then=="function"&&typeof y.catch=="function",st(C,"`callback` is deprecated. Please return a promise instead."),C&&y.then(function(){g()}).catch(function(x){g(x||" ")})}),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=fn(Yt().mark(function f(v,b){var h,p,g;return Yt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Ms(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),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 u=s.map(function(d){return Ms(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Jb(u):Qb(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Qb(e){return As.apply(this,arguments)}function As(){return As=fn(Yt().mark(function e(t){return Yt().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,Ce(a));return i}));case 1:case"end":return n.stop()}},e)})),As.apply(this,arguments)}function Jb(e){return Fs.apply(this,arguments)}function Fs(){return Fs=fn(Yt().mark(function e(t){var r;return Yt().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)})),Fs.apply(this,arguments)}function $t(e){return Ps(e)}function Hc(e,t){var r={};return t.forEach(function(n){var a=Or(e,n);r=vr(r,n,a)}),r}function Nn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return xf(t,n,r)})}function xf(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 ey(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ie(e)!=="object"||Ie(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Ce(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function ty(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ie(t.target)==="object"&&e in t.target?t.target[e]:t}function Wc(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(Ce(e.slice(0,r)),[a],Ce(e.slice(r,t)),Ce(e.slice(t+1,n))):o<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,r+1)),[a],Ce(e.slice(r+1,n))):e}var ry=["name"],ar=[];function Ri(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var Cl=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;if(Lt(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",ar),L(Ge(a),"warnings",ar),L(Ge(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,$t(f)),a.cancelRegisterFunc=null}),L(Ge(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(Ce(v),Ce(u)):[]}),L(Ge(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(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=D(D({},a.getMeta()),{},{destroy:l});Ca(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,C=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),x=u&&Nn(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ca(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ar,a.warnings=ar,a.triggerMetaEvent()),d.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Ri(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||ar),"warnings"in S&&(a.warnings=S.warnings||ar),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Nn(u,C,!0)){a.reRender();return}if(v&&!C.length&&Ri(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map($t);if(E.some(function(R){return Nn(d.relatedFields,R)})){a.reRender();return}break}default:if(x||(!h.length||C.length||v)&&Ri(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(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(fn(Yt().mark(function g(){var C,m,y,x,S,E,R;return Yt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(C=a.props,m=C.validateFirst,y=m===void 0?!1:m,x=C.messageVariables,S=C.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(T){return T}).filter(function(T){var M=T.validateTrigger;if(!M)return!0;var F=Ps(M);return F.includes(v)})),!(S&&v)){$.next=10;break}return $.next=8,new Promise(function(T){setTimeout(T,S)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Zb(u,d,E,l,y,x),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ar;if(a.validatePromise===p){var M;a.validatePromise=null;var F=[],A=[];(M=T.forEach)===null||M===void 0||M.call(T,function(_){var k=_.rule.warningOnly,N=_.errors,O=N===void 0?ar:N;k?A.push.apply(A,Ce(O)):F.push.apply(F,Ce(O))}),a.errors=F,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),a.reRender()),p}),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,u=l.getInternalHooks(on),d=u.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 u=a.getMeta();return D(D({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Rr(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Or(l||u(!0),d)}),L(Ge(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,g=u.getValueProps,C=u.fieldContext,m=v!==void 0?v:C.validateTrigger,y=a.getNamePath(),x=C.getInternalHooks,S=C.getFieldsValue,E=x(on),R=E.dispatch,w=a.getValue(),$=g||function(_){return L({},p,_)},T=l[f],M=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(_){st(typeof M[_]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(_,")"))});var F=D(D({},l),M);F[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,k=arguments.length,N=new Array(k),O=0;O<k;O++)N[O]=arguments[O];b?_=b.apply(void 0,N):_=ty.apply(void 0,[p].concat(N)),h&&(_=h(_,w,S(!0))),R({type:"updateValue",namePath:y,value:_}),T&&T.apply(void 0,N)};var A=Ps(m||[]);return A.forEach(function(_){var k=F[_];F[_]=function(){k&&k.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&R({type:"validateField",namePath:y,triggerName:_})}}),F}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(on),s=i.initEntityValue;s(Ge(a))}return a}return Dt(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(on),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)):(st(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(Cl,"contextType",Vn);L(Cl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ef(e){var t=e.name,r=Je(e,ry),n=c.useContext(Vn),a=c.useContext(jo),o=t!==void 0?$t(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&&st(!1,"`preserve` should not apply on Form.List fields."),c.createElement(Cl,xe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function ny(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Vn),l=c.useContext(jo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=$t(s.prefixName)||[];return[].concat(Ce(p),Ce($t(t)))},[s.prefixName,t]),v=c.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var C=f.length,m=g[C];return[d.keys[m],g.slice(C+1)]}}},[f]);if(typeof n!="function")return st(!1,"Form.List only accepts function as children."),null;var h=function(g,C,m){var y=m.source;return y==="internal"?!1:g!==C};return c.createElement(jo.Provider,{value:b},c.createElement(Vn.Provider,{value:v},c.createElement(Ef,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var C=p.value,m=C===void 0?[]:C,y=p.onChange,x=s.getFieldValue,S=function(){var $=x(f||[]);return $||[]},E={add:function($,T){var M=S();T>=0&&T<=M.length?(d.keys=[].concat(Ce(d.keys.slice(0,T)),[d.id],Ce(d.keys.slice(T))),y([].concat(Ce(M.slice(0,T)),[$],Ce(M.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>M.length)&&st(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Ce(d.keys),[d.id]),y([].concat(Ce(M),[$]))),d.id+=1},remove:function($){var T=S(),M=new Set(Array.isArray($)?$:[$]);M.size<=0||(d.keys=d.keys.filter(function(F,A){return!M.has(A)}),y(T.filter(function(F,A){return!M.has(A)})))},move:function($,T){if($!==T){var M=S();$<0||$>=M.length||T<0||T>=M.length||(d.keys=Wc(d.keys,$,T),y(Wc(M,$,T)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&st(!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}}),E,g)})))}function ay(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 wf="__@field_split__";function Pi(e){return e.map(function(t){return"".concat(Ie(t),":").concat(t)}).join(wf)}var yn=function(){function e(){Lt(this,e),L(this,"kvs",new Map)}return Dt(e,[{key:"set",value:function(r,n){this.kvs.set(Pi(r),n)}},{key:"get",value:function(r){return this.kvs.get(Pi(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(Pi(r))}},{key:"map",value:function(r){return Ce(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(wf);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}(),oy=["name"],iy=Dt(function e(t){var r=this;Lt(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===on?(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}):(st(!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=Pn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=vr(i,l,Or(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new yn;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=Or(r.initialValues,n);return n.length?Pn(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||st(!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 yn;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=$t(o);return a.get(i)||{INVALIDATE_NAME_PATH:$t(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ie(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 g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Hc(r.store,u.map($t))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=$t(n);return Or(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:$t(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$t(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($t),u=!1):(l=null,u=i):(l=i.map($t),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new yn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(C){C.every(function(m,y){return g[y]===m})&&v.update(C,function(m){return[].concat(Ce(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});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($t);return a.some(function(i){var s=i.getNamePath();return Nn(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 yn,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)st(!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)st(!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),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(vr(r.store,v,Ce(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,Ce(Ce(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(Pn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map($t);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(vr(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,oy),u=$t(s);o.push(u),"value"in l&&r.updateStore(vr(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=D(D({},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=Or(r.store,o);i===void 0&&r.updateStore(vr(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!xf(f.getNamePath(),a)})){var d=r.store;r.updateStore(vr(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=D(D({},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(Ce(o))}),o}),L(this,"updateValue",function(n,a){var o=$t(n),i=r.store;r.updateStore(vr(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=Hc(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Ce(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=Pn(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 yn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=$t(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 yn;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 Nn(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($t):[],u=[],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||Nn(l,y,b)){var x=m.validateRules(D({validateMessages:D(D({},Sf),r.validateMessages)},i));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,R=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function($){var T=$.rule.warningOnly,M=$.errors;T?w.push.apply(w,Ce(M)):R.push.apply(R,Ce(M))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=ay(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var C=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(C),g}),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 $f(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 iy(o);t.current=i.getForm()}return[t.current]}var Ls=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sy=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ls),s=c.useRef({});return c.createElement(Ls.Provider,{value:D(D({},i),{},{validateMessages:D(D({},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=D(D({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=D({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},ly=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],cy=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,g=t.onFinish,C=t.onFinishFailed,m=t.clearOnDestroy,y=Je(t,ly),x=c.useRef(null),S=c.useContext(Ls),E=$f(i),R=U(E,1),w=R[0],$=w.getInternalHooks(on),T=$.useSubscribe,M=$.setInitialValues,F=$.setCallbacks,A=$.setValidateMessages,_=$.setPreserve,k=$.destroyForm;c.useImperativeHandle(r,function(){return D(D({},w),{},{nativeElement:x.current})}),c.useEffect(function(){return S.registerForm(n,w),function(){S.unregisterForm(n)}},[S,w,n]),A(D(D({},S.validateMessages),f)),F({onValuesChange:h,onFieldsChange:function(q){if(S.triggerFormChange(n,q),p){for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),ee=1;ee<Y;ee++)J[ee-1]=arguments[ee];p.apply(void 0,[q].concat(J))}},onFinish:function(q){S.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:C}),_(s);var N=c.useRef(null);M(a,!N.current),N.current||(N.current=!0),c.useEffect(function(){return function(){return k(m)}},[]);var O,j=typeof l=="function";if(j){var z=w.getFieldsValue(!0);O=l(z,w)}else O=l;T(!j);var V=c.useRef();c.useEffect(function(){ey(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var H=c.useMemo(function(){return D(D({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(jo.Provider,{value:null},c.createElement(Vn.Provider,{value:H},O));return d===!1?K:c.createElement(d,xe({},y,{ref:x,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Gc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var uy=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);st(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function dy(){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=yb(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 Gc(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(Vn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&st(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var C=$t(n),m=P.useRef(C);return m.current=C,uy(C),P.useEffect(function(){if(g){var y=p.getFieldsValue,x=p.getInternalHooks,S=x(on),E=S.registerWatch,R=function(M,F){var A=i.preserve?F:M;return typeof n=="function"?n(A):Or(A,m.current)},w=E(function(T,M){var F=R(T,M),A=Gc(F);b.current!==A&&(b.current=A,f(F))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var fy=c.forwardRef(cy),La=fy;La.FormProvider=sy;La.Field=Ef;La.List=ny;La.useForm=$f;La.useWatch=dy;const Bn=c.createContext({});process.env.NODE_ENV!=="production"&&(Bn.displayName="FormItemInputContext");const vy=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext(Bn),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(Bn.Provider,{value:o},t)},gy=P.createContext(void 0),Ds=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(vy,{override:!0,status:!0},a)),t&&(a=P.createElement(_0,null,a)),a};var Of=function(t){if(Xt()&&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},my=function(t,r){if(!Of(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Uc(e,t){return!Array.isArray(e)&&t!==void 0?my(e,t):Of(e)}const Xo=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=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},py=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Yo=e=>({height:e,lineHeight:Q(e)}),In=e=>Object.assign({width:e},Yo(e)),hy=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:py,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_i=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Yo(e)),by=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},In(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},In(a)),[`${t}${t}-sm`]:Object.assign({},In(o))}},yy=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},_i(t,s)),[`${n}-lg`]:Object.assign({},_i(a,s)),[`${n}-sm`]:Object.assign({},_i(o,s))}},Kc=e=>Object.assign({width:e},Yo(e)),Cy=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},Kc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Kc(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%"}}},Ti=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},Ni=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Yo(e)),Sy=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()},Ni(n,s))},Ti(e,n,r)),{[`${r}-lg`]:Object.assign({},Ni(a,s))}),Ti(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},Ni(o,s))}),Ti(e,o,`${r}-sm`))},xy=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:g,paragraphLiHeight:C,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},In(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},In(u)),[`${r}-sm`]:Object.assign({},In(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:g,"+ 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"},Sy(e)),by(e)),yy(e)),Cy(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
230
229
  ${n},
231
230
  ${a} > li,
232
231
  ${r},
233
232
  ${o},
234
233
  ${i},
235
234
  ${s}
236
- `]:Object.assign({},py(e))}}},xy=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}},Un=lr("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=jt(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[Sy(n)]},xy,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ey=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=c.useContext(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Cr(e,["prefixCls","className"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(qo,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:i},v))))},wy=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=c.useContext(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Cr(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(qo,Object.assign({prefixCls:`${l}-button`,size:i},v))))},$y="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",Oy=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o}=e,{getPrefixCls:i}=c.useContext(nt),s=i("skeleton",t),[l,u,d]=Un(s),f=Z(s,`${s}-element`,{[`${s}-active`]:o},r,n,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:Z(`${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:$y,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(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Cr(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(qo,Object.assign({prefixCls:`${l}-input`,size:i},v))))};var Py={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"},_y=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:Py}))},Rf=c.forwardRef(_y);process.env.NODE_ENV!=="production"&&(Rf.displayName="DotChartOutlined");const Ty=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o,children:i}=e,{getPrefixCls:s}=c.useContext(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Z(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,f),b=i??c.createElement(Rf,null);return u(c.createElement("div",{className:v},c.createElement("div",{className:Z(`${l}-image`,r),style:a},b)))},Ny=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},Iy=e=>{const{prefixCls:t,className:r,style:n,rows:a}=e,o=Ce(Array(a)).map((i,s)=>c.createElement("li",{key:s,style:{width:Ny(s,e)}}));return c.createElement("ul",{className:Z(t,r),style:n},o)},My=e=>{let{prefixCls:t,className:r,width:n,style:a}=e;return c.createElement("h3",{className:Z(t,r),style:Object.assign({width:n},a)})};function Ii(e){return e&&typeof e=="object"?e:{}}function jy(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ay(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Fy(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const gn=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(nt),p=v("skeleton",t),[g,C,m]=Un(p);if(r||!("loading"in e)){const y=!!s,x=!!l,S=!!u;let E;if(y){const $=Object.assign(Object.assign({prefixCls:`${p}-avatar`},jy(x,S)),Ii(s));E=c.createElement("div",{className:`${p}-header`},c.createElement(qo,Object.assign({},$)))}let R;if(x||S){let $;if(x){const M=Object.assign(Object.assign({prefixCls:`${p}-title`},Ay(y,S)),Ii(l));$=c.createElement(My,Object.assign({},M))}let T;if(S){const M=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},Fy(y,x)),Ii(u));T=c.createElement(Iy,Object.assign({},M))}R=c.createElement("div",{className:`${p}-content`},$,T)}const w=Z(p,{[`${p}-with-avatar`]:y,[`${p}-active`]:d,[`${p}-rtl`]:b==="rtl",[`${p}-round`]:f},h==null?void 0:h.className,n,a,C,m);return g(c.createElement("div",{className:w,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,R))}return i??null};gn.Button=wy;gn.Avatar=Ey;gn.Input=Ry;gn.Image=Oy;gn.Node=Ty;process.env.NODE_ENV!=="production"&&(gn.displayName="Skeleton");const Ly=e=>({animationDuration:e,animationFillMode:"both"}),Dy=e=>({animationDuration:e,animationFillMode:"both"}),Pf=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
235
+ `]:Object.assign({},hy(e))}}},Ey=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}},Un=lr("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=jt(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[xy(n)]},Ey,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),wy=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=c.useContext(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Cr(e,["prefixCls","className"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Xo,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:i},v))))},$y=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=c.useContext(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Cr(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Xo,Object.assign({prefixCls:`${l}-button`,size:i},v))))},Oy="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",Ry=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o}=e,{getPrefixCls:i}=c.useContext(nt),s=i("skeleton",t),[l,u,d]=Un(s),f=Z(s,`${s}-element`,{[`${s}-active`]:o},r,n,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:Z(`${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:Oy,className:`${s}-image-path`})))))},Py=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=c.useContext(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Cr(e,["prefixCls"]),b=Z(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Xo,Object.assign({prefixCls:`${l}-input`,size:i},v))))};var _y={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"},Ty=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:_y}))},Rf=c.forwardRef(Ty);process.env.NODE_ENV!=="production"&&(Rf.displayName="DotChartOutlined");const Ny=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o,children:i}=e,{getPrefixCls:s}=c.useContext(nt),l=s("skeleton",t),[u,d,f]=Un(l),v=Z(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,f),b=i??c.createElement(Rf,null);return u(c.createElement("div",{className:v},c.createElement("div",{className:Z(`${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},My=e=>{const{prefixCls:t,className:r,style:n,rows:a}=e,o=Ce(Array(a)).map((i,s)=>c.createElement("li",{key:s,style:{width:Iy(s,e)}}));return c.createElement("ul",{className:Z(t,r),style:n},o)},jy=e=>{let{prefixCls:t,className:r,width:n,style:a}=e;return c.createElement("h3",{className:Z(t,r),style:Object.assign({width:n},a)})};function Ii(e){return e&&typeof e=="object"?e:{}}function Ay(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Fy(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Ly(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const gn=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(nt),p=v("skeleton",t),[g,C,m]=Un(p);if(r||!("loading"in e)){const y=!!s,x=!!l,S=!!u;let E;if(y){const $=Object.assign(Object.assign({prefixCls:`${p}-avatar`},Ay(x,S)),Ii(s));E=c.createElement("div",{className:`${p}-header`},c.createElement(Xo,Object.assign({},$)))}let R;if(x||S){let $;if(x){const M=Object.assign(Object.assign({prefixCls:`${p}-title`},Fy(y,S)),Ii(l));$=c.createElement(jy,Object.assign({},M))}let T;if(S){const M=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},Ly(y,x)),Ii(u));T=c.createElement(My,Object.assign({},M))}R=c.createElement("div",{className:`${p}-content`},$,T)}const w=Z(p,{[`${p}-with-avatar`]:y,[`${p}-active`]:d,[`${p}-rtl`]:b==="rtl",[`${p}-round`]:f},h==null?void 0:h.className,n,a,C,m);return g(c.createElement("div",{className:w,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,R))}return i??null};gn.Button=$y;gn.Avatar=wy;gn.Input=Py;gn.Image=Ry;gn.Node=Ny;process.env.NODE_ENV!=="production"&&(gn.displayName="Skeleton");const Dy=e=>({animationDuration:e,animationFillMode:"both"}),zy=e=>({animationDuration:e,animationFillMode:"both"}),Pf=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
237
236
  ${o}${e}-enter,
238
237
  ${o}${e}-appear
239
- `]:Object.assign(Object.assign({},Ly(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Dy(n)),{animationPlayState:"paused"}),[`
238
+ `]:Object.assign(Object.assign({},Dy(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},zy(n)),{animationPlayState:"paused"}),[`
240
239
  ${o}${e}-enter${e}-enter-active,
241
240
  ${o}${e}-appear${e}-appear-active
242
- `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},zy=new Ot("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ky=new Ot("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Vy=new Ot("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),By=new Ot("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Hy=new Ot("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Wy=new Ot("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gy=new Ot("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Uy=new Ot("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ky={"slide-up":{inKeyframes:zy,outKeyframes:ky},"slide-down":{inKeyframes:Vy,outKeyframes:By},"slide-left":{inKeyframes:Hy,outKeyframes:Wy},"slide-right":{inKeyframes:Gy,outKeyframes:Uy}},qc=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=Ky[t];return[Pf(n,a,o,e.motionDurationMid),{[`
241
+ `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},ky=new Ot("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Vy=new Ot("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),By=new Ot("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Hy=new Ot("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wy=new Ot("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Gy=new Ot("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Uy=new Ot("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ky=new Ot("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),qy={"slide-up":{inKeyframes:ky,outKeyframes:Vy},"slide-down":{inKeyframes:By,outKeyframes:Hy},"slide-left":{inKeyframes:Wy,outKeyframes:Gy},"slide-right":{inKeyframes:Uy,outKeyframes:Ky}},qc=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=qy[t];return[Pf(n,a,o,e.motionDurationMid),{[`
243
242
  ${n}-enter,
244
243
  ${n}-appear
245
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},qy=new Ot("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Xy=new Ot("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Xc=new Ot("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yc=new Ot("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Yy=new Ot("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Zy=new Ot("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Qy=new Ot("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Jy=new Ot("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),eC=new Ot("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),tC=new Ot("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),rC=new Ot("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),nC=new Ot("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),aC={zoom:{inKeyframes:qy,outKeyframes:Xy},"zoom-big":{inKeyframes:Xc,outKeyframes:Yc},"zoom-big-fast":{inKeyframes:Xc,outKeyframes:Yc},"zoom-left":{inKeyframes:Qy,outKeyframes:Jy},"zoom-right":{inKeyframes:eC,outKeyframes:tC},"zoom-up":{inKeyframes:Yy,outKeyframes:Zy},"zoom-down":{inKeyframes:rC,outKeyframes:nC}},oC=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=aC[t];return[Pf(n,a,o,e.motionDurationFast),{[`
244
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Xy=new Ot("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yy=new Ot("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Xc=new Ot("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yc=new Ot("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Zy=new Ot("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Qy=new Ot("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Jy=new Ot("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),eC=new Ot("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),tC=new Ot("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),rC=new Ot("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),nC=new Ot("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),aC=new Ot("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),oC={zoom:{inKeyframes:Xy,outKeyframes:Yy},"zoom-big":{inKeyframes:Xc,outKeyframes:Yc},"zoom-big-fast":{inKeyframes:Xc,outKeyframes:Yc},"zoom-left":{inKeyframes:Jy,outKeyframes:eC},"zoom-right":{inKeyframes:tC,outKeyframes:rC},"zoom-up":{inKeyframes:Zy,outKeyframes:Qy},"zoom-down":{inKeyframes:nC,outKeyframes:aC}},iC=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=oC[t];return[Pf(n,a,o,e.motionDurationFast),{[`
246
245
  ${n}-enter,
247
246
  ${n}-appear
248
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_f=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 iC=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Cn=void 0;function sC(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,g=p===void 0?"div":p,C=Je(e,iC),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var x=o&&a!==Cn?o(a):v,S;n||(S={opacity:m?0:1,height:m?0:Cn,overflowY:m?"hidden":Cn,order:i?h:Cn,pointerEvents:m?"none":Cn,position:m?"absolute":Cn});var E={};m&&(E["aria-hidden"]=!0);var R=c.createElement(g,xe({className:Z(!n&&r,d),style:D(D({},S),f)},E,C,{ref:t}),x);return i&&(R=c.createElement(mr,{onResize:function($){var T=$.offsetWidth;y(T)},disabled:s},R)),R}var ga=c.forwardRef(sC);ga.displayName="Item";function lC(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function cC(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],lC(function(){Mn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function na(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Ht(function(s){e(function(){o(s)})});return[a,i]}var jo=P.createContext(null),uC=["component"],dC=["className"],fC=["className"],vC=function(t,r){var n=c.useContext(jo);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,uC);return c.createElement(o,xe({},i,{ref:r}))}var s=n.className,l=Je(n,dC),u=t.className,d=Je(t,fC);return c.createElement(jo.Provider,{value:null},c.createElement(ga,xe({ref:r,className:Z(s,u)},l,d)))},Tf=c.forwardRef(vC);Tf.displayName="RawItem";var gC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Nf="responsive",If="invalidate";function mC(e){return"+ ".concat(e.length," ...")}function pC(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,g=e.renderRawRest,C=e.suffix,m=e.component,y=m===void 0?"div":m,x=e.itemComponent,S=e.onVisibleChange,E=Je(e,gC),R=f==="full",w=cC(),$=na(w,null),T=U($,2),M=T[0],F=T[1],A=M||0,_=na(w,new Map),k=U(_,2),N=k[0],O=k[1],j=na(w,0),z=U(j,2),V=z[0],H=z[1],K=na(w,0),W=U(K,2),q=W[0],Y=W[1],J=na(w,0),ee=U(J,2),te=ee[0],oe=ee[1],ve=P.useState(null),fe=U(ve,2),ge=fe[0],Oe=fe[1],B=P.useState(null),ue=U(B,2),le=ue[0],Ee=ue[1],he=c.useMemo(function(){return le===null&&R?Number.MAX_SAFE_INTEGER:le||0},[le,M]),ae=P.useState(!1),me=U(ae,2),$e=me[0],je=me[1],ie="".concat(n,"-item"),ne=Math.max(V,q),pe=h===Nf,be=o.length&&pe,at=h===If,Xe=be||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Pe=o;return be?M===null&&R?Pe=o:Pe=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(Pe=o.slice(0,h)),Pe},[o,d,M,h,be]),Ke=P.useMemo(function(){return be?o.slice(he+1):o.slice(Ae.length)},[o,Ae,be,he]),Ye=P.useCallback(function(Pe,ye){var Ue;return typeof l=="function"?l(Pe):(Ue=l&&(Pe==null?void 0:Pe[l]))!==null&&Ue!==void 0?Ue:ye},[l]),et=P.useCallback(i||function(Pe){return Pe},[i]);function Le(Pe,ye,Ue){le===Pe&&(ye===void 0||ye===ge)||(Ee(Pe),Ue||(je(Pe<o.length-1),S==null||S(Pe)),ye!==void 0&&Oe(ye))}function Ne(Pe,ye){F(ye.clientWidth)}function lt(Pe,ye){O(function(Ue){var bt=new Map(Ue);return ye===null?bt.delete(Pe):bt.set(Pe,ye),bt})}function Ze(Pe,ye){Y(ye),H(q)}function De(Pe,ye){oe(ye)}function de(Pe){return N.get(Ye(Ae[Pe],Pe))}St(function(){if(A&&typeof ne=="number"&&Ae){var Pe=te,ye=Ae.length,Ue=ye-1;if(!ye){Le(0,null);return}for(var bt=0;bt<ye;bt+=1){var He=de(bt);if(R&&(He=He||0),He===void 0){Le(bt-1,void 0,!0);break}if(Pe+=He,Ue===0&&Pe<=A||bt===Ue-1&&Pe+de(Ue)<=A){Le(Ue,null);break}else if(Pe+ne>A){Le(bt-1,Pe-He-te+q);break}}C&&de(0)+te>A&&Oe(null)}},[A,N,q,te,Ye,Ae]);var we=$e&&!!Ke.length,qe={};ge!==null&&be&&(qe={position:"absolute",left:ge,top:0});var ot={prefixCls:ie,responsive:be,component:x,invalidate:at},Ct=s?function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(jo.Provider,{key:Ue,value:D(D({},ot),{},{order:ye,item:Pe,itemKey:Ue,registerSize:lt,display:ye<=he})},s(Pe,ye))}:function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(ga,xe({},ot,{order:ye,key:Ue,item:Pe,renderItem:et,itemKey:Ue,registerSize:lt,display:ye<=he}))},ft,Be={order:we?he:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:Ze,display:we};if(g)g&&(ft=c.createElement(jo.Provider,{value:D(D({},ot),Be)},g(Ke)));else{var Ve=p||mC;ft=c.createElement(ga,xe({},ot,Be),typeof Ve=="function"?Ve(Ke):Ve)}var ze=c.createElement(y,xe({className:Z(!at&&n,b),style:v,ref:t},E),Ae.map(Ct),Xe?ft:null,C&&c.createElement(ga,xe({},ot,{responsive:pe,responsiveDisabled:!be,order:he,className:"".concat(ie,"-suffix"),registerSize:De,display:!0,style:qe}),C));return pe&&(ze=c.createElement(mr,{onResize:Ne,disabled:!be},ze)),ze}var Dr=c.forwardRef(pC);Dr.displayName="Overflow";Dr.Item=Tf;Dr.RESPONSIVE=Nf;Dr.INVALIDATE=If;function hC(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],g=h[0],C=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,C===y||!["l","r"].includes(C)?b.left=u:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function bC(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(un,xe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var Mf=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Mf.displayName="PopupContent");var jf=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,g=e.motion,C=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,S=e.portal,E=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,T=e.ready,M=e.offsetX,F=e.offsetY,A=e.offsetR,_=e.offsetB,k=e.onAlign,N=e.onPrepare,O=e.stretch,j=e.targetWidth,z=e.targetHeight,V=typeof r=="function"?r():r,H=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],J=q[1];if(St(function(){!Y&&K&&i&&J(!0)},[Y,K,i]),!Y)return null;var ee="auto",te={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(T||!l){var oe,ve=p.points,fe=p.dynamicInset||((oe=p._experimental)===null||oe===void 0?void 0:oe.dynamicInset),ge=fe&&ve[0][1]==="r",Oe=fe&&ve[0][0]==="b";ge?(te.right=A,te.left=ee):(te.left=M,te.right=ee),Oe?(te.bottom=_,te.top=ee):(te.top=F,te.bottom=ee)}var B={};return O&&(O.includes("height")&&z?B.height=z:O.includes("minHeight")&&z&&(B.minHeight=z),O.includes("width")&&j?B.width=j:O.includes("minWidth")&&j&&(B.minWidth=j)),l||(B.pointerEvents="none"),c.createElement(S,{open:m||H,getContainer:y&&function(){return y(i)},autoDestroy:x},c.createElement(bC,{prefixCls:a,open:l,zIndex:E,mask:v,motion:C}),c.createElement(mr,{onResize:k,disabled:!l},function(ue){return c.createElement(un,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ee){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,Ee),s(Ee)}}),function(le,Ee){var he=le.className,ae=le.style,me=Z(a,he,n);return c.createElement("div",{ref:yr(ue,t,Ee),className:me,style:D(D(D(D({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ae),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(hC,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(Mf,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(jf.displayName="Popup");var Af=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=cn(r),o=c.useCallback(function(s){Qs(t,n?n(s):s)},[n]),i=Na(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Af.displayName="TriggerWrapper");var Zc=c.createContext(null);function Qc(e){return e?Array.isArray(e)?e:[e]:[]}function yC(e,t,r,n){return c.useMemo(function(){var a=Qc(r??t),o=Qc(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 CC(){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 SC(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(CC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Jc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Da(e){return e.ownerDocument.defaultView}function zs(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Da(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 Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function aa(e){return Ra(parseFloat(e),0)}function eu(e,t){var r=D({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Da(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,g=aa(s),C=aa(l),m=aa(u),y=aa(d),x=Ra(Math.round(f.width/h*1e3)/1e3),S=Ra(Math.round(f.height/v*1e3)/1e3),E=(h-p-m-y)*x,R=(v-b-g-C)*S,w=g*S,$=C*S,T=m*x,M=y*x,F=0,A=0;if(o==="clip"){var _=aa(i);F=_*x,A=_*S}var k=f.x+T-F,N=f.y+w-A,O=k+f.width+2*F-T-M-E,j=N+f.height+2*A-w-$-R;r.left=Math.max(r.left,k),r.top=Math.max(r.top,N),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,j)}}),r}function tu(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 ru(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[tu(e.width,a),tu(e.height,o)]}function nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Sn(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 Ur(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=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?zs(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Ht(function(){if(t&&r&&e){let Kt=function(qt,dr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,pn=V.x+qt,Qn=V.y+dr,Jn=pn+oe,Ga=Qn+te,ai=Math.max(pn,Gr.left),oi=Math.max(Qn,Gr.top),ii=Math.min(Jn,Gr.right),si=Math.min(Ga,Gr.bottom);return Math.max(0,(ii-ai)*(si-oi))},en=function(){I=V.y+Ve,G=I+te,X=V.x+Be,se=X+oe};var m,y,x=t,S=x.ownerDocument,E=Da(x),R=E.getComputedStyle(x),w=R.width,$=R.height,T=R.position,M=x.style.left,F=x.style.top,A=x.style.right,_=x.style.bottom,k=x.style.overflow,N=D(D({},a[n]),o),O=S.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(x.offsetLeft,"px"),O.style.top="".concat(x.offsetTop,"px"),O.style.position=T,O.style.height="".concat(x.offsetHeight,"px"),O.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var j;if(Array.isArray(r))j={x:r[0],y:r[1],width:0,height:0};else{var z=r.getBoundingClientRect();j={x:z.x,y:z.y,width:z.width,height:z.height}}var V=x.getBoundingClientRect(),H=S.documentElement,K=H.clientWidth,W=H.clientHeight,q=H.scrollWidth,Y=H.scrollHeight,J=H.scrollTop,ee=H.scrollLeft,te=V.height,oe=V.width,ve=j.height,fe=j.width,ge={left:0,top:0,right:K,bottom:W},Oe={left:-ee,top:-J,right:q-ee,bottom:Y-J},B=N.htmlRegion,ue="visible",le="visibleFirst";B!=="scroll"&&B!==le&&(B=ue);var Ee=B===le,he=eu(Oe,v),ae=eu(ge,v),me=B===ue?ae:he,$e=Ee?ae:me;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var je=x.getBoundingClientRect();x.style.left=M,x.style.top=F,x.style.right=A,x.style.bottom=_,x.style.overflow=k,(y=x.parentElement)===null||y===void 0||y.removeChild(O);var ie=Ra(Math.round(oe/parseFloat(w)*1e3)/1e3),ne=Ra(Math.round(te/parseFloat($)*1e3)/1e3);if(ie===0||ne===0||ma(r)&&!gl(r))return;var pe=N.offset,be=N.targetOffset,at=ru(V,pe),Xe=U(at,2),Ae=Xe[0],Ke=Xe[1],Ye=ru(j,be),et=U(Ye,2),Le=et[0],Ne=et[1];j.x-=Le,j.y-=Ne;var lt=N.points||[],Ze=U(lt,2),De=Ze[0],de=Ze[1],we=nu(de),qe=nu(De),ot=Sn(j,we),Ct=Sn(V,qe),ft=D({},N),Be=ot.x-Ct.x+Ae,Ve=ot.y-Ct.y+Ke,ze=Kt(Be,Ve),Pe=Kt(Be,Ve,ae),ye=Sn(j,["t","l"]),Ue=Sn(V,["t","l"]),bt=Sn(j,["b","r"]),He=Sn(V,["b","r"]),We=N.overflow||{},ct=We.adjustX,yt=We.adjustY,Pt=We.shiftX,kt=We.shiftY,Wt=function(dr){return typeof dr=="boolean"?dr:dr>=0},I,G,X,se;en();var _e=Wt(yt),Re=qe[0]===we[0];if(_e&&qe[0]==="t"&&(G>$e.bottom||b.current.bt)){var Te=Ve;Re?Te-=te-ve:Te=ye.y-He.y-Ke;var Me=Kt(Be,Te),mt=Kt(Be,Te,ae);Me>ze||Me===ze&&(!Ee||mt>=Pe)?(b.current.bt=!0,Ve=Te,Ke=-Ke,ft.points=[Ur(qe,0),Ur(we,0)]):b.current.bt=!1}if(_e&&qe[0]==="b"&&(I<$e.top||b.current.tb)){var rt=Ve;Re?rt+=te-ve:rt=bt.y-Ue.y-Ke;var ke=Kt(Be,rt),wt=Kt(Be,rt,ae);ke>ze||ke===ze&&(!Ee||wt>=Pe)?(b.current.tb=!0,Ve=rt,Ke=-Ke,ft.points=[Ur(qe,0),Ur(we,0)]):b.current.tb=!1}var Gt=Wt(ct),Vt=qe[1]===we[1];if(Gt&&qe[1]==="l"&&(se>$e.right||b.current.rl)){var pt=Be;Vt?pt-=oe-fe:pt=ye.x-He.x-Ae;var Sr=Kt(pt,Ve),Br=Kt(pt,Ve,ae);Sr>ze||Sr===ze&&(!Ee||Br>=Pe)?(b.current.rl=!0,Be=pt,Ae=-Ae,ft.points=[Ur(qe,1),Ur(we,1)]):b.current.rl=!1}if(Gt&&qe[1]==="r"&&(X<$e.left||b.current.lr)){var Ut=Be;Vt?Ut+=oe-fe:Ut=bt.x-Ue.x-Ae;var Hr=Kt(Ut,Ve),Kn=Kt(Ut,Ve,ae);Hr>ze||Hr===ze&&(!Ee||Kn>=Pe)?(b.current.lr=!0,Be=Ut,Ae=-Ae,ft.points=[Ur(qe,1),Ur(we,1)]):b.current.lr=!1}en();var nr=Pt===!0?0:Pt;typeof nr=="number"&&(X<ae.left&&(Be-=X-ae.left-Ae,j.x+fe<ae.left+nr&&(Be+=j.x-ae.left+fe-nr)),se>ae.right&&(Be-=se-ae.right-Ae,j.x>ae.right-nr&&(Be+=j.x-ae.right+nr)));var cr=kt===!0?0:kt;typeof cr=="number"&&(I<ae.top&&(Ve-=I-ae.top-Ke,j.y+ve<ae.top+cr&&(Ve+=j.y-ae.top+ve-cr)),G>ae.bottom&&(Ve-=G-ae.bottom-Ke,j.y>ae.bottom-cr&&(Ve+=j.y-ae.bottom+cr)));var Wr=V.x+Be,Tr=Wr+oe,xr=V.y+Ve,Nr=xr+te,Jr=j.x,Ir=Jr+fe,ur=j.y,qn=ur+ve,Xn=Math.max(Wr,Jr),Yn=Math.min(Tr,Ir),mn=(Xn+Yn)/2,ht=mn-Wr,it=Math.max(xr,ur),vt=Math.min(Nr,qn),Mt=(it+vt)/2,At=Mt-xr;i==null||i(t,ft);var Er=je.right-V.x-(Be+V.width),wr=je.bottom-V.y-(Ve+V.height);ie===1&&(Be=Math.round(Be),Er=Math.round(Er)),ne===1&&(Ve=Math.round(Ve),wr=Math.round(wr));var Zn={ready:!0,offsetX:Be/ie,offsetY:Ve/ne,offsetR:Er/ie,offsetB:wr/ne,arrowX:ht/ie,arrowY:At/ne,scaleX:ie,scaleY:ne,align:ft};d(Zn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},C=function(){d(function(y){return D(D({},y),{},{ready:!1})})};return St(C,[n]),St(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function EC(e,t,r,n,a){St(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=zs(o),l=zs(i),u=Da(i),d=new Set([u].concat(Ce(s),Ce(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 wC(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(C){var m;l.current&&!i(((m=C.composedPath)===null||m===void 0||(m=m.call(C))===null||m===void 0?void 0:m[0])||C.target)&&s(!1)},d=Da(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=To(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);jn(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 $C=["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 OC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yl,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,g=r.mouseLeaveDelay,C=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,x=r.mask,S=r.maskClosable,E=S===void 0?!0:S,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,T=r.destroyPopupOnHide,M=r.popup,F=r.popupClassName,A=r.popupStyle,_=r.popupPlacement,k=r.builtinPlacements,N=k===void 0?{}:k,O=r.popupAlign,j=r.zIndex,z=r.stretch,V=r.getPopupClassNameFromAlign,H=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,J=r.popupMotion,ee=r.maskMotion,te=r.popupTransitionName,oe=r.popupAnimation,ve=r.maskTransitionName,fe=r.maskAnimation,ge=r.className,Oe=r.getTriggerDOMNode,B=Je(r,$C),ue=$||T||!1,le=c.useState(!1),Ee=U(le,2),he=Ee[0],ae=Ee[1];St(function(){ae(_f())},[]);var me=c.useRef({}),$e=c.useContext(Zc),je=c.useMemo(function(){return{registerSubPopup:function(Fe,xt){me.current[Fe]=xt,$e==null||$e.registerSubPopup(Fe,xt)}}},[$e]),ie=hb(),ne=c.useState(null),pe=U(ne,2),be=pe[0],at=pe[1],Xe=c.useRef(null),Ae=Ht(function(Se){Xe.current=Se,ma(Se)&&be!==Se&&at(Se),$e==null||$e.registerSubPopup(ie,Se)}),Ke=c.useState(null),Ye=U(Ke,2),et=Ye[0],Le=Ye[1],Ne=c.useRef(null),lt=Ht(function(Se){ma(Se)&&et!==Se&&(Le(Se),Ne.current=Se)}),Ze=c.Children.only(i),De=(Ze==null?void 0:Ze.props)||{},de={},we=Ht(function(Se){var Fe,xt,_t=et;return(_t==null?void 0:_t.contains(Se))||((Fe=To(_t))===null||Fe===void 0?void 0:Fe.host)===Se||Se===_t||(be==null?void 0:be.contains(Se))||((xt=To(be))===null||xt===void 0?void 0:xt.host)===Se||Se===be||Object.values(me.current).some(function(Et){return(Et==null?void 0:Et.contains(Se))||Se===Et})}),qe=Jc(o,J,oe,te),ot=Jc(o,ee,fe,ve),Ct=c.useState(v||!1),ft=U(Ct,2),Be=ft[0],Ve=ft[1],ze=f??Be,Pe=Ht(function(Se){f===void 0&&Ve(Se)});St(function(){Ve(f||!1)},[f]);var ye=c.useRef(ze);ye.current=ze;var Ue=c.useRef([]);Ue.current=[];var bt=Ht(function(Se){var Fe;Pe(Se),((Fe=Ue.current[Ue.current.length-1])!==null&&Fe!==void 0?Fe:ze)!==Se&&(Ue.current.push(Se),b==null||b(Se))}),He=c.useRef(),We=function(){clearTimeout(He.current)},ct=function(Fe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?bt(Fe):He.current=setTimeout(function(){bt(Fe)},xt*1e3)};c.useEffect(function(){return We},[]);var yt=c.useState(!1),Pt=U(yt,2),kt=Pt[0],Wt=Pt[1];St(function(Se){(!Se||ze)&&Wt(!0)},[ze]);var I=c.useState(null),G=U(I,2),X=G[0],se=G[1],_e=c.useState([0,0]),Re=U(_e,2),Te=Re[0],Me=Re[1],mt=function(Fe){Me([Fe.clientX,Fe.clientY])},rt=xC(ze,be,K?Te:et,_,N,O,q),ke=U(rt,11),wt=ke[0],Gt=ke[1],Vt=ke[2],pt=ke[3],Sr=ke[4],Br=ke[5],Ut=ke[6],Hr=ke[7],Kn=ke[8],nr=ke[9],cr=ke[10],Wr=yC(he,l,u,d),Tr=U(Wr,2),xr=Tr[0],Nr=Tr[1],Jr=xr.has("click"),Ir=Nr.has("click")||Nr.has("contextMenu"),ur=Ht(function(){kt||cr()}),qn=function(){ye.current&&K&&Ir&&ct(!1)};EC(ze,et,be,ur,qn),St(function(){ur()},[Te,_]),St(function(){ze&&!(N!=null&&N[_])&&ur()},[JSON.stringify(O)]);var Xn=c.useMemo(function(){var Se=SC(N,o,nr,K);return Z(Se,V==null?void 0:V(nr))},[nr,V,N,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:ur}});var Yn=c.useState(0),mn=U(Yn,2),ht=mn[0],it=mn[1],vt=c.useState(0),Mt=U(vt,2),At=Mt[0],Er=Mt[1],wr=function(){if(z&&et){var Fe=et.getBoundingClientRect();it(Fe.width),Er(Fe.height)}},Zn=function(){wr(),ur()},Kt=function(Fe){Wt(!1),cr(),h==null||h(Fe)},en=function(){return new Promise(function(Fe){wr(),se(function(){return Fe})})};St(function(){X&&(cr(),X(),se(null))},[X]);function qt(Se,Fe,xt,_t){de[Se]=function(Et){var Ua;_t==null||_t(Et),ct(Fe,xt);for(var li=arguments.length,Ml=new Array(li>1?li-1:0),Ka=1;Ka<li;Ka++)Ml[Ka-1]=arguments[Ka];(Ua=De[Se])===null||Ua===void 0||Ua.call.apply(Ua,[De,Et].concat(Ml))}}(Jr||Ir)&&(de.onClick=function(Se){var Fe;ye.current&&Ir?ct(!1):!ye.current&&Jr&&(mt(Se),ct(!0));for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),wC(ze,Ir,et,be,x,E,we,ct);var dr=xr.has("hover"),Gr=Nr.has("hover"),pn,Qn;dr&&(qt("onMouseEnter",!0,p,function(Se){mt(Se)}),qt("onPointerEnter",!0,p,function(Se){mt(Se)}),pn=function(Fe){(ze||kt)&&be!==null&&be!==void 0&&be.contains(Fe.target)&&ct(!0,p)},K&&(de.onMouseMove=function(Se){var Fe;(Fe=De.onMouseMove)===null||Fe===void 0||Fe.call(De,Se)})),Gr&&(qt("onMouseLeave",!1,C),qt("onPointerLeave",!1,C),Qn=function(){ct(!1,C)}),xr.has("focus")&&qt("onFocus",!0,m),Nr.has("focus")&&qt("onBlur",!1,y),xr.has("contextMenu")&&(de.onContextMenu=function(Se){var Fe;ye.current&&Nr.has("contextMenu")?ct(!1):(mt(Se),ct(!0)),Se.preventDefault();for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),ge&&(de.className=Z(De.className,ge));var Jn=D(D({},De),de),Ga={},ai=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ai.forEach(function(Se){B[Se]&&(Ga[Se]=function(){for(var Fe,xt=arguments.length,_t=new Array(xt),Et=0;Et<xt;Et++)_t[Et]=arguments[Et];(Fe=Jn[Se])===null||Fe===void 0||Fe.call.apply(Fe,[Jn].concat(_t)),B[Se].apply(B,_t)})});var oi=c.cloneElement(Ze,D(D({},Jn),Ga)),ii={x:Br,y:Ut},si=Y?D({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(mr,{disabled:!ze,ref:lt,onResize:Zn},c.createElement(Af,{getTriggerDOMNode:Oe},oi)),c.createElement(Zc.Provider,{value:je},c.createElement(jf,{portal:e,ref:Ae,prefixCls:o,popup:M,className:Z(F,Xn),style:A,target:et,onMouseEnter:pn,onMouseLeave:Qn,onPointerEnter:pn,zIndex:j,open:ze,keepDom:kt,fresh:H,onClick:W,mask:x,motion:qe,maskMotion:ot,onVisibleChanged:Kt,onPrepare:en,forceRender:w,autoDestroy:ue,getPopupContainer:R,align:nr,arrow:si,arrowPos:ii,ready:wt,offsetX:Gt,offsetY:Vt,offsetR:pt,offsetB:Sr,onAlign:ur,stretch:z,targetWidth:ht/Hr,targetHeight:At/Kn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Sl=OC(yl);function ks(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 Ff=(e,t)=>t||e,Lf=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(nt),s=P.useContext(vy),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=$p.includes(u);return[u,d]};var RC={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"},PC=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:RC}))},Df=c.forwardRef(PC);process.env.NODE_ENV!=="production"&&(Df.displayName="CheckOutlined");var _C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},TC=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:_C}))},zf=c.forwardRef(TC);process.env.NODE_ENV!=="production"&&(zf.displayName="DownOutlined");const Pa=["xxl","xl","lg","md","sm","xs"],NC=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)`}),IC=e=>{const t=e,r=[].concat(Pa).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 MC(){const[,e]=Vr(),t=NC(IC(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 kf(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:Z("".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 xn={shiftX:64,adjustY:1},En={adjustX:1,shiftY:!0},or=[0,0],jC={left:{points:["cr","cl"],overflow:En,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:En,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:xn,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:xn,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:xn,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:En,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:xn,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:En,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:xn,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:En,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:xn,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:En,offset:[-4,0],targetOffset:or}},AC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],FC=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,g=t.transitionName,C=t.animation,m=t.motion,y=t.placement,x=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,T=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,A=t.id,_=t.showArrow,k=_===void 0?!0:_,N=Je(t,AC),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var j=D({},N);"visible"in t&&(j.popupVisible=t.visible);var z=function(){return c.createElement(kf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:M},F)};return c.createElement(Sl,xe({popupClassName:n,prefixCls:v,popup:z,action:o,builtinPlacements:jC,popupPlacement:x,ref:O,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:k},j),b)};const LC=P.forwardRef(FC);function DC(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,g=i,C=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%)`,x=`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} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:x,arrowPolygon:y}}const zC=(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 ${Q(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Vf=8;function Bf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Vf:n}}function io(e,t){return e?t:{}}function kC(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"},zC(e,t,a)),{"&:before":{background:t}})]},io(!!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% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),io(!!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% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),io(!!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}})),io(!!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 VC(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 au={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"]}},BC={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"]}},HC=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function WC(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(au).forEach(u=>{const d=n&&BC[u]||au[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,HC.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=Bf({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=VC(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const GC=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({},zr(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:`${Q(e.calc(u).div(2).equal())} ${Q(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,Vf)}},[`${t}-content`]:{position:"relative"}}),eh(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},kC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},UC=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Bf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),DC(jt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Hf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return lr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=jt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[GC(s),oC(n,"zoom-big-fast")]},UC,{resetStyle:!1,injectStyle:t})(e)},KC=_o.map(e=>`${e}-inverse`);function qC(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ce(KC),Ce(_o)).includes(e):_o.includes(e)}function Wf(e,t){const r=qC(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 XC=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(nt),l=s("tooltip",t),[u,d,f]=Hf(l),v=Wf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Z(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(kf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var YC=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 ZC=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:g,builtinPlacements:C,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,S]=Vr(),{getPopupContainer:E,getPrefixCls:R,direction:w}=c.useContext(nt),$=Nt("Tooltip"),T=c.useRef(null),M=()=>{var ie;(ie=T.current)===null||ie===void 0||ie.forceAlign()};c.useImperativeHandle(t,()=>{var ie;return{forceAlign:M,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:(ie=T.current)===null||ie===void 0?void 0:ie.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ie=>{let[ne,pe]=ie;$.deprecated(!(ne in e),ne,pe)}),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[F,A]=Zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),_=!p&&!g&&p!==0,k=ie=>{var ne,pe;A(_?!1:ie),_||((ne=e.onOpenChange)===null||ne===void 0||ne.call(e,ie),(pe=e.onVisibleChange)===null||pe===void 0||pe.call(e,ie))},N=c.useMemo(()=>{var ie,ne;let pe=m;return typeof h=="object"&&(pe=(ne=(ie=h.pointAtCenter)!==null&&ie!==void 0?ie:h.arrowPointAtCenter)!==null&&ne!==void 0?ne:m),C||WC({arrowPointAtCenter:pe,autoAdjustOverflow:y,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[m,h,C,S]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),j=c.createElement(Ds,{space:!0},typeof O=="function"?O():O),{getPopupContainer:z,placement:V="top",mouseEnterDelay:H=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=YC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=R("tooltip",a),ee=R(),te=e["data-popover-inject"];let oe=F;!("open"in e)&&!("visible"in e)&&_&&(oe=!1);const ve=c.isValidElement(d)&&!af(d)?d:c.createElement("span",null,d),fe=ve.props,ge=!fe.className||typeof fe.className=="string"?Z(fe.className,o||`${J}-open`):fe.className,[Oe,B,ue]=Hf(J,!te),le=Wf(J,l),Ee=le.arrowStyle,he=Object.assign(Object.assign({},u),le.overlayStyle),ae=Z(s,{[`${J}-rtl`]:w==="rtl"},le.className,q,B,ue),[me,$e]=s0("Tooltip",Y.zIndex),je=c.createElement(LC,Object.assign({},Y,{zIndex:me,showArrow:x,placement:V,mouseEnterDelay:H,mouseLeaveDelay:K,prefixCls:J,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},Ee),W),getTooltipContainer:z||i||E,ref:T,builtinPlacements:N,overlay:j,visible:oe,onVisibleChange:k,afterVisibleChange:f??v,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:sf(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),oe?Go(ve,{className:ge}):ve);return Oe(c.createElement(vl.Provider,{value:$e},je))}),za=ZC;process.env.NODE_ENV!=="production"&&(za.displayName="Tooltip");za._InternalPanelDoNotUseOrYouWillBeFired=XC;var QC=ce.ESC,JC=ce.TAB;function eS(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 QC:s();break;case JC:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Tt(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var tS=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=yr(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:cn(o)?i:void 0}))}),wn={adjustX:1,adjustY:1},$n=[0,0],rS={topLeft:{points:["bl","tl"],overflow:wn,offset:[0,-4],targetOffset:$n},top:{points:["bc","tc"],overflow:wn,offset:[0,-4],targetOffset:$n},topRight:{points:["br","tr"],overflow:wn,offset:[0,-4],targetOffset:$n},bottomLeft:{points:["tl","bl"],overflow:wn,offset:[0,4],targetOffset:$n},bottom:{points:["tc","bc"],overflow:wn,offset:[0,4],targetOffset:$n},bottomRight:{points:["tr","br"],overflow:wn,offset:[0,4],targetOffset:$n}},nS=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function aS(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?rS:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,m=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,E=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,T=Je(e,nS),M=P.useState(),F=U(M,2),A=F[0],_=F[1],k="visible"in e?y:A,N=P.useRef(null),O=P.useRef(null),j=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var z=function(te){_(te),$==null||$(te)};eS({visible:k,triggerRef:j,onVisibleChange:z,autoFocus:E,overlayRef:O});var V=function(te){var oe=e.onOverlayClick;_(!1),oe&&oe(te)},H=function(){return P.createElement(tS,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?H:H()},W=function(){var te=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!oe},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=P.cloneElement(w,{className:Z((r=w.props)===null||r===void 0?void 0:r.className,k&&q()),ref:cn(w)?yr(j,w.ref):void 0}),J=g;return!J&&S.indexOf("contextMenu")!==-1&&(J=["click"]),P.createElement(Sl,xe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Z(C,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:S,showAction:p,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:k,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:z,onPopupClick:V,getPopupContainer:h}),Y)}const oS=P.forwardRef(aS);var Gf=c.createContext(null);function Uf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Kf(e){var t=c.useContext(Gf);return Uf(t,e)}var iS=["children","locked"],br=c.createContext(null);function sS(e,t){var r=D({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function _a(e){var t=e.children,r=e.locked,n=Je(e,iS),a=c.useContext(br),o=Do(function(){return sS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!Ca(i[1],s[1],!0))});return c.createElement(br.Provider,{value:o},t)}var lS=[],qf=c.createContext(null);function Yo(){return c.useContext(qf)}var Xf=c.createContext(lS);function ka(e){var t=c.useContext(Xf);return c.useMemo(function(){return e!==void 0?[].concat(Ce(t),[e]):t},[t,e])}var Yf=c.createContext(null),xl=c.createContext({});function ou(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(gl(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 cS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ce(e.querySelectorAll("*")).filter(function(n){return ou(n,t)});return ou(e,t)&&r.unshift(e),r}var Vs=ce.LEFT,Bs=ce.RIGHT,Hs=ce.UP,Co=ce.DOWN,So=ce.ENTER,Zf=ce.ESC,oa=ce.HOME,ia=ce.END,iu=[Hs,Co,Vs,Bs];function uS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===So)return{inlineTrigger:!0};var v=(a={},L(a,Hs,l),L(a,Co,u),a),b=(o={},L(o,Vs,r?u:l),L(o,Bs,r?l:u),L(o,Co,d),L(o,So,d),o),h=(i={},L(i,Hs,l),L(i,Co,u),L(i,So,d),L(i,Zf,f),L(i,Vs,r?d:f),L(i,Bs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){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 fS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function El(e,t){var r=cS(e,!0);return r.filter(function(n){return t.has(n)})}function su(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=El(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 Ws=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(Uf(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(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(iu,[So,Zf,oa,ia]).includes(h)){var p=o(),g=Ws(p,n),C=g,m=C.elements,y=C.key2element,x=C.element2key,S=y.get(t),E=fS(S,m),R=x.get(E),w=uS(e,i(R,!0).length===1,r,h);if(!w&&h!==oa&&h!==ia)return;(iu.includes(h)||[oa,ia].includes(h))&&b.preventDefault();var $=function(O){if(O){var j=O,z=O.querySelector("a");z!=null&&z.getAttribute("href")&&(j=z);var V=x.get(O);s(V),v(),d.current=Tt(function(){f.current===V&&j.focus()})}};if([oa,ia].includes(h)||w.sibling||!E){var T;!E||e==="inline"?T=a.current:T=dS(E);var M,F=El(T,m);h===oa?M=F[0]:h===ia?M=F[F.length-1]:M=su(T,m,E,w.offset),$(M)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=Tt(function(){g=Ws(p,n);var N=E.getAttribute("aria-controls"),O=document.getElementById(N),j=su(O,g.elements);$(j)},5);else if(w.offset<0){var A=i(R,!0),_=A[A.length-2],k=y.get(_);l(_,!1),$(k)}}u==null||u(b)}}function gS(e){Promise.resolve().then(e)}var wl="__RC_UTIL_PATH_SPLIT__",lu=function(t){return t.join(wl)},mS=function(t){return t.split(wl)},Gs="rc-menu-more";function pS(){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,x){process.env.NODE_ENV!=="production"&&st(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(x.join(" > "),"]"));var S=lu(x);a.current.set(S,y),n.current.set(y,S),u.current+=1;var E=u.current;gS(function(){E===u.current&&f()})},[]),b=P.useCallback(function(y,x){var S=lu(x);a.current.delete(S),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,x){var S=n.current.get(y)||"",E=mS(S);return x&&s.includes(E[0])&&E.unshift(Gs),E},[s]),g=P.useCallback(function(y,x){return y.filter(function(S){return S!==void 0}).some(function(S){var E=p(S,!0);return E.includes(x)})},[p]),C=function(){var x=Ce(n.current.keys());return s.length&&x.push(Gs),x},m=P.useCallback(function(y){var x="".concat(n.current.get(y)).concat(wl),S=new Set;return Ce(a.current.keys()).forEach(function(E){E.startsWith(x)&&S.add(a.current.get(E))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:m}}function la(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 hS=Math.random().toFixed(5).toString().slice(2),cu=0;function bS(e){var t=Zt(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){cu+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(hS,"-").concat(cu);a("rc-menu-uuid-".concat(o))},[]),n}function Qf(e,t,r,n){var a=c.useContext(br),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 Jf(e){var t=c.useContext(br),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 ev(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,D({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var yS=["item"];function Ao(e){var t=e.item,r=Je(e,yS);return Object.defineProperty(r,"item",{get:function(){return st(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var CS=["title","attribute","elementRef"],SS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],xS=["active"],ES=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,CS),u=Cr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return st(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Dr.Item,xe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),wS=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,g=Je(e,SS),C=Kf(o),m=c.useContext(br),y=m.prefixCls,x=m.onItemClick,S=m.disabled,E=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,T=c.useContext(xl),M=T._internalRenderMenuItem,F="".concat(y,"-item"),A=c.useRef(),_=c.useRef(),k=S||s,N=Na(t,_),O=ka(o);process.env.NODE_ENV!=="production"&&i&&st(!1,"MenuItem should not leave undefined `key`.");var j=function(fe){return{key:o,keyPath:Ce(O).reverse(),item:A.current,domEvent:fe}},z=l||R,V=Qf(o,k,f,v),H=V.active,K=Je(V,xS),W=w.includes(o),q=Jf(O.length),Y=function(fe){if(!k){var ge=j(fe);b==null||b(Ao(ge)),x(ge)}},J=function(fe){if(h==null||h(fe),fe.which===ce.ENTER){var ge=j(fe);b==null||b(Ao(ge)),x(ge)}},ee=function(fe){$(o),p==null||p(fe)},te={};e.role==="option"&&(te["aria-selected"]=W);var oe=c.createElement(ES,xe({ref:A,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&C?null:C},g,K,te,{component:"li","aria-disabled":s,style:D(D({},q),n),className:Z(F,(r={},L(r,"".concat(F,"-active"),H),L(r,"".concat(F,"-selected"),W),L(r,"".concat(F,"-disabled"),k),r),a),onClick:Y,onKeyDown:J,onFocus:ee}),u,c.createElement(ev,{props:D(D({},e),{},{isSelected:W}),icon:z}));return M&&(oe=M(oe,e,{selected:W})),oe});function $S(e,t){var r=e.eventKey,n=Yo(),a=ka(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(wS,xe({},e,{ref:t}))}const Zo=c.forwardRef($S);var OS=["className","children"],RS=function(t,r){var n=t.className,a=t.children,o=Je(t,OS),i=c.useContext(br),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",xe({className:Z(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)},$l=c.forwardRef(RS);$l.displayName="SubMenuList";function Ol(e,t){return Rr(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(Ce(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 Bt={adjustX:1,adjustY:1},PS={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},leftTop:{points:["tr","tl"],overflow:Bt},leftBottom:{points:["br","bl"],overflow:Bt},rightTop:{points:["tl","tr"],overflow:Bt},rightBottom:{points:["bl","br"],overflow:Bt}},_S={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},rightTop:{points:["tr","tl"],overflow:Bt},rightBottom:{points:["br","bl"],overflow:Bt},leftTop:{points:["tl","tr"],overflow:Bt},leftBottom:{points:["bl","br"],overflow:Bt}};function tv(e,t,r){if(t)return t;if(r)return r[e]||r.other}var TS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function NS(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(br),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,C=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,S=f.defaultMotions,E=c.useState(!1),R=U(E,2),w=R[0],$=R[1],T=D(b?D({},_S):D({},PS),g),M=TS[u],F=tv(u,x,S),A=c.useRef(F);u!=="inline"&&(A.current=F);var _=D(D({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),k=c.useRef();return c.useEffect(function(){return k.current=Tt(function(){$(r)}),function(){Tt.cancel(k.current)}},[r]),c.createElement(Sl,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:M,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:_,fresh:!0},n)}function IS(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(br),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],g=h[1],C=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=D({},tv(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(x){return!v.current&&!x&&g(!0),y==null?void 0:y(x)},p?null:c.createElement(_a,{mode:o,locked:!v.current},c.createElement(un,xe({visible:C},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var S=x.className,E=x.style;return c.createElement($l,{id:t,className:S,style:E},a)}))}var MS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],jS=["active"],AS=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,g=e.onClick,C=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=Je(e,MS),R=Kf(i),w=c.useContext(br),$=w.prefixCls,T=w.mode,M=w.openKeys,F=w.disabled,A=w.overflowDisabled,_=w.activeKey,k=w.selectedKeys,N=w.itemIcon,O=w.expandIcon,j=w.onItemClick,z=w.onOpenChange,V=w.onActive,H=c.useContext(xl),K=H._internalRenderSubMenuItem,W=c.useContext(Yf),q=W.isSubPathKey,Y=ka(),J="".concat($,"-submenu"),ee=F||l,te=c.useRef(),oe=c.useRef();process.env.NODE_ENV!=="production"&&s&&st(!1,"SubMenu should not leave undefined `key`.");var ve=f??N,fe=v??O,ge=M.includes(i),Oe=!A&&ge,B=q(k,i),ue=Qf(i,ee,x,S),le=ue.active,Ee=Je(ue,jS),he=c.useState(!1),ae=U(he,2),me=ae[0],$e=ae[1],je=function(De){ee||$e(De)},ie=function(De){je(!0),C==null||C({key:i,domEvent:De})},ne=function(De){je(!1),m==null||m({key:i,domEvent:De})},pe=c.useMemo(function(){return le||(T!=="inline"?me||q([_],i):!1)},[T,le,_,me,i,q]),be=Jf(Y.length),at=function(De){ee||(y==null||y({key:i,domEvent:De}),T==="inline"&&z(i,!ge))},Xe=la(function(Ze){g==null||g(Ao(Ze)),j(Ze)}),Ae=function(De){T!=="inline"&&z(i,De)},Ke=function(){V(i)},Ye=R&&"".concat(R,"-popup"),et=c.createElement("div",xe({role:"menuitem",style:be,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":Oe,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":ee,onClick:at,onFocus:Ke},Ee),o,c.createElement(ev,{icon:T!=="horizontal"?fe:void 0,props:D(D({},e),{},{isOpen:Oe,isSubMenu:!0})},c.createElement("i",{className:"".concat(J,"-arrow")}))),Le=c.useRef(T);if(T!=="inline"&&Y.length>1?Le.current="vertical":Le.current=T,!A){var Ne=Le.current;et=c.createElement(NS,{mode:Ne,prefixCls:J,visible:!u&&Oe&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(_a,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement($l,{id:Ye,ref:oe},d)),disabled:ee,onVisibleChange:Ae},et)}var lt=c.createElement(Dr.Item,xe({ref:t,role:"none"},E,{component:"li",style:n,className:Z(J,"".concat(J,"-").concat(T),a,(r={},L(r,"".concat(J,"-open"),Oe),L(r,"".concat(J,"-active"),pe),L(r,"".concat(J,"-selected"),B),L(r,"".concat(J,"-disabled"),ee),r)),onMouseEnter:ie,onMouseLeave:ne}),et,!A&&c.createElement(IS,{id:Ye,open:Oe,keyPath:Y},d));return K&&(lt=K(lt,e,{selected:B,active:pe,open:Oe,disabled:ee})),c.createElement(_a,{onItemClick:Xe,mode:T==="horizontal"?"vertical":T,itemIcon:ve,expandIcon:fe},lt)}),Qo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=ka(r),o=Ol(n,a),i=Yo();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(AS,xe({ref:t},e),o),c.createElement(Xf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Qo.displayName="SubMenu");function rv(e){var t=e.className,r=e.style,n=c.useContext(br),a=n.prefixCls,o=Yo();return o?null:c.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var FS=["className","title","eventKey","children"],LS=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,FS),i=c.useContext(br),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",xe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(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))}),Rl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=ka(r),o=Ol(n,a),i=Yo();return i?o:c.createElement(LS,xe({ref:t},Cr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Rl.displayName="MenuItemGroup");var DS=["label","children","key","type"];function Us(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ie(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,DS),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,xe({key:h},b,{title:u}),Us(d,t)):c.createElement(a,xe({key:h},b,{title:u}),Us(d,t)):v==="divider"?c.createElement(o,xe({key:h},b)):c.createElement(r,xe({key:h},b),u)}return null}).filter(function(i){return i})}function uu(e,t,r,n){var a=e,o=D({divider:rv,item:Zo,group:Rl,submenu:Qo},n);return t&&(a=Us(t,o)),Ol(a,r)}var zS=["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"],tn=[],kS=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,g=a.mode,C=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,x=a.disabledOverflow,S=a.subMenuOpenDelay,E=S===void 0?.1:S,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,T=a.defaultOpenKeys,M=a.openKeys,F=a.activeKey,A=a.defaultActiveFirst,_=a.selectable,k=_===void 0?!0:_,N=a.multiple,O=N===void 0?!1:N,j=a.defaultSelectedKeys,z=a.selectedKeys,V=a.onSelect,H=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,J=a.triggerSubMenuAction,ee=J===void 0?"hover":J,te=a.builtinPlacements,oe=a.itemIcon,ve=a.expandIcon,fe=a.overflowedIndicator,ge=fe===void 0?"...":fe,Oe=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ue=a.onClick,le=a.onOpenChange,Ee=a.onKeyDown,he=a.openAnimation,ae=a.openTransitionName,me=a._internalRenderMenuItem,$e=a._internalRenderSubMenuItem,je=a._internalComponents,ie=Je(a,zS),ne=c.useMemo(function(){return[uu(b,v,tn,je),uu(b,v,tn,{})]},[b,v,je]),pe=U(ne,2),be=pe[0],at=pe[1],Xe=c.useState(!1),Ae=U(Xe,2),Ke=Ae[0],Ye=Ae[1],et=c.useRef(),Le=bS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&st(!he&&!ae,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var lt=Zt(T,{value:M,postState:function(it){return it||tn}}),Ze=U(lt,2),De=Ze[0],de=Ze[1],we=function(it){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mt(){de(it),le==null||le(it)}vt?Mn.flushSync(Mt):Mt()},qe=c.useState(De),ot=U(qe,2),Ct=ot[0],ft=ot[1],Be=c.useRef(!1),Ve=c.useMemo(function(){return(C==="inline"||C==="vertical")&&m?["vertical",m]:[C,!1]},[C,m]),ze=U(Ve,2),Pe=ze[0],ye=ze[1],Ue=Pe==="inline",bt=c.useState(Pe),He=U(bt,2),We=He[0],ct=He[1],yt=c.useState(ye),Pt=U(yt,2),kt=Pt[0],Wt=Pt[1];c.useEffect(function(){ct(Pe),Wt(ye),Be.current&&(Ue?de(Ct):we(tn))},[Pe,ye]);var I=c.useState(0),G=U(I,2),X=G[0],se=G[1],_e=X>=be.length-1||We!=="horizontal"||x;c.useEffect(function(){Ue&&ft(De)},[De]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var Re=pS(),Te=Re.registerPath,Me=Re.unregisterPath,mt=Re.refreshOverflowKeys,rt=Re.isSubPathKey,ke=Re.getKeyPath,wt=Re.getKeys,Gt=Re.getSubPathKeys,Vt=c.useMemo(function(){return{registerPath:Te,unregisterPath:Me}},[Te,Me]),pt=c.useMemo(function(){return{isSubPathKey:rt}},[rt]);c.useEffect(function(){mt(_e?tn:be.slice(X+1).map(function(ht){return ht.key}))},[X,_e]);var Sr=Zt(F||A&&((r=be[0])===null||r===void 0?void 0:r.key),{value:F}),Br=U(Sr,2),Ut=Br[0],Hr=Br[1],Kn=la(function(ht){Hr(ht)}),nr=la(function(){Hr(void 0)});P.useImperativeHandle(t,function(){return{list:et.current,focus:function(it){var vt,Mt=wt(),At=Ws(Mt,Le),Er=At.elements,wr=At.key2element,Zn=At.element2key,Kt=El(et.current,Er),en=Ut??(Kt[0]?Zn.get(Kt[0]):(vt=be.find(function(Gr){return!Gr.props.disabled}))===null||vt===void 0?void 0:vt.key),qt=wr.get(en);if(en&&qt){var dr;qt==null||(dr=qt.focus)===null||dr===void 0||dr.call(qt,it)}}}});var cr=Zt(j||[],{value:z,postState:function(it){return Array.isArray(it)?it:it==null?tn:[it]}}),Wr=U(cr,2),Tr=Wr[0],xr=Wr[1],Nr=function(it){if(k){var vt=it.key,Mt=Tr.includes(vt),At;O?Mt?At=Tr.filter(function(wr){return wr!==vt}):At=[].concat(Ce(Tr),[vt]):At=[vt],xr(At);var Er=D(D({},it),{},{selectedKeys:At});Mt?H==null||H(Er):V==null||V(Er)}!O&&De.length&&We!=="inline"&&we(tn)},Jr=la(function(ht){ue==null||ue(Ao(ht)),Nr(ht)}),Ir=la(function(ht,it){var vt=De.filter(function(At){return At!==ht});if(it)vt.push(ht);else if(We!=="inline"){var Mt=Gt(ht);vt=vt.filter(function(At){return!Mt.has(At)})}Ca(De,vt,!0)||we(vt,!0)}),ur=function(it,vt){var Mt=vt??!De.includes(it);Ir(it,Mt)},qn=vS(We,Ut,Ne,Le,et,wt,ke,Hr,ur,Ee);c.useEffect(function(){Ye(!0)},[]);var Xn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:$e}},[me,$e]),Yn=We!=="horizontal"||x?be:be.map(function(ht,it){return c.createElement(_a,{key:ht.key,overflowDisabled:it>X},ht)}),mn=c.createElement(Dr,xe({id:p,ref:et,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Zo,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),u,(n={},L(n,"".concat(i,"-inline-collapsed"),kt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:Yn,renderRawItem:function(it){return it},renderRawRest:function(it){var vt=it.length,Mt=vt?be.slice(-vt):null;return c.createElement(Qo,{eventKey:Gs,title:ge,disabled:_e,internalPopupClose:vt===0,popupClassName:Oe},Mt)},maxCount:We!=="horizontal"||x?Dr.INVALIDATE:Dr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(it){se(it)},onKeyDown:qn},ie));return c.createElement(xl.Provider,{value:Xn},c.createElement(Gf.Provider,{value:Le},c.createElement(_a,{prefixCls:i,rootClassName:s,mode:We,openKeys:De,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Ut,onActive:Kn,onInactive:nr,selectedKeys:Tr,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:ee,getPopupContainer:B,itemIcon:oe,expandIcon:ve,onItemClick:Jr,onOpenChange:Ir},c.createElement(Yf.Provider,{value:pt},mn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(qf.Provider,{value:Vt},at)))))}),Va=kS;Va.Item=Zo;Va.SubMenu=Qo;Va.ItemGroup=Rl;Va.Divider=rv;var VS={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"},BS=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:VS}))},nv=c.forwardRef(BS);process.env.NODE_ENV!=="production"&&(nv.displayName="EllipsisOutlined");const av=c.createContext(null),HS=av.Provider,ov=c.createContext(null),WS=ov.Provider;var GS=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],US=P.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,o=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,v=e.title,b=e.onChange,h=Je(e,GS),p=P.useRef(null),g=P.useRef(null),C=Zt(u,{value:i}),m=U(C,2),y=m[0],x=m[1];P.useImperativeHandle(t,function(){return{focus:function(w){var $;($=p.current)===null||$===void 0||$.focus(w)},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur()},input:p.current,nativeElement:g.current}});var S=Z(n,a,L(L({},"".concat(n,"-checked"),y),"".concat(n,"-disabled"),s)),E=function(w){s||("checked"in e||x(w.target.checked),b==null||b({target:D(D({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:S,title:v,style:o,ref:g},c.createElement("input",xe({},h,{className:"".concat(n,"-input"),ref:p,onChange:E,disabled:s,checked:!!y,type:f})),c.createElement("span",{className:"".concat(n,"-inner")}))});const KS=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},zr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},qS=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:b,dotColorDisabled:h,lineType:p,radioColor:g,radioBgColor:C,calc:m}=e,y=`${t}-inner`,S=m(a).sub(m(4).mul(2)),E=m(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},zr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Q(d)} ${p} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
249
- &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},cl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:m(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:m(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${m(S).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},XS=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:v,controlHeightLG:b,controlHeightSM:h,paddingXS:p,borderRadius:g,borderRadiusSM:C,borderRadiusLG:m,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:S,colorBgContainerDisabled:E,buttonCheckedBgDisabled:R,buttonCheckedColorDisabled:w,colorPrimary:$,colorPrimaryHover:T,colorPrimaryActive:M,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:_,calc:k}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:Q(k(r).sub(k(a).mul(2)).equal()),background:f,border:`${Q(a)} ${o} ${i}`,borderBlockStartWidth:k(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:k(a).mul(-1).equal(),insetInlineStart:k(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Q(a)} ${o} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:b,fontSize:v,lineHeight:Q(k(b).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},[`${n}-group-small &`]:{height:h,paddingInline:k(p).sub(a).equal(),paddingBlock:0,lineHeight:Q(k(h).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},cl(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:x,background:F,borderColor:F,"&:hover":{color:x,background:A,borderColor:A},"&:active":{color:x,background:_,borderColor:_}},"&-disabled":{color:S,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:E,borderColor:i}},[`&-disabled${n}-button-wrapper-checked`]:{color:w,backgroundColor:R,borderColor:i,boxShadow:"none"}}}},YS=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:v,colorPrimaryActive:b,colorWhite:h}=e,p=4,g=o,C=t?g-p*2:g-(p+a)*2;return{radioSize:g,dotSize:C,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:b,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:r-a,wrapperMarginInlineEnd:n,radioColor:t?f:h,radioBgColor:t?s:f}},iv=lr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${Q(r)} ${t}`,o=jt(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[KS(o),qS(o),XS(o)]},YS,{unitless:{radioSize:!0,dotSize:!0}});var ZS=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 QS=(e,t)=>{var r,n;const a=c.useContext(av),o=c.useContext(ov),{getPrefixCls:i,direction:s,radio:l}=c.useContext(nt),u=c.useRef(null),d=yr(t,u),{isFormItemInput:f}=c.useContext(Bn);if(process.env.NODE_ENV!=="production"){const _=Nt("Radio");process.env.NODE_ENV!=="production"&&_(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const v=_=>{var k,N;(k=e.onChange)===null||k===void 0||k.call(e,_),(N=a==null?void 0:a.onChange)===null||N===void 0||N.call(a,_)},{prefixCls:b,className:h,rootClassName:p,children:g,style:C,title:m}=e,y=ZS(e,["prefixCls","className","rootClassName","children","style","title"]),x=i("radio",b),S=((a==null?void 0:a.optionType)||o)==="button",E=S?`${x}-button`:x,R=Ma(x),[w,$,T]=iv(x,R),M=Object.assign({},y),F=c.useContext(ln);a&&(M.name=a.name,M.onChange=v,M.checked=e.value===a.value,M.disabled=(r=M.disabled)!==null&&r!==void 0?r:a.disabled),M.disabled=(n=M.disabled)!==null&&n!==void 0?n:F;const A=Z(`${E}-wrapper`,{[`${E}-wrapper-checked`]:M.checked,[`${E}-wrapper-disabled`]:M.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},l==null?void 0:l.className,h,p,$,T,R);return w(c.createElement(pl,{component:"Radio",disabled:M.disabled},c.createElement("label",{className:A,style:Object.assign(Object.assign({},l==null?void 0:l.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:m},c.createElement(US,Object.assign({},M,{className:Z(M.className,{[ml]:!S}),type:"radio",prefixCls:E,ref:d})),g!==void 0?c.createElement("span",null,g):null)))},Ta=c.forwardRef(QS);process.env.NODE_ENV!=="production"&&(Ta.displayName="Radio");const JS=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(nt),[a,o]=Zt(e.defaultValue,{value:e.value}),i=_=>{const k=a,N=_.target.value;"value"in e||o(N);const{onChange:O}=e;O&&N!==k&&O(_)},{prefixCls:s,className:l,rootClassName:u,options:d,buttonStyle:f="outline",disabled:v,children:b,size:h,style:p,id:g,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x}=e,S=r("radio",s),E=`${S}-group`,R=Ma(S),[w,$,T]=iv(S,R);let M=b;d&&d.length>0&&(M=d.map(_=>typeof _=="string"||typeof _=="number"?c.createElement(Ta,{key:_.toString(),prefixCls:S,disabled:v,value:_,checked:a===_},_):c.createElement(Ta,{key:`radio-group-value-options-${_.value}`,prefixCls:S,disabled:_.disabled||v,value:_.value,checked:a===_.value,title:_.title,style:_.style,id:_.id,required:_.required},_.label)));const F=vn(h),A=Z(E,`${E}-${f}`,{[`${E}-${F}`]:F,[`${E}-rtl`]:n==="rtl"},l,u,$,T,R);return w(c.createElement("div",Object.assign({},Jh(e,{aria:!0,data:!0}),{className:A,style:p,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x,id:g,ref:t}),c.createElement(HS,{value:{onChange:i,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),ex=c.memo(JS);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 rx=(e,t)=>{const{getPrefixCls:r}=c.useContext(nt),{prefixCls:n}=e,a=tx(e,["prefixCls"]),o=r("radio",n);return c.createElement(WS,{value:"button"},c.createElement(Ta,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},nx=c.forwardRef(rx),Ba=Ta;Ba.Button=nx;Ba.Group=ex;Ba.__ANT_RADIO=!0;function ax(e){return jt(e,{inputAffixPadding:e.paddingXXS})}const ox=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:g,colorErrorOutline:C,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:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${C}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},ix=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Pl=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({},ix(jt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),sv=(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}}),du=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),sx=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pl(e))}),du(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),du(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),fu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lx=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},fu(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),fu(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Pl(e))}})}),cx=(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)}},lv=(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}}),vu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ux=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pl(e))}),vu(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),vu(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),gu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dx=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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},gu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),gu(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),fx=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),cv=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${Q(t)} ${Q(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},uv=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),dv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},fx(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({},cv(e)),"&-sm":Object.assign({},uv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),vx=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({},cv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},uv(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 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(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:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${Q(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"},Ia()),{[`${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},[`
247
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_f=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 sC=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Cn=void 0;function lC(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,g=p===void 0?"div":p,C=Je(e,sC),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var x=o&&a!==Cn?o(a):v,S;n||(S={opacity:m?0:1,height:m?0:Cn,overflowY:m?"hidden":Cn,order:i?h:Cn,pointerEvents:m?"none":Cn,position:m?"absolute":Cn});var E={};m&&(E["aria-hidden"]=!0);var R=c.createElement(g,xe({className:Z(!n&&r,d),style:D(D({},S),f)},E,C,{ref:t}),x);return i&&(R=c.createElement(mr,{onResize:function($){var T=$.offsetWidth;y(T)},disabled:s},R)),R}var ga=c.forwardRef(lC);ga.displayName="Item";function cC(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function uC(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],cC(function(){Mn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function na(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Ht(function(s){e(function(){o(s)})});return[a,i]}var Ao=P.createContext(null),dC=["component"],fC=["className"],vC=["className"],gC=function(t,r){var n=c.useContext(Ao);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,dC);return c.createElement(o,xe({},i,{ref:r}))}var s=n.className,l=Je(n,fC),u=t.className,d=Je(t,vC);return c.createElement(Ao.Provider,{value:null},c.createElement(ga,xe({ref:r,className:Z(s,u)},l,d)))},Tf=c.forwardRef(gC);Tf.displayName="RawItem";var mC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Nf="responsive",If="invalidate";function pC(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,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,C=e.suffix,m=e.component,y=m===void 0?"div":m,x=e.itemComponent,S=e.onVisibleChange,E=Je(e,mC),R=f==="full",w=uC(),$=na(w,null),T=U($,2),M=T[0],F=T[1],A=M||0,_=na(w,new Map),k=U(_,2),N=k[0],O=k[1],j=na(w,0),z=U(j,2),V=z[0],H=z[1],K=na(w,0),W=U(K,2),q=W[0],Y=W[1],J=na(w,0),ee=U(J,2),te=ee[0],oe=ee[1],ve=P.useState(null),fe=U(ve,2),ge=fe[0],Oe=fe[1],B=P.useState(null),ue=U(B,2),le=ue[0],Ee=ue[1],he=c.useMemo(function(){return le===null&&R?Number.MAX_SAFE_INTEGER:le||0},[le,M]),ae=P.useState(!1),me=U(ae,2),$e=me[0],je=me[1],ie="".concat(n,"-item"),ne=Math.max(V,q),pe=h===Nf,be=o.length&&pe,at=h===If,Xe=be||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Pe=o;return be?M===null&&R?Pe=o:Pe=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(Pe=o.slice(0,h)),Pe},[o,d,M,h,be]),Ke=P.useMemo(function(){return be?o.slice(he+1):o.slice(Ae.length)},[o,Ae,be,he]),Ye=P.useCallback(function(Pe,ye){var Ue;return typeof l=="function"?l(Pe):(Ue=l&&(Pe==null?void 0:Pe[l]))!==null&&Ue!==void 0?Ue:ye},[l]),et=P.useCallback(i||function(Pe){return Pe},[i]);function Le(Pe,ye,Ue){le===Pe&&(ye===void 0||ye===ge)||(Ee(Pe),Ue||(je(Pe<o.length-1),S==null||S(Pe)),ye!==void 0&&Oe(ye))}function Ne(Pe,ye){F(ye.clientWidth)}function lt(Pe,ye){O(function(Ue){var bt=new Map(Ue);return ye===null?bt.delete(Pe):bt.set(Pe,ye),bt})}function Ze(Pe,ye){Y(ye),H(q)}function De(Pe,ye){oe(ye)}function de(Pe){return N.get(Ye(Ae[Pe],Pe))}St(function(){if(A&&typeof ne=="number"&&Ae){var Pe=te,ye=Ae.length,Ue=ye-1;if(!ye){Le(0,null);return}for(var bt=0;bt<ye;bt+=1){var He=de(bt);if(R&&(He=He||0),He===void 0){Le(bt-1,void 0,!0);break}if(Pe+=He,Ue===0&&Pe<=A||bt===Ue-1&&Pe+de(Ue)<=A){Le(Ue,null);break}else if(Pe+ne>A){Le(bt-1,Pe-He-te+q);break}}C&&de(0)+te>A&&Oe(null)}},[A,N,q,te,Ye,Ae]);var we=$e&&!!Ke.length,qe={};ge!==null&&be&&(qe={position:"absolute",left:ge,top:0});var ot={prefixCls:ie,responsive:be,component:x,invalidate:at},Ct=s?function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(Ao.Provider,{key:Ue,value:D(D({},ot),{},{order:ye,item:Pe,itemKey:Ue,registerSize:lt,display:ye<=he})},s(Pe,ye))}:function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(ga,xe({},ot,{order:ye,key:Ue,item:Pe,renderItem:et,itemKey:Ue,registerSize:lt,display:ye<=he}))},ft,Be={order:we?he:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:Ze,display:we};if(g)g&&(ft=c.createElement(Ao.Provider,{value:D(D({},ot),Be)},g(Ke)));else{var Ve=p||pC;ft=c.createElement(ga,xe({},ot,Be),typeof Ve=="function"?Ve(Ke):Ve)}var ze=c.createElement(y,xe({className:Z(!at&&n,b),style:v,ref:t},E),Ae.map(Ct),Xe?ft:null,C&&c.createElement(ga,xe({},ot,{responsive:pe,responsiveDisabled:!be,order:he,className:"".concat(ie,"-suffix"),registerSize:De,display:!0,style:qe}),C));return pe&&(ze=c.createElement(mr,{onResize:Ne,disabled:!be},ze)),ze}var Dr=c.forwardRef(hC);Dr.displayName="Overflow";Dr.Item=Tf;Dr.RESPONSIVE=Nf;Dr.INVALIDATE=If;function bC(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],g=h[0],C=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,C===y||!["l","r"].includes(C)?b.left=u:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function yC(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(un,xe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var Mf=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Mf.displayName="PopupContent");var jf=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,g=e.motion,C=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,S=e.portal,E=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,T=e.ready,M=e.offsetX,F=e.offsetY,A=e.offsetR,_=e.offsetB,k=e.onAlign,N=e.onPrepare,O=e.stretch,j=e.targetWidth,z=e.targetHeight,V=typeof r=="function"?r():r,H=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],J=q[1];if(St(function(){!Y&&K&&i&&J(!0)},[Y,K,i]),!Y)return null;var ee="auto",te={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(T||!l){var oe,ve=p.points,fe=p.dynamicInset||((oe=p._experimental)===null||oe===void 0?void 0:oe.dynamicInset),ge=fe&&ve[0][1]==="r",Oe=fe&&ve[0][0]==="b";ge?(te.right=A,te.left=ee):(te.left=M,te.right=ee),Oe?(te.bottom=_,te.top=ee):(te.top=F,te.bottom=ee)}var B={};return O&&(O.includes("height")&&z?B.height=z:O.includes("minHeight")&&z&&(B.minHeight=z),O.includes("width")&&j?B.width=j:O.includes("minWidth")&&j&&(B.minWidth=j)),l||(B.pointerEvents="none"),c.createElement(S,{open:m||H,getContainer:y&&function(){return y(i)},autoDestroy:x},c.createElement(yC,{prefixCls:a,open:l,zIndex:E,mask:v,motion:C}),c.createElement(mr,{onResize:k,disabled:!l},function(ue){return c.createElement(un,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ee){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,Ee),s(Ee)}}),function(le,Ee){var he=le.className,ae=le.style,me=Z(a,he,n);return c.createElement("div",{ref:yr(ue,t,Ee),className:me,style:D(D(D(D({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ae),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(bC,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(Mf,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(jf.displayName="Popup");var Af=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=cn(r),o=c.useCallback(function(s){Qs(t,n?n(s):s)},[n]),i=Na(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Af.displayName="TriggerWrapper");var Zc=c.createContext(null);function Qc(e){return e?Array.isArray(e)?e:[e]:[]}function CC(e,t,r,n){return c.useMemo(function(){var a=Qc(r??t),o=Qc(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 SC(){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 xC(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(SC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Jc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Da(e){return e.ownerDocument.defaultView}function zs(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Da(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 Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function aa(e){return Ra(parseFloat(e),0)}function eu(e,t){var r=D({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Da(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,g=aa(s),C=aa(l),m=aa(u),y=aa(d),x=Ra(Math.round(f.width/h*1e3)/1e3),S=Ra(Math.round(f.height/v*1e3)/1e3),E=(h-p-m-y)*x,R=(v-b-g-C)*S,w=g*S,$=C*S,T=m*x,M=y*x,F=0,A=0;if(o==="clip"){var _=aa(i);F=_*x,A=_*S}var k=f.x+T-F,N=f.y+w-A,O=k+f.width+2*F-T-M-E,j=N+f.height+2*A-w-$-R;r.left=Math.max(r.left,k),r.top=Math.max(r.top,N),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,j)}}),r}function tu(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 ru(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[tu(e.width,a),tu(e.height,o)]}function nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Sn(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 Ur(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 EC(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?zs(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Ht(function(){if(t&&r&&e){let Kt=function(qt,dr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,pn=V.x+qt,Qn=V.y+dr,Jn=pn+oe,Ua=Qn+te,ai=Math.max(pn,Gr.left),oi=Math.max(Qn,Gr.top),ii=Math.min(Jn,Gr.right),si=Math.min(Ua,Gr.bottom);return Math.max(0,(ii-ai)*(si-oi))},en=function(){I=V.y+Ve,G=I+te,X=V.x+Be,se=X+oe};var m,y,x=t,S=x.ownerDocument,E=Da(x),R=E.getComputedStyle(x),w=R.width,$=R.height,T=R.position,M=x.style.left,F=x.style.top,A=x.style.right,_=x.style.bottom,k=x.style.overflow,N=D(D({},a[n]),o),O=S.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(x.offsetLeft,"px"),O.style.top="".concat(x.offsetTop,"px"),O.style.position=T,O.style.height="".concat(x.offsetHeight,"px"),O.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var j;if(Array.isArray(r))j={x:r[0],y:r[1],width:0,height:0};else{var z=r.getBoundingClientRect();j={x:z.x,y:z.y,width:z.width,height:z.height}}var V=x.getBoundingClientRect(),H=S.documentElement,K=H.clientWidth,W=H.clientHeight,q=H.scrollWidth,Y=H.scrollHeight,J=H.scrollTop,ee=H.scrollLeft,te=V.height,oe=V.width,ve=j.height,fe=j.width,ge={left:0,top:0,right:K,bottom:W},Oe={left:-ee,top:-J,right:q-ee,bottom:Y-J},B=N.htmlRegion,ue="visible",le="visibleFirst";B!=="scroll"&&B!==le&&(B=ue);var Ee=B===le,he=eu(Oe,v),ae=eu(ge,v),me=B===ue?ae:he,$e=Ee?ae:me;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var je=x.getBoundingClientRect();x.style.left=M,x.style.top=F,x.style.right=A,x.style.bottom=_,x.style.overflow=k,(y=x.parentElement)===null||y===void 0||y.removeChild(O);var ie=Ra(Math.round(oe/parseFloat(w)*1e3)/1e3),ne=Ra(Math.round(te/parseFloat($)*1e3)/1e3);if(ie===0||ne===0||ma(r)&&!gl(r))return;var pe=N.offset,be=N.targetOffset,at=ru(V,pe),Xe=U(at,2),Ae=Xe[0],Ke=Xe[1],Ye=ru(j,be),et=U(Ye,2),Le=et[0],Ne=et[1];j.x-=Le,j.y-=Ne;var lt=N.points||[],Ze=U(lt,2),De=Ze[0],de=Ze[1],we=nu(de),qe=nu(De),ot=Sn(j,we),Ct=Sn(V,qe),ft=D({},N),Be=ot.x-Ct.x+Ae,Ve=ot.y-Ct.y+Ke,ze=Kt(Be,Ve),Pe=Kt(Be,Ve,ae),ye=Sn(j,["t","l"]),Ue=Sn(V,["t","l"]),bt=Sn(j,["b","r"]),He=Sn(V,["b","r"]),We=N.overflow||{},ct=We.adjustX,yt=We.adjustY,Pt=We.shiftX,kt=We.shiftY,Wt=function(dr){return typeof dr=="boolean"?dr:dr>=0},I,G,X,se;en();var _e=Wt(yt),Re=qe[0]===we[0];if(_e&&qe[0]==="t"&&(G>$e.bottom||b.current.bt)){var Te=Ve;Re?Te-=te-ve:Te=ye.y-He.y-Ke;var Me=Kt(Be,Te),mt=Kt(Be,Te,ae);Me>ze||Me===ze&&(!Ee||mt>=Pe)?(b.current.bt=!0,Ve=Te,Ke=-Ke,ft.points=[Ur(qe,0),Ur(we,0)]):b.current.bt=!1}if(_e&&qe[0]==="b"&&(I<$e.top||b.current.tb)){var rt=Ve;Re?rt+=te-ve:rt=bt.y-Ue.y-Ke;var ke=Kt(Be,rt),wt=Kt(Be,rt,ae);ke>ze||ke===ze&&(!Ee||wt>=Pe)?(b.current.tb=!0,Ve=rt,Ke=-Ke,ft.points=[Ur(qe,0),Ur(we,0)]):b.current.tb=!1}var Gt=Wt(ct),Vt=qe[1]===we[1];if(Gt&&qe[1]==="l"&&(se>$e.right||b.current.rl)){var pt=Be;Vt?pt-=oe-fe:pt=ye.x-He.x-Ae;var Sr=Kt(pt,Ve),Br=Kt(pt,Ve,ae);Sr>ze||Sr===ze&&(!Ee||Br>=Pe)?(b.current.rl=!0,Be=pt,Ae=-Ae,ft.points=[Ur(qe,1),Ur(we,1)]):b.current.rl=!1}if(Gt&&qe[1]==="r"&&(X<$e.left||b.current.lr)){var Ut=Be;Vt?Ut+=oe-fe:Ut=bt.x-Ue.x-Ae;var Hr=Kt(Ut,Ve),Kn=Kt(Ut,Ve,ae);Hr>ze||Hr===ze&&(!Ee||Kn>=Pe)?(b.current.lr=!0,Be=Ut,Ae=-Ae,ft.points=[Ur(qe,1),Ur(we,1)]):b.current.lr=!1}en();var nr=Pt===!0?0:Pt;typeof nr=="number"&&(X<ae.left&&(Be-=X-ae.left-Ae,j.x+fe<ae.left+nr&&(Be+=j.x-ae.left+fe-nr)),se>ae.right&&(Be-=se-ae.right-Ae,j.x>ae.right-nr&&(Be+=j.x-ae.right+nr)));var cr=kt===!0?0:kt;typeof cr=="number"&&(I<ae.top&&(Ve-=I-ae.top-Ke,j.y+ve<ae.top+cr&&(Ve+=j.y-ae.top+ve-cr)),G>ae.bottom&&(Ve-=G-ae.bottom-Ke,j.y>ae.bottom-cr&&(Ve+=j.y-ae.bottom+cr)));var Wr=V.x+Be,Tr=Wr+oe,xr=V.y+Ve,Nr=xr+te,Jr=j.x,Ir=Jr+fe,ur=j.y,qn=ur+ve,Xn=Math.max(Wr,Jr),Yn=Math.min(Tr,Ir),mn=(Xn+Yn)/2,ht=mn-Wr,it=Math.max(xr,ur),vt=Math.min(Nr,qn),Mt=(it+vt)/2,At=Mt-xr;i==null||i(t,ft);var Er=je.right-V.x-(Be+V.width),wr=je.bottom-V.y-(Ve+V.height);ie===1&&(Be=Math.round(Be),Er=Math.round(Er)),ne===1&&(Ve=Math.round(Ve),wr=Math.round(wr));var Zn={ready:!0,offsetX:Be/ie,offsetY:Ve/ne,offsetR:Er/ie,offsetB:wr/ne,arrowX:ht/ie,arrowY:At/ne,scaleX:ie,scaleY:ne,align:ft};d(Zn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},C=function(){d(function(y){return D(D({},y),{},{ready:!1})})};return St(C,[n]),St(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function wC(e,t,r,n,a){St(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=zs(o),l=zs(i),u=Da(i),d=new Set([u].concat(Ce(s),Ce(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 $C(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(C){var m;l.current&&!i(((m=C.composedPath)===null||m===void 0||(m=m.call(C))===null||m===void 0?void 0:m[0])||C.target)&&s(!1)},d=Da(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=No(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);jn(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 OC=["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 RC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yl,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,g=r.mouseLeaveDelay,C=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,x=r.mask,S=r.maskClosable,E=S===void 0?!0:S,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,T=r.destroyPopupOnHide,M=r.popup,F=r.popupClassName,A=r.popupStyle,_=r.popupPlacement,k=r.builtinPlacements,N=k===void 0?{}:k,O=r.popupAlign,j=r.zIndex,z=r.stretch,V=r.getPopupClassNameFromAlign,H=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,J=r.popupMotion,ee=r.maskMotion,te=r.popupTransitionName,oe=r.popupAnimation,ve=r.maskTransitionName,fe=r.maskAnimation,ge=r.className,Oe=r.getTriggerDOMNode,B=Je(r,OC),ue=$||T||!1,le=c.useState(!1),Ee=U(le,2),he=Ee[0],ae=Ee[1];St(function(){ae(_f())},[]);var me=c.useRef({}),$e=c.useContext(Zc),je=c.useMemo(function(){return{registerSubPopup:function(Fe,xt){me.current[Fe]=xt,$e==null||$e.registerSubPopup(Fe,xt)}}},[$e]),ie=bb(),ne=c.useState(null),pe=U(ne,2),be=pe[0],at=pe[1],Xe=c.useRef(null),Ae=Ht(function(Se){Xe.current=Se,ma(Se)&&be!==Se&&at(Se),$e==null||$e.registerSubPopup(ie,Se)}),Ke=c.useState(null),Ye=U(Ke,2),et=Ye[0],Le=Ye[1],Ne=c.useRef(null),lt=Ht(function(Se){ma(Se)&&et!==Se&&(Le(Se),Ne.current=Se)}),Ze=c.Children.only(i),De=(Ze==null?void 0:Ze.props)||{},de={},we=Ht(function(Se){var Fe,xt,_t=et;return(_t==null?void 0:_t.contains(Se))||((Fe=No(_t))===null||Fe===void 0?void 0:Fe.host)===Se||Se===_t||(be==null?void 0:be.contains(Se))||((xt=No(be))===null||xt===void 0?void 0:xt.host)===Se||Se===be||Object.values(me.current).some(function(Et){return(Et==null?void 0:Et.contains(Se))||Se===Et})}),qe=Jc(o,J,oe,te),ot=Jc(o,ee,fe,ve),Ct=c.useState(v||!1),ft=U(Ct,2),Be=ft[0],Ve=ft[1],ze=f??Be,Pe=Ht(function(Se){f===void 0&&Ve(Se)});St(function(){Ve(f||!1)},[f]);var ye=c.useRef(ze);ye.current=ze;var Ue=c.useRef([]);Ue.current=[];var bt=Ht(function(Se){var Fe;Pe(Se),((Fe=Ue.current[Ue.current.length-1])!==null&&Fe!==void 0?Fe:ze)!==Se&&(Ue.current.push(Se),b==null||b(Se))}),He=c.useRef(),We=function(){clearTimeout(He.current)},ct=function(Fe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?bt(Fe):He.current=setTimeout(function(){bt(Fe)},xt*1e3)};c.useEffect(function(){return We},[]);var yt=c.useState(!1),Pt=U(yt,2),kt=Pt[0],Wt=Pt[1];St(function(Se){(!Se||ze)&&Wt(!0)},[ze]);var I=c.useState(null),G=U(I,2),X=G[0],se=G[1],_e=c.useState([0,0]),Re=U(_e,2),Te=Re[0],Me=Re[1],mt=function(Fe){Me([Fe.clientX,Fe.clientY])},rt=EC(ze,be,K?Te:et,_,N,O,q),ke=U(rt,11),wt=ke[0],Gt=ke[1],Vt=ke[2],pt=ke[3],Sr=ke[4],Br=ke[5],Ut=ke[6],Hr=ke[7],Kn=ke[8],nr=ke[9],cr=ke[10],Wr=CC(he,l,u,d),Tr=U(Wr,2),xr=Tr[0],Nr=Tr[1],Jr=xr.has("click"),Ir=Nr.has("click")||Nr.has("contextMenu"),ur=Ht(function(){kt||cr()}),qn=function(){ye.current&&K&&Ir&&ct(!1)};wC(ze,et,be,ur,qn),St(function(){ur()},[Te,_]),St(function(){ze&&!(N!=null&&N[_])&&ur()},[JSON.stringify(O)]);var Xn=c.useMemo(function(){var Se=xC(N,o,nr,K);return Z(Se,V==null?void 0:V(nr))},[nr,V,N,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:ur}});var Yn=c.useState(0),mn=U(Yn,2),ht=mn[0],it=mn[1],vt=c.useState(0),Mt=U(vt,2),At=Mt[0],Er=Mt[1],wr=function(){if(z&&et){var Fe=et.getBoundingClientRect();it(Fe.width),Er(Fe.height)}},Zn=function(){wr(),ur()},Kt=function(Fe){Wt(!1),cr(),h==null||h(Fe)},en=function(){return new Promise(function(Fe){wr(),se(function(){return Fe})})};St(function(){X&&(cr(),X(),se(null))},[X]);function qt(Se,Fe,xt,_t){de[Se]=function(Et){var Ka;_t==null||_t(Et),ct(Fe,xt);for(var li=arguments.length,Ml=new Array(li>1?li-1:0),qa=1;qa<li;qa++)Ml[qa-1]=arguments[qa];(Ka=De[Se])===null||Ka===void 0||Ka.call.apply(Ka,[De,Et].concat(Ml))}}(Jr||Ir)&&(de.onClick=function(Se){var Fe;ye.current&&Ir?ct(!1):!ye.current&&Jr&&(mt(Se),ct(!0));for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),$C(ze,Ir,et,be,x,E,we,ct);var dr=xr.has("hover"),Gr=Nr.has("hover"),pn,Qn;dr&&(qt("onMouseEnter",!0,p,function(Se){mt(Se)}),qt("onPointerEnter",!0,p,function(Se){mt(Se)}),pn=function(Fe){(ze||kt)&&be!==null&&be!==void 0&&be.contains(Fe.target)&&ct(!0,p)},K&&(de.onMouseMove=function(Se){var Fe;(Fe=De.onMouseMove)===null||Fe===void 0||Fe.call(De,Se)})),Gr&&(qt("onMouseLeave",!1,C),qt("onPointerLeave",!1,C),Qn=function(){ct(!1,C)}),xr.has("focus")&&qt("onFocus",!0,m),Nr.has("focus")&&qt("onBlur",!1,y),xr.has("contextMenu")&&(de.onContextMenu=function(Se){var Fe;ye.current&&Nr.has("contextMenu")?ct(!1):(mt(Se),ct(!0)),Se.preventDefault();for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),ge&&(de.className=Z(De.className,ge));var Jn=D(D({},De),de),Ua={},ai=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ai.forEach(function(Se){B[Se]&&(Ua[Se]=function(){for(var Fe,xt=arguments.length,_t=new Array(xt),Et=0;Et<xt;Et++)_t[Et]=arguments[Et];(Fe=Jn[Se])===null||Fe===void 0||Fe.call.apply(Fe,[Jn].concat(_t)),B[Se].apply(B,_t)})});var oi=c.cloneElement(Ze,D(D({},Jn),Ua)),ii={x:Br,y:Ut},si=Y?D({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(mr,{disabled:!ze,ref:lt,onResize:Zn},c.createElement(Af,{getTriggerDOMNode:Oe},oi)),c.createElement(Zc.Provider,{value:je},c.createElement(jf,{portal:e,ref:Ae,prefixCls:o,popup:M,className:Z(F,Xn),style:A,target:et,onMouseEnter:pn,onMouseLeave:Qn,onPointerEnter:pn,zIndex:j,open:ze,keepDom:kt,fresh:H,onClick:W,mask:x,motion:qe,maskMotion:ot,onVisibleChanged:Kt,onPrepare:en,forceRender:w,autoDestroy:ue,getPopupContainer:R,align:nr,arrow:si,arrowPos:ii,ready:wt,offsetX:Gt,offsetY:Vt,offsetR:pt,offsetB:Sr,onAlign:ur,stretch:z,targetWidth:ht/Hr,targetHeight:At/Kn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Sl=RC(yl);function ks(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 Ff=(e,t)=>t||e,Lf=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(nt),s=P.useContext(gy),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=Op.includes(u);return[u,d]};var PC={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"},_C=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:PC}))},Df=c.forwardRef(_C);process.env.NODE_ENV!=="production"&&(Df.displayName="CheckOutlined");var TC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},NC=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:TC}))},zf=c.forwardRef(NC);process.env.NODE_ENV!=="production"&&(zf.displayName="DownOutlined");const Pa=["xxl","xl","lg","md","sm","xs"],IC=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)`}),MC=e=>{const t=e,r=[].concat(Pa).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 jC(){const[,e]=Vr(),t=IC(MC(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 kf(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:Z("".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 xn={shiftX:64,adjustY:1},En={adjustX:1,shiftY:!0},or=[0,0],AC={left:{points:["cr","cl"],overflow:En,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:En,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:xn,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:xn,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:xn,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:En,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:xn,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:En,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:xn,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:En,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:xn,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:En,offset:[-4,0],targetOffset:or}},FC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],LC=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,g=t.transitionName,C=t.animation,m=t.motion,y=t.placement,x=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,T=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,A=t.id,_=t.showArrow,k=_===void 0?!0:_,N=Je(t,FC),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var j=D({},N);"visible"in t&&(j.popupVisible=t.visible);var z=function(){return c.createElement(kf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:M},F)};return c.createElement(Sl,xe({popupClassName:n,prefixCls:v,popup:z,action:o,builtinPlacements:AC,popupPlacement:x,ref:O,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:k},j),b)};const DC=P.forwardRef(LC);function zC(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,g=i,C=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%)`,x=`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} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:x,arrowPolygon:y}}const kC=(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 ${Q(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Vf=8;function Bf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Vf:n}}function so(e,t){return e?t:{}}function VC(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"},kC(e,t,a)),{"&:before":{background:t}})]},so(!!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% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),so(!!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% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),so(!!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}})),so(!!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 BC(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 au={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"]}},HC={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"]}},WC=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function GC(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(au).forEach(u=>{const d=n&&HC[u]||au[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,WC.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=Bf({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=BC(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const UC=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({},zr(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:`${Q(e.calc(u).div(2).equal())} ${Q(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,Vf)}},[`${t}-content`]:{position:"relative"}}),th(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},VC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},KC=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Bf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),zC(jt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Hf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return lr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=jt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[UC(s),iC(n,"zoom-big-fast")]},KC,{resetStyle:!1,injectStyle:t})(e)},qC=To.map(e=>`${e}-inverse`);function XC(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ce(qC),Ce(To)).includes(e):To.includes(e)}function Wf(e,t){const r=XC(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 YC=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(nt),l=s("tooltip",t),[u,d,f]=Hf(l),v=Wf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Z(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(kf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var ZC=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 QC=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:g,builtinPlacements:C,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,S]=Vr(),{getPopupContainer:E,getPrefixCls:R,direction:w}=c.useContext(nt),$=Nt("Tooltip"),T=c.useRef(null),M=()=>{var ie;(ie=T.current)===null||ie===void 0||ie.forceAlign()};c.useImperativeHandle(t,()=>{var ie;return{forceAlign:M,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:(ie=T.current)===null||ie===void 0?void 0:ie.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ie=>{let[ne,pe]=ie;$.deprecated(!(ne in e),ne,pe)}),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[F,A]=Zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),_=!p&&!g&&p!==0,k=ie=>{var ne,pe;A(_?!1:ie),_||((ne=e.onOpenChange)===null||ne===void 0||ne.call(e,ie),(pe=e.onVisibleChange)===null||pe===void 0||pe.call(e,ie))},N=c.useMemo(()=>{var ie,ne;let pe=m;return typeof h=="object"&&(pe=(ne=(ie=h.pointAtCenter)!==null&&ie!==void 0?ie:h.arrowPointAtCenter)!==null&&ne!==void 0?ne:m),C||GC({arrowPointAtCenter:pe,autoAdjustOverflow:y,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[m,h,C,S]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),j=c.createElement(Ds,{space:!0},typeof O=="function"?O():O),{getPopupContainer:z,placement:V="top",mouseEnterDelay:H=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=ZC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=R("tooltip",a),ee=R(),te=e["data-popover-inject"];let oe=F;!("open"in e)&&!("visible"in e)&&_&&(oe=!1);const ve=c.isValidElement(d)&&!af(d)?d:c.createElement("span",null,d),fe=ve.props,ge=!fe.className||typeof fe.className=="string"?Z(fe.className,o||`${J}-open`):fe.className,[Oe,B,ue]=Hf(J,!te),le=Wf(J,l),Ee=le.arrowStyle,he=Object.assign(Object.assign({},u),le.overlayStyle),ae=Z(s,{[`${J}-rtl`]:w==="rtl"},le.className,q,B,ue),[me,$e]=l0("Tooltip",Y.zIndex),je=c.createElement(DC,Object.assign({},Y,{zIndex:me,showArrow:x,placement:V,mouseEnterDelay:H,mouseLeaveDelay:K,prefixCls:J,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},Ee),W),getTooltipContainer:z||i||E,ref:T,builtinPlacements:N,overlay:j,visible:oe,onVisibleChange:k,afterVisibleChange:f??v,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:sf(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),oe?Uo(ve,{className:ge}):ve);return Oe(c.createElement(vl.Provider,{value:$e},je))}),za=QC;process.env.NODE_ENV!=="production"&&(za.displayName="Tooltip");za._InternalPanelDoNotUseOrYouWillBeFired=YC;var JC=ce.ESC,eS=ce.TAB;function tS(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 JC:s();break;case eS:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Tt(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var rS=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=yr(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:cn(o)?i:void 0}))}),wn={adjustX:1,adjustY:1},$n=[0,0],nS={topLeft:{points:["bl","tl"],overflow:wn,offset:[0,-4],targetOffset:$n},top:{points:["bc","tc"],overflow:wn,offset:[0,-4],targetOffset:$n},topRight:{points:["br","tr"],overflow:wn,offset:[0,-4],targetOffset:$n},bottomLeft:{points:["tl","bl"],overflow:wn,offset:[0,4],targetOffset:$n},bottom:{points:["tc","bc"],overflow:wn,offset:[0,4],targetOffset:$n},bottomRight:{points:["tr","br"],overflow:wn,offset:[0,4],targetOffset:$n}},aS=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function oS(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?nS:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,m=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,E=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,T=Je(e,aS),M=P.useState(),F=U(M,2),A=F[0],_=F[1],k="visible"in e?y:A,N=P.useRef(null),O=P.useRef(null),j=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var z=function(te){_(te),$==null||$(te)};tS({visible:k,triggerRef:j,onVisibleChange:z,autoFocus:E,overlayRef:O});var V=function(te){var oe=e.onOverlayClick;_(!1),oe&&oe(te)},H=function(){return P.createElement(rS,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?H:H()},W=function(){var te=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!oe},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=P.cloneElement(w,{className:Z((r=w.props)===null||r===void 0?void 0:r.className,k&&q()),ref:cn(w)?yr(j,w.ref):void 0}),J=g;return!J&&S.indexOf("contextMenu")!==-1&&(J=["click"]),P.createElement(Sl,xe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Z(C,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:S,showAction:p,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:k,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:z,onPopupClick:V,getPopupContainer:h}),Y)}const iS=P.forwardRef(oS);var Gf=c.createContext(null);function Uf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Kf(e){var t=c.useContext(Gf);return Uf(t,e)}var sS=["children","locked"],br=c.createContext(null);function lS(e,t){var r=D({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function _a(e){var t=e.children,r=e.locked,n=Je(e,sS),a=c.useContext(br),o=zo(function(){return lS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!Ca(i[1],s[1],!0))});return c.createElement(br.Provider,{value:o},t)}var cS=[],qf=c.createContext(null);function Zo(){return c.useContext(qf)}var Xf=c.createContext(cS);function ka(e){var t=c.useContext(Xf);return c.useMemo(function(){return e!==void 0?[].concat(Ce(t),[e]):t},[t,e])}var Yf=c.createContext(null),xl=c.createContext({});function ou(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(gl(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 uS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ce(e.querySelectorAll("*")).filter(function(n){return ou(n,t)});return ou(e,t)&&r.unshift(e),r}var Vs=ce.LEFT,Bs=ce.RIGHT,Hs=ce.UP,So=ce.DOWN,xo=ce.ENTER,Zf=ce.ESC,oa=ce.HOME,ia=ce.END,iu=[Hs,So,Vs,Bs];function dS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===xo)return{inlineTrigger:!0};var v=(a={},L(a,Hs,l),L(a,So,u),a),b=(o={},L(o,Vs,r?u:l),L(o,Bs,r?l:u),L(o,So,d),L(o,xo,d),o),h=(i={},L(i,Hs,l),L(i,So,u),L(i,xo,d),L(i,Zf,f),L(i,Vs,r?d:f),L(i,Bs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){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 fS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function vS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function El(e,t){var r=uS(e,!0);return r.filter(function(n){return t.has(n)})}function su(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=El(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 Ws=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(Uf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function gS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(iu,[xo,Zf,oa,ia]).includes(h)){var p=o(),g=Ws(p,n),C=g,m=C.elements,y=C.key2element,x=C.element2key,S=y.get(t),E=vS(S,m),R=x.get(E),w=dS(e,i(R,!0).length===1,r,h);if(!w&&h!==oa&&h!==ia)return;(iu.includes(h)||[oa,ia].includes(h))&&b.preventDefault();var $=function(O){if(O){var j=O,z=O.querySelector("a");z!=null&&z.getAttribute("href")&&(j=z);var V=x.get(O);s(V),v(),d.current=Tt(function(){f.current===V&&j.focus()})}};if([oa,ia].includes(h)||w.sibling||!E){var T;!E||e==="inline"?T=a.current:T=fS(E);var M,F=El(T,m);h===oa?M=F[0]:h===ia?M=F[F.length-1]:M=su(T,m,E,w.offset),$(M)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=Tt(function(){g=Ws(p,n);var N=E.getAttribute("aria-controls"),O=document.getElementById(N),j=su(O,g.elements);$(j)},5);else if(w.offset<0){var A=i(R,!0),_=A[A.length-2],k=y.get(_);l(_,!1),$(k)}}u==null||u(b)}}function mS(e){Promise.resolve().then(e)}var wl="__RC_UTIL_PATH_SPLIT__",lu=function(t){return t.join(wl)},pS=function(t){return t.split(wl)},Gs="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,x){process.env.NODE_ENV!=="production"&&st(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(x.join(" > "),"]"));var S=lu(x);a.current.set(S,y),n.current.set(y,S),u.current+=1;var E=u.current;mS(function(){E===u.current&&f()})},[]),b=P.useCallback(function(y,x){var S=lu(x);a.current.delete(S),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,x){var S=n.current.get(y)||"",E=pS(S);return x&&s.includes(E[0])&&E.unshift(Gs),E},[s]),g=P.useCallback(function(y,x){return y.filter(function(S){return S!==void 0}).some(function(S){var E=p(S,!0);return E.includes(x)})},[p]),C=function(){var x=Ce(n.current.keys());return s.length&&x.push(Gs),x},m=P.useCallback(function(y){var x="".concat(n.current.get(y)).concat(wl),S=new Set;return Ce(a.current.keys()).forEach(function(E){E.startsWith(x)&&S.add(a.current.get(E))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:m}}function la(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 bS=Math.random().toFixed(5).toString().slice(2),cu=0;function yS(e){var t=Zt(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){cu+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(bS,"-").concat(cu);a("rc-menu-uuid-".concat(o))},[]),n}function Qf(e,t,r,n){var a=c.useContext(br),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 Jf(e){var t=c.useContext(br),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 ev(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,D({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var CS=["item"];function Fo(e){var t=e.item,r=Je(e,CS);return Object.defineProperty(r,"item",{get:function(){return st(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var SS=["title","attribute","elementRef"],xS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ES=["active"],wS=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,SS),u=Cr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return st(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Dr.Item,xe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),$S=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,g=Je(e,xS),C=Kf(o),m=c.useContext(br),y=m.prefixCls,x=m.onItemClick,S=m.disabled,E=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,T=c.useContext(xl),M=T._internalRenderMenuItem,F="".concat(y,"-item"),A=c.useRef(),_=c.useRef(),k=S||s,N=Na(t,_),O=ka(o);process.env.NODE_ENV!=="production"&&i&&st(!1,"MenuItem should not leave undefined `key`.");var j=function(fe){return{key:o,keyPath:Ce(O).reverse(),item:A.current,domEvent:fe}},z=l||R,V=Qf(o,k,f,v),H=V.active,K=Je(V,ES),W=w.includes(o),q=Jf(O.length),Y=function(fe){if(!k){var ge=j(fe);b==null||b(Fo(ge)),x(ge)}},J=function(fe){if(h==null||h(fe),fe.which===ce.ENTER){var ge=j(fe);b==null||b(Fo(ge)),x(ge)}},ee=function(fe){$(o),p==null||p(fe)},te={};e.role==="option"&&(te["aria-selected"]=W);var oe=c.createElement(wS,xe({ref:A,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&C?null:C},g,K,te,{component:"li","aria-disabled":s,style:D(D({},q),n),className:Z(F,(r={},L(r,"".concat(F,"-active"),H),L(r,"".concat(F,"-selected"),W),L(r,"".concat(F,"-disabled"),k),r),a),onClick:Y,onKeyDown:J,onFocus:ee}),u,c.createElement(ev,{props:D(D({},e),{},{isSelected:W}),icon:z}));return M&&(oe=M(oe,e,{selected:W})),oe});function OS(e,t){var r=e.eventKey,n=Zo(),a=ka(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement($S,xe({},e,{ref:t}))}const Qo=c.forwardRef(OS);var RS=["className","children"],PS=function(t,r){var n=t.className,a=t.children,o=Je(t,RS),i=c.useContext(br),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",xe({className:Z(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)},$l=c.forwardRef(PS);$l.displayName="SubMenuList";function Ol(e,t){return Rr(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(Ce(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 Bt={adjustX:1,adjustY:1},_S={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},leftTop:{points:["tr","tl"],overflow:Bt},leftBottom:{points:["br","bl"],overflow:Bt},rightTop:{points:["tl","tr"],overflow:Bt},rightBottom:{points:["bl","br"],overflow:Bt}},TS={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},rightTop:{points:["tr","tl"],overflow:Bt},rightBottom:{points:["br","bl"],overflow:Bt},leftTop:{points:["tl","tr"],overflow:Bt},leftBottom:{points:["bl","br"],overflow:Bt}};function tv(e,t,r){if(t)return t;if(r)return r[e]||r.other}var NS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function IS(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(br),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,C=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,S=f.defaultMotions,E=c.useState(!1),R=U(E,2),w=R[0],$=R[1],T=D(b?D({},TS):D({},_S),g),M=NS[u],F=tv(u,x,S),A=c.useRef(F);u!=="inline"&&(A.current=F);var _=D(D({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),k=c.useRef();return c.useEffect(function(){return k.current=Tt(function(){$(r)}),function(){Tt.cancel(k.current)}},[r]),c.createElement(Sl,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:M,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:_,fresh:!0},n)}function MS(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(br),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],g=h[1],C=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=D({},tv(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(x){return!v.current&&!x&&g(!0),y==null?void 0:y(x)},p?null:c.createElement(_a,{mode:o,locked:!v.current},c.createElement(un,xe({visible:C},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var S=x.className,E=x.style;return c.createElement($l,{id:t,className:S,style:E},a)}))}var jS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],AS=["active"],FS=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,g=e.onClick,C=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=Je(e,jS),R=Kf(i),w=c.useContext(br),$=w.prefixCls,T=w.mode,M=w.openKeys,F=w.disabled,A=w.overflowDisabled,_=w.activeKey,k=w.selectedKeys,N=w.itemIcon,O=w.expandIcon,j=w.onItemClick,z=w.onOpenChange,V=w.onActive,H=c.useContext(xl),K=H._internalRenderSubMenuItem,W=c.useContext(Yf),q=W.isSubPathKey,Y=ka(),J="".concat($,"-submenu"),ee=F||l,te=c.useRef(),oe=c.useRef();process.env.NODE_ENV!=="production"&&s&&st(!1,"SubMenu should not leave undefined `key`.");var ve=f??N,fe=v??O,ge=M.includes(i),Oe=!A&&ge,B=q(k,i),ue=Qf(i,ee,x,S),le=ue.active,Ee=Je(ue,AS),he=c.useState(!1),ae=U(he,2),me=ae[0],$e=ae[1],je=function(De){ee||$e(De)},ie=function(De){je(!0),C==null||C({key:i,domEvent:De})},ne=function(De){je(!1),m==null||m({key:i,domEvent:De})},pe=c.useMemo(function(){return le||(T!=="inline"?me||q([_],i):!1)},[T,le,_,me,i,q]),be=Jf(Y.length),at=function(De){ee||(y==null||y({key:i,domEvent:De}),T==="inline"&&z(i,!ge))},Xe=la(function(Ze){g==null||g(Fo(Ze)),j(Ze)}),Ae=function(De){T!=="inline"&&z(i,De)},Ke=function(){V(i)},Ye=R&&"".concat(R,"-popup"),et=c.createElement("div",xe({role:"menuitem",style:be,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":Oe,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":ee,onClick:at,onFocus:Ke},Ee),o,c.createElement(ev,{icon:T!=="horizontal"?fe:void 0,props:D(D({},e),{},{isOpen:Oe,isSubMenu:!0})},c.createElement("i",{className:"".concat(J,"-arrow")}))),Le=c.useRef(T);if(T!=="inline"&&Y.length>1?Le.current="vertical":Le.current=T,!A){var Ne=Le.current;et=c.createElement(IS,{mode:Ne,prefixCls:J,visible:!u&&Oe&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(_a,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement($l,{id:Ye,ref:oe},d)),disabled:ee,onVisibleChange:Ae},et)}var lt=c.createElement(Dr.Item,xe({ref:t,role:"none"},E,{component:"li",style:n,className:Z(J,"".concat(J,"-").concat(T),a,(r={},L(r,"".concat(J,"-open"),Oe),L(r,"".concat(J,"-active"),pe),L(r,"".concat(J,"-selected"),B),L(r,"".concat(J,"-disabled"),ee),r)),onMouseEnter:ie,onMouseLeave:ne}),et,!A&&c.createElement(MS,{id:Ye,open:Oe,keyPath:Y},d));return K&&(lt=K(lt,e,{selected:B,active:pe,open:Oe,disabled:ee})),c.createElement(_a,{onItemClick:Xe,mode:T==="horizontal"?"vertical":T,itemIcon:ve,expandIcon:fe},lt)}),Jo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=ka(r),o=Ol(n,a),i=Zo();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(FS,xe({ref:t},e),o),c.createElement(Xf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Jo.displayName="SubMenu");function rv(e){var t=e.className,r=e.style,n=c.useContext(br),a=n.prefixCls,o=Zo();return o?null:c.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var LS=["className","title","eventKey","children"],DS=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,LS),i=c.useContext(br),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",xe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(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))}),Rl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=ka(r),o=Ol(n,a),i=Zo();return i?o:c.createElement(DS,xe({ref:t},Cr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Rl.displayName="MenuItemGroup");var zS=["label","children","key","type"];function Us(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ie(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,zS),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,xe({key:h},b,{title:u}),Us(d,t)):c.createElement(a,xe({key:h},b,{title:u}),Us(d,t)):v==="divider"?c.createElement(o,xe({key:h},b)):c.createElement(r,xe({key:h},b),u)}return null}).filter(function(i){return i})}function uu(e,t,r,n){var a=e,o=D({divider:rv,item:Qo,group:Rl,submenu:Jo},n);return t&&(a=Us(t,o)),Ol(a,r)}var kS=["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"],tn=[],VS=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,g=a.mode,C=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,x=a.disabledOverflow,S=a.subMenuOpenDelay,E=S===void 0?.1:S,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,T=a.defaultOpenKeys,M=a.openKeys,F=a.activeKey,A=a.defaultActiveFirst,_=a.selectable,k=_===void 0?!0:_,N=a.multiple,O=N===void 0?!1:N,j=a.defaultSelectedKeys,z=a.selectedKeys,V=a.onSelect,H=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,J=a.triggerSubMenuAction,ee=J===void 0?"hover":J,te=a.builtinPlacements,oe=a.itemIcon,ve=a.expandIcon,fe=a.overflowedIndicator,ge=fe===void 0?"...":fe,Oe=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ue=a.onClick,le=a.onOpenChange,Ee=a.onKeyDown,he=a.openAnimation,ae=a.openTransitionName,me=a._internalRenderMenuItem,$e=a._internalRenderSubMenuItem,je=a._internalComponents,ie=Je(a,kS),ne=c.useMemo(function(){return[uu(b,v,tn,je),uu(b,v,tn,{})]},[b,v,je]),pe=U(ne,2),be=pe[0],at=pe[1],Xe=c.useState(!1),Ae=U(Xe,2),Ke=Ae[0],Ye=Ae[1],et=c.useRef(),Le=yS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&st(!he&&!ae,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var lt=Zt(T,{value:M,postState:function(it){return it||tn}}),Ze=U(lt,2),De=Ze[0],de=Ze[1],we=function(it){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mt(){de(it),le==null||le(it)}vt?Mn.flushSync(Mt):Mt()},qe=c.useState(De),ot=U(qe,2),Ct=ot[0],ft=ot[1],Be=c.useRef(!1),Ve=c.useMemo(function(){return(C==="inline"||C==="vertical")&&m?["vertical",m]:[C,!1]},[C,m]),ze=U(Ve,2),Pe=ze[0],ye=ze[1],Ue=Pe==="inline",bt=c.useState(Pe),He=U(bt,2),We=He[0],ct=He[1],yt=c.useState(ye),Pt=U(yt,2),kt=Pt[0],Wt=Pt[1];c.useEffect(function(){ct(Pe),Wt(ye),Be.current&&(Ue?de(Ct):we(tn))},[Pe,ye]);var I=c.useState(0),G=U(I,2),X=G[0],se=G[1],_e=X>=be.length-1||We!=="horizontal"||x;c.useEffect(function(){Ue&&ft(De)},[De]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var Re=hS(),Te=Re.registerPath,Me=Re.unregisterPath,mt=Re.refreshOverflowKeys,rt=Re.isSubPathKey,ke=Re.getKeyPath,wt=Re.getKeys,Gt=Re.getSubPathKeys,Vt=c.useMemo(function(){return{registerPath:Te,unregisterPath:Me}},[Te,Me]),pt=c.useMemo(function(){return{isSubPathKey:rt}},[rt]);c.useEffect(function(){mt(_e?tn:be.slice(X+1).map(function(ht){return ht.key}))},[X,_e]);var Sr=Zt(F||A&&((r=be[0])===null||r===void 0?void 0:r.key),{value:F}),Br=U(Sr,2),Ut=Br[0],Hr=Br[1],Kn=la(function(ht){Hr(ht)}),nr=la(function(){Hr(void 0)});P.useImperativeHandle(t,function(){return{list:et.current,focus:function(it){var vt,Mt=wt(),At=Ws(Mt,Le),Er=At.elements,wr=At.key2element,Zn=At.element2key,Kt=El(et.current,Er),en=Ut??(Kt[0]?Zn.get(Kt[0]):(vt=be.find(function(Gr){return!Gr.props.disabled}))===null||vt===void 0?void 0:vt.key),qt=wr.get(en);if(en&&qt){var dr;qt==null||(dr=qt.focus)===null||dr===void 0||dr.call(qt,it)}}}});var cr=Zt(j||[],{value:z,postState:function(it){return Array.isArray(it)?it:it==null?tn:[it]}}),Wr=U(cr,2),Tr=Wr[0],xr=Wr[1],Nr=function(it){if(k){var vt=it.key,Mt=Tr.includes(vt),At;O?Mt?At=Tr.filter(function(wr){return wr!==vt}):At=[].concat(Ce(Tr),[vt]):At=[vt],xr(At);var Er=D(D({},it),{},{selectedKeys:At});Mt?H==null||H(Er):V==null||V(Er)}!O&&De.length&&We!=="inline"&&we(tn)},Jr=la(function(ht){ue==null||ue(Fo(ht)),Nr(ht)}),Ir=la(function(ht,it){var vt=De.filter(function(At){return At!==ht});if(it)vt.push(ht);else if(We!=="inline"){var Mt=Gt(ht);vt=vt.filter(function(At){return!Mt.has(At)})}Ca(De,vt,!0)||we(vt,!0)}),ur=function(it,vt){var Mt=vt??!De.includes(it);Ir(it,Mt)},qn=gS(We,Ut,Ne,Le,et,wt,ke,Hr,ur,Ee);c.useEffect(function(){Ye(!0)},[]);var Xn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:$e}},[me,$e]),Yn=We!=="horizontal"||x?be:be.map(function(ht,it){return c.createElement(_a,{key:ht.key,overflowDisabled:it>X},ht)}),mn=c.createElement(Dr,xe({id:p,ref:et,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Qo,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),u,(n={},L(n,"".concat(i,"-inline-collapsed"),kt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:Yn,renderRawItem:function(it){return it},renderRawRest:function(it){var vt=it.length,Mt=vt?be.slice(-vt):null;return c.createElement(Jo,{eventKey:Gs,title:ge,disabled:_e,internalPopupClose:vt===0,popupClassName:Oe},Mt)},maxCount:We!=="horizontal"||x?Dr.INVALIDATE:Dr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(it){se(it)},onKeyDown:qn},ie));return c.createElement(xl.Provider,{value:Xn},c.createElement(Gf.Provider,{value:Le},c.createElement(_a,{prefixCls:i,rootClassName:s,mode:We,openKeys:De,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Ut,onActive:Kn,onInactive:nr,selectedKeys:Tr,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:ee,getPopupContainer:B,itemIcon:oe,expandIcon:ve,onItemClick:Jr,onOpenChange:Ir},c.createElement(Yf.Provider,{value:pt},mn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(qf.Provider,{value:Vt},at)))))}),Va=VS;Va.Item=Qo;Va.SubMenu=Jo;Va.ItemGroup=Rl;Va.Divider=rv;var BS={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"},HS=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:BS}))},nv=c.forwardRef(HS);process.env.NODE_ENV!=="production"&&(nv.displayName="EllipsisOutlined");const av=c.createContext(null),WS=av.Provider,ov=c.createContext(null),GS=ov.Provider;var US=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],KS=P.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,o=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,v=e.title,b=e.onChange,h=Je(e,US),p=P.useRef(null),g=P.useRef(null),C=Zt(u,{value:i}),m=U(C,2),y=m[0],x=m[1];P.useImperativeHandle(t,function(){return{focus:function(w){var $;($=p.current)===null||$===void 0||$.focus(w)},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur()},input:p.current,nativeElement:g.current}});var S=Z(n,a,L(L({},"".concat(n,"-checked"),y),"".concat(n,"-disabled"),s)),E=function(w){s||("checked"in e||x(w.target.checked),b==null||b({target:D(D({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:S,title:v,style:o,ref:g},c.createElement("input",xe({},h,{className:"".concat(n,"-input"),ref:p,onChange:E,disabled:s,checked:!!y,type:f})),c.createElement("span",{className:"".concat(n,"-inner")}))});const qS=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},zr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},XS=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:b,dotColorDisabled:h,lineType:p,radioColor:g,radioBgColor:C,calc:m}=e,y=`${t}-inner`,S=m(a).sub(m(4).mul(2)),E=m(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},zr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Q(d)} ${p} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
248
+ &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},cl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:m(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:m(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${m(S).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},YS=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:v,controlHeightLG:b,controlHeightSM:h,paddingXS:p,borderRadius:g,borderRadiusSM:C,borderRadiusLG:m,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:S,colorBgContainerDisabled:E,buttonCheckedBgDisabled:R,buttonCheckedColorDisabled:w,colorPrimary:$,colorPrimaryHover:T,colorPrimaryActive:M,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:_,calc:k}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:Q(k(r).sub(k(a).mul(2)).equal()),background:f,border:`${Q(a)} ${o} ${i}`,borderBlockStartWidth:k(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:k(a).mul(-1).equal(),insetInlineStart:k(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Q(a)} ${o} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:b,fontSize:v,lineHeight:Q(k(b).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},[`${n}-group-small &`]:{height:h,paddingInline:k(p).sub(a).equal(),paddingBlock:0,lineHeight:Q(k(h).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},cl(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:x,background:F,borderColor:F,"&:hover":{color:x,background:A,borderColor:A},"&:active":{color:x,background:_,borderColor:_}},"&-disabled":{color:S,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:E,borderColor:i}},[`&-disabled${n}-button-wrapper-checked`]:{color:w,backgroundColor:R,borderColor:i,boxShadow:"none"}}}},ZS=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:v,colorPrimaryActive:b,colorWhite:h}=e,p=4,g=o,C=t?g-p*2:g-(p+a)*2;return{radioSize:g,dotSize:C,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:b,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:r-a,wrapperMarginInlineEnd:n,radioColor:t?f:h,radioBgColor:t?s:f}},iv=lr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${Q(r)} ${t}`,o=jt(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[qS(o),XS(o),YS(o)]},ZS,{unitless:{radioSize:!0,dotSize:!0}});var QS=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 JS=(e,t)=>{var r,n;const a=c.useContext(av),o=c.useContext(ov),{getPrefixCls:i,direction:s,radio:l}=c.useContext(nt),u=c.useRef(null),d=yr(t,u),{isFormItemInput:f}=c.useContext(Bn);if(process.env.NODE_ENV!=="production"){const _=Nt("Radio");process.env.NODE_ENV!=="production"&&_(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const v=_=>{var k,N;(k=e.onChange)===null||k===void 0||k.call(e,_),(N=a==null?void 0:a.onChange)===null||N===void 0||N.call(a,_)},{prefixCls:b,className:h,rootClassName:p,children:g,style:C,title:m}=e,y=QS(e,["prefixCls","className","rootClassName","children","style","title"]),x=i("radio",b),S=((a==null?void 0:a.optionType)||o)==="button",E=S?`${x}-button`:x,R=Ma(x),[w,$,T]=iv(x,R),M=Object.assign({},y),F=c.useContext(ln);a&&(M.name=a.name,M.onChange=v,M.checked=e.value===a.value,M.disabled=(r=M.disabled)!==null&&r!==void 0?r:a.disabled),M.disabled=(n=M.disabled)!==null&&n!==void 0?n:F;const A=Z(`${E}-wrapper`,{[`${E}-wrapper-checked`]:M.checked,[`${E}-wrapper-disabled`]:M.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},l==null?void 0:l.className,h,p,$,T,R);return w(c.createElement(pl,{component:"Radio",disabled:M.disabled},c.createElement("label",{className:A,style:Object.assign(Object.assign({},l==null?void 0:l.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:m},c.createElement(KS,Object.assign({},M,{className:Z(M.className,{[ml]:!S}),type:"radio",prefixCls:E,ref:d})),g!==void 0?c.createElement("span",null,g):null)))},Ta=c.forwardRef(JS);process.env.NODE_ENV!=="production"&&(Ta.displayName="Radio");const ex=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(nt),[a,o]=Zt(e.defaultValue,{value:e.value}),i=_=>{const k=a,N=_.target.value;"value"in e||o(N);const{onChange:O}=e;O&&N!==k&&O(_)},{prefixCls:s,className:l,rootClassName:u,options:d,buttonStyle:f="outline",disabled:v,children:b,size:h,style:p,id:g,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x}=e,S=r("radio",s),E=`${S}-group`,R=Ma(S),[w,$,T]=iv(S,R);let M=b;d&&d.length>0&&(M=d.map(_=>typeof _=="string"||typeof _=="number"?c.createElement(Ta,{key:_.toString(),prefixCls:S,disabled:v,value:_,checked:a===_},_):c.createElement(Ta,{key:`radio-group-value-options-${_.value}`,prefixCls:S,disabled:_.disabled||v,value:_.value,checked:a===_.value,title:_.title,style:_.style,id:_.id,required:_.required},_.label)));const F=vn(h),A=Z(E,`${E}-${f}`,{[`${E}-${F}`]:F,[`${E}-rtl`]:n==="rtl"},l,u,$,T,R);return w(c.createElement("div",Object.assign({},e0(e,{aria:!0,data:!0}),{className:A,style:p,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x,id:g,ref:t}),c.createElement(WS,{value:{onChange:i,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),tx=c.memo(ex);var rx=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 nx=(e,t)=>{const{getPrefixCls:r}=c.useContext(nt),{prefixCls:n}=e,a=rx(e,["prefixCls"]),o=r("radio",n);return c.createElement(GS,{value:"button"},c.createElement(Ta,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},ax=c.forwardRef(nx),Ba=Ta;Ba.Button=ax;Ba.Group=tx;Ba.__ANT_RADIO=!0;function ox(e){return jt(e,{inputAffixPadding:e.paddingXXS})}const ix=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:g,colorErrorOutline:C,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:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${C}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},sx=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Pl=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({},sx(jt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),sv=(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}}),du=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),lx=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pl(e))}),du(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),du(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),fu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cx=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},fu(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),fu(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Pl(e))}})}),ux=(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)}},lv=(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}}),vu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),dx=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pl(e))}),vu(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),vu(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),gu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),fx=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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},gu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),gu(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),vx=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),cv=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${Q(t)} ${Q(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},uv=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),dv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},vx(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({},cv(e)),"&-sm":Object.assign({},uv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gx=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({},cv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},uv(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 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(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:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${Q(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"},Ia()),{[`${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},[`
250
249
  & > ${t}-affix-wrapper,
251
250
  & > ${t}-number-affix-wrapper,
252
251
  & > ${r}-picker-range
@@ -259,23 +258,23 @@ html body {
259
258
  & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
260
259
  & > ${r}-select:last-child > ${r}-select-selector,
261
260
  & > ${r}-cascader-picker:last-child ${t},
262
- & > ${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}}}})}},gx=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({},zr(e)),dv(e)),sx(e)),ux(e)),cx(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"}})}},mx=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 ${Q(e.inputAffixPadding)}`}}}},px=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({},dv(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}}}),mx(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},hx=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zr(e)),vx(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},lx(e)),dx(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}}})})}},bx=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,
261
+ & > ${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}}}})}},mx=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({},zr(e)),dv(e)),lx(e)),dx(e)),ux(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"}})}},px=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 ${Q(e.inputAffixPadding)}`}}}},hx=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({},dv(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}}}),px(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},bx=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zr(e)),gx(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}}},cx(e)),fx(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}}})})}},yx=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,
263
262
  > ${t},
264
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},yx=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"}},[`
263
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Cx=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"}},[`
265
264
  &-allow-clear > ${t},
266
265
  &-affix-wrapper${n}-has-feedback ${t}
267
- `]:{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}}}}}},Cx=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},fv=lr("Input",e=>{const t=jt(e,ax(e));return[gx(t),yx(t),px(t),hx(t),bx(t),Cx(t),hf(t)]},ox,{resetFont:!1});var Sx={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"},xx=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:Sx}))},vv=c.forwardRef(xx);process.env.NODE_ENV!=="production"&&(vv.displayName="PlusOutlined");const Jo=P.createContext(null);var Ex=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(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function g(){Tt.cancel(h.current)}return P.useEffect(function(){var C={};if(r)if(n){C.width=p(r.width);var m=a?"right":"left";u==="start"&&(C[m]=r[m]),u==="center"&&(C[m]=r[m]+r.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[m]=r[m]+r.width,C.transform="translateX(-100%)")}else C.height=p(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return g(),h.current=Tt(function(){b(C)}),g},[r,n,a,u,p]),{style:v}},mu={width:0,height:0,left:0,top:0};function wx(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)||mu,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)||mu}var f=a.get(l)||D({},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 pu(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 $x=.1,hu=.01,xo=20,bu=Math.pow(.995,xo);function Ox(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),g=p[0],C=p[1],m=P.useRef();function y($){var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F}),window.clearInterval(m.current)}function x($){if(a){$.preventDefault();var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F});var A=M-a.x,_=F-a.y;t(A,_);var k=Date.now();u(k),b(k-l),C({x:A,y:_})}}function S(){if(a&&(o(null),C(null),g)){var $=g.x/v,T=g.y/v,M=Math.abs($),F=Math.abs(T);if(Math.max(M,F)<$x)return;var A=$,_=T;m.current=window.setInterval(function(){if(Math.abs(A)<hu&&Math.abs(_)<hu){window.clearInterval(m.current);return}A*=bu,_*=bu,t(A*xo,_*xo)},xo)}}var E=P.useRef();function R($){var T=$.deltaX,M=$.deltaY,F=0,A=Math.abs(T),_=Math.abs(M);A===_?F=E.current==="x"?T:M:A>_?(F=T,E.current="x"):(F=M,E.current="y"),t(-F,-F)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:x,onTouchEnd:S,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function T(A){w.current.onTouchMove(A)}function M(A){w.current.onTouchEnd(A)}function F(A){w.current.onWheel(A)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",M)}},[])}function gv(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,Qi(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 Rx(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=gv(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 yu={width:0,height:0,left:0,top:0,right:0};function Px(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 g=e.get(s[p].key)||yu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var C=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||yu;if(y[f]<v){C=m+1;break}}return C>=h?[0,0]:[C,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 _x="TABS_DQ";function mv(e){return String(e).replace(/"/g,_x)}function pv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var hv=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||"+")}),Ks=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ie(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"&&(Ks.displayName="ExtraContent");var Tx=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,g=e.getPopupContainer,C=e.popupClassName,m=P.useState(!1),y=U(m,2),x=y[0],S=y[1],E=P.useState(null),R=U(E,2),w=R[0],$=R[1],T=l.icon,M=T===void 0?"More":T,F="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),_=w!==null?"".concat(F,"-").concat(w):null,k=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(Va,{onClick:function(q){var Y=q.key,J=q.domEvent;p(Y,J),S(!1)},prefixCls:"".concat(A,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[w],"aria-label":k!==void 0?k:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,J=W.closeIcon,ee=W.key,te=W.label,oe=pv(q,J,f,Y);return c.createElement(Zo,{key:ee,id:"".concat(F,"-").concat(ee),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(ee),disabled:Y},c.createElement("span",null,te),oe&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),N(fe,ee)}},J||f.removeIcon||"×"))}));function j(W){for(var q=a.filter(function(oe){return!oe.disabled}),Y=q.findIndex(function(oe){return oe.key===w})||0,J=q.length,ee=0;ee<J;ee+=1){Y=(Y+W+J)%J;var te=q[Y];if(!te.disabled){$(te.key);return}}}function z(W){var q=W.which;if(!x){[ce.DOWN,ce.SPACE,ce.ENTER].includes(q)&&(S(!0),W.preventDefault());return}switch(q){case ce.UP:j(-1),W.preventDefault();break;case ce.DOWN:j(1),W.preventDefault();break;case ce.ESC:S(!1);break;case ce.SPACE:case ce.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(_);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){x||$(null)},[x]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var H=Z(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(oS,xe({prefixCls:A,overlay:O,visible:a.length?x:!1,onVisibleChange:S,overlayClassName:Z(H,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":F,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:z},M));return c.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(hv,{prefixCls:r,locale:o,editable:f}))});const Nx=c.memo(Tx,function(e,t){return t.tabMoving});var Ix=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,g=t.onFocus,C=t.style,m="".concat(r,"-tab"),y=pv(f,u,h,l);function x(w){l||p(w)}function S(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var E=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":mv(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:C,onClick:x},c.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($){$.stopPropagation(),x($)},onKeyDown:function($){[ce.SPACE,ce.ENTER].includes($.which)&&($.preventDefault(),x($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&E),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),S($)}},u||h.removeIcon||"×"));return v?v(R):R},Mx=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]},On=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]},so=function(t,r){return t[r?0:1]},Su=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,g=e.indicator,C=c.useContext(Jo),m=C.prefixCls,y=C.tabs,x=P.useRef(null),S=P.useRef(null),E=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),T=P.useRef(null),M=f==="top"||f==="bottom",F=pu(0,function(G,X){M&&p&&p({direction:G>X?"left":"right"})}),A=U(F,2),_=A[0],k=A[1],N=pu(0,function(G,X){!M&&p&&p({direction:G>X?"top":"bottom"})}),O=U(N,2),j=O[0],z=O[1],V=P.useState([0,0]),H=U(V,2),K=H[0],W=H[1],q=P.useState([0,0]),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useState([0,0]),oe=U(te,2),ve=oe[0],fe=oe[1],ge=P.useState([0,0]),Oe=U(ge,2),B=Oe[0],ue=Oe[1],le=Rx(new Map),Ee=U(le,2),he=Ee[0],ae=Ee[1],me=wx(y,he,J[0]),$e=so(K,M),je=so(J,M),ie=so(ve,M),ne=so(B,M),pe=$e<je+ie,be=pe?$e-ne:$e-ie,at="".concat(m,"-nav-operations-hidden"),Xe=0,Ae=0;M&&s?(Xe=0,Ae=Math.max(0,je-be)):(Xe=Math.min(0,be-je),Ae=0);function Ke(G){return G<Xe?Xe:G>Ae?Ae:G}var Ye=P.useRef(null),et=P.useState(),Le=U(et,2),Ne=Le[0],lt=Le[1];function Ze(){lt(Date.now())}function De(){Ye.current&&clearTimeout(Ye.current)}Ox(R,function(G,X){function se(_e,Re){_e(function(Te){var Me=Ke(Te+Re);return Me})}return pe?(M?se(k,G):se(z,X),De(),Ze(),!0):!1}),P.useEffect(function(){return De(),Ne&&(Ye.current=setTimeout(function(){lt(0)},100)),De},[Ne]);var de=Px(me,be,M?_:j,je,ie,ne,D(D({},e),{},{tabs:y})),we=U(de,2),qe=we[0],ot=we[1],Ct=Ht(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(M){var se=_;s?X.right<_?se=X.right:X.right+X.width>_+be&&(se=X.right+X.width-be):X.left<-_?se=-X.left:X.left+X.width>-_+be&&(se=-(X.left+X.width-be)),z(0),k(Ke(se))}else{var _e=j;X.top<-j?_e=-X.top:X.top+X.height>-j+be&&(_e=-(X.top+X.height-be)),k(0),z(Ke(_e))}}),ft={};f==="top"||f==="bottom"?ft[s?"marginRight":"marginLeft"]=v:ft.marginTop=v;var Be=y.map(function(G,X){var se=G.key;return c.createElement(Ix,{id:a,prefixCls:m,key:se,tab:G,style:X===0?void 0:ft,closable:G.closable,editable:u,active:se===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Re){h(se,Re)},onFocus:function(){Ct(se),Ze(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Ve=function(){return ae(function(){var X,se=new Map,_e=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function(Re){var Te,Me=Re.key,mt=(Te=w.current)===null||Te===void 0?void 0:Te.querySelector('[data-node-key="'.concat(mv(Me),'"]'));if(mt){var rt=Mx(mt,_e),ke=U(rt,4),wt=ke[0],Gt=ke[1],Vt=ke[2],pt=ke[3];se.set(Me,{width:wt,height:Gt,left:Vt,top:pt})}}),se})};P.useEffect(function(){Ve()},[y.map(function(G){return G.key}).join("_")]);var ze=gv(function(){var G=On(x),X=On(S),se=On(E);W([G[0]-X[0]-se[0],G[1]-X[1]-se[1]]);var _e=On(T);fe(_e);var Re=On($);ue(Re);var Te=On(w);ee([Te[0]-_e[0],Te[1]-_e[1]]),Ve()}),Pe=y.slice(0,qe),ye=y.slice(ot+1),Ue=[].concat(Ce(Pe),Ce(ye)),bt=me.get(i),He=Ex({activeTabOffset:bt,horizontal:M,indicator:g,rtl:s}),We=He.style;P.useEffect(function(){Ct()},[i,Xe,Ae,Cu(bt),Cu(me),M]),P.useEffect(function(){ze()},[s]);var ct=!!Ue.length,yt="".concat(m,"-nav-wrap"),Pt,kt,Wt,I;return M?s?(kt=_>0,Pt=_!==Ae):(Pt=_<0,kt=_!==Xe):(Wt=j<0,I=j!==Xe),c.createElement(mr,{onResize:ze},c.createElement("div",{ref:Na(t,x),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},c.createElement(Ks,{ref:S,position:"left",extra:l,prefixCls:m}),c.createElement(mr,{onResize:ze},c.createElement("div",{className:Z(yt,L(L(L(L({},"".concat(yt,"-ping-left"),Pt),"".concat(yt,"-ping-right"),kt),"".concat(yt,"-ping-top"),Wt),"".concat(yt,"-ping-bottom"),I)),ref:R},c.createElement(mr,{onResize:ze},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(j,"px)"),transition:Ne?"none":void 0}},Be,c.createElement(hv,{ref:T,prefixCls:m,locale:d,editable:u,style:D(D({},Be.length===0?void 0:ft),{},{visibility:ct?"hidden":null})}),c.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),c.createElement(Nx,xe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ue,className:!ct&&at,tabMoving:!!Ne})),c.createElement(Ks,{ref:E,position:"right",extra:l,prefixCls:m})))}),_l=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:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(_l.displayName="TabPane");var jx=["renderTabBar"],Ax=["label","key"],bv=function(t){var r=t.renderTabBar,n=Je(t,jx),a=c.useContext(Jo),o=a.tabs;if(r){var i=D(D({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,Ax);return c.createElement(_l,xe({tab:l,key:u,tabKey:u},d))})});return r(i,Su)}return c.createElement(Su,n)};process.env.NODE_ENV!=="production"&&(bv.displayName="TabNavListWrapper");var Fx=["key","forceRender","style","className","destroyInactiveTabPane"],Lx=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(Jo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Z("".concat(l,"-content-holder"))},c.createElement("div",{className:Z("".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,g=v.className,C=v.destroyInactiveTabPane,m=Je(v,Fx),y=b===n;return c.createElement(un,xe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||C),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,S){var E=x.style,R=x.className;return c.createElement(_l,xe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:D(D({},p),E),className:Z(g,R),ref:S}))})})))};function Dx(){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=D({inkBar:!0},Ie(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&st(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var zx=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],xu=0,yv=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,g=e.tabBarExtraContent,C=e.locale,m=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,E=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,T=e.indicator,M=Je(e,zx),F=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ie(B)==="object"&&"key"in B})},[i]),A=s==="rtl",_=Dx(f),k=P.useState(!1),N=U(k,2),O=N[0],j=N[1];P.useEffect(function(){j(_f())},[]);var z=Zt(function(){var B;return(B=F[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(z,2),H=V[0],K=V[1],W=P.useState(function(){return F.findIndex(function(B){return B.key===H})}),q=U(W,2),Y=q[0],J=q[1];P.useEffect(function(){var B=F.findIndex(function(le){return le.key===H});if(B===-1){var ue;B=Math.max(0,Math.min(Y,F.length-1)),K((ue=F[B])===null||ue===void 0?void 0:ue.key)}J(B)},[F.map(function(B){return B.key}).join("_"),H,Y]);var ee=Zt(null,{value:r}),te=U(ee,2),oe=te[0],ve=te[1];P.useEffect(function(){r||(ve("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":xu)),xu+=1)},[]);function fe(B,ue){E==null||E(B,ue);var le=B!==H;K(B),le&&(S==null||S(B))}var ge={id:oe,activeKey:H,animated:_,tabPosition:b,rtl:A,mobile:O},Oe=D(D({},ge),{},{editable:d,locale:C,more:m,tabBarGutter:h,onTabClick:fe,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:T});return c.createElement(Jo.Provider,{value:{tabs:F,prefixCls:a}},c.createElement("div",xe({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},M),c.createElement(bv,xe({},Oe,{renderTabBar:x})),c.createElement(Lx,xe({destroyInactiveTabPane:y},ge,{animated:_}))))});process.env.NODE_ENV!=="production"&&(yv.displayName="Tabs");const kx={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Vx(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({},kx),{motionName:sf(e,"switch")})),r}var Bx=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 Hx(e){return e.filter(t=>t)}function Wx(e,t){if(process.env.NODE_ENV!=="production"&&Nt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Rr(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=Bx(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return Hx(r)}const Gx=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}`}}}}},[qc(e,"slide-up"),qc(e,"slide-down")]]},Ux=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:`${Q(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:Q(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(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 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Kx=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},zr(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:`${Q(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({},ll),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(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"}}})}})}},qx=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:`${Q(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
266
+ `]:{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}}}}}},Sx=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},fv=lr("Input",e=>{const t=jt(e,ox(e));return[mx(t),Cx(t),hx(t),bx(t),yx(t),Sx(t),hf(t)]},ix,{resetFont:!1});var xx={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"},Ex=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:xx}))},vv=c.forwardRef(Ex);process.env.NODE_ENV!=="production"&&(vv.displayName="PlusOutlined");const ei=P.createContext(null);var wx=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(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function g(){Tt.cancel(h.current)}return P.useEffect(function(){var C={};if(r)if(n){C.width=p(r.width);var m=a?"right":"left";u==="start"&&(C[m]=r[m]),u==="center"&&(C[m]=r[m]+r.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[m]=r[m]+r.width,C.transform="translateX(-100%)")}else C.height=p(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return g(),h.current=Tt(function(){b(C)}),g},[r,n,a,u,p]),{style:v}},mu={width:0,height:0,left:0,top:0};function $x(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)||mu,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)||mu}var f=a.get(l)||D({},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 pu(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 Ox=.1,hu=.01,Eo=20,bu=Math.pow(.995,Eo);function Rx(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),g=p[0],C=p[1],m=P.useRef();function y($){var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F}),window.clearInterval(m.current)}function x($){if(a){$.preventDefault();var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F});var A=M-a.x,_=F-a.y;t(A,_);var k=Date.now();u(k),b(k-l),C({x:A,y:_})}}function S(){if(a&&(o(null),C(null),g)){var $=g.x/v,T=g.y/v,M=Math.abs($),F=Math.abs(T);if(Math.max(M,F)<Ox)return;var A=$,_=T;m.current=window.setInterval(function(){if(Math.abs(A)<hu&&Math.abs(_)<hu){window.clearInterval(m.current);return}A*=bu,_*=bu,t(A*Eo,_*Eo)},Eo)}}var E=P.useRef();function R($){var T=$.deltaX,M=$.deltaY,F=0,A=Math.abs(T),_=Math.abs(M);A===_?F=E.current==="x"?T:M:A>_?(F=T,E.current="x"):(F=M,E.current="y"),t(-F,-F)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:x,onTouchEnd:S,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function T(A){w.current.onTouchMove(A)}function M(A){w.current.onTouchEnd(A)}function F(A){w.current.onWheel(A)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",M)}},[])}function gv(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,Qi(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 Px(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=gv(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 yu={width:0,height:0,left:0,top:0,right:0};function _x(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 g=e.get(s[p].key)||yu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var C=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||yu;if(y[f]<v){C=m+1;break}}return C>=h?[0,0]:[C,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 Tx="TABS_DQ";function mv(e){return String(e).replace(/"/g,Tx)}function pv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var hv=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||"+")}),Ks=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ie(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"&&(Ks.displayName="ExtraContent");var Nx=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,g=e.getPopupContainer,C=e.popupClassName,m=P.useState(!1),y=U(m,2),x=y[0],S=y[1],E=P.useState(null),R=U(E,2),w=R[0],$=R[1],T=l.icon,M=T===void 0?"More":T,F="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),_=w!==null?"".concat(F,"-").concat(w):null,k=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(Va,{onClick:function(q){var Y=q.key,J=q.domEvent;p(Y,J),S(!1)},prefixCls:"".concat(A,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[w],"aria-label":k!==void 0?k:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,J=W.closeIcon,ee=W.key,te=W.label,oe=pv(q,J,f,Y);return c.createElement(Qo,{key:ee,id:"".concat(F,"-").concat(ee),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(ee),disabled:Y},c.createElement("span",null,te),oe&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),N(fe,ee)}},J||f.removeIcon||"×"))}));function j(W){for(var q=a.filter(function(oe){return!oe.disabled}),Y=q.findIndex(function(oe){return oe.key===w})||0,J=q.length,ee=0;ee<J;ee+=1){Y=(Y+W+J)%J;var te=q[Y];if(!te.disabled){$(te.key);return}}}function z(W){var q=W.which;if(!x){[ce.DOWN,ce.SPACE,ce.ENTER].includes(q)&&(S(!0),W.preventDefault());return}switch(q){case ce.UP:j(-1),W.preventDefault();break;case ce.DOWN:j(1),W.preventDefault();break;case ce.ESC:S(!1);break;case ce.SPACE:case ce.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(_);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){x||$(null)},[x]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var H=Z(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(iS,xe({prefixCls:A,overlay:O,visible:a.length?x:!1,onVisibleChange:S,overlayClassName:Z(H,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":F,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:z},M));return c.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(hv,{prefixCls:r,locale:o,editable:f}))});const Ix=c.memo(Nx,function(e,t){return t.tabMoving});var Mx=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,g=t.onFocus,C=t.style,m="".concat(r,"-tab"),y=pv(f,u,h,l);function x(w){l||p(w)}function S(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var E=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":mv(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:C,onClick:x},c.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($){$.stopPropagation(),x($)},onKeyDown:function($){[ce.SPACE,ce.ENTER].includes($.which)&&($.preventDefault(),x($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&E),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),S($)}},u||h.removeIcon||"×"));return v?v(R):R},jx=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]},On=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]},lo=function(t,r){return t[r?0:1]},Su=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,g=e.indicator,C=c.useContext(ei),m=C.prefixCls,y=C.tabs,x=P.useRef(null),S=P.useRef(null),E=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),T=P.useRef(null),M=f==="top"||f==="bottom",F=pu(0,function(G,X){M&&p&&p({direction:G>X?"left":"right"})}),A=U(F,2),_=A[0],k=A[1],N=pu(0,function(G,X){!M&&p&&p({direction:G>X?"top":"bottom"})}),O=U(N,2),j=O[0],z=O[1],V=P.useState([0,0]),H=U(V,2),K=H[0],W=H[1],q=P.useState([0,0]),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useState([0,0]),oe=U(te,2),ve=oe[0],fe=oe[1],ge=P.useState([0,0]),Oe=U(ge,2),B=Oe[0],ue=Oe[1],le=Px(new Map),Ee=U(le,2),he=Ee[0],ae=Ee[1],me=$x(y,he,J[0]),$e=lo(K,M),je=lo(J,M),ie=lo(ve,M),ne=lo(B,M),pe=$e<je+ie,be=pe?$e-ne:$e-ie,at="".concat(m,"-nav-operations-hidden"),Xe=0,Ae=0;M&&s?(Xe=0,Ae=Math.max(0,je-be)):(Xe=Math.min(0,be-je),Ae=0);function Ke(G){return G<Xe?Xe:G>Ae?Ae:G}var Ye=P.useRef(null),et=P.useState(),Le=U(et,2),Ne=Le[0],lt=Le[1];function Ze(){lt(Date.now())}function De(){Ye.current&&clearTimeout(Ye.current)}Rx(R,function(G,X){function se(_e,Re){_e(function(Te){var Me=Ke(Te+Re);return Me})}return pe?(M?se(k,G):se(z,X),De(),Ze(),!0):!1}),P.useEffect(function(){return De(),Ne&&(Ye.current=setTimeout(function(){lt(0)},100)),De},[Ne]);var de=_x(me,be,M?_:j,je,ie,ne,D(D({},e),{},{tabs:y})),we=U(de,2),qe=we[0],ot=we[1],Ct=Ht(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(M){var se=_;s?X.right<_?se=X.right:X.right+X.width>_+be&&(se=X.right+X.width-be):X.left<-_?se=-X.left:X.left+X.width>-_+be&&(se=-(X.left+X.width-be)),z(0),k(Ke(se))}else{var _e=j;X.top<-j?_e=-X.top:X.top+X.height>-j+be&&(_e=-(X.top+X.height-be)),k(0),z(Ke(_e))}}),ft={};f==="top"||f==="bottom"?ft[s?"marginRight":"marginLeft"]=v:ft.marginTop=v;var Be=y.map(function(G,X){var se=G.key;return c.createElement(Mx,{id:a,prefixCls:m,key:se,tab:G,style:X===0?void 0:ft,closable:G.closable,editable:u,active:se===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Re){h(se,Re)},onFocus:function(){Ct(se),Ze(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Ve=function(){return ae(function(){var X,se=new Map,_e=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function(Re){var Te,Me=Re.key,mt=(Te=w.current)===null||Te===void 0?void 0:Te.querySelector('[data-node-key="'.concat(mv(Me),'"]'));if(mt){var rt=jx(mt,_e),ke=U(rt,4),wt=ke[0],Gt=ke[1],Vt=ke[2],pt=ke[3];se.set(Me,{width:wt,height:Gt,left:Vt,top:pt})}}),se})};P.useEffect(function(){Ve()},[y.map(function(G){return G.key}).join("_")]);var ze=gv(function(){var G=On(x),X=On(S),se=On(E);W([G[0]-X[0]-se[0],G[1]-X[1]-se[1]]);var _e=On(T);fe(_e);var Re=On($);ue(Re);var Te=On(w);ee([Te[0]-_e[0],Te[1]-_e[1]]),Ve()}),Pe=y.slice(0,qe),ye=y.slice(ot+1),Ue=[].concat(Ce(Pe),Ce(ye)),bt=me.get(i),He=wx({activeTabOffset:bt,horizontal:M,indicator:g,rtl:s}),We=He.style;P.useEffect(function(){Ct()},[i,Xe,Ae,Cu(bt),Cu(me),M]),P.useEffect(function(){ze()},[s]);var ct=!!Ue.length,yt="".concat(m,"-nav-wrap"),Pt,kt,Wt,I;return M?s?(kt=_>0,Pt=_!==Ae):(Pt=_<0,kt=_!==Xe):(Wt=j<0,I=j!==Xe),c.createElement(mr,{onResize:ze},c.createElement("div",{ref:Na(t,x),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},c.createElement(Ks,{ref:S,position:"left",extra:l,prefixCls:m}),c.createElement(mr,{onResize:ze},c.createElement("div",{className:Z(yt,L(L(L(L({},"".concat(yt,"-ping-left"),Pt),"".concat(yt,"-ping-right"),kt),"".concat(yt,"-ping-top"),Wt),"".concat(yt,"-ping-bottom"),I)),ref:R},c.createElement(mr,{onResize:ze},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(j,"px)"),transition:Ne?"none":void 0}},Be,c.createElement(hv,{ref:T,prefixCls:m,locale:d,editable:u,style:D(D({},Be.length===0?void 0:ft),{},{visibility:ct?"hidden":null})}),c.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),c.createElement(Ix,xe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ue,className:!ct&&at,tabMoving:!!Ne})),c.createElement(Ks,{ref:E,position:"right",extra:l,prefixCls:m})))}),_l=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:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(_l.displayName="TabPane");var Ax=["renderTabBar"],Fx=["label","key"],bv=function(t){var r=t.renderTabBar,n=Je(t,Ax),a=c.useContext(ei),o=a.tabs;if(r){var i=D(D({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,Fx);return c.createElement(_l,xe({tab:l,key:u,tabKey:u},d))})});return r(i,Su)}return c.createElement(Su,n)};process.env.NODE_ENV!=="production"&&(bv.displayName="TabNavListWrapper");var Lx=["key","forceRender","style","className","destroyInactiveTabPane"],Dx=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(ei),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Z("".concat(l,"-content-holder"))},c.createElement("div",{className:Z("".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,g=v.className,C=v.destroyInactiveTabPane,m=Je(v,Lx),y=b===n;return c.createElement(un,xe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||C),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,S){var E=x.style,R=x.className;return c.createElement(_l,xe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:D(D({},p),E),className:Z(g,R),ref:S}))})})))};function zx(){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=D({inkBar:!0},Ie(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&st(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var kx=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],xu=0,yv=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,g=e.tabBarExtraContent,C=e.locale,m=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,E=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,T=e.indicator,M=Je(e,kx),F=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ie(B)==="object"&&"key"in B})},[i]),A=s==="rtl",_=zx(f),k=P.useState(!1),N=U(k,2),O=N[0],j=N[1];P.useEffect(function(){j(_f())},[]);var z=Zt(function(){var B;return(B=F[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(z,2),H=V[0],K=V[1],W=P.useState(function(){return F.findIndex(function(B){return B.key===H})}),q=U(W,2),Y=q[0],J=q[1];P.useEffect(function(){var B=F.findIndex(function(le){return le.key===H});if(B===-1){var ue;B=Math.max(0,Math.min(Y,F.length-1)),K((ue=F[B])===null||ue===void 0?void 0:ue.key)}J(B)},[F.map(function(B){return B.key}).join("_"),H,Y]);var ee=Zt(null,{value:r}),te=U(ee,2),oe=te[0],ve=te[1];P.useEffect(function(){r||(ve("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":xu)),xu+=1)},[]);function fe(B,ue){E==null||E(B,ue);var le=B!==H;K(B),le&&(S==null||S(B))}var ge={id:oe,activeKey:H,animated:_,tabPosition:b,rtl:A,mobile:O},Oe=D(D({},ge),{},{editable:d,locale:C,more:m,tabBarGutter:h,onTabClick:fe,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:T});return c.createElement(ei.Provider,{value:{tabs:F,prefixCls:a}},c.createElement("div",xe({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},M),c.createElement(bv,xe({},Oe,{renderTabBar:x})),c.createElement(Dx,xe({destroyInactiveTabPane:y},ge,{animated:_}))))});process.env.NODE_ENV!=="production"&&(yv.displayName="Tabs");const Vx={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Bx(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({},Vx),{motionName:sf(e,"switch")})),r}var Hx=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 Wx(e){return e.filter(t=>t)}function Gx(e,t){if(process.env.NODE_ENV!=="production"&&Nt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Rr(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=Hx(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return Wx(r)}const Ux=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}`}}}}},[qc(e,"slide-up"),qc(e,"slide-down")]]},Kx=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:`${Q(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:Q(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(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 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},qx=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},zr(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:`${Q(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({},ll),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(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"}}})}})}},Xx=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:`${Q(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
268
267
  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,
269
- > 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:Q(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Xx=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 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},Yx=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}},ul(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}}}},Zx=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:Q(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Q(e.marginXS)},marginLeft:{_skip_check_:!0,value:Q(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"}}}}},Qx=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({},zr(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 ${Q(e.paddingXS)}`,background:"transparent",border:`${Q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(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}},ul(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Yx(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"}}}}}},Jx=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}},e1=lr("Tabs",e=>{const t=jt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Q(e.horizontalItemGutter)}`});return[Xx(t),Zx(t),qx(t),Kx(t),Ux(t),Qx(t),Gx(t)]},Jx),Cv=()=>null;process.env.NODE_ENV!=="production"&&(Cv.displayName="DeprecatedTabPane");var t1=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 Tl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:C,centered:m,addIcon:y,removeIcon:x,moreIcon:S,more:E,popupClassName:R,children:w,items:$,animated:T,style:M,indicatorSize:F,indicator:A}=e,_=t1(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=_,{direction:N,tabs:O,getPrefixCls:j,getPopupContainer:z}=c.useContext(nt),V=j("tabs",k),H=Ma(V),[K,W,q]=e1(V,H);let Y;v==="editable-card"&&(Y={onEdit:(ge,Oe)=>{let{key:B,event:ue}=Oe;g==null||g(ge==="add"?ue:B,ge)},removeIcon:(t=x??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(nf,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(vv,null),showAdd:C!==!0});const J=j();if(process.env.NODE_ENV!=="production"){const ge=Nt("Tabs");process.env.NODE_ENV!=="production"&&ge(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ge(!(F||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const ee=vn(p),te=Wx($,w),oe=Vx(V,T),ve=Object.assign(Object.assign({},O==null?void 0:O.style),M),fe={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:F)!==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(yv,Object.assign({direction:N,getPopupContainer:z},_,{items:te,className:Z({[`${V}-${ee}`]:ee,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:m},O==null?void 0:O.className,b,h,W,q,H),popupClassName:Z(R,W,q,H),style:ve,editable:Y,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:S)!==null&&f!==void 0?f:c.createElement(nv,null),transitionName:`${J}-slide-up`},E),prefixCls:V,animated:oe,indicator:fe})))};Tl.TabPane=Cv;process.env.NODE_ENV!=="production"&&(Tl.displayName="Tabs");var r1=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 Sv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=r1(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(nt),i=o("card",t),s=Z(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},n1=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 ${Q(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},Ia()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ll),{[`
268
+ > 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:Q(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Yx=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 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},Zx=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}},ul(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}}}},Qx=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:Q(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Q(e.marginXS)},marginLeft:{_skip_check_:!0,value:Q(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"}}}}},Jx=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({},zr(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 ${Q(e.paddingXS)}`,background:"transparent",border:`${Q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(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}},ul(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Zx(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"}}}}}},e1=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}},t1=lr("Tabs",e=>{const t=jt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Q(e.horizontalItemGutter)}`});return[Yx(t),Qx(t),Xx(t),qx(t),Kx(t),Jx(t),Ux(t)]},e1),Cv=()=>null;process.env.NODE_ENV!=="production"&&(Cv.displayName="DeprecatedTabPane");var r1=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 Tl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:C,centered:m,addIcon:y,removeIcon:x,moreIcon:S,more:E,popupClassName:R,children:w,items:$,animated:T,style:M,indicatorSize:F,indicator:A}=e,_=r1(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=_,{direction:N,tabs:O,getPrefixCls:j,getPopupContainer:z}=c.useContext(nt),V=j("tabs",k),H=Ma(V),[K,W,q]=t1(V,H);let Y;v==="editable-card"&&(Y={onEdit:(ge,Oe)=>{let{key:B,event:ue}=Oe;g==null||g(ge==="add"?ue:B,ge)},removeIcon:(t=x??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(nf,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(vv,null),showAdd:C!==!0});const J=j();if(process.env.NODE_ENV!=="production"){const ge=Nt("Tabs");process.env.NODE_ENV!=="production"&&ge(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ge(!(F||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const ee=vn(p),te=Gx($,w),oe=Bx(V,T),ve=Object.assign(Object.assign({},O==null?void 0:O.style),M),fe={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:F)!==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(yv,Object.assign({direction:N,getPopupContainer:z},_,{items:te,className:Z({[`${V}-${ee}`]:ee,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:m},O==null?void 0:O.className,b,h,W,q,H),popupClassName:Z(R,W,q,H),style:ve,editable:Y,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:S)!==null&&f!==void 0?f:c.createElement(nv,null),transitionName:`${J}-slide-up`},E),prefixCls:V,animated:oe,indicator:fe})))};Tl.TabPane=Cv;process.env.NODE_ENV!=="production"&&(Tl.displayName="Tabs");var n1=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 Sv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=n1(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(nt),i=o("card",t),s=Z(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},a1=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 ${Q(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},Ia()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ll),{[`
270
269
  > ${r}-typography,
271
270
  > ${r}-typography-edit-content
272
- `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},a1=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
271
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},o1=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
273
272
  ${Q(a)} 0 0 0 ${r},
274
273
  0 ${Q(a)} 0 0 ${r},
275
274
  ${Q(a)} ${Q(a)} 0 0 ${r},
276
275
  ${Q(a)} 0 0 0 ${r} inset,
277
276
  0 ${Q(a)} 0 0 ${r} inset;
278
- `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},o1=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:`${Q(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},Ia()),{"& > 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:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:Q(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${o}`}}})},i1=e=>Object.assign(Object.assign({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ia()),{"&-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},ll),"&-description":{color:e.colorTextDescription}}),s1=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(r)}`}}},l1=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},c1=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:n1(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},Ia()),[`${t}-grid`]:a1(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:o1(e),[`${t}-meta`]:i1(e)}),[`${t}-bordered`]:{border:`${Q(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:`${Q(e.borderRadiusLG)} ${Q(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`]:s1(e),[`${t}-loading`]:l1(e),[`${t}-rtl`]:{direction:"rtl"}}},u1=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${Q(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"}}}}},d1=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}),f1=lr("Card",e=>{const t=jt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[c1(t),u1(t)]},d1);var Eu=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 v1=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))}))},g1=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:g,children:C,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:S,tabProps:E={},classNames:R,styles:w}=e,$=Eu(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:M,card:F}=c.useContext(nt);if(process.env.NODE_ENV!=="production"){const he=Nt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ae=>{let[me,$e]=ae;he.deprecated(!(me in e),me,$e)})}const A=he=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,he)},_=he=>{var ae;return Z((ae=F==null?void 0:F.classNames)===null||ae===void 0?void 0:ae[he],R==null?void 0:R[he])},k=he=>{var ae;return Object.assign(Object.assign({},(ae=F==null?void 0:F.styles)===null||ae===void 0?void 0:ae[he]),w==null?void 0:w[he])},N=c.useMemo(()=>{let he=!1;return c.Children.forEach(C,ae=>{(ae==null?void 0:ae.type)===Sv&&(he=!0)}),he},[C]),O=T("card",r),[j,z,V]=f1(O),H=c.createElement(gn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),K=m!==void 0,W=Object.assign(Object.assign({},E),{[K?"activeKey":"defaultActiveKey"]:K?m:y,tabBarExtraContent:x});let q;const Y=vn(v),J=!Y||Y==="default"?"large":Y,ee=g?c.createElement(Tl,Object.assign({size:J},W,{className:`${O}-head-tabs`,onChange:A,items:g.map(he=>{var{tab:ae}=he,me=Eu(he,["tab"]);return Object.assign({label:ae},me)})})):null;if(u||i||ee){const he=Z(`${O}-head`,_("header")),ae=Z(`${O}-head-title`,_("title")),me=Z(`${O}-extra`,_("extra")),$e=Object.assign(Object.assign({},s),k("header"));q=c.createElement("div",{className:he,style:$e},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ae,style:k("title")},u),i&&c.createElement("div",{className:me,style:k("extra")},i)),ee)}const te=Z(`${O}-cover`,_("cover")),oe=h?c.createElement("div",{className:te,style:k("cover")},h):null,ve=Z(`${O}-body`,_("body")),fe=Object.assign(Object.assign({},l),k("body")),ge=c.createElement("div",{className:ve,style:fe},d?H:C),Oe=Z(`${O}-actions`,_("actions")),B=p!=null&&p.length?c.createElement(v1,{actionClasses:Oe,actionStyle:k("actions"),actions:p}):null,ue=Cr($,["onTabChange"]),le=Z(O,F==null?void 0:F.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:S,[`${O}-contain-grid`]:N,[`${O}-contain-tabs`]:g==null?void 0:g.length,[`${O}-${Y}`]:Y,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:M==="rtl"},n,a,z,V),Ee=Object.assign(Object.assign({},F==null?void 0:F.style),o);return j(c.createElement("div",Object.assign({ref:t},ue,{className:le,style:Ee}),q,oe,ge,B))});var m1=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 p1=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=m1(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(nt),l=s("card",t),u=Z(`${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)},ei=g1;ei.Grid=Sv;ei.Meta=p1;process.env.NODE_ENV!=="production"&&(ei.displayName="Card");const xv=P.createContext({}),h1=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"}}}},b1=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},y1=(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},qs=(e,t)=>y1(e,t),C1=(e,t,r)=>({[`@media (min-width: ${Q(t)})`]:Object.assign({},qs(e,r))}),S1=()=>({}),x1=()=>({}),E1=lr("Grid",h1,S1),w1=lr("Grid",e=>{const t=jt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[b1(t),qs(t,""),qs(t,"-xs"),Object.keys(r).map(n=>C1(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},x1);var $1=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 wu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const O1=["xs","sm","md","lg","xl","xxl"],ca=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(nt),{gutter:a,wrap:o}=c.useContext(xv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,g=$1(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=r("col",i),[m,y,x]=w1(C),S={};let E={};O1.forEach($=>{let T={};const M=e[$];typeof M=="number"?T.span=M:typeof M=="object"&&(T=M||{}),delete g[$],E=Object.assign(Object.assign({},E),{[`${C}-${$}-${T.span}`]:T.span!==void 0,[`${C}-${$}-order-${T.order}`]:T.order||T.order===0,[`${C}-${$}-offset-${T.offset}`]:T.offset||T.offset===0,[`${C}-${$}-push-${T.push}`]:T.push||T.push===0,[`${C}-${$}-pull-${T.pull}`]:T.pull||T.pull===0,[`${C}-rtl`]:n==="rtl"}),T.flex&&(E[`${C}-${$}-flex`]=!0,S[`--${C}-${$}-flex`]=wu(T.flex))});const R=Z(C,{[`${C}-${s}`]:s!==void 0,[`${C}-order-${l}`]:l,[`${C}-offset-${u}`]:u,[`${C}-push-${d}`]:d,[`${C}-pull-${f}`]:f},v,E,y,x),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=wu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),m(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),p),S),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(ca.displayName="Col");var R1=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 $u(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<Pa.length;o++){const i=Pa[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 Xs=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=R1(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(nt),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=$u(a,p),m=$u(n,p),y=c.useRef(l),x=MC();c.useEffect(()=>{const O=x.subscribe(j=>{g(j);const z=y.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&h(j)});return()=>x.unsubscribe(O)},[]);const S=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((z,V)=>{if(typeof z=="object")for(let H=0;H<Pa.length;H++){const K=Pa[H];if(b[K]&&z[K]!==void 0){O[V]=z[K];break}}else O[V]=z}),O},E=f("row",r),[R,w,$]=E1(E),T=S(),M=Z(E,{[`${E}-no-wrap`]:u===!1,[`${E}-${m}`]:m,[`${E}-${C}`]:C,[`${E}-rtl`]:v==="rtl"},o,w,$),F={},A=T[0]!=null&&T[0]>0?T[0]/-2:void 0;A&&(F.marginLeft=A,F.marginRight=A);const[_,k]=T;F.rowGap=k;const N=c.useMemo(()=>({gutter:[_,k],wrap:u}),[_,k,u]);return R(c.createElement(xv.Provider,{value:N},c.createElement("div",Object.assign({},d,{className:M,style:Object.assign(Object.assign({},F),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Xs.displayName="Row");var P1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},_1=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:P1}))},Ev=c.forwardRef(_1);process.env.NODE_ENV!=="production"&&(Ev.displayName="UpOutlined");function T1(e){return!!(e.addonBefore||e.addonAfter)}function N1(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ou(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 Fo(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=Ou(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=Ou(t,e,n),r(a);return}r(a)}}function I1(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 wv=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,g=e.triggerFocus,C=e.allowClear,m=e.value,y=e.handleReset,x=e.hidden,S=e.classes,E=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,T=e.onClear,M=o??a,F=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",_=($==null?void 0:$.wrapper)||"span",k=($==null?void 0:$.groupAddon)||"span",N=P.useRef(null),O=function(B){var ue;(ue=N.current)!==null&&ue!==void 0&&ue.contains(B.target)&&(g==null||g())},j=N1(e),z=P.cloneElement(M,{value:m,className:Z(M.props.className,!j&&(E==null?void 0:E.variant))||null}),V=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),j){var H=null;if(C){var K=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Ie(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";H=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"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),J=Z(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&C&&m),S==null?void 0:S.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),ee=(l||C)&&P.createElement("span",{className:Z("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:w==null?void 0:w.suffix},H,l);z=P.createElement(F,xe({className:J,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:N}),s&&P.createElement("span",{className:Z("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:w==null?void 0:w.prefix},s),z,ee)}if(T1(e)){var te="".concat(i,"-group"),oe="".concat(te,"-addon"),ve="".concat(te,"-wrapper"),fe=Z("".concat(i,"-wrapper"),te,S==null?void 0:S.wrapper,E==null?void 0:E.wrapper),ge=Z(ve,L({},"".concat(ve,"-disabled"),b),S==null?void 0:S.group,E==null?void 0:E.groupWrapper);z=P.createElement(A,{className:ge,ref:V},P.createElement(_,{className:fe},u&&P.createElement(k,{className:oe},u),z,d&&P.createElement(k,{className:oe},d)))}return P.cloneElement(z,{className:Z((r=z.props)===null||r===void 0?void 0:r.className,f)||null,style:D(D({},(n=z.props)===null||n===void 0?void 0:n.style),v),hidden:x})}),M1=["show"];function $v(e,t){return c.useMemo(function(){var r={};t&&(r.show=Ie(t)==="object"&&t.formatter?t.formatter:!!t),r=D(D({},r),e);var n=r,a=n.show,o=Je(n,M1);return D(D({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var j1=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],A1=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,g=e.showCount,C=e.count,m=e.type,y=m===void 0?"text":m,x=e.classes,S=e.classNames,E=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=Je(e,j1),T=P.useState(!1),M=U(T,2),F=M[0],A=M[1],_=P.useRef(!1),k=P.useRef(!1),N=P.useRef(null),O=P.useRef(null),j=function(ne){N.current&&I1(N.current,ne)},z=Zt(e.defaultValue,{value:e.value}),V=U(z,2),H=V[0],K=V[1],W=H==null?"":String(H),q=P.useState(null),Y=U(q,2),J=Y[0],ee=Y[1],te=$v(C,g),oe=te.max||h,ve=te.strategy(W),fe=!!oe&&ve>oe;P.useImperativeHandle(t,function(){var ie;return{focus:j,blur:function(){var pe;(pe=N.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,be,at){var Xe;(Xe=N.current)===null||Xe===void 0||Xe.setSelectionRange(pe,be,at)},select:function(){var pe;(pe=N.current)===null||pe===void 0||pe.select()},input:N.current,nativeElement:((ie=O.current)===null||ie===void 0?void 0:ie.nativeElement)||N.current}}),P.useEffect(function(){A(function(ie){return ie&&f?!1:ie})},[f]);var ge=function(ne,pe,be){var at=pe;if(!_.current&&te.exceedFormatter&&te.max&&te.strategy(pe)>te.max){if(at=te.exceedFormatter(pe,{max:te.max}),pe!==at){var Xe,Ae;ee([((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(be.source==="compositionEnd")return;K(at),N.current&&Fo(N.current,ne,n,at)};P.useEffect(function(){if(J){var ie;(ie=N.current)===null||ie===void 0||ie.setSelectionRange.apply(ie,Ce(J))}},[J]);var Oe=function(ne){ge(ne,ne.target.value,{source:"change"})},B=function(ne){_.current=!1,ge(ne,ne.currentTarget.value,{source:"compositionEnd"}),w==null||w(ne)},ue=function(ne){i&&ne.key==="Enter"&&!k.current&&(k.current=!0,i(ne)),s==null||s(ne)},le=function(ne){ne.key==="Enter"&&(k.current=!1),l==null||l(ne)},Ee=function(ne){A(!0),a==null||a(ne)},he=function(ne){A(!1),o==null||o(ne)},ae=function(ne){K(""),j(),N.current&&Fo(N.current,ne,n)},me=fe&&"".concat(d,"-out-of-range"),$e=function(){var ne=Cr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",xe({autoComplete:r},ne,{onChange:Oe,onFocus:Ee,onBlur:he,onKeyDown:ue,onKeyUp:le,className:Z(d,L({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:N,size:v,type:y,onCompositionStart:function(be){_.current=!0,R==null||R(be)},onCompositionEnd:B}))},je=function(){var ne=Number(oe)>0;if(p||te.show){var pe=te.showFormatter?te.showFormatter({value:W,count:ve,maxLength:oe}):"".concat(ve).concat(ne?" / ".concat(oe):"");return P.createElement(P.Fragment,null,te.show&&P.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:D({},E==null?void 0:E.count)},pe),p)}return null};return P.createElement(wv,xe({},$,{prefixCls:d,className:Z(b,me),handleReset:ae,value:W,focused:F,triggerFocus:j,suffix:je(),disabled:f,classes:x,classNames:S,styles:E}),$e())});const Ov=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(rf,null)}),t};function F1(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 L1(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var D1=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 z1(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 k1=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:g,rootClassName:C,onChange:m,classNames:y,variant:x}=e,S=D1(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}=Nt("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:R,input:w}=P.useContext(nt),$=E("input",n),T=P.useRef(null),M=Ma($),[F,A,_]=fv($,M),{compactSize:k,compactItemClassnames:N}=uf($,R),O=vn(B=>{var ue;return(ue=i??k)!==null&&ue!==void 0?ue:B}),j=P.useContext(ln),z=s??j,{status:V,hasFeedback:H,feedbackIcon:K}=P.useContext(Bn),W=Ff(V,o),q=L1(e)||!!H,Y=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=Nt("Input");P.useEffect(()=>{var ue;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ue=T.current)===null||ue===void 0?void 0:ue.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 J=F1(T),ee=B=>{J(),l==null||l(B)},te=B=>{J(),u==null||u(B)},oe=B=>{J(),m==null||m(B)},ve=(H||d)&&P.createElement(P.Fragment,null,d,H&&K),fe=Ov(f??(w==null?void 0:w.allowClear)),[ge,Oe]=Lf("input",x,a);return F(P.createElement(A1,Object.assign({ref:yr(t,T),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},S,{disabled:z,onBlur:ee,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),g),suffix:ve,allowClear:fe,className:Z(h,C,_,M,N,w==null?void 0:w.className),onChange:oe,addonBefore:b&&P.createElement(Ds,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Ds,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Z({[`${$}-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:Z({[`${$}-${ge}`]:Oe},ks($,W)),affixWrapper:Z({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Z({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Z({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ge}`]:Oe},ks(`${$}-group-wrapper`,W,H),A)})})))});process.env.NODE_ENV!=="production"&&(k1.displayName="Input");var V1=`
277
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},i1=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:`${Q(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},Ia()),{"& > 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:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:Q(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${o}`}}})},s1=e=>Object.assign(Object.assign({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ia()),{"&-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},ll),"&-description":{color:e.colorTextDescription}}),l1=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(r)}`}}},c1=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},u1=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:a1(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},Ia()),[`${t}-grid`]:o1(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:i1(e),[`${t}-meta`]:s1(e)}),[`${t}-bordered`]:{border:`${Q(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:`${Q(e.borderRadiusLG)} ${Q(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`]:l1(e),[`${t}-loading`]:c1(e),[`${t}-rtl`]:{direction:"rtl"}}},d1=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${Q(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"}}}}},f1=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}),v1=lr("Card",e=>{const t=jt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[u1(t),d1(t)]},f1);var Eu=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 g1=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))}))},m1=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:g,children:C,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:S,tabProps:E={},classNames:R,styles:w}=e,$=Eu(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:M,card:F}=c.useContext(nt);if(process.env.NODE_ENV!=="production"){const he=Nt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ae=>{let[me,$e]=ae;he.deprecated(!(me in e),me,$e)})}const A=he=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,he)},_=he=>{var ae;return Z((ae=F==null?void 0:F.classNames)===null||ae===void 0?void 0:ae[he],R==null?void 0:R[he])},k=he=>{var ae;return Object.assign(Object.assign({},(ae=F==null?void 0:F.styles)===null||ae===void 0?void 0:ae[he]),w==null?void 0:w[he])},N=c.useMemo(()=>{let he=!1;return c.Children.forEach(C,ae=>{(ae==null?void 0:ae.type)===Sv&&(he=!0)}),he},[C]),O=T("card",r),[j,z,V]=v1(O),H=c.createElement(gn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),K=m!==void 0,W=Object.assign(Object.assign({},E),{[K?"activeKey":"defaultActiveKey"]:K?m:y,tabBarExtraContent:x});let q;const Y=vn(v),J=!Y||Y==="default"?"large":Y,ee=g?c.createElement(Tl,Object.assign({size:J},W,{className:`${O}-head-tabs`,onChange:A,items:g.map(he=>{var{tab:ae}=he,me=Eu(he,["tab"]);return Object.assign({label:ae},me)})})):null;if(u||i||ee){const he=Z(`${O}-head`,_("header")),ae=Z(`${O}-head-title`,_("title")),me=Z(`${O}-extra`,_("extra")),$e=Object.assign(Object.assign({},s),k("header"));q=c.createElement("div",{className:he,style:$e},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ae,style:k("title")},u),i&&c.createElement("div",{className:me,style:k("extra")},i)),ee)}const te=Z(`${O}-cover`,_("cover")),oe=h?c.createElement("div",{className:te,style:k("cover")},h):null,ve=Z(`${O}-body`,_("body")),fe=Object.assign(Object.assign({},l),k("body")),ge=c.createElement("div",{className:ve,style:fe},d?H:C),Oe=Z(`${O}-actions`,_("actions")),B=p!=null&&p.length?c.createElement(g1,{actionClasses:Oe,actionStyle:k("actions"),actions:p}):null,ue=Cr($,["onTabChange"]),le=Z(O,F==null?void 0:F.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:S,[`${O}-contain-grid`]:N,[`${O}-contain-tabs`]:g==null?void 0:g.length,[`${O}-${Y}`]:Y,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:M==="rtl"},n,a,z,V),Ee=Object.assign(Object.assign({},F==null?void 0:F.style),o);return j(c.createElement("div",Object.assign({ref:t},ue,{className:le,style:Ee}),q,oe,ge,B))});var p1=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 h1=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=p1(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(nt),l=s("card",t),u=Z(`${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)},ti=m1;ti.Grid=Sv;ti.Meta=h1;process.env.NODE_ENV!=="production"&&(ti.displayName="Card");const xv=P.createContext({}),b1=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"}}}},y1=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},C1=(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},qs=(e,t)=>C1(e,t),S1=(e,t,r)=>({[`@media (min-width: ${Q(t)})`]:Object.assign({},qs(e,r))}),x1=()=>({}),E1=()=>({}),w1=lr("Grid",b1,x1),$1=lr("Grid",e=>{const t=jt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[y1(t),qs(t,""),qs(t,"-xs"),Object.keys(r).map(n=>S1(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},E1);var O1=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 wu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const R1=["xs","sm","md","lg","xl","xxl"],ca=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(nt),{gutter:a,wrap:o}=c.useContext(xv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,g=O1(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=r("col",i),[m,y,x]=$1(C),S={};let E={};R1.forEach($=>{let T={};const M=e[$];typeof M=="number"?T.span=M:typeof M=="object"&&(T=M||{}),delete g[$],E=Object.assign(Object.assign({},E),{[`${C}-${$}-${T.span}`]:T.span!==void 0,[`${C}-${$}-order-${T.order}`]:T.order||T.order===0,[`${C}-${$}-offset-${T.offset}`]:T.offset||T.offset===0,[`${C}-${$}-push-${T.push}`]:T.push||T.push===0,[`${C}-${$}-pull-${T.pull}`]:T.pull||T.pull===0,[`${C}-rtl`]:n==="rtl"}),T.flex&&(E[`${C}-${$}-flex`]=!0,S[`--${C}-${$}-flex`]=wu(T.flex))});const R=Z(C,{[`${C}-${s}`]:s!==void 0,[`${C}-order-${l}`]:l,[`${C}-offset-${u}`]:u,[`${C}-push-${d}`]:d,[`${C}-pull-${f}`]:f},v,E,y,x),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=wu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),m(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),p),S),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(ca.displayName="Col");var P1=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 $u(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<Pa.length;o++){const i=Pa[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 Xs=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=P1(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(nt),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=$u(a,p),m=$u(n,p),y=c.useRef(l),x=jC();c.useEffect(()=>{const O=x.subscribe(j=>{g(j);const z=y.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&h(j)});return()=>x.unsubscribe(O)},[]);const S=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((z,V)=>{if(typeof z=="object")for(let H=0;H<Pa.length;H++){const K=Pa[H];if(b[K]&&z[K]!==void 0){O[V]=z[K];break}}else O[V]=z}),O},E=f("row",r),[R,w,$]=w1(E),T=S(),M=Z(E,{[`${E}-no-wrap`]:u===!1,[`${E}-${m}`]:m,[`${E}-${C}`]:C,[`${E}-rtl`]:v==="rtl"},o,w,$),F={},A=T[0]!=null&&T[0]>0?T[0]/-2:void 0;A&&(F.marginLeft=A,F.marginRight=A);const[_,k]=T;F.rowGap=k;const N=c.useMemo(()=>({gutter:[_,k],wrap:u}),[_,k,u]);return R(c.createElement(xv.Provider,{value:N},c.createElement("div",Object.assign({},d,{className:M,style:Object.assign(Object.assign({},F),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Xs.displayName="Row");var _1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},T1=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:_1}))},Ev=c.forwardRef(T1);process.env.NODE_ENV!=="production"&&(Ev.displayName="UpOutlined");function N1(e){return!!(e.addonBefore||e.addonAfter)}function I1(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ou(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 Lo(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=Ou(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=Ou(t,e,n),r(a);return}r(a)}}function M1(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 wv=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,g=e.triggerFocus,C=e.allowClear,m=e.value,y=e.handleReset,x=e.hidden,S=e.classes,E=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,T=e.onClear,M=o??a,F=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",_=($==null?void 0:$.wrapper)||"span",k=($==null?void 0:$.groupAddon)||"span",N=P.useRef(null),O=function(B){var ue;(ue=N.current)!==null&&ue!==void 0&&ue.contains(B.target)&&(g==null||g())},j=I1(e),z=P.cloneElement(M,{value:m,className:Z(M.props.className,!j&&(E==null?void 0:E.variant))||null}),V=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),j){var H=null;if(C){var K=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Ie(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";H=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"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),J=Z(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&C&&m),S==null?void 0:S.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),ee=(l||C)&&P.createElement("span",{className:Z("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:w==null?void 0:w.suffix},H,l);z=P.createElement(F,xe({className:J,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:N}),s&&P.createElement("span",{className:Z("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:w==null?void 0:w.prefix},s),z,ee)}if(N1(e)){var te="".concat(i,"-group"),oe="".concat(te,"-addon"),ve="".concat(te,"-wrapper"),fe=Z("".concat(i,"-wrapper"),te,S==null?void 0:S.wrapper,E==null?void 0:E.wrapper),ge=Z(ve,L({},"".concat(ve,"-disabled"),b),S==null?void 0:S.group,E==null?void 0:E.groupWrapper);z=P.createElement(A,{className:ge,ref:V},P.createElement(_,{className:fe},u&&P.createElement(k,{className:oe},u),z,d&&P.createElement(k,{className:oe},d)))}return P.cloneElement(z,{className:Z((r=z.props)===null||r===void 0?void 0:r.className,f)||null,style:D(D({},(n=z.props)===null||n===void 0?void 0:n.style),v),hidden:x})}),j1=["show"];function $v(e,t){return c.useMemo(function(){var r={};t&&(r.show=Ie(t)==="object"&&t.formatter?t.formatter:!!t),r=D(D({},r),e);var n=r,a=n.show,o=Je(n,j1);return D(D({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var A1=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],F1=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,g=e.showCount,C=e.count,m=e.type,y=m===void 0?"text":m,x=e.classes,S=e.classNames,E=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=Je(e,A1),T=P.useState(!1),M=U(T,2),F=M[0],A=M[1],_=P.useRef(!1),k=P.useRef(!1),N=P.useRef(null),O=P.useRef(null),j=function(ne){N.current&&M1(N.current,ne)},z=Zt(e.defaultValue,{value:e.value}),V=U(z,2),H=V[0],K=V[1],W=H==null?"":String(H),q=P.useState(null),Y=U(q,2),J=Y[0],ee=Y[1],te=$v(C,g),oe=te.max||h,ve=te.strategy(W),fe=!!oe&&ve>oe;P.useImperativeHandle(t,function(){var ie;return{focus:j,blur:function(){var pe;(pe=N.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,be,at){var Xe;(Xe=N.current)===null||Xe===void 0||Xe.setSelectionRange(pe,be,at)},select:function(){var pe;(pe=N.current)===null||pe===void 0||pe.select()},input:N.current,nativeElement:((ie=O.current)===null||ie===void 0?void 0:ie.nativeElement)||N.current}}),P.useEffect(function(){A(function(ie){return ie&&f?!1:ie})},[f]);var ge=function(ne,pe,be){var at=pe;if(!_.current&&te.exceedFormatter&&te.max&&te.strategy(pe)>te.max){if(at=te.exceedFormatter(pe,{max:te.max}),pe!==at){var Xe,Ae;ee([((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(be.source==="compositionEnd")return;K(at),N.current&&Lo(N.current,ne,n,at)};P.useEffect(function(){if(J){var ie;(ie=N.current)===null||ie===void 0||ie.setSelectionRange.apply(ie,Ce(J))}},[J]);var Oe=function(ne){ge(ne,ne.target.value,{source:"change"})},B=function(ne){_.current=!1,ge(ne,ne.currentTarget.value,{source:"compositionEnd"}),w==null||w(ne)},ue=function(ne){i&&ne.key==="Enter"&&!k.current&&(k.current=!0,i(ne)),s==null||s(ne)},le=function(ne){ne.key==="Enter"&&(k.current=!1),l==null||l(ne)},Ee=function(ne){A(!0),a==null||a(ne)},he=function(ne){A(!1),o==null||o(ne)},ae=function(ne){K(""),j(),N.current&&Lo(N.current,ne,n)},me=fe&&"".concat(d,"-out-of-range"),$e=function(){var ne=Cr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",xe({autoComplete:r},ne,{onChange:Oe,onFocus:Ee,onBlur:he,onKeyDown:ue,onKeyUp:le,className:Z(d,L({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:N,size:v,type:y,onCompositionStart:function(be){_.current=!0,R==null||R(be)},onCompositionEnd:B}))},je=function(){var ne=Number(oe)>0;if(p||te.show){var pe=te.showFormatter?te.showFormatter({value:W,count:ve,maxLength:oe}):"".concat(ve).concat(ne?" / ".concat(oe):"");return P.createElement(P.Fragment,null,te.show&&P.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:D({},E==null?void 0:E.count)},pe),p)}return null};return P.createElement(wv,xe({},$,{prefixCls:d,className:Z(b,me),handleReset:ae,value:W,focused:F,triggerFocus:j,suffix:je(),disabled:f,classes:x,classNames:S,styles:E}),$e())});const Ov=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(rf,null)}),t};function L1(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 D1(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var z1=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 k1(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 V1=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:g,rootClassName:C,onChange:m,classNames:y,variant:x}=e,S=z1(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}=Nt("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:R,input:w}=P.useContext(nt),$=E("input",n),T=P.useRef(null),M=Ma($),[F,A,_]=fv($,M),{compactSize:k,compactItemClassnames:N}=uf($,R),O=vn(B=>{var ue;return(ue=i??k)!==null&&ue!==void 0?ue:B}),j=P.useContext(ln),z=s??j,{status:V,hasFeedback:H,feedbackIcon:K}=P.useContext(Bn),W=Ff(V,o),q=D1(e)||!!H,Y=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=Nt("Input");P.useEffect(()=>{var ue;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ue=T.current)===null||ue===void 0?void 0:ue.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 J=L1(T),ee=B=>{J(),l==null||l(B)},te=B=>{J(),u==null||u(B)},oe=B=>{J(),m==null||m(B)},ve=(H||d)&&P.createElement(P.Fragment,null,d,H&&K),fe=Ov(f??(w==null?void 0:w.allowClear)),[ge,Oe]=Lf("input",x,a);return F(P.createElement(F1,Object.assign({ref:yr(t,T),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},S,{disabled:z,onBlur:ee,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),g),suffix:ve,allowClear:fe,className:Z(h,C,_,M,N,w==null?void 0:w.className),onChange:oe,addonBefore:b&&P.createElement(Ds,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Ds,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Z({[`${$}-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:Z({[`${$}-${ge}`]:Oe},ks($,W)),affixWrapper:Z({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Z({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Z({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ge}`]:Oe},ks(`${$}-group-wrapper`,W,H),A)})})))});process.env.NODE_ENV!=="production"&&(V1.displayName="Input");var B1=`
279
278
  min-height:0 !important;
280
279
  max-height:none !important;
281
280
  height:0 !important;
@@ -286,33 +285,33 @@ html body {
286
285
  top:0 !important;
287
286
  right:0 !important;
288
287
  pointer-events: none !important;
289
- `,B1=["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"],Mi={},ir;function H1(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&&Mi[r])return Mi[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=B1.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Mi[r]=l),l}function W1(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;ir||(ir=document.createElement("textarea"),ir.setAttribute("tab-index","-1"),ir.setAttribute("aria-hidden","true"),document.body.appendChild(ir)),e.getAttribute("wrap")?ir.setAttribute("wrap",e.getAttribute("wrap")):ir.removeAttribute("wrap");var a=H1(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ir.setAttribute("style","".concat(l,";").concat(V1)),ir.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=ir.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ir.value=" ";var b=ir.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 G1=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ji=0,Ai=1,Fi=2,U1=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,G1),h=Zt(a,{value:o,postState:function(Y){return Y??""}}),p=U(h,2),g=p[0],C=p[1],m=function(Y){C(Y.target.value),f==null||f(Y)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var x=c.useMemo(function(){return i&&Ie(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=U(x,2),E=S[0],R=S[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Y=y.current,J=Y.selectionStart,ee=Y.selectionEnd,te=Y.scrollTop;y.current.setSelectionRange(J,ee),y.current.scrollTop=te}}catch{}},T=c.useState(Fi),M=U(T,2),F=M[0],A=M[1],_=c.useState(),k=U(_,2),N=k[0],O=k[1],j=function(){A(ji),process.env.NODE_ENV==="test"&&(v==null||v())};St(function(){w&&j()},[o,E,R,w]),St(function(){if(F===ji)A(Ai);else if(F===Ai){var q=W1(y.current,!1,E,R);A(Fi),O(q)}else $()},[F]);var z=c.useRef(),V=function(){Tt.cancel(z.current)},H=function(Y){F===Fi&&(s==null||s(Y),i&&(V(),z.current=Tt(function(){j()})))};c.useEffect(function(){return V},[]);var K=w?N:null,W=D(D({},u),K);return(F===ji||F===Ai)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(mr,{onResize:H,disabled:!(i||s)},c.createElement("textarea",xe({},b,{ref:y,style:W,className:Z(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),K1=["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"],q1=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,g=e.count,C=e.className,m=e.style,y=e.disabled,x=e.hidden,S=e.classNames,E=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,T=e.readOnly,M=e.autoSize,F=e.onKeyDown,A=Je(e,K1),_=Zt(n,{value:a,defaultValue:n}),k=U(_,2),N=k[0],O=k[1],j=N==null?"":String(N),z=P.useState(!1),V=U(z,2),H=V[0],K=V[1],W=P.useRef(!1),q=P.useState(null),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useRef(null),oe=P.useRef(null),ve=function(){var Ne;return(Ne=oe.current)===null||Ne===void 0?void 0:Ne.textArea},fe=function(){ve().focus()};P.useImperativeHandle(t,function(){var Le;return{resizableTextArea:oe.current,focus:fe,blur:function(){ve().blur()},nativeElement:((Le=te.current)===null||Le===void 0?void 0:Le.nativeElement)||ve()}}),P.useEffect(function(){K(function(Le){return!y&&Le})},[y]);var ge=P.useState(null),Oe=U(ge,2),B=Oe[0],ue=Oe[1];P.useEffect(function(){if(B){var Le;(Le=ve()).setSelectionRange.apply(Le,Ce(B))}},[B]);var le=$v(g,p),Ee=(r=le.max)!==null&&r!==void 0?r:u,he=Number(Ee)>0,ae=le.strategy(j),me=!!Ee&&ae>Ee,$e=function(Ne,lt){var Ze=lt;!W.current&&le.exceedFormatter&&le.max&&le.strategy(lt)>le.max&&(Ze=le.exceedFormatter(lt,{max:le.max}),lt!==Ze&&ue([ve().selectionStart||0,ve().selectionEnd||0])),O(Ze),Fo(Ne.currentTarget,Ne,s,Ze)},je=function(Ne){W.current=!0,d==null||d(Ne)},ie=function(Ne){W.current=!1,$e(Ne,Ne.currentTarget.value),f==null||f(Ne)},ne=function(Ne){$e(Ne,Ne.target.value)},pe=function(Ne){Ne.key==="Enter"&&$&&$(Ne),F==null||F(Ne)},be=function(Ne){K(!0),o==null||o(Ne)},at=function(Ne){K(!1),i==null||i(Ne)},Xe=function(Ne){O(""),fe(),Fo(ve(),Ne,s)},Ae=v,Ke;le.show&&(le.showFormatter?Ke=le.showFormatter({value:j,count:ae,maxLength:Ee}):Ke="".concat(ae).concat(he?" / ".concat(Ee):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Z("".concat(h,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Ke)));var Ye=function(Ne){var lt;R==null||R(Ne),(lt=ve())!==null&&lt!==void 0&&lt.style.height&&ee(!0)},et=!M&&!p&&!l;return P.createElement(wv,{ref:te,value:j,allowClear:l,handleReset:Xe,suffix:Ae,prefixCls:h,classNames:D(D({},S),{},{affixWrapper:Z(S==null?void 0:S.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:H,className:Z(C,me&&"".concat(h,"-out-of-range")),style:D(D({},m),J&&!et?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:x,readOnly:T,onClear:w},P.createElement(U1,xe({},A,{autoSize:M,maxLength:u,onKeyDown:pe,onChange:ne,onFocus:be,onBlur:at,onCompositionStart:je,onCompositionEnd:ie,className:Z(S==null?void 0:S.textarea),style:D(D({},E==null?void 0:E.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Ye,ref:oe,readOnly:T})))}),X1=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 Y1=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,g=X1(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=Nt("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:m,textArea:y}=c.useContext(nt),x=vn(i),S=c.useContext(ln),E=s??S,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext(Bn),T=Ff(R,l),M=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=M.current)===null||V===void 0?void 0:V.resizableTextArea,focus:H=>{var K,W;z1((W=(K=M.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,H)},blur:()=>{var H;return(H=M.current)===null||H===void 0?void 0:H.blur()}}});const F=C("input",a),A=Ma(F),[_,k,N]=fv(F,A),[O,j]=Lf("textArea",p,o),z=Ov(u??(y==null?void 0:y.allowClear));return _(c.createElement(q1,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{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:E,allowClear:z,className:Z(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:Z({[`${F}-sm`]:x==="small",[`${F}-lg`]:x==="large"},k,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Z({[`${F}-${O}`]:j},ks(F,T)),affixWrapper:Z(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:m==="rtl",[`${F}-affix-wrapper-sm`]:x==="small",[`${F}-affix-wrapper-lg`]:x==="large",[`${F}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:F,suffix:w&&c.createElement("span",{className:`${F}-textarea-suffix`},$),ref:M})))});function Lo(e){return["small","middle","large"].includes(e)}function Ru(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Rv=P.createContext({latestIndex:0}),Z1=Rv.Provider,Q1=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(Rv);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 J1=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 eE=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(nt),{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:g,wrap:C=!1,classNames:m,styles:y}=e,x=J1(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(l)?l:[l,l],R=Lo(E),w=Lo(S),$=Ru(E),T=Ru(S),M=Rr(v,{keepEmpty:!0}),F=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[_,k,N]=lf(A),O=Z(A,i==null?void 0:i.className,k,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${F}`]:F,[`${A}-gap-row-${E}`]:R,[`${A}-gap-col-${S}`]:w},d,f,N),j=Z(`${A}-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 z=0;const V=M.map((W,q)=>{var Y,J;W!=null&&(z=q);const ee=(W==null?void 0:W.key)||`${j}-${q}`;return c.createElement(Q1,{className:j,key:ee,index:q,split:p,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(J=i==null?void 0:i.styles)===null||J===void 0?void 0:J.item},W)}),H=c.useMemo(()=>({latestIndex:z}),[z]);if(M.length===0)return null;const K={};return C&&(K.flexWrap="wrap"),!w&&T&&(K.columnGap=S),!R&&$&&(K.rowGap=E),_(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),g)},x),c.createElement(Z1,{value:H},V)))}),Ha=eE;Ha.Compact=N0;process.env.NODE_ENV!=="production"&&(Ha.displayName="Space");const Pv=["wrap","nowrap","wrap-reverse"],_v=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Tv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],tE=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&Pv.includes(r)}},rE=(e,t)=>{const r={};return Tv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},nE=(e,t)=>{const r={};return _v.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function aE(e,t){return Z(Object.assign(Object.assign(Object.assign({},tE(e,t)),rE(e,t)),nE(e,t)))}const oE=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},iE=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},sE=e=>{const{componentCls:t}=e,r={};return Pv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},lE=e=>{const{componentCls:t}=e,r={};return Tv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},cE=e=>{const{componentCls:t}=e,r={};return _v.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},uE=()=>({}),dE=lr("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=jt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[oE(a),iE(a),sE(a),lE(a),cE(a)]},uE,{resetStyle:!1});var fE=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 ti=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=fE(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(nt),p=h("flex",r),[g,C,m]=dE(p),y=u??(v==null?void 0:v.vertical),x=Z(a,n,v==null?void 0:v.className,p,C,m,aE(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:Lo(s),[`${p}-vertical`]:y}),S=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(S.flex=i),s&&!Lo(s)&&(S.gap=s),g(P.createElement(d,Object.assign({ref:t,className:x,style:S},Cr(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(ti.displayName="Flex");var vE={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"},gE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:vE}))},Nv=c.forwardRef(gE);process.env.NODE_ENV!=="production"&&(Nv.displayName="CopyOutlined");var mE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},pE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:mE}))},Iv=c.forwardRef(pE);process.env.NODE_ENV!=="production"&&(Iv.displayName="DownloadOutlined");var hE={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"},bE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:hE}))},Mv=c.forwardRef(bE);process.env.NODE_ENV!=="production"&&(Mv.displayName="EditOutlined");var yE={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"},CE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:yE}))},jv=c.forwardRef(CE);process.env.NODE_ENV!=="production"&&(jv.displayName="EnterOutlined");var SE={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"},xE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:SE}))},Av=c.forwardRef(xE);process.env.NODE_ENV!=="production"&&(Av.displayName="InfoCircleOutlined");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};const wE={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Ys=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===ce.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===ce.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=EE(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},wE)),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}))}),$E=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},OE=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
288
+ `,H1=["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"],Mi={},ir;function W1(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&&Mi[r])return Mi[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=H1.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Mi[r]=l),l}function G1(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;ir||(ir=document.createElement("textarea"),ir.setAttribute("tab-index","-1"),ir.setAttribute("aria-hidden","true"),document.body.appendChild(ir)),e.getAttribute("wrap")?ir.setAttribute("wrap",e.getAttribute("wrap")):ir.removeAttribute("wrap");var a=W1(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ir.setAttribute("style","".concat(l,";").concat(B1)),ir.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=ir.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ir.value=" ";var b=ir.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 U1=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ji=0,Ai=1,Fi=2,K1=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,U1),h=Zt(a,{value:o,postState:function(Y){return Y??""}}),p=U(h,2),g=p[0],C=p[1],m=function(Y){C(Y.target.value),f==null||f(Y)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var x=c.useMemo(function(){return i&&Ie(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=U(x,2),E=S[0],R=S[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Y=y.current,J=Y.selectionStart,ee=Y.selectionEnd,te=Y.scrollTop;y.current.setSelectionRange(J,ee),y.current.scrollTop=te}}catch{}},T=c.useState(Fi),M=U(T,2),F=M[0],A=M[1],_=c.useState(),k=U(_,2),N=k[0],O=k[1],j=function(){A(ji),process.env.NODE_ENV==="test"&&(v==null||v())};St(function(){w&&j()},[o,E,R,w]),St(function(){if(F===ji)A(Ai);else if(F===Ai){var q=G1(y.current,!1,E,R);A(Fi),O(q)}else $()},[F]);var z=c.useRef(),V=function(){Tt.cancel(z.current)},H=function(Y){F===Fi&&(s==null||s(Y),i&&(V(),z.current=Tt(function(){j()})))};c.useEffect(function(){return V},[]);var K=w?N:null,W=D(D({},u),K);return(F===ji||F===Ai)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(mr,{onResize:H,disabled:!(i||s)},c.createElement("textarea",xe({},b,{ref:y,style:W,className:Z(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),q1=["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"],X1=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,g=e.count,C=e.className,m=e.style,y=e.disabled,x=e.hidden,S=e.classNames,E=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,T=e.readOnly,M=e.autoSize,F=e.onKeyDown,A=Je(e,q1),_=Zt(n,{value:a,defaultValue:n}),k=U(_,2),N=k[0],O=k[1],j=N==null?"":String(N),z=P.useState(!1),V=U(z,2),H=V[0],K=V[1],W=P.useRef(!1),q=P.useState(null),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useRef(null),oe=P.useRef(null),ve=function(){var Ne;return(Ne=oe.current)===null||Ne===void 0?void 0:Ne.textArea},fe=function(){ve().focus()};P.useImperativeHandle(t,function(){var Le;return{resizableTextArea:oe.current,focus:fe,blur:function(){ve().blur()},nativeElement:((Le=te.current)===null||Le===void 0?void 0:Le.nativeElement)||ve()}}),P.useEffect(function(){K(function(Le){return!y&&Le})},[y]);var ge=P.useState(null),Oe=U(ge,2),B=Oe[0],ue=Oe[1];P.useEffect(function(){if(B){var Le;(Le=ve()).setSelectionRange.apply(Le,Ce(B))}},[B]);var le=$v(g,p),Ee=(r=le.max)!==null&&r!==void 0?r:u,he=Number(Ee)>0,ae=le.strategy(j),me=!!Ee&&ae>Ee,$e=function(Ne,lt){var Ze=lt;!W.current&&le.exceedFormatter&&le.max&&le.strategy(lt)>le.max&&(Ze=le.exceedFormatter(lt,{max:le.max}),lt!==Ze&&ue([ve().selectionStart||0,ve().selectionEnd||0])),O(Ze),Lo(Ne.currentTarget,Ne,s,Ze)},je=function(Ne){W.current=!0,d==null||d(Ne)},ie=function(Ne){W.current=!1,$e(Ne,Ne.currentTarget.value),f==null||f(Ne)},ne=function(Ne){$e(Ne,Ne.target.value)},pe=function(Ne){Ne.key==="Enter"&&$&&$(Ne),F==null||F(Ne)},be=function(Ne){K(!0),o==null||o(Ne)},at=function(Ne){K(!1),i==null||i(Ne)},Xe=function(Ne){O(""),fe(),Lo(ve(),Ne,s)},Ae=v,Ke;le.show&&(le.showFormatter?Ke=le.showFormatter({value:j,count:ae,maxLength:Ee}):Ke="".concat(ae).concat(he?" / ".concat(Ee):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Z("".concat(h,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Ke)));var Ye=function(Ne){var lt;R==null||R(Ne),(lt=ve())!==null&&lt!==void 0&&lt.style.height&&ee(!0)},et=!M&&!p&&!l;return P.createElement(wv,{ref:te,value:j,allowClear:l,handleReset:Xe,suffix:Ae,prefixCls:h,classNames:D(D({},S),{},{affixWrapper:Z(S==null?void 0:S.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:H,className:Z(C,me&&"".concat(h,"-out-of-range")),style:D(D({},m),J&&!et?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:x,readOnly:T,onClear:w},P.createElement(K1,xe({},A,{autoSize:M,maxLength:u,onKeyDown:pe,onChange:ne,onFocus:be,onBlur:at,onCompositionStart:je,onCompositionEnd:ie,className:Z(S==null?void 0:S.textarea),style:D(D({},E==null?void 0:E.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Ye,ref:oe,readOnly:T})))}),Y1=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 Z1=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,g=Y1(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=Nt("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:m,textArea:y}=c.useContext(nt),x=vn(i),S=c.useContext(ln),E=s??S,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext(Bn),T=Ff(R,l),M=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=M.current)===null||V===void 0?void 0:V.resizableTextArea,focus:H=>{var K,W;k1((W=(K=M.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,H)},blur:()=>{var H;return(H=M.current)===null||H===void 0?void 0:H.blur()}}});const F=C("input",a),A=Ma(F),[_,k,N]=fv(F,A),[O,j]=Lf("textArea",p,o),z=Ov(u??(y==null?void 0:y.allowClear));return _(c.createElement(X1,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{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:E,allowClear:z,className:Z(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:Z({[`${F}-sm`]:x==="small",[`${F}-lg`]:x==="large"},k,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Z({[`${F}-${O}`]:j},ks(F,T)),affixWrapper:Z(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:m==="rtl",[`${F}-affix-wrapper-sm`]:x==="small",[`${F}-affix-wrapper-lg`]:x==="large",[`${F}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:F,suffix:w&&c.createElement("span",{className:`${F}-textarea-suffix`},$),ref:M})))});function Do(e){return["small","middle","large"].includes(e)}function Ru(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Rv=P.createContext({latestIndex:0}),Q1=Rv.Provider,J1=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(Rv);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 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};const tE=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(nt),{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:g,wrap:C=!1,classNames:m,styles:y}=e,x=eE(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(l)?l:[l,l],R=Do(E),w=Do(S),$=Ru(E),T=Ru(S),M=Rr(v,{keepEmpty:!0}),F=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[_,k,N]=lf(A),O=Z(A,i==null?void 0:i.className,k,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${F}`]:F,[`${A}-gap-row-${E}`]:R,[`${A}-gap-col-${S}`]:w},d,f,N),j=Z(`${A}-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 z=0;const V=M.map((W,q)=>{var Y,J;W!=null&&(z=q);const ee=(W==null?void 0:W.key)||`${j}-${q}`;return c.createElement(J1,{className:j,key:ee,index:q,split:p,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(J=i==null?void 0:i.styles)===null||J===void 0?void 0:J.item},W)}),H=c.useMemo(()=>({latestIndex:z}),[z]);if(M.length===0)return null;const K={};return C&&(K.flexWrap="wrap"),!w&&T&&(K.columnGap=S),!R&&$&&(K.rowGap=E),_(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),g)},x),c.createElement(Q1,{value:H},V)))}),Ha=tE;Ha.Compact=I0;process.env.NODE_ENV!=="production"&&(Ha.displayName="Space");const Pv=["wrap","nowrap","wrap-reverse"],_v=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Tv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],rE=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&Pv.includes(r)}},nE=(e,t)=>{const r={};return Tv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},aE=(e,t)=>{const r={};return _v.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function oE(e,t){return Z(Object.assign(Object.assign(Object.assign({},rE(e,t)),nE(e,t)),aE(e,t)))}const iE=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},sE=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},lE=e=>{const{componentCls:t}=e,r={};return Pv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},cE=e=>{const{componentCls:t}=e,r={};return Tv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},uE=e=>{const{componentCls:t}=e,r={};return _v.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},dE=()=>({}),fE=lr("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=jt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[iE(a),sE(a),lE(a),cE(a),uE(a)]},dE,{resetStyle:!1});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 Wa=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=vE(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(nt),p=h("flex",r),[g,C,m]=fE(p),y=u??(v==null?void 0:v.vertical),x=Z(a,n,v==null?void 0:v.className,p,C,m,oE(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:Do(s),[`${p}-vertical`]:y}),S=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(S.flex=i),s&&!Do(s)&&(S.gap=s),g(P.createElement(d,Object.assign({ref:t,className:x,style:S},Cr(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(Wa.displayName="Flex");var gE={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"},mE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:gE}))},Nv=c.forwardRef(mE);process.env.NODE_ENV!=="production"&&(Nv.displayName="CopyOutlined");var pE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},hE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:pE}))},Iv=c.forwardRef(hE);process.env.NODE_ENV!=="production"&&(Iv.displayName="DownloadOutlined");var bE={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"},yE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:bE}))},Mv=c.forwardRef(yE);process.env.NODE_ENV!=="production"&&(Mv.displayName="EditOutlined");var CE={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"},SE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:CE}))},jv=c.forwardRef(SE);process.env.NODE_ENV!=="production"&&(jv.displayName="EnterOutlined");var xE={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"},EE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:xE}))},Av=c.forwardRef(EE);process.env.NODE_ENV!=="production"&&(Av.displayName="InfoCircleOutlined");var wE=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={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Ys=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===ce.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===ce.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=wE(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},$E)),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}))}),OE=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},RE=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
290
289
  h${n}&,
291
290
  div&-h${n},
292
291
  div&-h${n} > textarea,
293
292
  h${n}
294
- `]=$E(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},RE=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Dd(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"}}})}},PE=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:Oo[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}}),_E=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 - ${Q(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"}}}},TE=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),NE=()=>({"\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"}}),IE=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"}},OE(e)),{[`
293
+ `]=OE(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},PE=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Dd(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"}}})}},_E=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:Ro[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}}),TE=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 - ${Q(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"}}}},NE=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),IE=()=>({"\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"}}),ME=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"}},RE(e)),{[`
295
294
  & + h1${t},
296
295
  & + h2${t},
297
296
  & + h3${t},
298
297
  & + h4${t},
299
298
  & + h5${t}
300
- `]:{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}}}),PE(e)),RE(e)),{[`
299
+ `]:{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}}}),_E(e)),PE(e)),{[`
301
300
  ${t}-expand,
302
301
  ${t}-collapse,
303
302
  ${t}-edit,
304
303
  ${t}-copy
305
- `]:Object.assign(Object.assign({},Dd(e)),{marginInlineStart:e.marginXXS})}),_E(e)),TE(e)),NE()),{"&-rtl":{direction:"rtl"}})}},ME=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Fv=lr("Typography",e=>[IE(e)],ME),jE=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(jv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[C,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var k;if(!((k=h.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=k=>{let{target:N}=k;m(N.value.replace(/[\n\r]/g,""))},x=()=>{p.current=!0},S=()=>{p.current=!1},E=k=>{let{keyCode:N}=k;p.current||(g.current=N)},R=()=>{u(C.trim())},w=k=>{let{keyCode:N,ctrlKey:O,altKey:j,metaKey:z,shiftKey:V}=k;g.current===N&&!p.current&&!O&&!j&&!z&&!V&&(N===ce.ENTER?(R(),f==null||f()):N===ce.ESC&&d())},$=()=>{R()},T=v?`${t}-${v}`:"",[M,F,A]=Fv(t),_=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,F,A);return M(c.createElement("div",{className:_,style:a},c.createElement(Y1,{ref:h,maxLength:i,value:C,onChange:y,onKeyDown:E,onKeyUp:w,onCompositionStart:x,onCompositionEnd:S,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Go(b,{className:`${t}-edit-content-confirm`}):null))};var AE=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()}},FE=AE,Pu={"text/plain":"Text","text/html":"Url",default:"Text"},LE="Copy to clipboard: #{key}, Enter";function DE(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function zE(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=FE(),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=Pu[t.format]||Pu.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=DE("message"in t?t.message:LE),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var kE=zE;const VE=ju(kE);var BE=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 HE=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=Ht(f=>BE(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;VE(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 Li(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const WE=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},GE=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var UE=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 Nl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=UE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(nt),h=l??v;let p=t;i&&(p=yr(t,i)),process.env.NODE_ENV!=="production"&&Nt("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[C,m,y]=Fv(g),x=Z(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),S=Object.assign(Object.assign({},b==null?void 0:b.style),u);return C(c.createElement(n,Object.assign({className:x,style:S,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(Nl.displayName="Typography");function _u(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function lo(e,t,r){return e===!0||e===void 0?t:e||r&&t}function KE(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 qE=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=_u(o),f=_u(i),{copied:v,copy:b}=n??{},h=r?lo(d[1],v):lo(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(za,{key:"copy",title:h},c.createElement(Ys,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?lo(f[1],c.createElement(Df,null),!0):lo(f[0],s?c.createElement(fl,null):c.createElement(Nv,null),!0)))},co=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 Lv(e){const t=typeof e;return t==="string"||t==="number"}function XE(e){let t=0;return e.forEach(r=>{Lv(r)?t+=String(r).length:t+=1}),t}function Tu(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=Lv(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 Di=0,zi=1,ki=2,Vi=3,Nu=4,uo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function YE(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Rr(n),[n]),d=c.useMemo(()=>XE(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),C=c.useRef(null),m=c.useRef(null),[y,x]=c.useState(!1),[S,E]=c.useState(Di),[R,w]=c.useState(0),[$,T]=c.useState(null);St(()=>{E(t&&r&&d?zi:Di)},[r,n,o,t,u]),St(()=>{var _,k,N,O;if(S===zi){E(ki);const j=p.current&&getComputedStyle(p.current).whiteSpace;T(j)}else if(S===ki){const j=!!(!((_=g.current)===null||_===void 0)&&_.isExceed());E(j?Vi:Nu),b(j?[0,d]:null),x(j);const z=((k=g.current)===null||k===void 0?void 0:k.getHeight())||0,V=o===1?0:((N=C.current)===null||N===void 0?void 0:N.getHeight())||0,H=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+H,W=Math.max(z,K);w(W+1),l(j)}},[S]);const M=v?Math.ceil((v[0]+v[1])/2):0;St(()=>{var _;const[k,N]=v||[0,0];if(k!==N){const j=(((_=h.current)===null||_===void 0?void 0:_.getHeight())||0)>R;let z=M;N-k===1&&(z=j?k:N),b(j?[k,z]:[z,N])}},[v,M]);const F=c.useMemo(()=>{if(!t)return a(u,!1);if(S!==Vi||!v||v[0]!==v[1]){const _=a(u,!1);return S!==Nu&&S!==Di?c.createElement("span",{style:Object.assign(Object.assign({},uo),{WebkitLineClamp:o})},_):_}return a(i?u:Tu(u,v[0]),y)},[i,S,v,u].concat(Ce(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,F,S===ki&&c.createElement(c.Fragment,null,c.createElement(co,{style:Object.assign(Object.assign(Object.assign({},A),uo),{WebkitLineClamp:o}),ref:g},f),c.createElement(co,{style:Object.assign(Object.assign(Object.assign({},A),uo),{WebkitLineClamp:o-1}),ref:C},f),c.createElement(co,{style:Object.assign(Object.assign(Object.assign({},A),uo),{WebkitLineClamp:1}),ref:m},a([],!0))),S===Vi&&v&&v[0]!==v[1]&&c.createElement(co,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(Tu(u,M),!0)),S===zi&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Dv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(za,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Dv.displayName="EllipsisTooltip");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 QE(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 JE="...",ri=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,g=ZE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:m}=c.useContext(nt),[y]=Qm("Text"),x=c.useRef(null),S=c.useRef(null),E=C("typography",o),R=Cr(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Li(v),[T,M]=Zt(!1,{value:$.editing}),{triggerType:F=["icon"]}=$,A=de=>{var we;de&&((we=$.onStart)===null||we===void 0||we.call($)),M(de)},_=WE(T);GE(()=>{var de;!T&&_&&((de=S.current)===null||de===void 0||de.focus())},[T]);const k=de=>{de==null||de.preventDefault(),A(!0)},N=de=>{var we;(we=$.onChange)===null||we===void 0||we.call($,de),A(!1)},O=()=>{var de;(de=$.onCancel)===null||de===void 0||de.call($),A(!1)},[j,z]=Li(b),{copied:V,copyLoading:H,onClick:K}=HE({copyConfig:z,children:d}),[W,q]=c.useState(!1),[Y,J]=c.useState(!1),[ee,te]=c.useState(!1),[oe,ve]=c.useState(!1),[fe,ge]=c.useState(!0),[Oe,B]=Li(f,{expandable:!1,symbol:de=>de?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ue,le]=Zt(B.defaultExpanded||!1,{value:B.expanded}),Ee=Oe&&(!ue||B.expandable==="collapsible"),{rows:he=1}=B,ae=c.useMemo(()=>Ee&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||j),[Ee,B,w,j]);St(()=>{Oe&&!ae&&(q(Uc("webkitLineClamp")),J(Uc("textOverflow")))},[ae,Oe]);const[me,$e]=c.useState(Ee),je=c.useMemo(()=>ae?!1:he===1?Y:W,[ae,Y,W]);St(()=>{$e(je&&Ee)},[je,Ee]);const ie=Ee&&(me?oe:ee),ne=Ee&&he===1&&me,pe=Ee&&he>1&&me,be=(de,we)=>{var qe;le(we.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,de,we)},[at,Xe]=c.useState(0),Ae=de=>{let{offsetWidth:we}=de;Xe(we)},Ke=de=>{var we;te(de),ee!==de&&((we=B.onEllipsis)===null||we===void 0||we.call(B,de))};c.useEffect(()=>{const de=x.current;if(Oe&&me&&de){const we=KE(de);oe!==we&&ve(we)}},[Oe,me,d,pe,fe,at]),c.useEffect(()=>{const de=x.current;if(typeof IntersectionObserver>"u"||!de||!me||!Ee)return;const we=new IntersectionObserver(()=>{ge(!!de.offsetParent)});return we.observe(de),()=>{we.disconnect()}},[me,Ee]);let Ye={};B.tooltip===!0?Ye={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const et=c.useMemo(()=>{const de=we=>["string","number"].includes(typeof we);if(!(!Oe||me)){if(de($.text))return $.text;if(de(d))return d;if(de(p))return p;if(de(Ye.title))return Ye.title}},[Oe,me,p,Ye.title,ie]);if(T)return c.createElement(jE,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:O,onEnd:$.onEnd,prefixCls:E,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Le=()=>{const{expandable:de,symbol:we}=B;return de?c.createElement(Ys,{key:"expand",className:`${E}-${ue?"collapse":"expand"}`,onClick:qe=>be(qe,{expanded:!ue}),"aria-label":ue?y.collapse:y==null?void 0:y.expand},typeof we=="function"?we(ue):we):null},Ne=()=>{if(!w)return;const{icon:de,tooltip:we,tabIndex:qe}=$,ot=Rr(we)[0]||(y==null?void 0:y.edit),Ct=typeof ot=="string"?ot:"";return F.includes("icon")?c.createElement(za,{key:"edit",title:we===!1?"":ot},c.createElement(Ys,{ref:S,className:`${E}-edit`,onClick:k,"aria-label":Ct,tabIndex:qe},de||c.createElement(Mv,{role:"button"}))):null},lt=()=>j?c.createElement(qE,Object.assign({key:"copy"},z,{prefixCls:E,copied:V,locale:y,onCopy:K,loading:H,iconOnly:d==null})):null,Ze=de=>[de&&Le(),Ne(),lt()],De=de=>[de&&!ue&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},JE),B.suffix,Ze(de)];return c.createElement(mr,{onResize:Ae,disabled:!Ee},de=>c.createElement(Dv,{tooltipProps:Ye,enableEllipsis:Ee,isEllipsis:ie},c.createElement(Nl,Object.assign({className:Z({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:Oe,[`${E}-ellipsis-single-line`]:ne,[`${E}-ellipsis-multiple-line`]:pe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?he:void 0}),component:h,ref:yr(de,x,t),direction:m,onClick:F.includes("text")?k:void 0,"aria-label":et==null?void 0:et.toString(),title:p},R),c.createElement(YE,{enableMeasure:Ee&&!me,text:d,rows:he,width:at,onEllipsis:Ke,expanded:ue,miscDeps:[V,ue,H,w,j]},(we,qe)=>QE(e,c.createElement(c.Fragment,null,we.length>0&&qe&&!ue&&et?c.createElement("span",{key:"show-content","aria-hidden":!0},we):we,De(qe)))))))});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 tw=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=ew(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Nt("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(ri,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),rw=c.forwardRef((e,t)=>c.createElement(ri,Object.assign({ref:t},e,{component:"div"})));var 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=(e,t)=>{var{ellipsis:r}=e,n=nw(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?Cr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Nt("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(ri,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},ow=c.forwardRef(aw);var iw=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 Iu=[1,2,3,4,5],sw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=iw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Title");process.env.NODE_ENV!=="production"&&o(Iu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Iu.includes(r)?a=`h${r}`:a="h1",c.createElement(ri,Object.assign({ref:t},n,{component:a}))}),_r=Nl;_r.Text=ow;_r.Link=tw;_r.Title=sw;_r.Paragraph=rw;const lw=tt(Aa)`
304
+ `]:Object.assign(Object.assign({},Dd(e)),{marginInlineStart:e.marginXXS})}),TE(e)),NE(e)),IE()),{"&-rtl":{direction:"rtl"}})}},jE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Fv=lr("Typography",e=>[ME(e)],jE),AE=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(jv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[C,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var k;if(!((k=h.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=k=>{let{target:N}=k;m(N.value.replace(/[\n\r]/g,""))},x=()=>{p.current=!0},S=()=>{p.current=!1},E=k=>{let{keyCode:N}=k;p.current||(g.current=N)},R=()=>{u(C.trim())},w=k=>{let{keyCode:N,ctrlKey:O,altKey:j,metaKey:z,shiftKey:V}=k;g.current===N&&!p.current&&!O&&!j&&!z&&!V&&(N===ce.ENTER?(R(),f==null||f()):N===ce.ESC&&d())},$=()=>{R()},T=v?`${t}-${v}`:"",[M,F,A]=Fv(t),_=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,F,A);return M(c.createElement("div",{className:_,style:a},c.createElement(Z1,{ref:h,maxLength:i,value:C,onChange:y,onKeyDown:E,onKeyUp:w,onCompositionStart:x,onCompositionEnd:S,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Uo(b,{className:`${t}-edit-content-confirm`}):null))};var FE=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()}},LE=FE,Pu={"text/plain":"Text","text/html":"Url",default:"Text"},DE="Copy to clipboard: #{key}, Enter";function zE(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function kE(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=LE(),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=Pu[t.format]||Pu.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=zE("message"in t?t.message:DE),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var VE=kE;const BE=ju(VE);var HE=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 WE=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=Ht(f=>HE(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;BE(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 Li(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const GE=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},UE=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var KE=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 Nl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=KE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(nt),h=l??v;let p=t;i&&(p=yr(t,i)),process.env.NODE_ENV!=="production"&&Nt("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[C,m,y]=Fv(g),x=Z(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),S=Object.assign(Object.assign({},b==null?void 0:b.style),u);return C(c.createElement(n,Object.assign({className:x,style:S,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(Nl.displayName="Typography");function _u(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function co(e,t,r){return e===!0||e===void 0?t:e||r&&t}function qE(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 XE=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=_u(o),f=_u(i),{copied:v,copy:b}=n??{},h=r?co(d[1],v):co(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(za,{key:"copy",title:h},c.createElement(Ys,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?co(f[1],c.createElement(Df,null),!0):co(f[0],s?c.createElement(fl,null):c.createElement(Nv,null),!0)))},uo=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 Lv(e){const t=typeof e;return t==="string"||t==="number"}function YE(e){let t=0;return e.forEach(r=>{Lv(r)?t+=String(r).length:t+=1}),t}function Tu(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=Lv(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 Di=0,zi=1,ki=2,Vi=3,Nu=4,fo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ZE(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Rr(n),[n]),d=c.useMemo(()=>YE(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),C=c.useRef(null),m=c.useRef(null),[y,x]=c.useState(!1),[S,E]=c.useState(Di),[R,w]=c.useState(0),[$,T]=c.useState(null);St(()=>{E(t&&r&&d?zi:Di)},[r,n,o,t,u]),St(()=>{var _,k,N,O;if(S===zi){E(ki);const j=p.current&&getComputedStyle(p.current).whiteSpace;T(j)}else if(S===ki){const j=!!(!((_=g.current)===null||_===void 0)&&_.isExceed());E(j?Vi:Nu),b(j?[0,d]:null),x(j);const z=((k=g.current)===null||k===void 0?void 0:k.getHeight())||0,V=o===1?0:((N=C.current)===null||N===void 0?void 0:N.getHeight())||0,H=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+H,W=Math.max(z,K);w(W+1),l(j)}},[S]);const M=v?Math.ceil((v[0]+v[1])/2):0;St(()=>{var _;const[k,N]=v||[0,0];if(k!==N){const j=(((_=h.current)===null||_===void 0?void 0:_.getHeight())||0)>R;let z=M;N-k===1&&(z=j?k:N),b(j?[k,z]:[z,N])}},[v,M]);const F=c.useMemo(()=>{if(!t)return a(u,!1);if(S!==Vi||!v||v[0]!==v[1]){const _=a(u,!1);return S!==Nu&&S!==Di?c.createElement("span",{style:Object.assign(Object.assign({},fo),{WebkitLineClamp:o})},_):_}return a(i?u:Tu(u,v[0]),y)},[i,S,v,u].concat(Ce(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,F,S===ki&&c.createElement(c.Fragment,null,c.createElement(uo,{style:Object.assign(Object.assign(Object.assign({},A),fo),{WebkitLineClamp:o}),ref:g},f),c.createElement(uo,{style:Object.assign(Object.assign(Object.assign({},A),fo),{WebkitLineClamp:o-1}),ref:C},f),c.createElement(uo,{style:Object.assign(Object.assign(Object.assign({},A),fo),{WebkitLineClamp:1}),ref:m},a([],!0))),S===Vi&&v&&v[0]!==v[1]&&c.createElement(uo,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(Tu(u,M),!0)),S===zi&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Dv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(za,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Dv.displayName="EllipsisTooltip");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,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 ew="...",ri=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,g=QE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:m}=c.useContext(nt),[y]=Jm("Text"),x=c.useRef(null),S=c.useRef(null),E=C("typography",o),R=Cr(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Li(v),[T,M]=Zt(!1,{value:$.editing}),{triggerType:F=["icon"]}=$,A=de=>{var we;de&&((we=$.onStart)===null||we===void 0||we.call($)),M(de)},_=GE(T);UE(()=>{var de;!T&&_&&((de=S.current)===null||de===void 0||de.focus())},[T]);const k=de=>{de==null||de.preventDefault(),A(!0)},N=de=>{var we;(we=$.onChange)===null||we===void 0||we.call($,de),A(!1)},O=()=>{var de;(de=$.onCancel)===null||de===void 0||de.call($),A(!1)},[j,z]=Li(b),{copied:V,copyLoading:H,onClick:K}=WE({copyConfig:z,children:d}),[W,q]=c.useState(!1),[Y,J]=c.useState(!1),[ee,te]=c.useState(!1),[oe,ve]=c.useState(!1),[fe,ge]=c.useState(!0),[Oe,B]=Li(f,{expandable:!1,symbol:de=>de?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ue,le]=Zt(B.defaultExpanded||!1,{value:B.expanded}),Ee=Oe&&(!ue||B.expandable==="collapsible"),{rows:he=1}=B,ae=c.useMemo(()=>Ee&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||j),[Ee,B,w,j]);St(()=>{Oe&&!ae&&(q(Uc("webkitLineClamp")),J(Uc("textOverflow")))},[ae,Oe]);const[me,$e]=c.useState(Ee),je=c.useMemo(()=>ae?!1:he===1?Y:W,[ae,Y,W]);St(()=>{$e(je&&Ee)},[je,Ee]);const ie=Ee&&(me?oe:ee),ne=Ee&&he===1&&me,pe=Ee&&he>1&&me,be=(de,we)=>{var qe;le(we.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,de,we)},[at,Xe]=c.useState(0),Ae=de=>{let{offsetWidth:we}=de;Xe(we)},Ke=de=>{var we;te(de),ee!==de&&((we=B.onEllipsis)===null||we===void 0||we.call(B,de))};c.useEffect(()=>{const de=x.current;if(Oe&&me&&de){const we=qE(de);oe!==we&&ve(we)}},[Oe,me,d,pe,fe,at]),c.useEffect(()=>{const de=x.current;if(typeof IntersectionObserver>"u"||!de||!me||!Ee)return;const we=new IntersectionObserver(()=>{ge(!!de.offsetParent)});return we.observe(de),()=>{we.disconnect()}},[me,Ee]);let Ye={};B.tooltip===!0?Ye={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const et=c.useMemo(()=>{const de=we=>["string","number"].includes(typeof we);if(!(!Oe||me)){if(de($.text))return $.text;if(de(d))return d;if(de(p))return p;if(de(Ye.title))return Ye.title}},[Oe,me,p,Ye.title,ie]);if(T)return c.createElement(AE,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:O,onEnd:$.onEnd,prefixCls:E,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Le=()=>{const{expandable:de,symbol:we}=B;return de?c.createElement(Ys,{key:"expand",className:`${E}-${ue?"collapse":"expand"}`,onClick:qe=>be(qe,{expanded:!ue}),"aria-label":ue?y.collapse:y==null?void 0:y.expand},typeof we=="function"?we(ue):we):null},Ne=()=>{if(!w)return;const{icon:de,tooltip:we,tabIndex:qe}=$,ot=Rr(we)[0]||(y==null?void 0:y.edit),Ct=typeof ot=="string"?ot:"";return F.includes("icon")?c.createElement(za,{key:"edit",title:we===!1?"":ot},c.createElement(Ys,{ref:S,className:`${E}-edit`,onClick:k,"aria-label":Ct,tabIndex:qe},de||c.createElement(Mv,{role:"button"}))):null},lt=()=>j?c.createElement(XE,Object.assign({key:"copy"},z,{prefixCls:E,copied:V,locale:y,onCopy:K,loading:H,iconOnly:d==null})):null,Ze=de=>[de&&Le(),Ne(),lt()],De=de=>[de&&!ue&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ew),B.suffix,Ze(de)];return c.createElement(mr,{onResize:Ae,disabled:!Ee},de=>c.createElement(Dv,{tooltipProps:Ye,enableEllipsis:Ee,isEllipsis:ie},c.createElement(Nl,Object.assign({className:Z({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:Oe,[`${E}-ellipsis-single-line`]:ne,[`${E}-ellipsis-multiple-line`]:pe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?he:void 0}),component:h,ref:yr(de,x,t),direction:m,onClick:F.includes("text")?k:void 0,"aria-label":et==null?void 0:et.toString(),title:p},R),c.createElement(ZE,{enableMeasure:Ee&&!me,text:d,rows:he,width:at,onEllipsis:Ke,expanded:ue,miscDeps:[V,ue,H,w,j]},(we,qe)=>JE(e,c.createElement(c.Fragment,null,we.length>0&&qe&&!ue&&et?c.createElement("span",{key:"show-content","aria-hidden":!0},we):we,De(qe)))))))});var tw=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 rw=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=tw(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Nt("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(ri,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),nw=c.forwardRef((e,t)=>c.createElement(ri,Object.assign({ref:t},e,{component:"div"})));var aw=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 ow=(e,t)=>{var{ellipsis:r}=e,n=aw(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?Cr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Nt("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(ri,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},iw=c.forwardRef(ow);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 Iu=[1,2,3,4,5],lw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=sw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Title");process.env.NODE_ENV!=="production"&&o(Iu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Iu.includes(r)?a=`h${r}`:a="h1",c.createElement(ri,Object.assign({ref:t},n,{component:a}))}),_r=Nl;_r.Text=iw;_r.Link=rw;_r.Title=lw;_r.Paragraph=nw;const cw=tt(Aa)`
306
305
  border-radius: var(--gf-radius-sm);
307
306
  ${e=>e.type==="primary"&&tt.css`
308
307
  background: var(--gf-color-button-primary);
309
308
  `}
310
- `,Il=({type:e="default",disabled:t=!1,onClick:r,...n})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(lw,{type:e,disabled:t,onClick:r,...n})]}),zv=({disabled:e=!1,onClick:t,...r})=>re.jsx(re.Fragment,{children:re.jsx(Il,{type:"default",disabled:e,onClick:t,icon:re.jsx(Iv,{}),iconPosition:"start",children:"Download",...r})}),kv=({disabled:e=!1,open:t,onClick:r,...n})=>re.jsx(re.Fragment,{children:re.jsx(Il,{type:"link",disabled:e,onClick:r,icon:t?re.jsx(Ev,{}):re.jsx(zf,{}),iconPosition:"end",...n})}),cw=tt(Ba.Group)`
311
- `,uw=tt(Ba.Button)`
309
+ `,Il=({type:e="default",disabled:t=!1,onClick:r,...n})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(cw,{type:e,disabled:t,onClick:r,...n})]}),zv=({disabled:e=!1,onClick:t,...r})=>re.jsx(re.Fragment,{children:re.jsx(Il,{type:"default",disabled:e,onClick:t,icon:re.jsx(Iv,{}),iconPosition:"start",children:"Download",...r})}),kv=({disabled:e=!1,open:t,onClick:r,...n})=>re.jsx(re.Fragment,{children:re.jsx(Il,{type:"link",disabled:e,onClick:r,icon:t?re.jsx(Ev,{}):re.jsx(zf,{}),iconPosition:"end",...n})}),uw=tt(Ba.Group)`
310
+ `,dw=tt(Ba.Button)`
312
311
  height: 24px;
313
312
  font: var(--gf-label-md-default);
314
313
  color: --gf-color-text-primary;
315
- `,dw=({content:e,handler:t,disabled:r=!1,...n})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(dn,{theme:{components:{Radio:{borderRadius:2,colorBorder:"#EAECF0",colorPrimary:"#152BEE"}}},children:re.jsx(cw,{disabled:r,onChange:t,defaultValue:0,...n,children:e.map(a=>re.jsx(uw,{value:a.key,disabled:a.disabled,children:a.label},`gf-control-button-${a.key}`))})})]}),fw=tt(ei)`
314
+ `,fw=({content:e,handler:t,disabled:r=!1,...n})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(dn,{theme:{components:{Radio:{borderRadius:2,colorBorder:"#EAECF0",colorPrimary:"#152BEE"}}},children:re.jsx(uw,{disabled:r,onChange:t,defaultValue:0,...n,children:e.map(a=>re.jsx(dw,{value:a.key,disabled:a.disabled,children:a.label},`gf-control-button-${a.key}`))})})]}),vw=tt(ti)`
316
315
  border-radius: var(--gf-radius-sm);
317
316
  border-color: var(--gf-color-border-base);
318
317
  ${e=>e.cardtype==="default"&&tt.css`
@@ -324,7 +323,7 @@ html body {
324
323
  ${e=>e.cardtype==="debug"&&tt.css`
325
324
  background: var(--gf-color-bg-debug);
326
325
  `}
327
- `,Wa=({cardtype:e,padding:t=32,...r})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(fw,{cardtype:e,styles:{header:{padding:t},body:{padding:t}},...r})]}),{Text:Vv}=_r,Bv=tt(Wa)`
326
+ `,Ga=({cardtype:e,padding:t=32,...r})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(vw,{cardtype:e,styles:{header:{padding:t},body:{padding:t}},...r})]}),{Text:Vv}=_r,Bv=tt(Ga)`
328
327
  &:hover {
329
328
  cursor: pointer;
330
329
  border: 1px solid var(--gf-color-primary-hover);
@@ -334,15 +333,15 @@ html body {
334
333
  svg:hover {
335
334
  fill: var(--gf-color-primary-hover);
336
335
  }
337
- `,vw=tt(Vv)`
336
+ `,gw=tt(Vv)`
338
337
  font: var(--gf-header-h5);
339
338
  ${Bv}:hover & {
340
339
  color: var(--gf-color-primary-hover);
341
340
  }
342
- `,gw=tt(Vv)`
341
+ `,mw=tt(Vv)`
343
342
  font: var(--gf-label-md-default);
344
343
  color: var(--gf-color-text-secondary);
345
- `,mw=({disabled:e=!1,icon:t=Av,title:r="Title",description:n,onClick:a,...o})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsxs(Bv,{onClick:a,padding:24,cardtype:"default",...o,children:[re.jsxs(Xs,{gutter:16,children:[re.jsx(ca,{span:1,children:t}),re.jsx(ca,{span:23,children:re.jsx(vw,{children:r})})]}),re.jsxs(Xs,{gutter:16,children:[re.jsx(ca,{span:1}),re.jsx(ca,{span:23,children:re.jsx(gw,{children:n})})]})]})]}),{Text:Hv}=_r,pw=tt(Hv)`
344
+ `,pw=({disabled:e=!1,icon:t=Av,title:r="Title",description:n,onClick:a,...o})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsxs(Bv,{onClick:a,padding:24,cardtype:"default",...o,children:[re.jsxs(Xs,{gutter:16,children:[re.jsx(ca,{span:1,children:t}),re.jsx(ca,{span:23,children:re.jsx(gw,{children:r})})]}),re.jsxs(Xs,{gutter:16,children:[re.jsx(ca,{span:1}),re.jsx(ca,{span:23,children:re.jsx(mw,{children:n})})]})]})]}),{Text:Hv}=_r,hw=tt(Hv)`
346
345
  color: var(--gf-color-text-primary) !important;
347
346
  ${e=>e.type==="primary"&&tt.css`
348
347
  font: var(--gf-header-h2);
@@ -353,7 +352,7 @@ html body {
353
352
  ${e=>e.type==="header"&&tt.css`
354
353
  font: var(--gf-header-h1);
355
354
  `}
356
- `,hw=tt(Hv)`
355
+ `,bw=tt(Hv)`
357
356
  ${e=>e.type==="primary"&&tt.css`
358
357
  font: var(--gf-label-xl-default);
359
358
  color: var(--gf-color-text-primary) !important;
@@ -366,7 +365,7 @@ html body {
366
365
  font: var(--gf-label-xl-default);
367
366
  color: var(--gf-color-text-secondary) !important;
368
367
  `}
369
- `,Wv=({title:e,subtitle:t,type:r="primary"})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsxs(Ha,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[re.jsx(pw,{type:r,children:e}),re.jsx(hw,{type:r,children:t})]})]}),{Text:bw}=_r,yw=tt(Wa)`
368
+ `,Wv=({title:e,subtitle:t,type:r="primary"})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsxs(Ha,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[re.jsx(hw,{type:r,children:e}),re.jsx(bw,{type:r,children:t})]})]}),{Text:yw}=_r,Cw=tt(Ga)`
370
369
  border-radius: var(--gf-radius-sm);
371
370
  border-color: var(--gf-color-border-base);
372
371
  ${e=>e.cardtype==="default"&&tt.css`
@@ -378,31 +377,31 @@ html body {
378
377
  ${e=>e.cardtype==="debug"&&tt.css`
379
378
  background: var(--gf-color-bg-debug);
380
379
  `}
381
- `,Cw=tt(bw)`
380
+ `,Sw=tt(yw)`
382
381
  font: var(--gf-header-h5);
383
382
  color: var(--gf-color-text-primary);
384
- `,Sw=tt(Aa)`
383
+ `,xw=tt(Aa)`
385
384
  padding: 0px;
386
385
  font: var(--gf-label-md-default);
387
386
  color: var(--gf-color-button-primary);
388
387
  text-decoration-line: underline;
389
- `,xw=({title:e,subtitle:t,listTitle:r,items:n,gap:a,...o})=>{const i=s=>{if(typeof s!="string"){const l=s.current.getBoundingClientRect().top+window.scrollY-(a||0);window.scroll({top:l,behavior:"smooth"})}};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(yw,{cardtype:"default",title:re.jsx(Wv,{title:e,subtitle:t,type:"header"}),...o,children:re.jsxs(ti,{vertical:!0,gap:8,style:{alignItems:"start"},children:[re.jsx(Cw,{children:r||"Table of contents"}),n.map((s,l)=>re.jsx(Sw,{type:"link",href:typeof s.href=="string"?s.href:void 0,onClick:()=>i(s.href),children:s.name},`button-select-item-${l}`))]})})]})},Ew=({tabList:e,tabContent:t,expandContent:r,expandLabel:n,padding:a=24,handleDownload:o,...i})=>{var b;const[s,l]=P.useState((b=e==null?void 0:e[0])==null?void 0:b.key),[u,d]=P.useState(!1),f=h=>{l(h)},v=()=>{d(h=>!h)};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Wa,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:s,onTabChange:f,tabBarExtraContent:re.jsx(zv,{onClick:o}),actions:r!=null&&r[s]?[re.jsxs(ti,{vertical:!0,children:[re.jsx(kv,{open:u,onClick:v,children:n}),u&&(r==null?void 0:r[s])]})]:void 0,styles:{header:{padding:`0px ${a}`},body:{padding:a}},...i,children:t==null?void 0:t[s]})]})},{Paragraph:ww,Text:Gv}=_r,$w=tt(Wa)`
388
+ `,Ew=({title:e,subtitle:t,listTitle:r,items:n,gap:a,...o})=>{const i=s=>{if(typeof s!="string"){const l=s.current.getBoundingClientRect().top+window.scrollY-(a||0);window.scroll({top:l,behavior:"smooth"})}};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Cw,{cardtype:"default",title:re.jsx(Wv,{title:e,subtitle:t,type:"header"}),...o,children:re.jsxs(Wa,{vertical:!0,gap:8,style:{alignItems:"start"},children:[re.jsx(Sw,{children:r||"Table of contents"}),n.map((s,l)=>re.jsx(xw,{type:"link",href:typeof s.href=="string"?s.href:void 0,onClick:()=>i(s.href),children:s.name},`button-select-item-${l}`))]})})]})},ww=({tabList:e,tabContent:t,expandContent:r,expandLabel:n,padding:a=24,handleDownload:o,...i})=>{var b;const[s,l]=P.useState((b=e==null?void 0:e[0])==null?void 0:b.key),[u,d]=P.useState(!1),f=h=>{l(h)},v=()=>{d(h=>!h)};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Ga,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:s,onTabChange:f,tabBarExtraContent:re.jsx(zv,{onClick:o}),actions:r!=null&&r[s]?[re.jsxs(Wa,{vertical:!0,children:[re.jsx(kv,{open:u,onClick:v,children:n}),u&&(r==null?void 0:r[s])]})]:void 0,styles:{header:{padding:`0px ${a}`},body:{padding:a}},...i,children:t==null?void 0:t[s]})]})},{Paragraph:$w,Text:Gv}=_r,Ow=tt(Ga)`
390
389
  min-width: 226px;
391
- `,Ow=tt(Gv)`
392
- font: var(--gf-header-h1);
393
390
  `,Rw=tt(Gv)`
391
+ font: var(--gf-header-h1);
392
+ `,Pw=tt(Gv)`
394
393
  font: var(--gf-label-md-italic);
395
394
  color: var(--gf-color-text-tertiary);
396
- `,Pw=tt(ww)`
395
+ `,_w=tt($w)`
397
396
  font: var(--gf-label-lg-default);
398
397
  color: var(--gf-color-text-secondary);
399
- `,_w=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx($w,{cardtype:"grey",padding:24,...a,children:re.jsxs(ti,{vertical:!0,gap:8,children:[re.jsxs(Ha,{direction:"horizontal",size:16,align:"end",children:[re.jsx(Ow,{children:`${e}%`}),re.jsx(Rw,{children:`€${t} md`})]}),re.jsx(Pw,{editable:s,children:o})]})})]})},{Text:Tw}=_r,Nw=tt.a`
398
+ `,Uv=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Ow,{cardtype:"grey",padding:24,...a,children:re.jsxs(Wa,{vertical:!0,gap:8,children:[re.jsxs(Ha,{direction:"horizontal",size:16,align:"end",children:[re.jsx(Rw,{children:`${e}%`}),re.jsx(Pw,{children:`€${t} md`})]}),re.jsx(_w,{editable:s,children:o})]})})]})},{Text:Tw}=_r,Nw=tt.a`
400
399
  text-decoration: none;
401
400
  `,Iw=tt(Tw)`
402
401
  font: var(--gf-label-md-default);
403
402
  line-height: 150%;
404
403
  color: ${e=>e.type==="light"?"white":"var(--gf-color-text-secondary)"}
405
- `,ni=({label:e,href:t,icon:r,type:n,placement:a="left",...o})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Nw,{href:t,...o,children:re.jsxs(Ha,{direction:"horizontal",size:8,align:"start",children:[r&&a==="left"&&r,re.jsx(Iw,{type:n,children:e}),r&&a==="right"&&r]})})]}),Uv=()=>re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:re.jsx("path",{d:"M14.1674 10.5211L11.4504 9.31407C11.1681 9.18782 10.8519 9.15859 10.5512 9.23096C10.2506 9.30332 9.98233 9.4732 9.78838 9.71407L9.00538 10.6931C7.72168 9.86934 6.62893 8.78067 5.80038 7.50007L6.77938 6.71707C7.02003 6.52318 7.18977 6.25511 7.26212 5.95466C7.33448 5.65421 7.30539 5.33826 7.17938 5.05607L5.97938 2.33207C5.84476 2.02875 5.60677 1.78311 5.30786 1.63897C5.00895 1.49482 4.66855 1.46155 4.34738 1.54507L2.04738 2.14507C1.71408 2.23182 1.42444 2.43838 1.23387 2.72526C1.04329 3.01214 0.965148 3.3592 1.01438 3.70007C1.44298 6.67478 2.82344 9.43069 4.94914 11.5553C7.07484 13.6799 9.83145 15.059 12.8064 15.4861C13.1473 15.5343 13.4941 15.4553 13.7804 15.264C14.0667 15.0726 14.2725 14.7825 14.3584 14.4491L14.9584 12.1491C15.0418 11.828 15.008 11.4876 14.863 11.1892C14.718 10.8908 14.4714 10.6539 14.1674 10.5211Z",fill:"#152BEE"})}),Kv=()=>re.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[re.jsxs("g",{clipPath:"url(#clip0_907_17408)",children:[re.jsx("path",{d:"M8.93333 10.2336C8.65931 10.4212 8.33178 10.5148 8 10.5003C7.66822 10.5148 7.34069 10.4212 7.06667 10.2336L0 6.43359V13.1669C0 13.6974 0.210714 14.2061 0.585786 14.5811C0.960859 14.9562 1.46957 15.1669 2 15.1669H14C14.5304 15.1669 15.0391 14.9562 15.4142 14.5811C15.7893 14.2061 16 13.6974 16 13.1669V6.43359L8.93333 10.2336Z",fill:"#152BEE"}),re.jsx("path",{d:"M14 1.8335H2.00001C1.46958 1.8335 0.960869 2.04421 0.585796 2.41928C0.210723 2.79436 9.8296e-06 3.30306 9.8296e-06 3.8335V4.50016C-0.00062718 4.62038 0.029707 4.73873 0.0880899 4.84382C0.146473 4.94891 0.230936 5.03719 0.333343 5.10016L7.66668 9.10016C7.76904 9.15405 7.8848 9.17721 8.00001 9.16683C8.11522 9.17721 8.23098 9.15405 8.33334 9.10016L15.6667 5.10016C15.7691 5.03719 15.8535 4.94891 15.9119 4.84382C15.9703 4.73873 16.0006 4.62038 16 4.50016V3.8335C16 3.30306 15.7893 2.79436 15.4142 2.41928C15.0392 2.04421 14.5304 1.8335 14 1.8335Z",fill:"#152BEE"})]}),re.jsx("defs",{children:re.jsx("clipPath",{id:"clip0_907_17408",children:re.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]}),qv=()=>re.jsx("svg",{width:"10",height:"15",viewBox:"0 0 10 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:re.jsx("path",{d:"M10 5.5C10 2.74167 7.75833 0.5 5 0.5C2.24167 0.5 0 2.74167 0 5.5C0 9.25 5 14.6667 5 14.6667C5 14.6667 10 9.25 10 5.5ZM3.33333 5.5C3.33333 4.58333 4.08333 3.83333 5 3.83333C5.91667 3.83333 6.66667 4.58333 6.66667 5.5C6.66667 5.94203 6.49107 6.36595 6.17851 6.67851C5.86595 6.99107 5.44203 7.16667 5 7.16667C4.55797 7.16667 4.13405 6.99107 3.82149 6.67851C3.50893 6.36595 3.33333 5.94203 3.33333 5.5Z",fill:"#152BEE"})}),Mw=({label:e,href:t,icon:r=re.jsx(Kv,{}),type:n="light",placement:a="left",...o})=>re.jsx(ni,{label:e,icon:r,href:t,type:n,...o}),jw=({label:e,href:t,icon:r=re.jsx(qv,{}),type:n="light",placement:a="left",...o})=>re.jsx(ni,{label:e,icon:r,href:t,type:n,...o}),Aw=({label:e,href:t,icon:r=re.jsx(Uv,{}),type:n="light",placement:a="left",...o})=>re.jsx(ni,{label:e,icon:r,href:t,type:n,...o}),{Text:Fw}=_r,Lw=tt.div`
404
+ `,ni=({label:e,href:t,icon:r,type:n,placement:a="left",...o})=>re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Nw,{href:t,...o,children:re.jsxs(Ha,{direction:"horizontal",size:8,align:"start",children:[r&&a==="left"&&r,re.jsx(Iw,{type:n,children:e}),r&&a==="right"&&r]})})]}),Kv=()=>re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:re.jsx("path",{d:"M14.1674 10.5211L11.4504 9.31407C11.1681 9.18782 10.8519 9.15859 10.5512 9.23096C10.2506 9.30332 9.98233 9.4732 9.78838 9.71407L9.00538 10.6931C7.72168 9.86934 6.62893 8.78067 5.80038 7.50007L6.77938 6.71707C7.02003 6.52318 7.18977 6.25511 7.26212 5.95466C7.33448 5.65421 7.30539 5.33826 7.17938 5.05607L5.97938 2.33207C5.84476 2.02875 5.60677 1.78311 5.30786 1.63897C5.00895 1.49482 4.66855 1.46155 4.34738 1.54507L2.04738 2.14507C1.71408 2.23182 1.42444 2.43838 1.23387 2.72526C1.04329 3.01214 0.965148 3.3592 1.01438 3.70007C1.44298 6.67478 2.82344 9.43069 4.94914 11.5553C7.07484 13.6799 9.83145 15.059 12.8064 15.4861C13.1473 15.5343 13.4941 15.4553 13.7804 15.264C14.0667 15.0726 14.2725 14.7825 14.3584 14.4491L14.9584 12.1491C15.0418 11.828 15.008 11.4876 14.863 11.1892C14.718 10.8908 14.4714 10.6539 14.1674 10.5211Z",fill:"#152BEE"})}),qv=()=>re.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[re.jsxs("g",{clipPath:"url(#clip0_907_17408)",children:[re.jsx("path",{d:"M8.93333 10.2336C8.65931 10.4212 8.33178 10.5148 8 10.5003C7.66822 10.5148 7.34069 10.4212 7.06667 10.2336L0 6.43359V13.1669C0 13.6974 0.210714 14.2061 0.585786 14.5811C0.960859 14.9562 1.46957 15.1669 2 15.1669H14C14.5304 15.1669 15.0391 14.9562 15.4142 14.5811C15.7893 14.2061 16 13.6974 16 13.1669V6.43359L8.93333 10.2336Z",fill:"#152BEE"}),re.jsx("path",{d:"M14 1.8335H2.00001C1.46958 1.8335 0.960869 2.04421 0.585796 2.41928C0.210723 2.79436 9.8296e-06 3.30306 9.8296e-06 3.8335V4.50016C-0.00062718 4.62038 0.029707 4.73873 0.0880899 4.84382C0.146473 4.94891 0.230936 5.03719 0.333343 5.10016L7.66668 9.10016C7.76904 9.15405 7.8848 9.17721 8.00001 9.16683C8.11522 9.17721 8.23098 9.15405 8.33334 9.10016L15.6667 5.10016C15.7691 5.03719 15.8535 4.94891 15.9119 4.84382C15.9703 4.73873 16.0006 4.62038 16 4.50016V3.8335C16 3.30306 15.7893 2.79436 15.4142 2.41928C15.0392 2.04421 14.5304 1.8335 14 1.8335Z",fill:"#152BEE"})]}),re.jsx("defs",{children:re.jsx("clipPath",{id:"clip0_907_17408",children:re.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]}),Xv=()=>re.jsx("svg",{width:"10",height:"15",viewBox:"0 0 10 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:re.jsx("path",{d:"M10 5.5C10 2.74167 7.75833 0.5 5 0.5C2.24167 0.5 0 2.74167 0 5.5C0 9.25 5 14.6667 5 14.6667C5 14.6667 10 9.25 10 5.5ZM3.33333 5.5C3.33333 4.58333 4.08333 3.83333 5 3.83333C5.91667 3.83333 6.66667 4.58333 6.66667 5.5C6.66667 5.94203 6.49107 6.36595 6.17851 6.67851C5.86595 6.99107 5.44203 7.16667 5 7.16667C4.55797 7.16667 4.13405 6.99107 3.82149 6.67851C3.50893 6.36595 3.33333 5.94203 3.33333 5.5Z",fill:"#152BEE"})}),Mw=({label:e,href:t,icon:r=re.jsx(qv,{}),type:n="light",placement:a="left",...o})=>re.jsx(ni,{label:e,icon:r,href:t,type:n,...o}),jw=({label:e,href:t,icon:r=re.jsx(Xv,{}),type:n="light",placement:a="left",...o})=>re.jsx(ni,{label:e,icon:r,href:t,type:n,...o}),Aw=({label:e,href:t,icon:r=re.jsx(Kv,{}),type:n="light",placement:a="left",...o})=>re.jsx(ni,{label:e,icon:r,href:t,type:n,...o}),{Text:Fw}=_r,Lw=tt.div`
406
405
  ${e=>e.columns&&e.columns>1&&tt.css`
407
406
  column-count: ${e.columns};
408
407
  `}
@@ -410,5 +409,5 @@ html body {
410
409
  `,Dw=tt(Fw)`
411
410
  font: var(--gf-label-lg-default);
412
411
  color: var(--gf-color-text-secondary) ;
413
- `,zw=({text:e,columns:t,editable:r=!1,textalign:n="left",style:a,className:o})=>{const[i,s]=P.useState(e),l=r?{onChange:s}:!1;return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Lw,{columns:t,textalign:n,style:a||{},className:o||"",children:re.jsx(Dw,{editable:l,children:i})})]})};exports.AddressLink=jw;exports.ButtonControls=dw;exports.Description=zw;exports.DownloadButton=zv;exports.EmailLink=Mw;exports.ExpandButton=kv;exports.GFButton=Il;exports.GFCard=Wa;exports.Link=ni;exports.LocationIcon=qv;exports.MailIcon=Kv;exports.Metrics=_w;exports.NavCard=mw;exports.PhoneIcon=Uv;exports.PhoneLink=Aw;exports.QuickNavCard=xw;exports.TabCard=Ew;exports.Title=Wv;
412
+ `,zw=({text:e,columns:t,editable:r=!1,textalign:n="left",style:a,className:o})=>{const[i,s]=P.useState(e),l=r?{onChange:s}:!1;return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Lw,{columns:t,textalign:n,style:a||{},className:o||"",children:re.jsx(Dw,{editable:l,children:i})})]})},kw=({metricsData:e})=>re.jsx(Wa,{gap:10,wrap:!0,children:e==null?void 0:e.map(t=>re.jsx(Uv,{percent:t.percent,description:t.description,cost:t.cost,editable:t.editable}))});exports.AddressLink=jw;exports.ButtonControls=fw;exports.Description=zw;exports.DownloadButton=zv;exports.EmailLink=Mw;exports.ExpandButton=kv;exports.GFButton=Il;exports.GFCard=Ga;exports.GFMetricsGrid=kw;exports.Link=ni;exports.LocationIcon=Xv;exports.MailIcon=qv;exports.Metrics=Uv;exports.NavCard=pw;exports.PhoneIcon=Kv;exports.PhoneLink=Aw;exports.QuickNavCard=Ew;exports.TabCard=ww;exports.Title=Wv;
414
413
  //# sourceMappingURL=index.cjs.js.map