@akinon/ui-tooltip 0.0.2 → 0.1.0
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/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +21 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +17 -0
- package/package.json +18 -11
- package/dist/index.cjs +0 -76
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6114
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAE3C,eAAO,MAAM,OAAO,sCAAuC,YAAY,sBAMtE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Tooltip = void 0;
|
|
15
|
+
const antd_1 = require("antd");
|
|
16
|
+
const React = require("react");
|
|
17
|
+
const Tooltip = (_a) => {
|
|
18
|
+
var { children } = _a, restTooltipProps = __rest(_a, ["children"]);
|
|
19
|
+
return (React.createElement(antd_1.Tooltip, Object.assign({}, restTooltipProps), children));
|
|
20
|
+
};
|
|
21
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TooltipProps as AntTooltipProps } from 'antd';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TooltipProps = AntTooltipProps;
|
|
4
|
+
export declare const Tooltip: ({ children, ...restTooltipProps }: TooltipProps) => React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAE3C,eAAO,MAAM,OAAO,sCAAuC,YAAY,sBAMtE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { Tooltip as AntTooltip } from 'antd';
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
export const Tooltip = (_a) => {
|
|
15
|
+
var { children } = _a, restTooltipProps = __rest(_a, ["children"]);
|
|
16
|
+
return (React.createElement(AntTooltip, Object.assign({}, restTooltipProps), children));
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/ui-tooltip",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.js",
|
|
6
|
+
"main": "dist/esm/index.js",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
@@ -13,26 +13,33 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"clean-package": "2.2.0",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"copyfiles": "^2.4.1",
|
|
17
|
+
"rimraf": "^5.0.5",
|
|
18
|
+
"typescript": "^5.2.2",
|
|
19
|
+
"@akinon/vite-config": "0.2.0",
|
|
20
|
+
"@akinon/eslint-config": "0.1.0",
|
|
21
|
+
"@akinon/typescript-config": "0.0.0"
|
|
19
22
|
},
|
|
20
23
|
"peerDependencies": {
|
|
21
24
|
"react": ">=18",
|
|
22
25
|
"react-dom": ">=18"
|
|
23
26
|
},
|
|
24
27
|
"clean-package": "../../../clean-package.config.json",
|
|
25
|
-
"types": "dist/index.d.ts",
|
|
28
|
+
"types": "dist/esm/index.d.ts",
|
|
26
29
|
"exports": {
|
|
27
30
|
".": {
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
|
-
"import": "./dist/index.js",
|
|
30
|
-
"require": "./dist/index.
|
|
31
|
+
"types": "./dist/esm/index.d.ts",
|
|
32
|
+
"import": "./dist/esm/index.js",
|
|
33
|
+
"require": "./dist/cjs/index.js"
|
|
31
34
|
},
|
|
32
35
|
"./package.json": "./package.json"
|
|
33
36
|
},
|
|
34
37
|
"scripts": {
|
|
35
|
-
"build": "
|
|
38
|
+
"build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
|
|
39
|
+
"build:esm": "tsc --outDir dist/esm",
|
|
40
|
+
"build:commonjs": "tsc --module commonjs --outDir dist/cjs",
|
|
41
|
+
"copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs",
|
|
42
|
+
"clean": "rimraf dist/",
|
|
36
43
|
"lint": "eslint *.ts*",
|
|
37
44
|
"test": "vitest run",
|
|
38
45
|
"test:ui": "vitest --ui",
|
package/dist/index.cjs
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ms=require("react/jsx-runtime"),Z=require("react"),ei=require("react-dom");function _s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=_s(Z);function ks(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ti={exports:{}};/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var s=r.apply(null,a);s&&n.push(s)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var c in a)t.call(a,c)&&a[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ti);var Rs=ti.exports;const Ye=ks(Rs);function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(this,arguments)}var ro={exports:{}},X={};/**
|
|
6
|
-
* @license React
|
|
7
|
-
* react-is.production.min.js
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var ta;function As(){if(ta)return X;ta=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var S=v.$$typeof;switch(S){case e:switch(v=v.type,v){case r:case o:case n:case l:case d:return v;default:switch(v=v&&v.$$typeof,v){case s:case i:case c:case h:case f:case a:return v;default:return S}}case t:return S}}}return X.ContextConsumer=i,X.ContextProvider=a,X.Element=e,X.ForwardRef=c,X.Fragment=r,X.Lazy=h,X.Memo=f,X.Portal=t,X.Profiler=o,X.StrictMode=n,X.Suspense=l,X.SuspenseList=d,X.isAsyncMode=function(){return!1},X.isConcurrentMode=function(){return!1},X.isContextConsumer=function(v){return g(v)===i},X.isContextProvider=function(v){return g(v)===a},X.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},X.isForwardRef=function(v){return g(v)===c},X.isFragment=function(v){return g(v)===r},X.isLazy=function(v){return g(v)===h},X.isMemo=function(v){return g(v)===f},X.isPortal=function(v){return g(v)===t},X.isProfiler=function(v){return g(v)===o},X.isStrictMode=function(v){return g(v)===n},X.isSuspense=function(v){return g(v)===l},X.isSuspenseList=function(v){return g(v)===d},X.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===l||v===d||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===f||v.$$typeof===a||v.$$typeof===i||v.$$typeof===c||v.$$typeof===p||v.getModuleId!==void 0)},X.typeOf=g,X}var Y={};/**
|
|
14
|
-
* @license React
|
|
15
|
-
* react-is.development.js
|
|
16
|
-
*
|
|
17
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the MIT license found in the
|
|
20
|
-
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/var ra;function $s(){return ra||(ra=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"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),p=!1,g=!1,v=!1,S=!1,b=!1,C;C=Symbol.for("react.module.reference");function y(O){return!!(typeof O=="string"||typeof O=="function"||O===r||O===o||b||O===n||O===l||O===d||S||O===m||p||g||v||typeof O=="object"&&O!==null&&(O.$$typeof===h||O.$$typeof===f||O.$$typeof===a||O.$$typeof===i||O.$$typeof===c||O.$$typeof===C||O.getModuleId!==void 0))}function E(O){if(typeof O=="object"&&O!==null){var ae=O.$$typeof;switch(ae){case e:var fe=O.type;switch(fe){case r:case o:case n:case l:case d:return fe;default:var ye=fe&&fe.$$typeof;switch(ye){case s:case i:case c:case h:case f:case a:return ye;default:return ae}}case t:return ae}}}var x=i,w=a,k=e,z=c,T=r,$=h,R=f,A=t,N=o,M=n,j=l,_=d,W=!1,D=!1;function V(O){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function oe(O){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(O){return E(O)===i}function pe(O){return E(O)===a}function ue(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function re(O){return E(O)===c}function be(O){return E(O)===r}function se(O){return E(O)===h}function J(O){return E(O)===f}function he(O){return E(O)===t}function me(O){return E(O)===o}function ge(O){return E(O)===n}function Ae(O){return E(O)===l}function xe(O){return E(O)===d}Y.ContextConsumer=x,Y.ContextProvider=w,Y.Element=k,Y.ForwardRef=z,Y.Fragment=T,Y.Lazy=$,Y.Memo=R,Y.Portal=A,Y.Profiler=N,Y.StrictMode=M,Y.Suspense=j,Y.SuspenseList=_,Y.isAsyncMode=V,Y.isConcurrentMode=oe,Y.isContextConsumer=q,Y.isContextProvider=pe,Y.isElement=ue,Y.isForwardRef=re,Y.isFragment=be,Y.isLazy=se,Y.isMemo=J,Y.isPortal=he,Y.isProfiler=me,Y.isStrictMode=ge,Y.isSuspense=Ae,Y.isSuspenseList=xe,Y.isValidElementType=y,Y.typeOf=E}()),Y}process.env.NODE_ENV==="production"?ro.exports=As():ro.exports=$s();var ri=ro.exports;function no(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return Z.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(no(n)):ri.isFragment(n)&&n.props?r=r.concat(no(n.props.children,t)):r.push(n))}),r}var oo={},$o=[],Ns=function(t){$o.push(t)};function nr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=$o.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Is(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=$o.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function ni(){oo={}}function oi(e,t,r){!t&&!oo[r]&&(e(!1,r),oo[r]=!0)}function Ct(e,t){oi(nr,e,t)}function Ls(e,t){oi(Is,e,t)}Ct.preMessage=Ns;Ct.resetWarned=ni;Ct.noteOnce=Ls;function we(e){"@babel/helpers - typeof";return we=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},we(e)}function Ds(e,t){if(we(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(we(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ai(e){var t=Ds(e,"string");return we(t)==="symbol"?t:String(t)}function Q(e,t,r){return t=ai(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function na(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?na(Object(r),!0).forEach(function(n){Q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):na(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ln(e){return e instanceof HTMLElement||e instanceof SVGElement}function nn(e){return ln(e)?e:e instanceof Z.Component?ei.findDOMNode(e):null}function No(e,t,r){var n=u.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function Io(e,t){typeof e=="function"?e(t):we(e)==="object"&&e&&"current"in e&&(e.current=t)}function ii(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(o){return o});return n.length<=1?n[0]:function(o){t.forEach(function(a){Io(a,o)})}}function Lo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return No(function(){return ii.apply(void 0,t)},t,function(n,o){return n.length!==o.length||n.every(function(a,i){return a!==o[i]})})}function pn(e){var t,r,n=ri.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render))}var ao=u.createContext(null);function js(e){var t=e.children,r=e.onBatchResize,n=u.useRef(0),o=u.useRef([]),a=u.useContext(ao),i=u.useCallback(function(s,c,l){n.current+=1;var d=n.current;o.current.push({size:s,element:c,data:l}),Promise.resolve().then(function(){d===n.current&&(r==null||r(o.current),o.current=[])}),a==null||a(s,c,l)},[r,a]);return u.createElement(ao.Provider,{value:i},t)}var si=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,a){return o[0]===r?(n=a,!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),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,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 o=0,a=this.__entries__;o<a.length;o++){var i=a[o];r.call(n,i[1],i[0])}},t}()}(),io=typeof window<"u"&&typeof document<"u"&&window.document===document,un=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")()}(),zs=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(un):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Hs=2;function Bs(e,t){var r=!1,n=!1,o=0;function a(){r&&(r=!1,e()),n&&s()}function i(){zs(a)}function s(){var c=Date.now();if(r){if(c-o<Hs)return;n=!0}else r=!0,n=!1,setTimeout(i,t);o=c}return s}var Fs=20,Ws=["top","right","bottom","left","width","height","size","weight"],Vs=typeof MutationObserver<"u",Us=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Bs(this.refresh.bind(this),Fs)}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(){!io||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vs?(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(){!io||!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,o=Ws.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ci=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},or=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||un},li=bn(0,0,0,0);function fn(e){return parseFloat(e)||0}function oa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var a=e["border-"+o+"-width"];return n+fn(a)},0)}function qs(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var a=o[n],i=e["padding-"+a];r[a]=fn(i)}return r}function Gs(e){var t=e.getBBox();return bn(0,0,t.width,t.height)}function Ks(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return li;var n=or(e).getComputedStyle(e),o=qs(n),a=o.left+o.right,i=o.top+o.bottom,s=fn(n.width),c=fn(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=oa(n,"left","right")+a),Math.round(c+i)!==r&&(c-=oa(n,"top","bottom")+i)),!Ys(e)){var l=Math.round(s+a)-t,d=Math.round(c+i)-r;Math.abs(l)!==1&&(s-=l),Math.abs(d)!==1&&(c-=d)}return bn(o.left,o.top,s,c)}var Xs=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof or(e).SVGGraphicsElement}:function(e){return e instanceof or(e).SVGElement&&typeof e.getBBox=="function"}}();function Ys(e){return e===or(e).document.documentElement}function Qs(e){return io?Xs(e)?Gs(e):Ks(e):li}function Zs(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return ci(i,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),i}function bn(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Js=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=bn(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Qs(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}(),ec=function(){function e(t,r){var n=Zs(r);ci(this,{target:t,contentRect:n})}return e}(),tc=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new si,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 or(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Js(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 or(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 ec(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}(),ui=typeof WeakMap<"u"?new WeakMap:new si,fi=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=Us.getInstance(),n=new tc(t,r,this);ui.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){fi.prototype[e]=function(){var t;return(t=ui.get(this))[e].apply(t,arguments)}});var rc=function(){return typeof un.ResizeObserver<"u"?un.ResizeObserver:fi}(),ht=new Map;function di(e){e.forEach(function(t){var r,n=t.target;(r=ht.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var vi=new rc(di);process.env.NODE_ENV;process.env.NODE_ENV;function nc(e,t){ht.has(e)||(ht.set(e,new Set),vi.observe(e)),ht.get(e).add(t)}function oc(e,t){ht.has(e)&&(ht.get(e).delete(t),ht.get(e).size||(vi.unobserve(e),ht.delete(e)))}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aa(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,ai(n.key),n)}}function jt(e,t,r){return t&&aa(e.prototype,t),r&&aa(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function so(e,t){return so=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},so(e,t)}function Do(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&&so(e,t)}function dn(e){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dn(e)}function ac(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function co(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ic(e,t){if(t&&(we(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return co(e)}function jo(e){var t=ac();return function(){var n=dn(e),o;if(t){var a=dn(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return ic(this,o)}}var sc=function(e){Do(r,e);var t=jo(r);function r(){return Dt(this,r),t.apply(this,arguments)}return jt(r,[{key:"render",value:function(){return this.props.children}}]),r}(u.Component);function cc(e,t){var r=e.children,n=e.disabled,o=u.useRef(null),a=u.useRef(null),i=u.useContext(ao),s=typeof r=="function",c=s?r(o):r,l=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&u.isValidElement(c)&&pn(c),f=d?c.ref:null,h=Lo(f,o),m=function(){var S;return nn(o.current)||(o.current&&we(o.current)==="object"?nn((S=o.current)===null||S===void 0?void 0:S.nativeElement):null)||nn(a.current)};u.useImperativeHandle(t,function(){return m()});var p=u.useRef(e);p.current=e;var g=u.useCallback(function(v){var S=p.current,b=S.onResize,C=S.data,y=v.getBoundingClientRect(),E=y.width,x=y.height,w=v.offsetWidth,k=v.offsetHeight,z=Math.floor(E),T=Math.floor(x);if(l.current.width!==z||l.current.height!==T||l.current.offsetWidth!==w||l.current.offsetHeight!==k){var $={width:z,height:T,offsetWidth:w,offsetHeight:k};l.current=$;var R=w===Math.round(E)?E:w,A=k===Math.round(x)?x:k,N=L(L({},$),{},{offsetWidth:R,offsetHeight:A});i==null||i(N,v,C),b&&Promise.resolve().then(function(){b(N,v)})}},[]);return u.useEffect(function(){var v=m();return v&&!n&&nc(v,g),function(){return oc(v,g)}},[o.current,n]),u.createElement(sc,{ref:a},d?u.cloneElement(c,{ref:h}):c)}var hi=u.forwardRef(cc);process.env.NODE_ENV!=="production"&&(hi.displayName="SingleObserver");var lc="rc-observer-key";function uc(e,t){var r=e.children,n=typeof r=="function"?[r]:no(r);return process.env.NODE_ENV!=="production"&&(n.length>1?nr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&nr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(lc,"-").concat(a);return u.createElement(hi,wt({},e,{key:i,ref:a===0?t:void 0}),o)})}var yn=u.forwardRef(uc);process.env.NODE_ENV!=="production"&&(yn.displayName="ResizeObserver");yn.Collection=js;function lo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fc(e){if(Array.isArray(e))return lo(e)}function mi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zo(e,t){if(e){if(typeof e=="string")return lo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lo(e,t)}}function dc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(e){return fc(e)||mi(e)||zo(e)||dc()}var gi=function(t){return+setTimeout(t,16)},pi=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(gi=function(t){return window.requestAnimationFrame(t)},pi=function(t){return window.cancelAnimationFrame(t)});var ia=0,Ho=new Map;function bi(e){Ho.delete(e)}var Sr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ia+=1;var n=ia;function o(a){if(a===0)bi(n),t();else{var i=gi(function(){o(a-1)});Ho.set(n,i)}}return o(r),n};Sr.cancel=function(e){var t=Ho.get(e);return bi(t),pi(t)};function Bo(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 vc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function wr(e,t){if(e==null)return{};var r=vc(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(a);if(Ct(!c,"Warning: There may be circular references"),c)return!1;if(a===i)return!0;if(r&&s>1)return!1;n.add(a);var l=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],l))return!1;return!0}if(a&&i&&we(a)==="object"&&we(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(h){return o(a[h],i[h],l)})}return!1}return o(e,t)}var sa="%",mc=function(){function e(t){Dt(this,e),Q(this,"instanceId",void 0),Q(this,"cache",new Map),this.instanceId=t}return jt(e,[{key:"get",value:function(r){return this.cache.get(r.join(sa))||null}},{key:"update",value:function(r,n){var o=r.join(sa),a=this.cache.get(o),i=n(a);i===null?this.cache.delete(o):this.cache.set(o,i)}}]),e}(),uo="data-token-hash",Nt="data-css-hash",gc="data-cache-path",Jt="__cssinjs_instance__";function pc(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Nt,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[Jt]=o[Jt]||e,o[Jt]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Nt,"]"))).forEach(function(o){var a=o.getAttribute(Nt);if(n[a]){if(o[Jt]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else n[a]=!0})}return new mc(e)}var bc=u.createContext({hashPriority:"low",cache:pc(),defaultCache:!0});const Fo=bc;function Re(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function yc(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 ca="data-rc-order",la="data-rc-priority",Sc="rc-util-key",fo=new Map;function yi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Sc}function Sn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wc(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Si(e){return Array.from((fo.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Re())return null;var r=t.csp,n=t.prepend,o=t.priority,a=o===void 0?0:o,i=wc(n),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(ca,i),s&&a&&c.setAttribute(la,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var l=Sn(t),d=l.firstChild;if(n){if(s){var f=Si(l).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(ca)))return!1;var m=Number(h.getAttribute(la)||0);return a>=m});if(f.length)return l.insertBefore(c,f[f.length-1].nextSibling),c}l.insertBefore(c,d)}else l.appendChild(c);return c}function Ci(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Sn(t);return Si(r).find(function(n){return n.getAttribute(yi(t))===e})}function vn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ci(e,t);if(r){var n=Sn(t);n.removeChild(r)}}function Cc(e,t){var r=fo.get(e);if(!r||!yc(document,r)){var n=wi("",t),o=n.parentNode;fo.set(e,o),e.removeChild(n)}}function Cr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Sn(r);Cc(n,r);var o=Ci(t,r);if(o){var a,i;if((a=r.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=r.csp)===null||i===void 0?void 0:i.nonce)){var s;o.nonce=(s=r.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=wi(e,r);return c.setAttribute(yi(r),t),c}function Ei(e){if(Array.isArray(e))return e}function Ec(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(d){l=!0,o=d}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function xi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(e,t){return Ei(e)||Ec(e,t)||zo(e,t)||xi()}function xc(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 Wo=function(){function e(){Dt(this,e),Q(this,"cache",void 0),Q(this,"keys",void 0),Q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return jt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,a=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 c,l;i=(c=i)===null||c===void 0||(l=c.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.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 o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(l,d){var f=I(l,2),h=f[1];return o.internalGet(d)[1]<h?[d,o.internalGet(d)[1]]:l},[this.keys[0],this.cacheCallTimes]),i=I(a,1),s=i[0];this.delete(s)}this.keys.push(r)}var c=this.cache;r.forEach(function(l,d){if(d===r.length-1)c.set(l,{value:[n,o.cacheCallTimes++]});else{var f=c.get(l);f?f.map||(f.map=new Map):c.set(l,{map:new Map}),c=c.get(l).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var a;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!xc(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();Q(Wo,"MAX_CACHE_SIZE",20);Q(Wo,"MAX_CACHE_OFFSET",5);var ua=0,Oi=function(){function e(t){Dt(this,e),Q(this,"derivatives",void 0),Q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ua,t.length===0&&nr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ua+=1}return jt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}(),Hn=new Wo;function vo(e){var t=Array.isArray(e)?e:[e];return Hn.has(t)||Hn.set(t,new Oi(t)),Hn.get(t)}var Oc=new WeakMap,Bn={};function Tc(e,t){for(var r=Oc,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Bn)||r.set(Bn,e()),r.get(Bn)}var fa=new WeakMap;function hn(e){var t=fa.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Oi?t+=n.id:n&&we(n)==="object"?t+=hn(n):t+=n}),fa.set(e,t)),t}function Pc(e,t){return Bo("".concat(t,"_").concat(hn(e)))}var yr="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Ti="_bAmBoO_";function Mc(e,t,r){if(Re()){var n,o;Cr(e,yr);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a),process.env.NODE_ENV!=="production"&&(a.innerHTML="Test",a.style.zIndex="9999999");var i=r?r(a):(n=getComputedStyle(a).content)===null||n===void 0?void 0:n.includes(Ti);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),vn(yr),i}return!1}var Fn=void 0;function _c(){return Fn===void 0&&(Fn=Mc("@layer ".concat(yr," { .").concat(yr,' { content: "').concat(Ti,'"!important; } }'),function(e){e.className=yr})),Fn}var da=process.env.NODE_ENV!=="test"&&Re()?u.useLayoutEffect:u.useEffect,ke=function(t,r){var n=u.useRef(!0);da(function(){return t(n.current)},r),da(function(){return n.current=!1,function(){n.current=!0}},[])},va=function(t,r){ke(function(n){if(!n)return t()},r)},kc=L({},u),ha=kc.useInsertionEffect,Rc=function(t,r,n){u.useMemo(t,n),ke(function(){return r(!0)},n)},Ac=ha?function(e,t,r){return ha(function(){return e(),t()},r)}:Rc;const $c=Ac;var Nc=L({},u),Ic=Nc.useInsertionEffect,Lc=function(t){var r=[],n=!1;function o(a){if(n){process.env.NODE_ENV!=="production"&&nr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(a)}return u.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},t),o},Dc=function(){return function(t){t()}},jc=typeof Ic<"u"?Lc:Dc;const zc=jc;function Hc(){return!1}var ho=!1;function Bc(){return ho}const Fc=process.env.NODE_ENV==="production"?Hc:Bc;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Wn=window;if(typeof Wn.webpackHotUpdate=="function"){var Wc=Wn.webpackHotUpdate;Wn.webpackHotUpdate=function(){return ho=!0,setTimeout(function(){ho=!1},0),Wc.apply(void 0,arguments)}}}function Pi(e,t,r,n,o){var a=u.useContext(Fo),i=a.cache,s=[e].concat(qe(t)),c=s.join("_"),l=zc([c]),d=Fc(),f=function(g){i.update(s,function(v){var S=v||[],b=I(S,2),C=b[0],y=C===void 0?0:C,E=b[1],x=E;process.env.NODE_ENV!=="production"&&E&&d&&(n==null||n(x,d),x=null);var w=x||r(),k=[y,w];return g?g(k):k})};u.useMemo(function(){f()},[c]);var h=i.get(s);process.env.NODE_ENV!=="production"&&!h&&(f(),h=i.get(s));var m=h[1];return $c(function(){o==null||o(m)},function(p){return f(function(g){var v=I(g,2),S=v[0],b=v[1];return p&&S===0&&(o==null||o(m)),[S+1,b]}),function(){i.update(s,function(g){var v=g||[],S=I(v,2),b=S[0],C=b===void 0?0:b,y=S[1],E=C-1;return E===0?(l(function(){return n==null?void 0:n(y,!1)}),null):[C-1,y]})}},[c]),m}var Vc={},Uc=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",At=new Map;function qc(e){At.set(e,(At.get(e)||0)+1)}function Gc(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(uo,'="').concat(e,'"]'));r.forEach(function(n){if(n[Jt]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var Kc=0;function Xc(e,t){At.set(e,(At.get(e)||0)-1);var r=Array.from(At.keys()),n=r.filter(function(o){var a=At.get(o)||0;return a<=0});r.length-n.length>Kc&&n.forEach(function(o){Gc(o,t),At.delete(o)})}var Yc=function(t,r,n,o){var a=n.getDerivativeToken(t),i=L(L({},a),r);return o&&(i=o(i)),i};function Qc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Z.useContext(Fo),o=n.cache.instanceId,a=r.salt,i=a===void 0?"":a,s=r.override,c=s===void 0?Vc:s,l=r.formatToken,d=r.getComputedToken,f=Tc(function(){return Object.assign.apply(Object,[{}].concat(qe(t)))},t),h=hn(f),m=hn(c),p=Pi("token",[i,e.id,h,m],function(){var g=d?d(f,c,e):Yc(f,c,e,l),v=Pc(g,i);g._tokenKey=v,qc(v);var S="".concat(Uc,"-").concat(Bo(v));return g._hashId=S,[g,S]},function(g){Xc(g[0]._tokenKey,o)});return p}var Zc={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},Mi="comm",_i="rule",ki="decl",Jc="@import",el="@keyframes",tl="@layer",rl=Math.abs,Vo=String.fromCharCode;function Ri(e){return e.trim()}function on(e,t,r){return e.replace(t,r)}function nl(e,t){return e.indexOf(t)}function Er(e,t){return e.charCodeAt(t)|0}function xr(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function ol(e){return e.length}function qr(e,t){return t.push(e),e}var wn=1,ar=1,Ai=0,Qe=0,Se=0,sr="";function Uo(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:wn,column:ar,length:i,return:"",siblings:s}}function al(){return Se}function il(){return Se=Qe>0?Er(sr,--Qe):0,ar--,Se===10&&(ar=1,wn--),Se}function nt(){return Se=Qe<Ai?Er(sr,Qe++):0,ar++,Se===10&&(ar=1,wn++),Se}function It(){return Er(sr,Qe)}function an(){return Qe}function Cn(e,t){return xr(sr,e,t)}function mo(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 sl(e){return wn=ar=1,Ai=dt(sr=e),Qe=0,[]}function cl(e){return sr="",e}function Vn(e){return Ri(Cn(Qe-1,go(e===91?e+2:e===40?e+1:e)))}function ll(e){for(;(Se=It())&&Se<33;)nt();return mo(e)>2||mo(Se)>3?"":" "}function ul(e,t){for(;--t&&nt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Cn(e,an()+(t<6&&It()==32&&nt()==32))}function go(e){for(;nt();)switch(Se){case e:return Qe;case 34:case 39:e!==34&&e!==39&&go(Se);break;case 40:e===41&&go(e);break;case 92:nt();break}return Qe}function fl(e,t){for(;nt()&&e+Se!==47+10;)if(e+Se===42+42&&It()===47)break;return"/*"+Cn(t,Qe-1)+"*"+Vo(e===47?e:nt())}function dl(e){for(;!mo(It());)nt();return Cn(e,Qe)}function vl(e){return cl(sn("",null,null,null,[""],e=sl(e),0,[0],e))}function sn(e,t,r,n,o,a,i,s,c){for(var l=0,d=0,f=i,h=0,m=0,p=0,g=1,v=1,S=1,b=0,C="",y=o,E=a,x=n,w=C;v;)switch(p=b,b=nt()){case 40:if(p!=108&&Er(w,f-1)==58){nl(w+=on(Vn(b),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:w+=Vn(b);break;case 9:case 10:case 13:case 32:w+=ll(p);break;case 92:w+=ul(an()-1,7);continue;case 47:switch(It()){case 42:case 47:qr(hl(fl(nt(),an()),t,r,c),c);break;default:w+="/"}break;case 123*g:s[l++]=dt(w)*S;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+d:S==-1&&(w=on(w,/\f/g,"")),m>0&&dt(w)-f&&qr(m>32?ga(w+";",n,r,f-1,c):ga(on(w," ","")+";",n,r,f-2,c),c);break;case 59:w+=";";default:if(qr(x=ma(w,t,r,l,d,o,s,C,y=[],E=[],f,a),a),b===123)if(d===0)sn(w,t,x,x,y,a,f,s,E);else switch(h===99&&Er(w,3)===110?100:h){case 100:case 108:case 109:case 115:sn(e,x,x,n&&qr(ma(e,x,x,0,0,o,s,C,o,y=[],f,E),E),o,E,f,s,n?y:E);break;default:sn(w,x,x,x,[""],E,0,s,E)}}l=d=m=0,g=S=1,C=w="",f=i;break;case 58:f=1+dt(w),m=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&il()==125)continue}switch(w+=Vo(b),b*g){case 38:S=d>0?1:(w+="\f",-1);break;case 44:s[l++]=(dt(w)-1)*S,S=1;break;case 64:It()===45&&(w+=Vn(nt())),h=It(),d=f=dt(C=w+=dl(an())),b++;break;case 45:p===45&&dt(w)==2&&(g=0)}}return a}function ma(e,t,r,n,o,a,i,s,c,l,d,f){for(var h=o-1,m=o===0?a:[""],p=ol(m),g=0,v=0,S=0;g<n;++g)for(var b=0,C=xr(e,h+1,h=rl(v=i[g])),y=e;b<p;++b)(y=Ri(v>0?m[b]+" "+C:on(C,/&\f/g,m[b])))&&(c[S++]=y);return Uo(e,t,r,o===0?_i:s,c,l,d,f)}function hl(e,t,r,n){return Uo(e,t,r,Mi,Vo(al()),xr(e,2,-2),0,n)}function ga(e,t,r,n,o){return Uo(e,t,r,ki,xr(e,0,n),xr(e,n+1,-1),n,o)}function po(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ml(e,t,r,n){switch(e.type){case tl:if(e.children.length)break;case Jc:case ki:return e.return=e.return||e.value;case Mi:return"";case el:return e.return=e.value+"{"+po(e.children,n)+"}";case _i:if(!dt(e.value=e.props.join(",")))return""}return dt(r=po(e.children,n))?e.return=e.value+"{"+r+"}":""}function $i(e,t){var r=t.path,n=t.parentSelectors;Ct(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var gl=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof r!="string"||a.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&$i("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},pl=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&$i("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},pa="data-ant-cssinjs-cache-path",Ni="_FILE_STYLE__",Lt,Ii=!0;function bl(){if(!Lt&&(Lt={},Re())){var e=document.createElement("div");e.className=pa,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(o){var a=o.split(":"),i=I(a,2),s=i[0],c=i[1];Lt[s]=c});var r=document.querySelector("style[".concat(pa,"]"));if(r){var n;Ii=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function yl(e){return bl(),!!Lt[e]}function Sl(e){var t=Lt[e],r=null;if(t&&Re())if(Ii)r=Ni;else{var n=document.querySelector("style[".concat(Nt,'="').concat(Lt[e],'"]'));n?r=n.innerHTML:delete Lt[e]}return[r,t]}var ba=Re(),Li="_skip_check_",Di="_multi_value_";function ya(e){var t=po(vl(e),ml);return t.replace(/\{%%%\:[^;];}/g,";")}function wl(e){return we(e)==="object"&&e&&(Li in e||Di in e)}function Cl(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(i){var s,c=i.trim().split(/\s+/),l=c[0]||"",d=((s=l.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return l="".concat(d).concat(o).concat(l.slice(d.length)),[l].concat(qe(c.slice(1))).join(" ")});return a.join(",")}var El=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:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,s=r.hashId,c=r.layer,l=r.path,d=r.hashPriority,f=r.transformers,h=f===void 0?[]:f,m=r.linters,p=m===void 0?[]:m,g="",v={};function S(x){var w=x.getName(s);if(!v[w]){var k=e(x.style,r,{root:!1,parentSelectors:i}),z=I(k,1),T=z[0];v[w]="@keyframes ".concat(x.getName(s)).concat(T)}}function b(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(k){Array.isArray(k)?b(k,w):k&&w.push(k)}),w}var C=b(Array.isArray(t)?t:[t]);if(C.forEach(function(x){var w=typeof x=="string"&&!o?{}:x;if(typeof w=="string")g+="".concat(w,`
|
|
24
|
-
`);else if(w._keyframe)S(w);else{var k=h.reduce(function(z,T){var $;return(T==null||($=T.visit)===null||$===void 0?void 0:$.call(T,z))||z},w);Object.keys(k).forEach(function(z){var T=k[z];if(we(T)==="object"&&T&&(z!=="animationName"||!T._keyframe)&&!wl(T)){var $=!1,R=z.trim(),A=!1;(o||a)&&s?R.startsWith("@")?$=!0:R=Cl(z,s,d):o&&!s&&(R==="&"||R==="")&&(R="",A=!0);var N=e(T,r,{root:A,injectHash:$,parentSelectors:[].concat(qe(i),[R])}),M=I(N,2),j=M[0],_=M[1];v=L(L({},v),_),g+="".concat(R).concat(j)}else{let V=function(oe,q){process.env.NODE_ENV!=="production"&&(we(T)!=="object"||!(T!=null&&T[Li]))&&[gl,pl].concat(qe(p)).forEach(function(re){return re(oe,q,{path:l,hashId:s,parentSelectors:i})});var pe=oe.replace(/[A-Z]/g,function(re){return"-".concat(re.toLowerCase())}),ue=q;!Zc[oe]&&typeof ue=="number"&&ue!==0&&(ue="".concat(ue,"px")),oe==="animationName"&&q!==null&&q!==void 0&&q._keyframe&&(S(q),ue=q.getName(s)),g+="".concat(pe,":").concat(ue,";")};var W,D=(W=T==null?void 0:T.value)!==null&&W!==void 0?W:T;we(T)==="object"&&T!==null&&T!==void 0&&T[Di]&&Array.isArray(D)?D.forEach(function(oe){V(z,oe)}):V(z,D)}})}}),!o)g="{".concat(g,"}");else if(c&&_c()){var y=c.split(","),E=y[y.length-1].trim();g="@layer ".concat(E," {").concat(g,"}"),y.length>1&&(g="@layer ".concat(c,"{%%%:%}").concat(g))}return[g,v]};function xl(e,t){return Bo("".concat(e.join("%")).concat(t))}function Ol(){return null}function bo(e,t){var r=e.token,n=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,l=c===void 0?0:c,d=u.useContext(Fo),f=d.autoClear,h=d.mock,m=d.defaultCache,p=d.hashPriority,g=d.container,v=d.ssrInline,S=d.transformers,b=d.linters,C=d.cache,y=r._tokenKey,E=[y].concat(qe(n)),x=ba;process.env.NODE_ENV!=="production"&&h!==void 0&&(x=h==="client");var w=Pi("style",E,function(){var R=E.join("|");if(yl(R)){var A=Sl(R),N=I(A,2),M=N[0],j=N[1];if(M)return[M,y,j,{},s,l]}var _=t(),W=El(_,{hashId:o,hashPriority:p,layer:a,path:n.join("-"),transformers:S,linters:b}),D=I(W,2),V=D[0],oe=D[1],q=ya(V),pe=xl(E,q);return[q,y,pe,oe,s,l]},function(R,A){var N=I(R,3),M=N[2];(A||f)&&ba&&vn(M,{mark:Nt})},function(R){var A=I(R,4),N=A[0];A[1];var M=A[2],j=A[3];if(x&&N!==Ni){var _={mark:Nt,prepend:"queue",attachTo:g,priority:l},W=typeof i=="function"?i():i;W&&(_.csp={nonce:W});var D=Cr(N,M,_);D[Jt]=C.instanceId,D.setAttribute(uo,y),process.env.NODE_ENV!=="production"&&D.setAttribute(gc,E.join("|")),Object.keys(j).forEach(function(V){Cr(ya(j[V]),"_effect-".concat(V),_)})}}),k=I(w,3),z=k[0],T=k[1],$=k[2];return function(R){var A;if(!v||x||!m)A=u.createElement(Ol,null);else{var N;A=u.createElement("style",wt({},(N={},Q(N,uo,T),Q(N,Nt,$),N),{dangerouslySetInnerHTML:{__html:z}}))}return u.createElement(u.Fragment,null,A,R)}}var Ze=function(){function e(t,r){Dt(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=r}return jt(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 Kt(e){return e.notSplit=!0,e}Kt(["borderTop","borderBottom"]),Kt(["borderTop"]),Kt(["borderBottom"]),Kt(["borderLeft","borderRight"]),Kt(["borderLeft"]),Kt(["borderRight"]);var Tl=Z.createContext({});const Pl=Tl;function Ml(e){return Ei(e)||mi(e)||zo(e)||xi()}function yo(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function ji(e,t,r,n){if(!t.length)return r;var o=Ml(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=qe(e):s=L({},e),n&&r===void 0&&i.length===1?delete s[a][i[0]]:s[a]=ji(s[a],i,r,n),s}function Un(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!yo(e,t.slice(0,-1))?e:ji(e,t,r,n)}function _l(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Sa(e){return Array.isArray(e)?[]:{}}var kl=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Rl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Sa(t[0]);return t.forEach(function(o){function a(i,s){var c=new Set(s),l=yo(o,i),d=Array.isArray(l);if(d||_l(l)){if(!c.has(l)){c.add(l);var f=yo(n,i);d?n=Un(n,i,[]):(!f||we(f)!=="object")&&(n=Un(n,i,Sa(l))),kl(l).forEach(function(h){a([].concat(qe(i),[h]),c)})}}else n=Un(n,i,l)}a([])}),n}function zi(){}let ft=null;function Al(){ft=null,ni()}let qo=zi;process.env.NODE_ENV!=="production"&&(qo=(e,t,r)=>{Ct(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Al()});const Hi=u.createContext({}),Go=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=u.useContext(Hi),r=(n,o,a)=>{if(!n)if(t===!1&&o==="deprecated"){const i=ft;ft||(ft={}),ft[e]=ft[e]||[],ft[e].includes(a||"")||ft[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",ft)}else process.env.NODE_ENV!=="production"&&qo(n,e,a)};return r.deprecated=(n,o,a,i)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=zi,e},En=qo,$l=Z.createContext(void 0),Nl={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Il={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Ll={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Bi=Ll,Dl={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"]},Il),timePickerLocale:Object.assign({},Bi)},wa=Dl,We="${label} is not a valid ${type}",jl={locale:"en",Pagination:Nl,DatePicker:wa,TimePicker:Bi,Calendar:wa,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:We,method:We,array:We,object:We,number:We,date:We,boolean:We,integer:We,float:We,regexp:We,email:We,url:We,hex:We},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"},ColorPicker:{presetEmpty:"Empty"}},xn=jl;Object.assign({},xn.Modal);let cn=[];const Ca=()=>cn.reduce((e,t)=>Object.assign(Object.assign({},e),t),xn.Modal);function zl(e){if(e){const t=Object.assign({},e);return cn.push(t),Ca(),()=>{cn=cn.filter(r=>r!==t),Ca()}}Object.assign({},xn.Modal)}const Hl=Z.createContext(void 0),Fi=Hl,Wi="internalMark",Vi=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const a=Go("LocaleProvider");process.env.NODE_ENV!=="production"&&a(n===Wi,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}u.useEffect(()=>zl(t&&t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Fi.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Vi.displayName="LocaleProvider");const Bl=Vi;function Me(e,t){Fl(e)&&(e="100%");var r=Wl(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 Gr(e){return Math.min(1,Math.max(0,e))}function Fl(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Wl(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ui(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Kr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function $t(e){return e.length===1?"0"+e:String(e)}function Vl(e,t,r){return{r:Me(e,255)*255,g:Me(t,255)*255,b:Me(r,255)*255}}function Ea(e,t,r){e=Me(e,255),t=Me(t,255),r=Me(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a=0,i=0,s=(n+o)/2;if(n===o)i=0,a=0;else{var c=n-o;switch(i=s>.5?c/(2-n-o):c/(n+o),n){case e:a=(t-r)/c+(t<r?6:0);break;case t:a=(r-e)/c+2;break;case r:a=(e-t)/c+4;break}a/=6}return{h:a,s:i,l:s}}function qn(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 Ul(e,t,r){var n,o,a;if(e=Me(e,360),t=Me(t,100),r=Me(r,100),t===0)o=r,a=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=qn(s,i,e+1/3),o=qn(s,i,e),a=qn(s,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function So(e,t,r){e=Me(e,255),t=Me(t,255),r=Me(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a=0,i=n,s=n-o,c=n===0?0:s/n;if(n===o)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:c,v:i}}function ql(e,t,r){e=Me(e,360)*6,t=Me(t,100),r=Me(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),i=r*(1-o*t),s=r*(1-(1-o)*t),c=n%6,l=[r,i,a,a,s,r][c],d=[s,r,r,i,a,a][c],f=[a,a,s,r,r,i][c];return{r:l*255,g:d*255,b:f*255}}function wo(e,t,r,n){var o=[$t(Math.round(e).toString(16)),$t(Math.round(t).toString(16)),$t(Math.round(r).toString(16))];return n&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Gl(e,t,r,n,o){var a=[$t(Math.round(e).toString(16)),$t(Math.round(t).toString(16)),$t(Math.round(r).toString(16)),$t(Kl(n))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Kl(e){return Math.round(parseFloat(e)*255).toString(16)}function xa(e){return Ve(e)/255}function Ve(e){return parseInt(e,16)}function Xl(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Co={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 Zt(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=Zl(e)),typeof e=="object"&&(lt(e.r)&<(e.g)&<(e.b)?(t=Vl(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):lt(e.h)&<(e.s)&<(e.v)?(n=Kr(e.s),o=Kr(e.v),t=ql(e.h,n,o),i=!0,s="hsv"):lt(e.h)&<(e.s)&<(e.l)&&(n=Kr(e.s),a=Kr(e.l),t=Ul(e.h,n,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Ui(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 Yl="[-\\+]?\\d+%?",Ql="[-\\+]?\\d*\\.\\d+%?",St="(?:".concat(Ql,")|(?:").concat(Yl,")"),Gn="[\\s|\\(]+(".concat(St,")[,|\\s]+(").concat(St,")[,|\\s]+(").concat(St,")\\s*\\)?"),Kn="[\\s|\\(]+(".concat(St,")[,|\\s]+(").concat(St,")[,|\\s]+(").concat(St,")[,|\\s]+(").concat(St,")\\s*\\)?"),tt={CSS_UNIT:new RegExp(St),rgb:new RegExp("rgb"+Gn),rgba:new RegExp("rgba"+Kn),hsl:new RegExp("hsl"+Gn),hsla:new RegExp("hsla"+Kn),hsv:new RegExp("hsv"+Gn),hsva:new RegExp("hsva"+Kn),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 Zl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Co[e])e=Co[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=tt.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=tt.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=tt.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=tt.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=tt.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=tt.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=tt.hex8.exec(e),r?{r:Ve(r[1]),g:Ve(r[2]),b:Ve(r[3]),a:xa(r[4]),format:t?"name":"hex8"}:(r=tt.hex6.exec(e),r?{r:Ve(r[1]),g:Ve(r[2]),b:Ve(r[3]),format:t?"name":"hex"}:(r=tt.hex4.exec(e),r?{r:Ve(r[1]+r[1]),g:Ve(r[2]+r[2]),b:Ve(r[3]+r[3]),a:xa(r[4]+r[4]),format:t?"name":"hex8"}:(r=tt.hex3.exec(e),r?{r:Ve(r[1]+r[1]),g:Ve(r[2]+r[2]),b:Ve(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function lt(e){return!!tt.CSS_UNIT.exec(String(e))}var Ue=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=Xl(t)),this.originalInput=t;var o=Zt(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:o.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=o.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,o,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Ui(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=So(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=So(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Ea(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=Ea(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),wo(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),Gl(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(Me(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(Me(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="#"+wo(this.r,this.g,this.b,!1),r=0,n=Object.entries(Co);r<n.length;r++){var o=n[r],a=o[0],i=o[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,o=this.a<1&&this.a>=0,a=!r&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Gr(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=Gr(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=Gr(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=Gr(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(),o=new e(t).toRgb(),a=r/100,i={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+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(),o=360/r,a=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,a=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:o,v:a})),a=(a+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(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(n+i*a)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Xr=2,Oa=.16,Jl=.05,eu=.05,tu=.15,qi=5,Gi=4,ru=[{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 Ta(e){var t=e.r,r=e.g,n=e.b,o=So(t,r,n);return{h:o.h*360,s:o.s,v:o.v}}function Yr(e){var t=e.r,r=e.g,n=e.b;return"#".concat(wo(t,r,n,!1))}function nu(e,t,r){var n=r/100,o={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 o}function Pa(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Xr*t:Math.round(e.h)+Xr*t:n=r?Math.round(e.h)+Xr*t:Math.round(e.h)-Xr*t,n<0?n+=360:n>=360&&(n-=360),n}function Ma(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Oa*t:t===Gi?n=e.s+Oa:n=e.s+Jl*t,n>1&&(n=1),r&&t===qi&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function _a(e,t,r){var n;return r?n=e.v+eu*t:n=e.v-tu*t,n>1&&(n=1),Number(n.toFixed(2))}function ir(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Zt(e),o=qi;o>0;o-=1){var a=Ta(n),i=Yr(Zt({h:Pa(a,o,!0),s:Ma(a,o,!0),v:_a(a,o,!0)}));r.push(i)}r.push(Yr(n));for(var s=1;s<=Gi;s+=1){var c=Ta(n),l=Yr(Zt({h:Pa(c,s),s:Ma(c,s),v:_a(c,s)}));r.push(l)}return t.theme==="dark"?ru.map(function(d){var f=d.index,h=d.opacity,m=Yr(nu(Zt(t.backgroundColor||"#141414"),Zt(r[f]),h*100));return m}):r}var Xn={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"},Yn={},Qn={};Object.keys(Xn).forEach(function(e){Yn[e]=ir(Xn[e]),Yn[e].primary=Yn[e][5],Qn[e]=ir(Xn[e],{theme:"dark",backgroundColor:"#141414"}),Qn[e].primary=Qn[e][5]});const ou=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},au=ou;function iu(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 Ki={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"},su=Object.assign(Object.assign({},Ki),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
25
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
26
|
-
'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}),Or=su;function cu(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:d}=e,f=r(c),h=r(o),m=r(a),p=r(i),g=r(s),v=n(l,d),S=e.colorLink||e.colorInfo,b=r(S);return Object.assign(Object.assign({},v),{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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Ue("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const lu=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},uu=lu;function fu(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=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:o+1},uu(n))}const ut=(e,t)=>new Ue(e).setAlpha(t).toRgbString(),pr=(e,t)=>new Ue(e).darken(t).toHexString(),du=e=>{const t=ir(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]}},vu=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:ut(n,.88),colorTextSecondary:ut(n,.65),colorTextTertiary:ut(n,.45),colorTextQuaternary:ut(n,.25),colorFill:ut(n,.15),colorFillSecondary:ut(n,.06),colorFillTertiary:ut(n,.04),colorFillQuaternary:ut(n,.02),colorBgLayout:pr(r,4),colorBgContainer:pr(r,0),colorBgElevated:pr(r,0),colorBgSpotlight:ut(n,.85),colorBgBlur:"transparent",colorBorder:pr(r,15),colorBorderSecondary:pr(r,6)}};function hu(e){const t=new Array(10).fill(null).map((r,n)=>{const o=n-1,a=e*Math.pow(2.71828,o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const mu=e=>{const t=hu(e),r=t.map(o=>o.size),n=t.map(o=>o.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},gu=mu;function pu(e){const t=Object.keys(Ki).map(r=>{const n=ir(e[r]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).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),cu(e,{generateColorPalettes:du,generateNeutralColorPalettes:vu})),gu(e.fontSize)),iu(e)),au(e)),fu(e))}const Xi=vo(pu),Yi={token:Or,override:{override:Or},hashed:!0},Qi=Z.createContext(Yi),Zi="anticon",bu=(e,t)=>t||(e?`ant-${e}`:"ant"),cr=u.createContext({getPrefixCls:bu,iconPrefixCls:Zi}),yu=`-ant-${Date.now()}-${Math.random()}`;function Su(e,t){const r={},n=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(i,s)=>{const c=new Ue(i),l=ir(c.toRgbString());r[`${s}-color`]=n(c),r[`${s}-color-disabled`]=l[1],r[`${s}-color-hover`]=l[4],r[`${s}-color-active`]=l[6],r[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=l[0],r[`${s}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Ue(t.primaryColor),s=ir(i.toRgbString());s.forEach((l,d)=>{r[`primary-${d+1}`]=l}),r["primary-color-deprecated-l-35"]=n(i,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(i,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(i,l=>l.setAlpha(l.getAlpha()*.12));const c=new Ue(s[0]);r["primary-color-active-deprecated-f-30"]=n(c,l=>l.setAlpha(l.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,l=>l.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
27
|
-
:root {
|
|
28
|
-
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
29
|
-
`)}
|
|
30
|
-
}
|
|
31
|
-
`.trim()}function wu(e,t){const r=Su(e,t);Re()?Cr(r,`${yu}-dynamic-theme`):process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Eo=u.createContext(!1),Cu=e=>{let{children:t,disabled:r}=e;const n=u.useContext(Eo);return u.createElement(Eo.Provider,{value:r??n},t)},Eu=Eo,xo=u.createContext(void 0),xu=e=>{let{children:t,size:r}=e;const n=u.useContext(xo);return u.createElement(xo.Provider,{value:r||n},t)},Ko=xo;function Ou(){const e=Z.useContext(Eu),t=Z.useContext(Ko);return{componentDisabled:e,componentSize:t}}const mn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Tu="5.11.0";function Zn(e){return e>=0&&e<=255}function Qr(e,t){const{r,g:n,b:o,a}=new Ue(e).toRgb();if(a<1)return e;const{r:i,g:s,b:c}=new Ue(t).toRgb();for(let l=.01;l<=1;l+=.01){const d=Math.round((r-i*(1-l))/l),f=Math.round((n-s*(1-l))/l),h=Math.round((o-c*(1-l))/l);if(Zn(d)&&Zn(f)&&Zn(h))return new Ue({r:d,g:f,b:h,a:Math.round(l*100)/100}).toRgbString()}return new Ue({r,g:n,b:o,a:1}).toRgbString()}var Pu=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Ji(e){const{override:t}=e,r=Pu(e,["override"]),n=Object.assign({},t);Object.keys(Or).forEach(h=>{delete n[h]});const o=Object.assign(Object.assign({},r),n),a=480,i=576,s=768,c=992,l=1200,d=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Qr(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Qr(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Qr(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Qr(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
32
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
-
`,boxShadowSecondary:`
|
|
36
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
37
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
38
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
39
|
-
`,boxShadowTertiary:`
|
|
40
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
41
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
42
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
43
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
44
|
-
0 1px 2px -2px ${new Ue("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
45
|
-
0 3px 6px 0 ${new Ue("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
46
|
-
0 5px 12px 4px ${new Ue("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
47
|
-
`,boxShadowDrawerRight:`
|
|
48
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
49
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
50
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
51
|
-
`,boxShadowDrawerLeft:`
|
|
52
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
53
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
54
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
55
|
-
`,boxShadowDrawerUp:`
|
|
56
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
57
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
58
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
59
|
-
`,boxShadowDrawerDown:`
|
|
60
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
61
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
62
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
63
|
-
`,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 ka=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const es=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,a=ka(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=Ji(i),a&&Object.entries(a).forEach(s=>{let[c,l]=s;const{theme:d}=l,f=ka(l,["theme"]);let h=f;d&&(h=es(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=h}),i};function Pr(){const{token:e,hashed:t,theme:r,override:n}=Z.useContext(Qi),o=`${Tu}-${t||""}`,a=r||Xi,[i,s]=Qc(a,[Or,e],{salt:o,override:n,getComputedToken:es,formatToken:Ji});return[a,i,t?s:""]}function vt(e){var t=u.useRef();t.current=e;var r=u.useCallback(function(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(a))},[]);return r}function rr(e){var t=u.useRef(!1),r=u.useState(e),n=I(r,2),o=n[0],a=n[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,c){c&&t.current||a(s)}return[o,i]}function Jn(e){return e!==void 0}function Mu(e,t){var r=t||{},n=r.defaultValue,o=r.value,a=r.onChange,i=r.postState,s=rr(function(){return Jn(o)?o:Jn(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=I(s,2),l=c[0],d=c[1],f=o!==void 0?o:l,h=i?i(f):f,m=vt(a),p=rr([f]),g=I(p,2),v=g[0],S=g[1];va(function(){var C=v[0];l!==C&&m(l,C)},[v]),va(function(){Jn(o)||d(o)},[o]);var b=vt(function(C,y){d(C,y),S([f],y)});return[h,b]}const _u=(e,t,r,n,o)=>{const a=e/2,i=0,s=a,c=r*1/Math.sqrt(2),l=a-r*(1-1/Math.sqrt(2)),d=a-t*(1/Math.sqrt(2)),f=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*a-d,m=f,p=2*a-c,g=l,v=2*a-i,S=s,b=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,`path('M ${i} ${s} A ${r} ${r} 0 0 0 ${c} ${l} L ${d} ${f} A ${t} ${t} 0 0 1 ${h} ${m} L ${p} ${g} A ${r} ${r} 0 0 0 ${v} ${S} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},ku=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}},Ru=()=>({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"}}),Au=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),$u=(e,t)=>{const{fontFamily:r,fontSize:n}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ts=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Oo=!0;function gn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!ts)return Object.assign.apply(Object,[{}].concat(t));Oo=!1;const n={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),Oo=!0,n}const Ra={};function Nu(){}function Iu(e){let t,r=e,n=Nu;return ts&&typeof Proxy<"u"&&(t=new Set,r=new Proxy(e,{get(o,a){return Oo&&t.add(a),o[a]}}),n=(o,a)=>{var i;Ra[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Ra[o])===null||i===void 0?void 0:i.component),a)}}),{token:r,keys:t,flush:n}}const Lu=(e,t)=>{const[r,n]=Pr();return bo({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ru()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},rs=Lu;function Du(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[c,l,d]=Pr(),{getPrefixCls:f,iconPrefixCls:h,csp:m}=Z.useContext(cr),p=f(),g={theme:c,token:l,hashId:d,nonce:()=>m==null?void 0:m.nonce,clientOnly:n.clientOnly,order:n.order||-999};return bo(Object.assign(Object.assign({},g),{clientOnly:!1,path:["Shared",p]}),()=>[{"&":Au(l)}]),rs(h,m),[bo(Object.assign(Object.assign({},g),{path:[i,s,h]}),()=>{const{token:v,flush:S}=Iu(l),b=Object.assign({},l[a]);if(n.deprecatedTokens){const{deprecatedTokens:k}=n;k.forEach(z=>{let[T,$]=z;var R;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Ct(!(b!=null&&b[T]),`The token '${String(T)}' of ${a} had deprecated, use '${String($)}' instead.`),(b!=null&&b[T]||b!=null&&b[$])&&((R=b[$])!==null&&R!==void 0||(b[$]=b==null?void 0:b[T]))})}const C=typeof r=="function"?r(gn(v,b??{})):r,y=Object.assign(Object.assign({},C),b),E=`.${s}`,x=gn(v,{componentCls:E,prefixCls:s,iconCls:`.${h}`,antCls:`.${p}`},y),w=t(x,{hashId:d,prefixCls:s,rootPrefixCls:p,iconPrefixCls:h,overrideComponentToken:b});return S(a,y),[n.resetStyle===!1?null:$u(l,s),w]}),d]}}function ju(e,t){return mn.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}function zu(e,t){const r=e||{},n=r.inherit===!1||!t?Yi:t;return No(()=>{if(!e)return t;const o=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(o,a)=>o.some((i,s)=>{const c=a[s];return!hc(i,c,!0)}))}var Hu=["children"],ns=u.createContext({});function Bu(e){var t=e.children,r=wr(e,Hu);return u.createElement(ns.Provider,{value:r},t)}var Fu=function(e){Do(r,e);var t=jo(r);function r(){return Dt(this,r),t.apply(this,arguments)}return jt(r,[{key:"render",value:function(){return this.props.children}}]),r}(u.Component),Rt="none",Zr="appear",Jr="enter",en="leave",Aa="none",rt="prepare",er="start",tr="active",Xo="end",os="prepared";function $a(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 Wu(e,t){var r={animationend:$a("Animation","AnimationEnd"),transitionend:$a("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Vu=Wu(Re(),typeof window<"u"?window:{}),as={};if(Re()){var Uu=document.createElement("div");as=Uu.style}var tn={};function is(e){if(tn[e])return tn[e];var t=Vu[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in as)return tn[e]=t[a],tn[e]}return""}var ss=is("animationend"),cs=is("transitionend"),ls=!!(ss&&cs),Na=ss||"animationend",Ia=cs||"transitionend";function La(e,t){if(!e)return null;if(we(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const qu=function(e){var t=Z.useRef(),r=Z.useRef(e);r.current=e;var n=u.useCallback(function(i){r.current(i)},[]);function o(i){i&&(i.removeEventListener(Ia,n),i.removeEventListener(Na,n))}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(Ia,n),i.addEventListener(Na,n),t.current=i)}return u.useEffect(function(){return function(){o(t.current)}},[]),[a,o]};var us=Re()?Z.useLayoutEffect:Z.useEffect;const Gu=function(){var e=u.useRef(null);function t(){Sr.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Sr(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[r,t]};var Ku=[rt,er,tr,Xo],Xu=[rt,os],fs=!1,Yu=!0;function ds(e){return e===tr||e===Xo}const Qu=function(e,t,r){var n=rr(Aa),o=I(n,2),a=o[0],i=o[1],s=Gu(),c=I(s,2),l=c[0],d=c[1];function f(){i(rt,!0)}var h=t?Xu:Ku;return us(function(){if(a!==Aa&&a!==Xo){var m=h.indexOf(a),p=h[m+1],g=r(a);g===fs?i(p,!0):p&&l(function(v){function S(){v.isCanceled()||i(p,!0)}g===!0?S():Promise.resolve(g).then(S)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]};function Zu(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,c=n.motionLeave,l=c===void 0?!0:c,d=n.motionDeadline,f=n.motionLeaveImmediately,h=n.onAppearPrepare,m=n.onEnterPrepare,p=n.onLeavePrepare,g=n.onAppearStart,v=n.onEnterStart,S=n.onLeaveStart,b=n.onAppearActive,C=n.onEnterActive,y=n.onLeaveActive,E=n.onAppearEnd,x=n.onEnterEnd,w=n.onLeaveEnd,k=n.onVisibleChanged,z=rr(),T=I(z,2),$=T[0],R=T[1],A=rr(Rt),N=I(A,2),M=N[0],j=N[1],_=rr(null),W=I(_,2),D=W[0],V=W[1],oe=Z.useRef(!1),q=Z.useRef(null);function pe(){return r()}var ue=Z.useRef(!1);function re(){j(Rt,!0),V(null,!0)}function be(ne){var K=pe();if(!(ne&&!ne.deadline&&ne.target!==K)){var G=ue.current,U;M===Zr&&G?U=E==null?void 0:E(K,ne):M===Jr&&G?U=x==null?void 0:x(K,ne):M===en&&G&&(U=w==null?void 0:w(K,ne)),M!==Rt&&G&&U!==!1&&re()}}var se=qu(be),J=I(se,1),he=J[0],me=function(K){var G,U,te;switch(K){case Zr:return G={},Q(G,rt,h),Q(G,er,g),Q(G,tr,b),G;case Jr:return U={},Q(U,rt,m),Q(U,er,v),Q(U,tr,C),U;case en:return te={},Q(te,rt,p),Q(te,er,S),Q(te,tr,y),te;default:return{}}},ge=u.useMemo(function(){return me(M)},[M]),Ae=Qu(M,!e,function(ne){if(ne===rt){var K=ge[rt];return K?K(pe()):fs}if(ae in ge){var G;V(((G=ge[ae])===null||G===void 0?void 0:G.call(ge,pe(),null))||null)}return ae===tr&&(he(pe()),d>0&&(clearTimeout(q.current),q.current=setTimeout(function(){be({deadline:!0})},d))),ae===os&&re(),Yu}),xe=I(Ae,2),O=xe[0],ae=xe[1],fe=ds(ae);ue.current=fe,us(function(){R(t);var ne=oe.current;oe.current=!0;var K;!ne&&t&&s&&(K=Zr),ne&&t&&a&&(K=Jr),(ne&&!t&&l||!ne&&f&&!t&&l)&&(K=en);var G=me(K);K&&(e||G[rt])?(j(K),O()):j(Rt)},[t]),Z.useEffect(function(){(M===Zr&&!s||M===Jr&&!a||M===en&&!l)&&j(Rt)},[s,a,l]),Z.useEffect(function(){return function(){oe.current=!1,clearTimeout(q.current)}},[]);var ye=u.useRef(!1);Z.useEffect(function(){$&&(ye.current=!0),$!==void 0&&M===Rt&&((ye.current||$)&&(k==null||k($)),ye.current=!0)},[$,M]);var F=D;return ge[rt]&&ae===er&&(F=L({transition:"none"},F)),[M,ae,F,$??t]}function Ju(e){var t=e;we(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=u.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,c=o.removeOnLeave,l=c===void 0?!0:c,d=o.forceRender,f=o.children,h=o.motionName,m=o.leavedClassName,p=o.eventProps,g=u.useContext(ns),v=g.motion,S=r(o,v),b=Z.useRef(),C=Z.useRef();function y(){try{return b.current instanceof HTMLElement?b.current:nn(C.current)}catch{return null}}var E=Zu(S,s,y,o),x=I(E,4),w=x[0],k=x[1],z=x[2],T=x[3],$=u.useRef(T);T&&($.current=!0);var R=u.useCallback(function(V){b.current=V,Io(a,V)},[a]),A,N=L(L({},p),{},{visible:s});if(!f)A=null;else if(w===Rt)T?A=f(L({},N),R):!l&&$.current&&m?A=f(L(L({},N),{},{className:m}),R):d||!l&&!m?A=f(L(L({},N),{},{style:{display:"none"}}),R):A=null;else{var M,j;k===rt?j="prepare":ds(k)?j="active":k===er&&(j="start");var _=La(h,"".concat(w,"-").concat(j));A=f(L(L({},N),{},{className:Ye(La(h,w),(M={},Q(M,_,_&&j),Q(M,h,typeof h=="string"),M)),style:z}),R)}if(u.isValidElement(A)&&pn(A)){var W=A,D=W.ref;D||(A=u.cloneElement(A,{ref:R}))}return u.createElement(Fu,{ref:C},A)});return n.displayName="CSSMotion",n}const Yo=Ju(ls);var To="add",Po="keep",Mo="remove",eo="removed";function ef(e){var t;return e&&we(e)==="object"&&"key"in e?t=e:t={key:e},L(L({},t),{},{key:String(t.key)})}function _o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(ef)}function tf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=_o(e),i=_o(t);a.forEach(function(l){for(var d=!1,f=n;f<o;f+=1){var h=i[f];if(h.key===l.key){n<f&&(r=r.concat(i.slice(n,f).map(function(m){return L(L({},m),{},{status:To})})),n=f),r.push(L(L({},h),{},{status:Po})),n+=1,d=!0;break}}d||r.push(L(L({},l),{},{status:Mo}))}),n<o&&(r=r.concat(i.slice(n).map(function(l){return L(L({},l),{},{status:To})})));var s={};r.forEach(function(l){var d=l.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(l){return s[l]>1});return c.forEach(function(l){r=r.filter(function(d){var f=d.key,h=d.status;return f!==l||h!==Mo}),r.forEach(function(d){d.key===l&&(d.status=Po)})}),r}var rf=["component","children","onVisibleChanged","onAllRemoved"],nf=["status"],of=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yo,r=function(n){Do(a,n);var o=jo(a);function a(){var i;Dt(this,a);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=o.call.apply(o,[this].concat(c)),Q(co(i),"state",{keyEntities:[]}),Q(co(i),"removeKey",function(d){var f=i.state.keyEntities,h=f.map(function(m){return m.key!==d?m:L(L({},m),{},{status:eo})});return i.setState({keyEntities:h}),h.filter(function(m){var p=m.status;return p!==eo}).length}),i}return jt(a,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,l=this.props,d=l.component,f=l.children,h=l.onVisibleChanged,m=l.onAllRemoved,p=wr(l,rf),g=d||u.Fragment,v={};return of.forEach(function(S){v[S]=p[S],delete p[S]}),delete p.keys,u.createElement(g,p,c.map(function(S,b){var C=S.status,y=wr(S,nf),E=C===To||C===Po;return u.createElement(t,wt({},v,{key:y.key,visible:E,eventProps:y,onVisibleChanged:function(w){if(h==null||h(w,{key:y.key}),!w){var k=s.removeKey(y.key);k===0&&m&&m()}}}),function(x,w){return f(L(L({},x),{},{index:b}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var l=s.keys,d=c.keyEntities,f=_o(l),h=tf(d,f);return{keyEntities:h.filter(function(m){var p=d.find(function(g){var v=g.key;return m.key===v});return!(p&&p.status===eo&&m.status===Mo)})}}}]),a}(u.Component);return Q(r,"defaultProps",{component:"div"}),r}af(ls);function sf(e){const{children:t}=e,[,r]=Pr(),{motion:n}=r,o=u.useRef(!1);return o.current=o.current||n===!1,o.current?u.createElement(Bu,{motion:n},t):t}const vs=u.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Go("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(vs.displayName="PropWarning");const cf=process.env.NODE_ENV!=="production"?vs:()=>null;var lf=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ko=!1;process.env.NODE_ENV;const uf=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],ff="ant";let hs;function df(){return hs||ff}function vf(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const hf=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(hs=t),n&&vf(n)&&(process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),wu(df(),n))},mf=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:c,direction:l,space:d,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:p,legacyLocale:g,parentContext:v,iconPrefixCls:S,theme:b,componentDisabled:C,segmented:y,statistic:E,spin:x,calendar:w,carousel:k,cascader:z,collapse:T,typography:$,checkbox:R,descriptions:A,divider:N,drawer:M,skeleton:j,steps:_,image:W,layout:D,list:V,mentions:oe,modal:q,progress:pe,result:ue,slider:re,breadcrumb:be,menu:se,pagination:J,input:he,empty:me,badge:ge,radio:Ae,rate:xe,switch:O,transfer:ae,avatar:fe,message:ye,tag:F,table:ne,card:K,tabs:G,timeline:U,timePicker:te,upload:$e,notification:zt,tree:Le,colorPicker:Ht,datePicker:De,rangePicker:je,flex:Bt,wave:ze,dropdown:ur,warning:Ft}=e,fr=u.useCallback((B,ie)=>{const{prefixCls:Ce}=e;if(ie)return ie;const Pe=Ce||v.getPrefixCls("");return B?`${Pe}-${B}`:Pe},[v.getPrefixCls,e.prefixCls]),He=S||v.iconPrefixCls||Zi,Oe=r||v.csp;rs(He,Oe);const Be=zu(b,v.theme);process.env.NODE_ENV!=="production"&&(ko=ko||!!Be);const Fe={csp:Oe,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||g,direction:l,space:d,virtual:f,popupMatchSelectWidth:m??h,popupOverflow:p,getPrefixCls:fr,iconPrefixCls:He,theme:Be,segmented:y,statistic:E,spin:x,calendar:w,carousel:k,cascader:z,collapse:T,typography:$,checkbox:R,descriptions:A,divider:N,drawer:M,skeleton:j,steps:_,image:W,input:he,layout:D,list:V,mentions:oe,modal:q,progress:pe,result:ue,slider:re,breadcrumb:be,menu:se,pagination:J,empty:me,badge:ge,radio:Ae,rate:xe,switch:O,transfer:ae,avatar:fe,message:ye,tag:F,table:ne,card:K,tabs:G,timeline:U,timePicker:te,upload:$e,notification:zt,tree:Le,colorPicker:Ht,datePicker:De,rangePicker:je,flex:Bt,wave:ze,dropdown:ur,warning:Ft},Te=Object.assign({},v);Object.keys(Fe).forEach(B=>{Fe[B]!==void 0&&(Te[B]=Fe[B])}),uf.forEach(B=>{const ie=e[B];ie&&(Te[B]=ie)});const Je=No(()=>Te,Te,(B,ie)=>{const Ce=Object.keys(B),Pe=Object.keys(ie);return Ce.length!==Pe.length||Ce.some(ot=>B[ot]!==ie[ot])}),Wt=u.useMemo(()=>({prefixCls:He,csp:Oe}),[He,Oe]);let ee=u.createElement(u.Fragment,null,u.createElement(cf,{dropdownMatchSelectWidth:h}),t);const ce=u.useMemo(()=>{var B,ie,Ce,Pe;return Rl(((B=xn.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{},((Ce=(ie=Je.locale)===null||ie===void 0?void 0:ie.Form)===null||Ce===void 0?void 0:Ce.defaultValidateMessages)||{},((Pe=Je.form)===null||Pe===void 0?void 0:Pe.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Je,i==null?void 0:i.validateMessages]);Object.keys(ce).length>0&&(ee=u.createElement($l.Provider,{value:ce},ee)),s&&(ee=u.createElement(Bl,{locale:s,_ANT_MARK__:Wi},ee)),(He||Oe)&&(ee=u.createElement(Pl.Provider,{value:Wt},ee)),c&&(ee=u.createElement(xu,{size:c},ee)),ee=u.createElement(sf,null,ee);const le=u.useMemo(()=>{const B=Be||{},{algorithm:ie,token:Ce,components:Pe}=B,ot=lf(B,["algorithm","token","components"]),mt=ie&&(!Array.isArray(ie)||ie.length>0)?vo(ie):Xi,et={};Object.entries(Pe||{}).forEach(dr=>{let[Et,gt]=dr;const _e=Object.assign({},gt);"algorithm"in _e&&(_e.algorithm===!0?_e.theme=mt:(Array.isArray(_e.algorithm)||typeof _e.algorithm=="function")&&(_e.theme=vo(_e.algorithm)),delete _e.algorithm),et[Et]=_e});const Ne=Object.assign(Object.assign({},Or),Ce);return Object.assign(Object.assign({},ot),{theme:mt,token:Ne,components:et,override:Object.assign({override:Ne},et)})},[Be]);return b&&(ee=u.createElement(Qi.Provider,{value:le},ee)),Je.warning&&(ee=u.createElement(Hi.Provider,{value:Je.warning},ee)),C!==void 0&&(ee=u.createElement(Cu,{disabled:C},ee)),u.createElement(cr.Provider,{value:Je},ee)},lr=e=>{const t=u.useContext(cr),r=u.useContext(Fi);return u.createElement(mf,Object.assign({parentContext:t,legacyLocale:r},e))};lr.ConfigContext=cr;lr.SizeContext=Ko;lr.config=hf;lr.useConfig=Ou;Object.defineProperty(lr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ko)});process.env.NODE_ENV!=="production"&&(lr.displayName="ConfigProvider");const{isValidElement:Qo}=u;function gf(e){return e&&Qo(e)&&e.type===u.Fragment}function pf(e,t,r){return Qo(e)?u.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function bf(e,t){return pf(e,e,t)}const yf=(e,t,r)=>r!==void 0?r:`${e}-${t}`,Sf=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 o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1};globalThis&&globalThis.__rest;const wf=u.createContext(null),Cf=e=>{let{children:t}=e;return u.createElement(wf.Provider,{value:null},t)};var ms=u.createContext(null),Da=[];function Ef(e,t){var r=u.useState(function(){if(!Re())return null;var p=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&p.setAttribute("data-debug",t),p}),n=I(r,1),o=n[0],a=u.useRef(!1),i=u.useContext(ms),s=u.useState(Da),c=I(s,2),l=c[0],d=c[1],f=i||(a.current?void 0:function(p){d(function(g){var v=[p].concat(qe(g));return v})});function h(){o.parentElement||document.body.appendChild(o),a.current=!0}function m(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),a.current=!1}return ke(function(){return e?i?i(h):h():m(),m},[e]),ke(function(){l.length&&(l.forEach(function(p){return p()}),d(Da))},[l]),[o,f]}var to;function xf(e){if(typeof document>"u")return 0;if(e||to===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),n=r.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var o=t.offsetWidth;r.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=r.clientWidth),document.body.removeChild(r),to=o-a}return to}function ja(e){var t=e.match(/^(.*)px$/),r=Number(t==null?void 0:t[1]);return Number.isNaN(r)?xf():r}function Of(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),r=t.width,n=t.height;return{width:ja(r),height:ja(n)}}function Tf(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Pf="rc-util-locker-".concat(Date.now()),za=0;function Mf(e){var t=!!e,r=u.useState(function(){return za+=1,"".concat(Pf,"_").concat(za)}),n=I(r,1),o=n[0];ke(function(){if(t){var a=Of(document.body).width,i=Tf();Cr(`
|
|
64
|
-
html body {
|
|
65
|
-
overflow-y: hidden;
|
|
66
|
-
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
67
|
-
}`),o)}else vn(o);return function(){vn(o)}},[t,o])}var Ha=!1;function _f(e){return typeof e=="boolean"&&(Ha=e),Ha}var Ba=function(t){return t===!1?!1:!Re()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Zo=u.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,a=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,c=e.children,l=u.useState(r),d=I(l,2),f=d[0],h=d[1],m=f||r;process.env.NODE_ENV!=="production"&&Ct(Re()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),u.useEffect(function(){(s||r)&&h(r)},[r,s]);var p=u.useState(function(){return Ba(o)}),g=I(p,2),v=g[0],S=g[1];u.useEffect(function(){var R=Ba(o);S(R??null)});var b=Ef(m&&!v,a),C=I(b,2),y=C[0],E=C[1],x=v??y;Mf(n&&r&&Re()&&(x===y||x===document.body));var w=null;if(c&&pn(c)&&t){var k=c;w=k.ref}var z=Lo(w,t);if(!m||!Re()||v===void 0)return null;var T=x===!1||_f(),$=c;return t&&($=u.cloneElement(c,{ref:z})),u.createElement(ms.Provider,{value:E},T?$:ei.createPortal($,x))});process.env.NODE_ENV!=="production"&&(Zo.displayName="Portal");function kf(){var e=L({},u);return e.useId}var Fa=0,Wa=kf();const Rf=Wa?function(t){var r=Wa();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=u.useState("ssr-id"),n=I(r,2),o=n[0],a=n[1];return u.useEffect(function(){var i=Fa;Fa+=1,a("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},Af=Z.createContext(void 0),gs=Af,$f=e=>({animationDuration:e,animationFillMode:"both"}),Nf=e=>({animationDuration:e,animationFillMode:"both"}),If=function(e,t,r,n){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
68
|
-
${a}${e}-enter,
|
|
69
|
-
${a}${e}-appear
|
|
70
|
-
`]:Object.assign(Object.assign({},$f(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},Nf(n)),{animationPlayState:"paused"}),[`
|
|
71
|
-
${a}${e}-enter${e}-enter-active,
|
|
72
|
-
${a}${e}-appear${e}-appear-active
|
|
73
|
-
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Lf=new Ze("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Df=new Ze("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Va=new Ze("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ua=new Ze("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),jf=new Ze("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zf=new Ze("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Hf=new Ze("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Bf=new Ze("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ff=new Ze("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Wf=new Ze("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Vf=new Ze("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Uf=new Ze("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),qf={zoom:{inKeyframes:Lf,outKeyframes:Df},"zoom-big":{inKeyframes:Va,outKeyframes:Ua},"zoom-big-fast":{inKeyframes:Va,outKeyframes:Ua},"zoom-left":{inKeyframes:Hf,outKeyframes:Bf},"zoom-right":{inKeyframes:Ff,outKeyframes:Wf},"zoom-up":{inKeyframes:jf,outKeyframes:zf},"zoom-down":{inKeyframes:Vf,outKeyframes:Uf}},Gf=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=qf[t];return[If(n,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
74
|
-
${n}-enter,
|
|
75
|
-
${n}-appear
|
|
76
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ps={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},Kf={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function Xf(e){return e in ps}function Yf(e,t){const[,r]=Pr(),n=Z.useContext(gs),o=Xf(e);let a=n??0;return o?a+=r.zIndexPopupBase+ps[e]:a+=Kf[e],[n===void 0?t:a,a]}const Qf=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))};function bs(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Zf(e){return bs(e)instanceof ShadowRoot}function Ro(e){return Zf(e)?bs(e):null}function Jf(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},i=a.className,s=a.content,c=o.x,l=c===void 0?0:c,d=o.y,f=d===void 0?0:d,h=u.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var p=r.points[0],g=r.points[1],v=p[0],S=p[1],b=g[0],C=g[1];v===b||!["t","b"].includes(v)?m.top=f:v==="t"?m.top=0:m.bottom=0,S===C||!["l","r"].includes(S)?m.left=l:S==="l"?m.left=0:m.right=0}return u.createElement("div",{ref:h,className:Ye("".concat(t,"-arrow"),i),style:m},s)}function ed(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?u.createElement(Yo,wt({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return u.createElement("div",{style:{zIndex:n},className:Ye("".concat(t,"-mask"),s)})}):null}var ys=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(ys.displayName="PopupContent");var Ss=u.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,l=e.keepDom,d=e.fresh,f=e.onClick,h=e.mask,m=e.arrow,p=e.arrowPos,g=e.align,v=e.motion,S=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,y=e.autoDestroy,E=e.portal,x=e.zIndex,w=e.onMouseEnter,k=e.onMouseLeave,z=e.onPointerEnter,T=e.ready,$=e.offsetX,R=e.offsetY,A=e.offsetR,N=e.offsetB,M=e.onAlign,j=e.onPrepare,_=e.stretch,W=e.targetWidth,D=e.targetHeight,V=typeof r=="function"?r():r,oe=c||l,q=(C==null?void 0:C.length)>0,pe=u.useState(!C||!q),ue=I(pe,2),re=ue[0],be=ue[1];if(ke(function(){!re&&q&&i&&be(!0)},[re,q,i]),!re)return null;var se="auto",J={left:"-1000vw",top:"-1000vh",right:se,bottom:se};if(T||!c){var he,me=g.points,ge=g.dynamicInset||((he=g._experimental)===null||he===void 0?void 0:he.dynamicInset),Ae=ge&&me[0][1]==="r",xe=ge&&me[0][0]==="b";Ae?(J.right=A,J.left=se):(J.left=$,J.right=se),xe?(J.bottom=N,J.top=se):(J.top=R,J.bottom=se)}var O={};return _&&(_.includes("height")&&D?O.height=D:_.includes("minHeight")&&D&&(O.minHeight=D),_.includes("width")&&W?O.width=W:_.includes("minWidth")&&W&&(O.minWidth=W)),c||(O.pointerEvents="none"),u.createElement(E,{open:b||oe,getContainer:C&&function(){return C(i)},autoDestroy:y},u.createElement(ed,{prefixCls:o,open:c,zIndex:x,mask:h,motion:S}),u.createElement(yn,{onResize:M,disabled:!c},function(ae){return u.createElement(Yo,wt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:j,onEnterPrepare:j,visible:c,onVisibleChanged:function(ye){var F;v==null||(F=v.onVisibleChanged)===null||F===void 0||F.call(v,ye),s(ye)}}),function(fe,ye){var F=fe.className,ne=fe.style,K=Ye(o,F,n);return u.createElement("div",{ref:ii(ae,t,ye),className:K,style:L(L(L(L({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},J),O),ne),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:w,onMouseLeave:k,onPointerEnter:z,onClick:f},m&&u.createElement(Jf,{prefixCls:o,arrow:m,arrowPos:p,align:g}),u.createElement(ys,{cache:!c&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(Ss.displayName="Popup");var ws=u.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=pn(r),a=u.useCallback(function(s){Io(t,n?n(s):s)},[n]),i=Lo(a,r.ref);return o?u.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(ws.displayName="TriggerWrapper");var qa=u.createContext(null);function Ga(e){return e?Array.isArray(e)?e:[e]:[]}function td(e,t,r,n){return u.useMemo(function(){var o=Ga(r??t),a=Ga(n??t),i=new Set(o),s=new Set(a);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 rd(){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 nd(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,c=a[i];if(rd((s=e[c])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(c)}return""}function Ka(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Mr(e){return e.ownerDocument.defaultView}function Ao(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=Mr(r).getComputedStyle(r),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(c){return n.includes(c)})&&t.push(r),r=r.parentElement}return t}function Tr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function br(e){return Tr(parseFloat(e),0)}function Xa(e,t){var r=L({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Mr(n).getComputedStyle(n),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,l=o.borderLeftWidth,d=o.borderRightWidth,f=n.getBoundingClientRect(),h=n.offsetHeight,m=n.clientHeight,p=n.offsetWidth,g=n.clientWidth,v=br(s),S=br(c),b=br(l),C=br(d),y=Tr(Math.round(f.width/p*1e3)/1e3),E=Tr(Math.round(f.height/h*1e3)/1e3),x=(p-g-b-C)*y,w=(h-m-v-S)*E,k=v*E,z=S*E,T=b*y,$=C*y,R=0,A=0;if(a==="clip"){var N=br(i);R=N*y,A=N*E}var M=f.x+T-R,j=f.y+k-A,_=M+f.width+2*R-T-$-x,W=j+f.height+2*A-k-z-w;r.left=Math.max(r.left,M),r.top=Math.max(r.top,j),r.right=Math.min(r.right,_),r.bottom=Math.min(r.bottom,W)}}),r}function Ya(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 Qa(e,t){var r=t||[],n=I(r,2),o=n[0],a=n[1];return[Ya(e.width,o),Ya(e.height,a)]}function Za(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Xt(e,t){var r=t[0],n=t[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function yt(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function od(e,t,r,n,o,a,i){var s=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),c=I(s,2),l=c[0],d=c[1],f=u.useRef(0),h=u.useMemo(function(){return t?Ao(t):[]},[t]),m=u.useRef({}),p=function(){m.current={}};e||p();var g=vt(function(){if(t&&r&&e){let Ge=function(Hr,Ke){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ne,Br=D.x+Hr,Gt=D.y+Ke,Fr=Br+J,gr=Gt+se,Wr=Math.max(Br,qt.left),Ln=Math.max(Gt,qt.top),Dn=Math.min(Fr,qt.right),jn=Math.min(gr,qt.bottom);return Math.max(0,(Dn-Wr)*(jn-Ln))},zr=function(){xt=D.y+le,Ot=xt+se,it=D.x+ce,Tt=it+J};var b,C,y=t,E=y.ownerDocument,x=Mr(y),w=x.getComputedStyle(y),k=w.width,z=w.height,T=w.position,$=y.style.left,R=y.style.top,A=y.style.right,N=y.style.bottom,M=L(L({},o[n]),a),j=E.createElement("div");(b=y.parentElement)===null||b===void 0||b.appendChild(j),j.style.left="".concat(y.offsetLeft,"px"),j.style.top="".concat(y.offsetTop,"px"),j.style.position=T,j.style.height="".concat(y.offsetHeight,"px"),j.style.width="".concat(y.offsetWidth,"px"),y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto";var _;if(Array.isArray(r))_={x:r[0],y:r[1],width:0,height:0};else{var W=r.getBoundingClientRect();_={x:W.x,y:W.y,width:W.width,height:W.height}}var D=y.getBoundingClientRect(),V=E.documentElement,oe=V.clientWidth,q=V.clientHeight,pe=V.scrollWidth,ue=V.scrollHeight,re=V.scrollTop,be=V.scrollLeft,se=D.height,J=D.width,he=_.height,me=_.width,ge={left:0,top:0,right:oe,bottom:q},Ae={left:-be,top:-re,right:pe-be,bottom:ue-re},xe=M.htmlRegion,O="visible",ae="visibleFirst";xe!=="scroll"&&xe!==ae&&(xe=O);var fe=xe===ae,ye=Xa(Ae,h),F=Xa(ge,h),ne=xe===O?F:ye,K=fe?F:ne;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";var G=y.getBoundingClientRect();y.style.left=$,y.style.top=R,y.style.right=A,y.style.bottom=N,(C=y.parentElement)===null||C===void 0||C.removeChild(j);var U=Tr(Math.round(J/parseFloat(k)*1e3)/1e3),te=Tr(Math.round(se/parseFloat(z)*1e3)/1e3);if(U===0||te===0||ln(r)&&!Sf(r))return;var $e=M.offset,zt=M.targetOffset,Le=Qa(D,$e),Ht=I(Le,2),De=Ht[0],je=Ht[1],Bt=Qa(_,zt),ze=I(Bt,2),ur=ze[0],Ft=ze[1];_.x-=ur,_.y-=Ft;var fr=M.points||[],He=I(fr,2),Oe=He[0],Be=He[1],Fe=Za(Be),Te=Za(Oe),Je=Xt(_,Fe),Wt=Xt(D,Te),ee=L({},M),ce=Je.x-Wt.x+De,le=Je.y-Wt.y+je,B=Ge(ce,le),ie=Ge(ce,le,F),Ce=Xt(_,["t","l"]),Pe=Xt(D,["t","l"]),ot=Xt(_,["b","r"]),mt=Xt(D,["b","r"]),et=M.overflow||{},Ne=et.adjustX,dr=et.adjustY,Et=et.shiftX,gt=et.shiftY,_e=function(Ke){return typeof Ke=="boolean"?Ke:Ke>=0},xt,Ot,it,Tt;zr();var _r=_e(dr),vr=Te[0]===Fe[0];if(_r&&Te[0]==="t"&&(Ot>K.bottom||m.current.bt)){var pt=le;vr?pt-=se-he:pt=Ce.y-mt.y-je;var kr=Ge(ce,pt),Vt=Ge(ce,pt,F);kr>B||kr===B&&(!fe||Vt>=ie)?(m.current.bt=!0,le=pt,je=-je,ee.points=[yt(Te,0),yt(Fe,0)]):m.current.bt=!1}if(_r&&Te[0]==="b"&&(xt<K.top||m.current.tb)){var Pt=le;vr?Pt+=se-he:Pt=ot.y-Pe.y-je;var Ie=Ge(ce,Pt),On=Ge(ce,Pt,F);Ie>B||Ie===B&&(!fe||On>=ie)?(m.current.tb=!0,le=Pt,je=-je,ee.points=[yt(Te,0),yt(Fe,0)]):m.current.tb=!1}var Rr=_e(Ne),Ar=Te[1]===Fe[1];if(Rr&&Te[1]==="l"&&(Tt>K.right||m.current.rl)){var Mt=ce;Ar?Mt-=J-me:Mt=Ce.x-mt.x-De;var $r=Ge(Mt,le),Tn=Ge(Mt,le,F);$r>B||$r===B&&(!fe||Tn>=ie)?(m.current.rl=!0,ce=Mt,De=-De,ee.points=[yt(Te,1),yt(Fe,1)]):m.current.rl=!1}if(Rr&&Te[1]==="r"&&(it<K.left||m.current.lr)){var _t=ce;Ar?_t+=J-me:_t=ot.x-Pe.x-De;var Nr=Ge(_t,le),Pn=Ge(_t,le,F);Nr>B||Nr===B&&(!fe||Pn>=ie)?(m.current.lr=!0,ce=_t,De=-De,ee.points=[yt(Te,1),yt(Fe,1)]):m.current.lr=!1}zr();var at=Et===!0?0:Et;typeof at=="number"&&(it<F.left&&(ce-=it-F.left-De,_.x+me<F.left+at&&(ce+=_.x-F.left+me-at)),Tt>F.right&&(ce-=Tt-F.right-De,_.x>F.right-at&&(ce+=_.x-F.right+at)));var st=gt===!0?0:gt;typeof st=="number"&&(xt<F.top&&(le-=xt-F.top-je,_.y+he<F.top+st&&(le+=_.y-F.top+he-st)),Ot>F.bottom&&(le-=Ot-F.bottom-je,_.y>F.bottom-st&&(le+=_.y-F.bottom+st)));var hr=D.x+ce,Ir=hr+J,bt=D.y+le,kt=bt+se,mr=_.x,Ut=mr+me,ct=_.y,Mn=ct+he,_n=Math.max(hr,mr),kn=Math.min(Ir,Ut),Lr=(_n+kn)/2,Rn=Lr-hr,An=Math.max(bt,ct),$n=Math.min(kt,Mn),Dr=(An+$n)/2,Nn=Dr-bt;i==null||i(t,ee);var In=G.right-D.x-(ce+D.width),jr=G.bottom-D.y-(le+D.height);d({ready:!0,offsetX:ce/U,offsetY:le/te,offsetR:In/U,offsetB:jr/te,arrowX:Rn/U,arrowY:Nn/te,scaleX:U,scaleY:te,align:ee})}}),v=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&g()})},S=function(){d(function(C){return L(L({},C),{},{ready:!1})})};return ke(S,[n]),ke(function(){e||S()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,v]}function ad(e,t,r,n,o){ke(function(){if(e&&t&&r){let f=function(){n(),o()};var a=t,i=r,s=Ao(a),c=Ao(i),l=Mr(i),d=new Set([l].concat(qe(s),qe(c)));return d.forEach(function(h){h.addEventListener("scroll",f,{passive:!0})}),l.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(h){h.removeEventListener("scroll",f),l.removeEventListener("resize",f)})}}},[e,t,r])}function id(e,t,r,n,o,a,i,s){var c=u.useRef(e),l=u.useRef(!1);c.current!==e&&(l.current=!0,c.current=e),u.useEffect(function(){var d=Sr(function(){l.current=!1});return function(){Sr.cancel(d)}},[e]),u.useEffect(function(){if(t&&n&&(!o||a)){var d=function(){var T=!1,$=function(N){var M=N.target;T=i(M)},R=function(N){var M=N.target;!l.current&&c.current&&!T&&!i(M)&&s(!1)};return[$,R]},f=d(),h=I(f,2),m=h[0],p=h[1],g=d(),v=I(g,2),S=v[0],b=v[1],C=Mr(n);C.addEventListener("mousedown",m,!0),C.addEventListener("click",p,!0),C.addEventListener("contextmenu",p,!0);var y=Ro(r);if(y&&(y.addEventListener("mousedown",S,!0),y.addEventListener("click",b,!0),y.addEventListener("contextmenu",b,!0)),process.env.NODE_ENV!=="production"){var E,x,w=r==null||(E=r.getRootNode)===null||E===void 0?void 0:E.call(r),k=(x=n.getRootNode)===null||x===void 0?void 0:x.call(n);nr(w===k,"trigger element and popup element should in same shadow root.")}return function(){C.removeEventListener("mousedown",m,!0),C.removeEventListener("click",p,!0),C.removeEventListener("contextmenu",p,!0),y&&(y.removeEventListener("mousedown",S,!0),y.removeEventListener("click",b,!0),y.removeEventListener("contextmenu",b,!0))}}},[t,r,n,o,a])}var sd=["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 cd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zo,t=u.forwardRef(function(r,n){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=r.children,s=r.action,c=s===void 0?"hover":s,l=r.showAction,d=r.hideAction,f=r.popupVisible,h=r.defaultPopupVisible,m=r.onPopupVisibleChange,p=r.afterPopupVisibleChange,g=r.mouseEnterDelay,v=r.mouseLeaveDelay,S=v===void 0?.1:v,b=r.focusDelay,C=r.blurDelay,y=r.mask,E=r.maskClosable,x=E===void 0?!0:E,w=r.getPopupContainer,k=r.forceRender,z=r.autoDestroy,T=r.destroyPopupOnHide,$=r.popup,R=r.popupClassName,A=r.popupStyle,N=r.popupPlacement,M=r.builtinPlacements,j=M===void 0?{}:M,_=r.popupAlign,W=r.zIndex,D=r.stretch,V=r.getPopupClassNameFromAlign,oe=r.fresh,q=r.alignPoint,pe=r.onPopupClick,ue=r.onPopupAlign,re=r.arrow,be=r.popupMotion,se=r.maskMotion,J=r.popupTransitionName,he=r.popupAnimation,me=r.maskTransitionName,ge=r.maskAnimation,Ae=r.className,xe=r.getTriggerDOMNode,O=wr(r,sd),ae=z||T||!1,fe=u.useState(!1),ye=I(fe,2),F=ye[0],ne=ye[1];ke(function(){ne(Qf())},[]);var K=u.useRef({}),G=u.useContext(qa),U=u.useMemo(function(){return{registerSubPopup:function(H,de){K.current[H]=de,G==null||G.registerSubPopup(H,de)}}},[G]),te=Rf(),$e=u.useState(null),zt=I($e,2),Le=zt[0],Ht=zt[1],De=vt(function(P){ln(P)&&Le!==P&&Ht(P),G==null||G.registerSubPopup(te,P)}),je=u.useState(null),Bt=I(je,2),ze=Bt[0],ur=Bt[1],Ft=u.useRef(null),fr=vt(function(P){ln(P)&&ze!==P&&(ur(P),Ft.current=P)}),He=u.Children.only(i),Oe=(He==null?void 0:He.props)||{},Be={},Fe=vt(function(P){var H,de,Ee=ze;return(Ee==null?void 0:Ee.contains(P))||((H=Ro(Ee))===null||H===void 0?void 0:H.host)===P||P===Ee||(Le==null?void 0:Le.contains(P))||((de=Ro(Le))===null||de===void 0?void 0:de.host)===P||P===Le||Object.values(K.current).some(function(ve){return(ve==null?void 0:ve.contains(P))||P===ve})}),Te=Ka(a,be,he,J),Je=Ka(a,se,ge,me),Wt=u.useState(h||!1),ee=I(Wt,2),ce=ee[0],le=ee[1],B=f??ce,ie=vt(function(P){f===void 0&&le(P)});ke(function(){le(f||!1)},[f]);var Ce=u.useRef(B);Ce.current=B;var Pe=u.useRef([]);Pe.current=[];var ot=vt(function(P){var H;ie(P),((H=Pe.current[Pe.current.length-1])!==null&&H!==void 0?H:B)!==P&&(Pe.current.push(P),m==null||m(P))}),mt=u.useRef(),et=function(){clearTimeout(mt.current)},Ne=function(H){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;et(),de===0?ot(H):mt.current=setTimeout(function(){ot(H)},de*1e3)};u.useEffect(function(){return et},[]);var dr=u.useState(!1),Et=I(dr,2),gt=Et[0],_e=Et[1];ke(function(P){(!P||B)&&_e(!0)},[B]);var xt=u.useState(null),Ot=I(xt,2),it=Ot[0],Tt=Ot[1],_r=u.useState([0,0]),vr=I(_r,2),pt=vr[0],kr=vr[1],Vt=function(H){kr([H.clientX,H.clientY])},Pt=od(B,Le,q?pt:ze,N,j,_,ue),Ie=I(Pt,11),On=Ie[0],Rr=Ie[1],Ar=Ie[2],Mt=Ie[3],$r=Ie[4],Tn=Ie[5],_t=Ie[6],Nr=Ie[7],Pn=Ie[8],at=Ie[9],st=Ie[10],hr=td(F,c,l,d),Ir=I(hr,2),bt=Ir[0],kt=Ir[1],mr=bt.has("click"),Ut=kt.has("click")||kt.has("contextMenu"),ct=vt(function(){gt||st()}),Mn=function(){Ce.current&&q&&Ut&&Ne(!1)};ad(B,ze,Le,ct,Mn),ke(function(){ct()},[pt,N]),ke(function(){B&&!(j!=null&&j[N])&&ct()},[JSON.stringify(_)]);var _n=u.useMemo(function(){var P=nd(j,a,at,q);return Ye(P,V==null?void 0:V(at))},[at,V,j,a,q]);u.useImperativeHandle(n,function(){return{nativeElement:Ft.current,forceAlign:ct}});var kn=u.useState(0),Lr=I(kn,2),Rn=Lr[0],An=Lr[1],$n=u.useState(0),Dr=I($n,2),Nn=Dr[0],In=Dr[1],jr=function(){if(D&&ze){var H=ze.getBoundingClientRect();An(H.width),In(H.height)}},Ge=function(){jr(),ct()},zr=function(H){_e(!1),st(),p==null||p(H)},Hr=function(){return new Promise(function(H){jr(),Tt(function(){return H})})};ke(function(){it&&(st(),it(),Tt(null))},[it]);function Ke(P,H,de,Ee){Be[P]=function(ve){var Vr;Ee==null||Ee(ve),Ne(H,de);for(var zn=arguments.length,ea=new Array(zn>1?zn-1:0),Ur=1;Ur<zn;Ur++)ea[Ur-1]=arguments[Ur];(Vr=Oe[P])===null||Vr===void 0||Vr.call.apply(Vr,[Oe,ve].concat(ea))}}(mr||Ut)&&(Be.onClick=function(P){var H;Ce.current&&Ut?Ne(!1):!Ce.current&&mr&&(Vt(P),Ne(!0));for(var de=arguments.length,Ee=new Array(de>1?de-1:0),ve=1;ve<de;ve++)Ee[ve-1]=arguments[ve];(H=Oe.onClick)===null||H===void 0||H.call.apply(H,[Oe,P].concat(Ee))}),id(B,Ut,ze,Le,y,x,Fe,Ne);var qt=bt.has("hover"),Br=kt.has("hover"),Gt,Fr;qt&&(Ke("onMouseEnter",!0,g,function(P){Vt(P)}),Ke("onPointerEnter",!0,g,function(P){Vt(P)}),Gt=function(){(B||gt)&&Ne(!0,g)},q&&(Be.onMouseMove=function(P){var H;(H=Oe.onMouseMove)===null||H===void 0||H.call(Oe,P)})),Br&&(Ke("onMouseLeave",!1,S),Ke("onPointerLeave",!1,S),Fr=function(){Ne(!1,S)}),bt.has("focus")&&Ke("onFocus",!0,b),kt.has("focus")&&Ke("onBlur",!1,C),bt.has("contextMenu")&&(Be.onContextMenu=function(P){var H;Ce.current&&kt.has("contextMenu")?Ne(!1):(Vt(P),Ne(!0)),P.preventDefault();for(var de=arguments.length,Ee=new Array(de>1?de-1:0),ve=1;ve<de;ve++)Ee[ve-1]=arguments[ve];(H=Oe.onContextMenu)===null||H===void 0||H.call.apply(H,[Oe,P].concat(Ee))}),Ae&&(Be.className=Ye(Oe.className,Ae));var gr=L(L({},Oe),Be),Wr={},Ln=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ln.forEach(function(P){O[P]&&(Wr[P]=function(){for(var H,de=arguments.length,Ee=new Array(de),ve=0;ve<de;ve++)Ee[ve]=arguments[ve];(H=gr[P])===null||H===void 0||H.call.apply(H,[gr].concat(Ee)),O[P].apply(O,Ee)})});var Dn=u.cloneElement(He,L(L({},gr),Wr)),jn={x:Tn,y:_t},Ps=re?L({},re!==!0?re:{}):null;return u.createElement(u.Fragment,null,u.createElement(yn,{disabled:!B,ref:fr,onResize:Ge},u.createElement(ws,{getTriggerDOMNode:xe},Dn)),u.createElement(qa.Provider,{value:U},u.createElement(Ss,{portal:e,ref:De,prefixCls:a,popup:$,className:Ye(R,_n),style:A,target:ze,onMouseEnter:Gt,onMouseLeave:Fr,onPointerEnter:Gt,zIndex:W,open:B,keepDom:gt,fresh:oe,onClick:pe,mask:y,motion:Te,maskMotion:Je,onVisibleChanged:zr,onPrepare:Hr,forceRender:k,autoDestroy:ae,getPopupContainer:w,align:at,arrow:Ps,arrowPos:jn,ready:On,offsetX:Rr,offsetY:Ar,offsetR:Mt,offsetB:$r,onAlign:ct,stretch:D,targetWidth:Rn/Nr,targetHeight:Nn/Pn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const ld=cd(Zo);function Cs(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return u.createElement("div",{className:Ye("".concat(r,"-content"),a),style:i},u.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Yt={shiftX:64,adjustY:1},Qt={adjustX:1,shiftY:!0},Xe=[0,0],ud={left:{points:["cr","cl"],overflow:Qt,offset:[-4,0],targetOffset:Xe},right:{points:["cl","cr"],overflow:Qt,offset:[4,0],targetOffset:Xe},top:{points:["bc","tc"],overflow:Yt,offset:[0,-4],targetOffset:Xe},bottom:{points:["tc","bc"],overflow:Yt,offset:[0,4],targetOffset:Xe},topLeft:{points:["bl","tl"],overflow:Yt,offset:[0,-4],targetOffset:Xe},leftTop:{points:["tr","tl"],overflow:Qt,offset:[-4,0],targetOffset:Xe},topRight:{points:["br","tr"],overflow:Yt,offset:[0,-4],targetOffset:Xe},rightTop:{points:["tl","tr"],overflow:Qt,offset:[4,0],targetOffset:Xe},bottomRight:{points:["tr","br"],overflow:Yt,offset:[0,4],targetOffset:Xe},rightBottom:{points:["bl","br"],overflow:Qt,offset:[4,0],targetOffset:Xe},bottomLeft:{points:["tl","bl"],overflow:Yt,offset:[0,4],targetOffset:Xe},leftBottom:{points:["br","bl"],overflow:Qt,offset:[-4,0],targetOffset:Xe}},fd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],dd=function(t,r){var n=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,l=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,m=t.children,p=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,S=t.animation,b=t.motion,C=t.placement,y=C===void 0?"right":C,E=t.align,x=E===void 0?{}:E,w=t.destroyTooltipOnHide,k=w===void 0?!1:w,z=t.defaultVisible,T=t.getTooltipContainer,$=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,A=t.id,N=t.showArrow,M=N===void 0?!0:N,j=wr(t,fd),_=Z.useRef(null);Z.useImperativeHandle(r,function(){return _.current});var W=L({},j);"visible"in t&&(W.popupVisible=t.visible);var D=function(){return u.createElement(Cs,{key:"content",prefixCls:h,id:A,overlayInnerStyle:$},R)};return u.createElement(ld,wt({popupClassName:n,prefixCls:h,popup:D,action:a,builtinPlacements:ud,popupPlacement:y,ref:_,popupAlign:x,getPopupContainer:T,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:S,popupMotion:b,defaultPopupVisible:z,autoDestroy:k,mouseLeaveDelay:l,popupStyle:d,mouseEnterDelay:s,arrow:M},W),m)};const vd=Z.forwardRef(dd),Es=8;function xs(e){const t=Es,{contentRadius:r,limitVerticalRadius:n}=e,o=r>12?r+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:n?t:o}}function rn(e,t){return e?t:{}}function hd(e,t){const{componentCls:r,sizePopupArrow:n,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:l,arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:m}=xs({contentRadius:c,limitVerticalRadius:l});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},_u(n,o,a,s,i)),{"&:before":{background:s}})]},rn(!!f.top,{[[`&-placement-top ${r}-arrow`,`&-placement-topLeft ${r}-arrow`,`&-placement-topRight ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-topRight ${r}-arrow`]:{right:{_skip_check_:!0,value:m}}})),rn(!!f.bottom,{[[`&-placement-bottom ${r}-arrow`,`&-placement-bottomLeft ${r}-arrow`,`&-placement-bottomRight ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:m}},[`&-placement-bottomRight ${r}-arrow`]:{right:{_skip_check_:!0,value:m}}})),rn(!!f.left,{[[`&-placement-left ${r}-arrow`,`&-placement-leftTop ${r}-arrow`,`&-placement-leftBottom ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${r}-arrow`]:{top:h},[`&-placement-leftBottom ${r}-arrow`]:{bottom:h}})),rn(!!f.right,{[[`&-placement-right ${r}-arrow`,`&-placement-rightTop ${r}-arrow`,`&-placement-rightBottom ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${r}-arrow`]:{top:h},[`&-placement-rightBottom ${r}-arrow`]:{bottom:h}}))}}function md(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Ja={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"]}},gd={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"]}},pd=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bd(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,c={};return Object.keys(Ja).forEach(l=>{const d=n&&gd[l]||Ja[l],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[l]=f,pd.has(l)&&(f.autoArrow=!1),l){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const h=xs({contentRadius:a,limitVerticalRadius:!0});if(n)switch(l){case"topLeft":case"bottomLeft":f.offset[0]=-h.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":f.offset[0]=h.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":f.offset[1]=-h.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":f.offset[1]=h.dropdownArrowOffset+s;break}f.overflow=md(l,h,t,r),i&&(f.htmlRegion="visibleFirst")}),c}const yd=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:l,paddingXS:d,tooltipRadiusOuter:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ku(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${l/2}px ${d}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,Es)}},[`${t}-content`]:{position:"relative"}}),ju(e,(h,m)=>{let{darkColor:p}=m;return{[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},hd(gn(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Os=(e,t)=>Du("Tooltip",n=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=n,c=gn(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return[yd(c),Gf(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=n;return{zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),Sd=mn.map(e=>`${e}-inverse`);function wd(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(qe(Sd),qe(mn)).includes(e):mn.includes(e)}function Ts(e,t){const r=wd(t),n=Ye({[`${e}-${t}`]:t&&r}),o={},a={};return t&&!r&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:a}}const Cd=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=u.useContext(cr),c=s("tooltip",t),[l,d]=Os(c,!0),f=Ts(c,a),h=f.arrowStyle,m=Object.assign(Object.assign({},i),f.overlayStyle),p=Ye(d,c,`${c}-pure`,`${c}-placement-${n}`,r,f.className);return l(u.createElement("div",{className:p,style:h},u.createElement("div",{className:`${c}-arrow`}),u.createElement(Cs,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),o)))},Ed=Cd;var xd=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Jo=u.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:l,children:d,afterOpenChange:f,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:p=!0,title:g,overlay:v,builtinPlacements:S,arrowPointAtCenter:b=!1,autoAdjustOverflow:C=!0}=e,y=!!p,[,E]=Pr(),{getPopupContainer:x,getPrefixCls:w,direction:k}=u.useContext(cr),z=Go("Tooltip"),T=u.useRef(null),$=()=>{var U;(U=T.current)===null||U===void 0||U.forceAlign()};u.useImperativeHandle(t,()=>({forceAlign:$,forcePopupAlign:()=>{z.deprecated(!1,"forcePopupAlign","forceAlign"),$()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(U=>{let[te,$e]=U;z.deprecated(!(te in e),te,$e)}),process.env.NODE_ENV!=="production"&&z(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&z(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[R,A]=Mu(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),N=!g&&!v&&g!==0,M=U=>{var te,$e;A(N?!1:U),N||((te=e.onOpenChange)===null||te===void 0||te.call(e,U),($e=e.onVisibleChange)===null||$e===void 0||$e.call(e,U))},j=u.useMemo(()=>{var U,te;let $e=b;return typeof p=="object"&&($e=(te=(U=p.pointAtCenter)!==null&&U!==void 0?U:p.arrowPointAtCenter)!==null&&te!==void 0?te:b),S||bd({arrowPointAtCenter:$e,autoAdjustOverflow:C,arrowWidth:y?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[b,p,S,E]),_=u.useMemo(()=>g===0?g:v||g||"",[v,g]),W=u.createElement(Cf,null,typeof _=="function"?_():_),{getPopupContainer:D,placement:V="top",mouseEnterDelay:oe=.1,mouseLeaveDelay:q=.1,overlayStyle:pe,rootClassName:ue}=e,re=xd(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),be=w("tooltip",o),se=w(),J=e["data-popover-inject"];let he=R;!("open"in e)&&!("visible"in e)&&N&&(he=!1);const me=Qo(d)&&!gf(d)?d:u.createElement("span",null,d),ge=me.props,Ae=!ge.className||typeof ge.className=="string"?Ye(ge.className,a||`${be}-open`):ge.className,[xe,O]=Os(be,!J),ae=Ts(be,c),fe=ae.arrowStyle,ye=Object.assign(Object.assign({},l),ae.overlayStyle),F=Ye(s,{[`${be}-rtl`]:k==="rtl"},ae.className,ue,O),[ne,K]=Yf("Tooltip",re.zIndex),G=u.createElement(vd,Object.assign({},re,{zIndex:J?re.zIndex:ne,showArrow:y,placement:V,mouseEnterDelay:oe,mouseLeaveDelay:q,prefixCls:be,overlayClassName:F,overlayStyle:Object.assign(Object.assign({},fe),pe),getTooltipContainer:D||i||x,ref:T,builtinPlacements:j,overlay:W,visible:he,onVisibleChange:M,afterVisibleChange:f??h,overlayInnerStyle:ye,arrowContent:u.createElement("span",{className:`${be}-arrow-content`}),motion:{motionName:yf(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),he?bf(me,{className:Ae}):me);return xe(u.createElement(gs.Provider,{value:K},G))});process.env.NODE_ENV!=="production"&&(Jo.displayName="Tooltip");Jo._InternalPanelDoNotUseOrYouWillBeFired=Ed;const Od=Jo,Td=({children:e,...t})=>Ms.jsx(Od,{...t,children:e});exports.Tooltip=Td;
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAE3C,eAAO,MAAM,OAAO,sCAAuC,YAAY,sBAMtE,CAAC"}
|