@pnkx-lib/ui 1.0.8 → 1.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.
@@ -0,0 +1,4962 @@
1
+ import { j as O, I as yt, _ as bt, u as hi, c as et, a as pi } from "./AntdIcon--GV8OuD-.js";
2
+ import { Button as mi, Cascader as yi, Space as dt, Card as Cn, Skeleton as go, Table as bi, Empty as Si, Modal as xi, Tooltip as Ci, Tabs as Ei, Popover as Ti, Badge as _i, Col as Oi, Row as wi, Dropdown as Pi, Breadcrumb as ki, Flex as Mi, Splitter as ho, Menu as St, Pagination as Ai, Steps as po } from "antd";
3
+ import * as g from "react";
4
+ import Ce, { useEffect as Le, useContext as He, createContext as mo, version as ji, isValidElement as Ni, useRef as $e, useLayoutEffect as $i, useState as En } from "react";
5
+ import Tn from "react-dom";
6
+ const _n = (e) => /* @__PURE__ */ O.jsx(mi, { ...e }), wu = (e) => {
7
+ const {
8
+ customStyleContainer: t,
9
+ customStyleCascader: r,
10
+ options: n = [],
11
+ ...o
12
+ } = e;
13
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(
14
+ yi,
15
+ {
16
+ options: n,
17
+ className: r,
18
+ ...o
19
+ }
20
+ ) });
21
+ }, Pt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O.jsx(go.Input, { size: "small", block: !0, active: !0 }, r)), Ri = ({
22
+ type: e,
23
+ skeletonButtonCount: t
24
+ }) => e === "table" ? /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
25
+ /* @__PURE__ */ O.jsxs(
26
+ "div",
27
+ {
28
+ style: {
29
+ display: "flex",
30
+ alignItems: "center",
31
+ width: "100%",
32
+ marginBottom: 15
33
+ },
34
+ children: [
35
+ /* @__PURE__ */ O.jsx("div", { children: /* @__PURE__ */ O.jsx(dt, { children: Pt(1) }) }),
36
+ t && /* @__PURE__ */ O.jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ O.jsx(dt, { children: Pt(t) }) })
37
+ ]
38
+ }
39
+ ),
40
+ /* @__PURE__ */ O.jsx(Cn, { children: /* @__PURE__ */ O.jsx(dt, { direction: "vertical", size: "middle", style: { width: "100%" }, children: Pt(10) }) }),
41
+ /* @__PURE__ */ O.jsx("div", { style: { ...Ii.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ O.jsx(go.Input, { size: "small", active: !0 }) })
42
+ ] }) : /* @__PURE__ */ O.jsx(Cn, { children: /* @__PURE__ */ O.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Pt(3) }) }), Ii = {
43
+ rightAlign: {
44
+ display: "flex",
45
+ justifyContent: "flex-end",
46
+ width: "100%"
47
+ }
48
+ }, Pu = ({
49
+ data: e,
50
+ columns: t,
51
+ loading: r = !1,
52
+ totalItems: n,
53
+ filters: o,
54
+ onChangePage: a,
55
+ onChangePageSize: i,
56
+ onSort: c,
57
+ rowsSelected: l,
58
+ onSelect: s,
59
+ onRowClick: u,
60
+ rowKey: d = "id",
61
+ ...f
62
+ }) => {
63
+ const p = {
64
+ current: o.PageIndex,
65
+ pageSize: o.PageSize,
66
+ total: n,
67
+ showSizeChanger: !0,
68
+ showQuickJumper: !0,
69
+ onChange: (b, y) => {
70
+ b !== o.PageIndex && a(b), y !== o.PageSize && i(y);
71
+ }
72
+ }, m = {
73
+ selectedRowKeys: l,
74
+ onChange: s
75
+ }, h = (b) => {
76
+ b && b.field && c && c(b.field);
77
+ };
78
+ function v(b, y) {
79
+ return (C) => {
80
+ const E = C.target;
81
+ E.closest("input") || // ⛔ Checkbox
82
+ E.closest("button") || // ⛔ Button trong row
83
+ E.closest("svg") || // ⛔ Icon
84
+ E.closest(".ant-checkbox") || // ⛔ AntD checkbox
85
+ E.closest("a") || y == null || y(b);
86
+ };
87
+ }
88
+ return r ? /* @__PURE__ */ O.jsx(Ri, { type: "table" }) : /* @__PURE__ */ O.jsx(
89
+ bi,
90
+ {
91
+ rowKey: d,
92
+ dataSource: e,
93
+ columns: t,
94
+ pagination: p,
95
+ loading: r,
96
+ rowSelection: l ? m : void 0,
97
+ onChange: h,
98
+ onRow: (b) => ({
99
+ onClick: v(b, u)
100
+ }),
101
+ locale: {
102
+ emptyText: /* @__PURE__ */ O.jsx(Si, {})
103
+ },
104
+ rowClassName: (b, y) => y % 2 === 0 ? "bg-[#EEEFF0]" : "",
105
+ ...f
106
+ }
107
+ );
108
+ }, ku = ({
109
+ children: e,
110
+ onOk: t,
111
+ onSubmit: r,
112
+ ...n
113
+ }) => /* @__PURE__ */ O.jsx(xi, { onOk: r || t, ...n, children: /* @__PURE__ */ O.jsx("div", { className: "max-h-[20rem] overflow-y-auto", children: r ? /* @__PURE__ */ O.jsx("form", { onSubmit: r, children: e }) : e }) }), Mu = ({ children: e, ...t }) => /* @__PURE__ */ O.jsx(Ci, { ...t, children: e }), On = (e) => {
114
+ let t;
115
+ const r = /* @__PURE__ */ new Set(), n = (s, u) => {
116
+ const d = typeof s == "function" ? s(t) : s;
117
+ if (!Object.is(d, t)) {
118
+ const f = t;
119
+ t = u ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), r.forEach((p) => p(t, f));
120
+ }
121
+ }, o = () => t, c = { setState: n, getState: o, getInitialState: () => l, subscribe: (s) => (r.add(s), () => r.delete(s)) }, l = t = e(n, o, c);
122
+ return c;
123
+ }, Li = (e) => e ? On(e) : On, Hi = (e) => e;
124
+ function Di(e, t = Hi) {
125
+ const r = Ce.useSyncExternalStore(
126
+ e.subscribe,
127
+ () => t(e.getState()),
128
+ () => t(e.getInitialState())
129
+ );
130
+ return Ce.useDebugValue(r), r;
131
+ }
132
+ const wn = (e) => {
133
+ const t = Li(e), r = (n) => Di(t, n);
134
+ return Object.assign(r, t), r;
135
+ }, zi = (e) => e ? wn(e) : wn, Vi = zi((e) => ({
136
+ activeTabKey: void 0,
137
+ // giá trị mặc định
138
+ setActiveTabKey: (t) => e({ activeTabKey: t })
139
+ })), Au = ({
140
+ items: e,
141
+ lazyRender: t = !1,
142
+ defaultActiveKey: r,
143
+ ...n
144
+ }) => {
145
+ var c;
146
+ const { activeTabKey: o, setActiveTabKey: a } = Vi(), i = (r == null ? void 0 : r.toString()) || ((c = e[0]) == null ? void 0 : c.key);
147
+ return Le(() => {
148
+ !o && i && a(i);
149
+ }, [o, i, a]), /* @__PURE__ */ O.jsx(
150
+ Ei,
151
+ {
152
+ items: e,
153
+ destroyInactiveTabPane: t,
154
+ activeKey: o,
155
+ defaultActiveKey: r,
156
+ onChange: (l) => a(l),
157
+ ...n
158
+ }
159
+ );
160
+ }, ju = (e) => {
161
+ const { containerClassName: t, popoverClassName: r, ...n } = e;
162
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(Ti, { className: r, ...n }) });
163
+ };
164
+ var Bi = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, Fi = function(t, r) {
165
+ return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
166
+ ref: r,
167
+ icon: Bi
168
+ }));
169
+ }, yo = /* @__PURE__ */ g.forwardRef(Fi);
170
+ process.env.NODE_ENV !== "production" && (yo.displayName = "BarsOutlined");
171
+ var Wi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z" } }] }, name: "filter", theme: "outlined" }, Xi = function(t, r) {
172
+ return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
173
+ ref: r,
174
+ icon: Wi
175
+ }));
176
+ }, bo = /* @__PURE__ */ g.forwardRef(Xi);
177
+ process.env.NODE_ENV !== "production" && (bo.displayName = "FilterOutlined");
178
+ var Gi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, Ui = function(t, r) {
179
+ return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
180
+ ref: r,
181
+ icon: Gi
182
+ }));
183
+ }, mr = /* @__PURE__ */ g.forwardRef(Ui);
184
+ process.env.NODE_ENV !== "production" && (mr.displayName = "LeftOutlined");
185
+ var Ki = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, qi = function(t, r) {
186
+ return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
187
+ ref: r,
188
+ icon: Ki
189
+ }));
190
+ }, yr = /* @__PURE__ */ g.forwardRef(qi);
191
+ process.env.NODE_ENV !== "production" && (yr.displayName = "RightOutlined");
192
+ var Yi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, Qi = function(t, r) {
193
+ return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
194
+ ref: r,
195
+ icon: Yi
196
+ }));
197
+ }, So = /* @__PURE__ */ g.forwardRef(Qi);
198
+ process.env.NODE_ENV !== "production" && (So.displayName = "SearchOutlined");
199
+ const Nu = ({
200
+ initialValues: e,
201
+ renderFilterFields: t,
202
+ onSubmit: r,
203
+ onReset: n,
204
+ classNamesContainer: o,
205
+ classNameWrapperForm: a,
206
+ hideDefaultSubmit: i,
207
+ hideResetButton: c
208
+ }) => {
209
+ const { control: l, handleSubmit: s, reset: u, setValue: d } = hi({
210
+ defaultValues: e
211
+ });
212
+ return /* @__PURE__ */ O.jsxs("form", { className: a, onSubmit: s(r), children: [
213
+ /* @__PURE__ */ O.jsx("div", { className: o, children: t && t({
214
+ control: l,
215
+ setValue: d,
216
+ handleSubmit: s
217
+ }) }),
218
+ !i && /* @__PURE__ */ O.jsxs("div", { className: "flex justify-end gap-2 mb-3", children: [
219
+ /* @__PURE__ */ O.jsx(
220
+ _n,
221
+ {
222
+ icon: /* @__PURE__ */ O.jsx(So, {}),
223
+ className: "px-3 py-1 ",
224
+ color: "blue",
225
+ variant: "solid",
226
+ htmlType: "submit",
227
+ children: "Tìm kiếm"
228
+ }
229
+ ),
230
+ !c && /* @__PURE__ */ O.jsx(
231
+ _n,
232
+ {
233
+ icon: /* @__PURE__ */ O.jsx(bo, {}),
234
+ className: "px-3 py-1",
235
+ onClick: () => {
236
+ u(), n == null || n();
237
+ },
238
+ children: "Đặt lại"
239
+ }
240
+ )
241
+ ] })
242
+ ] });
243
+ }, $u = ({
244
+ children: e,
245
+ className: t,
246
+ size: r
247
+ }) => /* @__PURE__ */ O.jsx(
248
+ "div",
249
+ {
250
+ className: et(r, "mx-auto px-4 sm:px-6 lg:px-8", t),
251
+ children: e
252
+ }
253
+ ), Zi = {
254
+ error: "red",
255
+ info: "blue",
256
+ success: "green",
257
+ warning: "yellow"
258
+ }, Ru = ({ type: e, children: t, ...r }) => {
259
+ const n = e ? Zi[e] : void 0;
260
+ return /* @__PURE__ */ O.jsx(_i, { color: n, ...r, children: t });
261
+ }, Iu = (e) => {
262
+ const { colClassName: t, ...r } = e;
263
+ return /* @__PURE__ */ O.jsx(Oi, { className: t, ...r });
264
+ }, Lu = (e) => {
265
+ const { rowClassName: t, ...r } = e;
266
+ return /* @__PURE__ */ O.jsx(wi, { className: t, ...r });
267
+ }, Hu = (e) => {
268
+ const { containerClassName: t, dropdownClassName: r, ...n } = e;
269
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(Pi, { className: r, ...n }) });
270
+ }, Du = (e) => {
271
+ const { containerClassName: t, breadcrumbClassName: r, ...n } = e;
272
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(ki, { className: r, ...n }) });
273
+ }, zu = (e) => {
274
+ const { containerClassName: t, flexClassName: r, ...n } = e;
275
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(Mi, { className: r, ...n }) });
276
+ };
277
+ function br(e, t) {
278
+ (t == null || t > e.length) && (t = e.length);
279
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
280
+ return n;
281
+ }
282
+ function Ji(e) {
283
+ if (Array.isArray(e)) return br(e);
284
+ }
285
+ function xo(e) {
286
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
287
+ }
288
+ function nn(e, t) {
289
+ if (e) {
290
+ if (typeof e == "string") return br(e, t);
291
+ var r = {}.toString.call(e).slice(8, -1);
292
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? br(e, t) : void 0;
293
+ }
294
+ }
295
+ function es() {
296
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
297
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
298
+ }
299
+ function Ee(e) {
300
+ return Ji(e) || xo(e) || nn(e) || es();
301
+ }
302
+ function Co(e, t) {
303
+ var r = Object.assign({}, e);
304
+ return Array.isArray(t) && t.forEach(function(n) {
305
+ delete r[n];
306
+ }), r;
307
+ }
308
+ function Eo(e) {
309
+ if (Array.isArray(e)) return e;
310
+ }
311
+ function ts(e, t) {
312
+ var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
313
+ if (r != null) {
314
+ var n, o, a, i, c = [], l = !0, s = !1;
315
+ try {
316
+ if (a = (r = r.call(e)).next, t === 0) {
317
+ if (Object(r) !== r) return;
318
+ l = !1;
319
+ } else for (; !(l = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); l = !0) ;
320
+ } catch (u) {
321
+ s = !0, o = u;
322
+ } finally {
323
+ try {
324
+ if (!l && r.return != null && (i = r.return(), Object(i) !== i)) return;
325
+ } finally {
326
+ if (s) throw o;
327
+ }
328
+ }
329
+ return c;
330
+ }
331
+ }
332
+ function To() {
333
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
334
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
335
+ }
336
+ function R(e, t) {
337
+ return Eo(e) || ts(e, t) || nn(e, t) || To();
338
+ }
339
+ function F(e) {
340
+ "@babel/helpers - typeof";
341
+ return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
342
+ return typeof t;
343
+ } : function(t) {
344
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
345
+ }, F(e);
346
+ }
347
+ function rs(e, t) {
348
+ if (F(e) != "object" || !e) return e;
349
+ var r = e[Symbol.toPrimitive];
350
+ if (r !== void 0) {
351
+ var n = r.call(e, t);
352
+ if (F(n) != "object") return n;
353
+ throw new TypeError("@@toPrimitive must return a primitive value.");
354
+ }
355
+ return (t === "string" ? String : Number)(e);
356
+ }
357
+ function _o(e) {
358
+ var t = rs(e, "string");
359
+ return F(t) == "symbol" ? t : t + "";
360
+ }
361
+ function P(e, t, r) {
362
+ return (t = _o(t)) in e ? Object.defineProperty(e, t, {
363
+ value: r,
364
+ enumerable: !0,
365
+ configurable: !0,
366
+ writable: !0
367
+ }) : e[t] = r, e;
368
+ }
369
+ function Pn(e, t) {
370
+ var r = Object.keys(e);
371
+ if (Object.getOwnPropertySymbols) {
372
+ var n = Object.getOwnPropertySymbols(e);
373
+ t && (n = n.filter(function(o) {
374
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
375
+ })), r.push.apply(r, n);
376
+ }
377
+ return r;
378
+ }
379
+ function k(e) {
380
+ for (var t = 1; t < arguments.length; t++) {
381
+ var r = arguments[t] != null ? arguments[t] : {};
382
+ t % 2 ? Pn(Object(r), !0).forEach(function(n) {
383
+ P(e, n, r[n]);
384
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Pn(Object(r)).forEach(function(n) {
385
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
386
+ });
387
+ }
388
+ return e;
389
+ }
390
+ function gt(e) {
391
+ for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
392
+ r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
393
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
394
+ r >>> 24, t = /* Math.imul(k, m): */
395
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
396
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
397
+ switch (o) {
398
+ case 3:
399
+ t ^= (e.charCodeAt(n + 2) & 255) << 16;
400
+ case 2:
401
+ t ^= (e.charCodeAt(n + 1) & 255) << 8;
402
+ case 1:
403
+ t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
404
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
405
+ }
406
+ return t ^= t >>> 13, t = /* Math.imul(h, m): */
407
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
408
+ }
409
+ function Pe() {
410
+ return !!(typeof window < "u" && window.document && window.document.createElement);
411
+ }
412
+ function ns(e, t) {
413
+ if (!e)
414
+ return !1;
415
+ if (e.contains)
416
+ return e.contains(t);
417
+ for (var r = t; r; ) {
418
+ if (r === e)
419
+ return !0;
420
+ r = r.parentNode;
421
+ }
422
+ return !1;
423
+ }
424
+ var kn = "data-rc-order", Mn = "data-rc-priority", os = "rc-util-key", Sr = /* @__PURE__ */ new Map();
425
+ function Oo() {
426
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
427
+ return t ? t.startsWith("data-") ? t : "data-".concat(t) : os;
428
+ }
429
+ function qt(e) {
430
+ if (e.attachTo)
431
+ return e.attachTo;
432
+ var t = document.querySelector("head");
433
+ return t || document.body;
434
+ }
435
+ function as(e) {
436
+ return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
437
+ }
438
+ function on(e) {
439
+ return Array.from((Sr.get(e) || e).children).filter(function(t) {
440
+ return t.tagName === "STYLE";
441
+ });
442
+ }
443
+ function wo(e) {
444
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
445
+ if (!Pe())
446
+ return null;
447
+ var r = t.csp, n = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = as(n), c = i === "prependQueue", l = document.createElement("style");
448
+ l.setAttribute(kn, i), c && a && l.setAttribute(Mn, "".concat(a)), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = e;
449
+ var s = qt(t), u = s.firstChild;
450
+ if (n) {
451
+ if (c) {
452
+ var d = (t.styles || on(s)).filter(function(f) {
453
+ if (!["prepend", "prependQueue"].includes(f.getAttribute(kn)))
454
+ return !1;
455
+ var p = Number(f.getAttribute(Mn) || 0);
456
+ return a >= p;
457
+ });
458
+ if (d.length)
459
+ return s.insertBefore(l, d[d.length - 1].nextSibling), l;
460
+ }
461
+ s.insertBefore(l, u);
462
+ } else
463
+ s.appendChild(l);
464
+ return l;
465
+ }
466
+ function Po(e) {
467
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = qt(t);
468
+ return (t.styles || on(r)).find(function(n) {
469
+ return n.getAttribute(Oo(t)) === e;
470
+ });
471
+ }
472
+ function ko(e) {
473
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Po(e, t);
474
+ if (r) {
475
+ var n = qt(t);
476
+ n.removeChild(r);
477
+ }
478
+ }
479
+ function is(e, t) {
480
+ var r = Sr.get(e);
481
+ if (!r || !ns(document, r)) {
482
+ var n = wo("", t), o = n.parentNode;
483
+ Sr.set(e, o), e.removeChild(n);
484
+ }
485
+ }
486
+ function Ze(e, t) {
487
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = qt(r), o = on(n), a = k(k({}, r), {}, {
488
+ styles: o
489
+ });
490
+ is(n, a);
491
+ var i = Po(t, a);
492
+ if (i) {
493
+ var c, l;
494
+ if ((c = a.csp) !== null && c !== void 0 && c.nonce && i.nonce !== ((l = a.csp) === null || l === void 0 ? void 0 : l.nonce)) {
495
+ var s;
496
+ i.nonce = (s = a.csp) === null || s === void 0 ? void 0 : s.nonce;
497
+ }
498
+ return i.innerHTML !== e && (i.innerHTML = e), i;
499
+ }
500
+ var u = wo(e, a);
501
+ return u.setAttribute(Oo(a), t), u;
502
+ }
503
+ function ss(e, t) {
504
+ if (e == null) return {};
505
+ var r = {};
506
+ for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
507
+ if (t.indexOf(n) !== -1) continue;
508
+ r[n] = e[n];
509
+ }
510
+ return r;
511
+ }
512
+ function xr(e, t) {
513
+ if (e == null) return {};
514
+ var r, n, o = ss(e, t);
515
+ if (Object.getOwnPropertySymbols) {
516
+ var a = Object.getOwnPropertySymbols(e);
517
+ for (n = 0; n < a.length; n++) r = a[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
518
+ }
519
+ return o;
520
+ }
521
+ function Mo(e, t, r) {
522
+ var n = g.useRef({});
523
+ return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
524
+ }
525
+ var Cr = {}, an = [], cs = function(t) {
526
+ an.push(t);
527
+ };
528
+ function sn(e, t) {
529
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
530
+ var r = an.reduce(function(n, o) {
531
+ return o(n ?? "", "warning");
532
+ }, t);
533
+ r && console.error("Warning: ".concat(r));
534
+ }
535
+ }
536
+ function ls(e, t) {
537
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
538
+ var r = an.reduce(function(n, o) {
539
+ return o(n ?? "", "note");
540
+ }, t);
541
+ r && console.warn("Note: ".concat(r));
542
+ }
543
+ }
544
+ function Ao() {
545
+ Cr = {};
546
+ }
547
+ function jo(e, t, r) {
548
+ !t && !Cr[r] && (e(!1, r), Cr[r] = !0);
549
+ }
550
+ function Fe(e, t) {
551
+ jo(sn, e, t);
552
+ }
553
+ function us(e, t) {
554
+ jo(ls, e, t);
555
+ }
556
+ Fe.preMessage = cs;
557
+ Fe.resetWarned = Ao;
558
+ Fe.noteOnce = us;
559
+ function fs(e, t) {
560
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
561
+ function o(a, i) {
562
+ var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, l = n.has(a);
563
+ if (Fe(!l, "Warning: There may be circular references"), l)
564
+ return !1;
565
+ if (a === i)
566
+ return !0;
567
+ if (r && c > 1)
568
+ return !1;
569
+ n.add(a);
570
+ var s = c + 1;
571
+ if (Array.isArray(a)) {
572
+ if (!Array.isArray(i) || a.length !== i.length)
573
+ return !1;
574
+ for (var u = 0; u < a.length; u++)
575
+ if (!o(a[u], i[u], s))
576
+ return !1;
577
+ return !0;
578
+ }
579
+ if (a && i && F(a) === "object" && F(i) === "object") {
580
+ var d = Object.keys(a);
581
+ return d.length !== Object.keys(i).length ? !1 : d.every(function(f) {
582
+ return o(a[f], i[f], s);
583
+ });
584
+ }
585
+ return !1;
586
+ }
587
+ return o(e, t);
588
+ }
589
+ function ke(e, t) {
590
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
591
+ }
592
+ function An(e, t) {
593
+ for (var r = 0; r < t.length; r++) {
594
+ var n = t[r];
595
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, _o(n.key), n);
596
+ }
597
+ }
598
+ function Me(e, t, r) {
599
+ return t && An(e.prototype, t), r && An(e, r), Object.defineProperty(e, "prototype", {
600
+ writable: !1
601
+ }), e;
602
+ }
603
+ var ds = "%";
604
+ function Er(e) {
605
+ return e.join(ds);
606
+ }
607
+ var vs = /* @__PURE__ */ function() {
608
+ function e(t) {
609
+ ke(this, e), P(this, "instanceId", void 0), P(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = t;
610
+ }
611
+ return Me(e, [{
612
+ key: "get",
613
+ value: function(r) {
614
+ return this.opGet(Er(r));
615
+ }
616
+ /** A fast get cache with `get` concat. */
617
+ }, {
618
+ key: "opGet",
619
+ value: function(r) {
620
+ return this.cache.get(r) || null;
621
+ }
622
+ }, {
623
+ key: "update",
624
+ value: function(r, n) {
625
+ return this.opUpdate(Er(r), n);
626
+ }
627
+ /** A fast get cache with `get` concat. */
628
+ }, {
629
+ key: "opUpdate",
630
+ value: function(r, n) {
631
+ var o = this.cache.get(r), a = n(o);
632
+ a === null ? this.cache.delete(r) : this.cache.set(r, a);
633
+ }
634
+ }]), e;
635
+ }(), tt = "data-token-hash", pe = "data-css-hash", gs = "data-cache-path", Re = "__cssinjs_instance__";
636
+ function hs() {
637
+ var e = Math.random().toString(12).slice(2);
638
+ if (typeof document < "u" && document.head && document.body) {
639
+ var t = document.body.querySelectorAll("style[".concat(pe, "]")) || [], r = document.head.firstChild;
640
+ Array.from(t).forEach(function(o) {
641
+ o[Re] = o[Re] || e, o[Re] === e && document.head.insertBefore(o, r);
642
+ });
643
+ var n = {};
644
+ Array.from(document.querySelectorAll("style[".concat(pe, "]"))).forEach(function(o) {
645
+ var a = o.getAttribute(pe);
646
+ if (n[a]) {
647
+ if (o[Re] === e) {
648
+ var i;
649
+ (i = o.parentNode) === null || i === void 0 || i.removeChild(o);
650
+ }
651
+ } else
652
+ n[a] = !0;
653
+ });
654
+ }
655
+ return new vs(e);
656
+ }
657
+ var xt = /* @__PURE__ */ g.createContext({
658
+ hashPriority: "low",
659
+ cache: hs(),
660
+ defaultCache: !0
661
+ });
662
+ function Ve(e) {
663
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
664
+ return e;
665
+ }
666
+ function Tr(e, t) {
667
+ return Tr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
668
+ return r.__proto__ = n, r;
669
+ }, Tr(e, t);
670
+ }
671
+ function Yt(e, t) {
672
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
673
+ e.prototype = Object.create(t && t.prototype, {
674
+ constructor: {
675
+ value: e,
676
+ writable: !0,
677
+ configurable: !0
678
+ }
679
+ }), Object.defineProperty(e, "prototype", {
680
+ writable: !1
681
+ }), t && Tr(e, t);
682
+ }
683
+ function Wt(e) {
684
+ return Wt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
685
+ return t.__proto__ || Object.getPrototypeOf(t);
686
+ }, Wt(e);
687
+ }
688
+ function No() {
689
+ try {
690
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
691
+ }));
692
+ } catch {
693
+ }
694
+ return (No = function() {
695
+ return !!e;
696
+ })();
697
+ }
698
+ function ps(e, t) {
699
+ if (t && (F(t) == "object" || typeof t == "function")) return t;
700
+ if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
701
+ return Ve(e);
702
+ }
703
+ function Qt(e) {
704
+ var t = No();
705
+ return function() {
706
+ var r, n = Wt(e);
707
+ if (t) {
708
+ var o = Wt(this).constructor;
709
+ r = Reflect.construct(n, arguments, o);
710
+ } else r = n.apply(this, arguments);
711
+ return ps(this, r);
712
+ };
713
+ }
714
+ function ms(e, t) {
715
+ if (e.length !== t.length)
716
+ return !1;
717
+ for (var r = 0; r < e.length; r++)
718
+ if (e[r] !== t[r])
719
+ return !1;
720
+ return !0;
721
+ }
722
+ var cn = /* @__PURE__ */ function() {
723
+ function e() {
724
+ ke(this, e), P(this, "cache", void 0), P(this, "keys", void 0), P(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
725
+ }
726
+ return Me(e, [{
727
+ key: "size",
728
+ value: function() {
729
+ return this.keys.length;
730
+ }
731
+ }, {
732
+ key: "internalGet",
733
+ value: function(r) {
734
+ var n, o, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = {
735
+ map: this.cache
736
+ };
737
+ return r.forEach(function(c) {
738
+ if (!i)
739
+ i = void 0;
740
+ else {
741
+ var l;
742
+ i = (l = i) === null || l === void 0 || (l = l.map) === null || l === void 0 ? void 0 : l.get(c);
743
+ }
744
+ }), (n = i) !== null && n !== void 0 && n.value && a && (i.value[1] = this.cacheCallTimes++), (o = i) === null || o === void 0 ? void 0 : o.value;
745
+ }
746
+ }, {
747
+ key: "get",
748
+ value: function(r) {
749
+ var n;
750
+ return (n = this.internalGet(r, !0)) === null || n === void 0 ? void 0 : n[0];
751
+ }
752
+ }, {
753
+ key: "has",
754
+ value: function(r) {
755
+ return !!this.internalGet(r);
756
+ }
757
+ }, {
758
+ key: "set",
759
+ value: function(r, n) {
760
+ var o = this;
761
+ if (!this.has(r)) {
762
+ if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
763
+ var a = this.keys.reduce(function(s, u) {
764
+ var d = R(s, 2), f = d[1];
765
+ return o.internalGet(u)[1] < f ? [u, o.internalGet(u)[1]] : s;
766
+ }, [this.keys[0], this.cacheCallTimes]), i = R(a, 1), c = i[0];
767
+ this.delete(c);
768
+ }
769
+ this.keys.push(r);
770
+ }
771
+ var l = this.cache;
772
+ r.forEach(function(s, u) {
773
+ if (u === r.length - 1)
774
+ l.set(s, {
775
+ value: [n, o.cacheCallTimes++]
776
+ });
777
+ else {
778
+ var d = l.get(s);
779
+ d ? d.map || (d.map = /* @__PURE__ */ new Map()) : l.set(s, {
780
+ map: /* @__PURE__ */ new Map()
781
+ }), l = l.get(s).map;
782
+ }
783
+ });
784
+ }
785
+ }, {
786
+ key: "deleteByPath",
787
+ value: function(r, n) {
788
+ var o = r.get(n[0]);
789
+ if (n.length === 1) {
790
+ var a;
791
+ return o.map ? r.set(n[0], {
792
+ map: o.map
793
+ }) : r.delete(n[0]), (a = o.value) === null || a === void 0 ? void 0 : a[0];
794
+ }
795
+ var i = this.deleteByPath(o.map, n.slice(1));
796
+ return (!o.map || o.map.size === 0) && !o.value && r.delete(n[0]), i;
797
+ }
798
+ }, {
799
+ key: "delete",
800
+ value: function(r) {
801
+ if (this.has(r))
802
+ return this.keys = this.keys.filter(function(n) {
803
+ return !ms(n, r);
804
+ }), this.deleteByPath(this.cache, r);
805
+ }
806
+ }]), e;
807
+ }();
808
+ P(cn, "MAX_CACHE_SIZE", 20);
809
+ P(cn, "MAX_CACHE_OFFSET", 5);
810
+ var jn = 0, $o = /* @__PURE__ */ function() {
811
+ function e(t) {
812
+ ke(this, e), P(this, "derivatives", void 0), P(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = jn, t.length === 0 && sn(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), jn += 1;
813
+ }
814
+ return Me(e, [{
815
+ key: "getDerivativeToken",
816
+ value: function(r) {
817
+ return this.derivatives.reduce(function(n, o) {
818
+ return o(r, n);
819
+ }, void 0);
820
+ }
821
+ }]), e;
822
+ }(), ir = new cn();
823
+ function _r(e) {
824
+ var t = Array.isArray(e) ? e : [e];
825
+ return ir.has(t) || ir.set(t, new $o(t)), ir.get(t);
826
+ }
827
+ var ys = /* @__PURE__ */ new WeakMap(), sr = {};
828
+ function bs(e, t) {
829
+ for (var r = ys, n = 0; n < t.length; n += 1) {
830
+ var o = t[n];
831
+ r.has(o) || r.set(o, /* @__PURE__ */ new WeakMap()), r = r.get(o);
832
+ }
833
+ return r.has(sr) || r.set(sr, e()), r.get(sr);
834
+ }
835
+ var Nn = /* @__PURE__ */ new WeakMap();
836
+ function vt(e) {
837
+ var t = Nn.get(e) || "";
838
+ return t || (Object.keys(e).forEach(function(r) {
839
+ var n = e[r];
840
+ t += r, n instanceof $o ? t += n.id : n && F(n) === "object" ? t += vt(n) : t += n;
841
+ }), t = gt(t), Nn.set(e, t)), t;
842
+ }
843
+ function $n(e, t) {
844
+ return gt("".concat(t, "_").concat(vt(e)));
845
+ }
846
+ var Or = Pe();
847
+ function Ne(e) {
848
+ return typeof e == "number" ? "".concat(e, "px") : e;
849
+ }
850
+ function Xt(e, t, r) {
851
+ var n, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
852
+ if (a)
853
+ return e;
854
+ var i = k(k({}, o), {}, (n = {}, P(n, tt, t), P(n, pe, r), n)), c = Object.keys(i).map(function(l) {
855
+ var s = i[l];
856
+ return s ? "".concat(l, '="').concat(s, '"') : null;
857
+ }).filter(function(l) {
858
+ return l;
859
+ }).join(" ");
860
+ return "<style ".concat(c, ">").concat(e, "</style>");
861
+ }
862
+ var Ht = function(t) {
863
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
864
+ return "--".concat(r ? "".concat(r, "-") : "").concat(t).replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase();
865
+ }, Ss = function(t, r, n) {
866
+ return Object.keys(t).length ? ".".concat(r).concat(n != null && n.scope ? ".".concat(n.scope) : "", "{").concat(Object.entries(t).map(function(o) {
867
+ var a = R(o, 2), i = a[0], c = a[1];
868
+ return "".concat(i, ":").concat(c, ";");
869
+ }).join(""), "}") : "";
870
+ }, Ro = function(t, r, n) {
871
+ var o = {}, a = {};
872
+ return Object.entries(t).forEach(function(i) {
873
+ var c, l, s = R(i, 2), u = s[0], d = s[1];
874
+ if (n != null && (c = n.preserve) !== null && c !== void 0 && c[u])
875
+ a[u] = d;
876
+ else if ((typeof d == "string" || typeof d == "number") && !(n != null && (l = n.ignore) !== null && l !== void 0 && l[u])) {
877
+ var f, p = Ht(u, n == null ? void 0 : n.prefix);
878
+ o[p] = typeof d == "number" && !(n != null && (f = n.unitless) !== null && f !== void 0 && f[u]) ? "".concat(d, "px") : String(d), a[u] = "var(".concat(p, ")");
879
+ }
880
+ }), [a, Ss(o, r, {
881
+ scope: n == null ? void 0 : n.scope
882
+ })];
883
+ }, Rn = process.env.NODE_ENV !== "test" && Pe() ? g.useLayoutEffect : g.useEffect, xs = function(t, r) {
884
+ var n = g.useRef(!0);
885
+ Rn(function() {
886
+ return t(n.current);
887
+ }, r), Rn(function() {
888
+ return n.current = !1, function() {
889
+ n.current = !0;
890
+ };
891
+ }, []);
892
+ }, Cs = k({}, g), In = Cs.useInsertionEffect, Es = function(t, r, n) {
893
+ g.useMemo(t, n), xs(function() {
894
+ return r(!0);
895
+ }, n);
896
+ }, Ts = In ? function(e, t, r) {
897
+ return In(function() {
898
+ return e(), t();
899
+ }, r);
900
+ } : Es, _s = k({}, g), Os = _s.useInsertionEffect, ws = function(t) {
901
+ var r = [], n = !1;
902
+ function o(a) {
903
+ if (n) {
904
+ process.env.NODE_ENV !== "production" && sn(!1, "[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");
905
+ return;
906
+ }
907
+ r.push(a);
908
+ }
909
+ return g.useEffect(function() {
910
+ return n = !1, function() {
911
+ n = !0, r.length && r.forEach(function(a) {
912
+ return a();
913
+ });
914
+ };
915
+ }, t), o;
916
+ }, Ps = function() {
917
+ return function(t) {
918
+ t();
919
+ };
920
+ }, ks = typeof Os < "u" ? ws : Ps;
921
+ function Ms() {
922
+ return !1;
923
+ }
924
+ var wr = !1;
925
+ function As() {
926
+ return wr;
927
+ }
928
+ const js = process.env.NODE_ENV === "production" ? Ms : As;
929
+ if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
930
+ var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : null;
931
+ if (kt && typeof kt.webpackHotUpdate == "function") {
932
+ var Ns = kt.webpackHotUpdate;
933
+ kt.webpackHotUpdate = function() {
934
+ return wr = !0, setTimeout(function() {
935
+ wr = !1;
936
+ }, 0), Ns.apply(void 0, arguments);
937
+ };
938
+ }
939
+ }
940
+ function ln(e, t, r, n, o) {
941
+ var a = g.useContext(xt), i = a.cache, c = [e].concat(Ee(t)), l = Er(c), s = ks([l]), u = js(), d = function(h) {
942
+ i.opUpdate(l, function(v) {
943
+ var b = v || [void 0, void 0], y = R(b, 2), C = y[0], E = C === void 0 ? 0 : C, S = y[1], T = S;
944
+ process.env.NODE_ENV !== "production" && S && u && (n == null || n(T, u), T = null);
945
+ var x = T || r(), _ = [E, x];
946
+ return h ? h(_) : _;
947
+ });
948
+ };
949
+ g.useMemo(
950
+ function() {
951
+ d();
952
+ },
953
+ /* eslint-disable react-hooks/exhaustive-deps */
954
+ [l]
955
+ /* eslint-enable */
956
+ );
957
+ var f = i.opGet(l);
958
+ process.env.NODE_ENV !== "production" && !f && (d(), f = i.opGet(l));
959
+ var p = f[1];
960
+ return Ts(function() {
961
+ o == null || o(p);
962
+ }, function(m) {
963
+ return d(function(h) {
964
+ var v = R(h, 2), b = v[0], y = v[1];
965
+ return m && b === 0 && (o == null || o(p)), [b + 1, y];
966
+ }), function() {
967
+ i.opUpdate(l, function(h) {
968
+ var v = h || [], b = R(v, 2), y = b[0], C = y === void 0 ? 0 : y, E = b[1], S = C - 1;
969
+ return S === 0 ? (s(function() {
970
+ (m || !i.opGet(l)) && (n == null || n(E, !1));
971
+ }), null) : [C - 1, E];
972
+ });
973
+ };
974
+ }, [l]), p;
975
+ }
976
+ var $s = {}, Rs = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", ze = /* @__PURE__ */ new Map();
977
+ function Is(e) {
978
+ ze.set(e, (ze.get(e) || 0) + 1);
979
+ }
980
+ function Ls(e, t) {
981
+ if (typeof document < "u") {
982
+ var r = document.querySelectorAll("style[".concat(tt, '="').concat(e, '"]'));
983
+ r.forEach(function(n) {
984
+ if (n[Re] === t) {
985
+ var o;
986
+ (o = n.parentNode) === null || o === void 0 || o.removeChild(n);
987
+ }
988
+ });
989
+ }
990
+ }
991
+ var Hs = 0;
992
+ function Ds(e, t) {
993
+ ze.set(e, (ze.get(e) || 0) - 1);
994
+ var r = Array.from(ze.keys()), n = r.filter(function(o) {
995
+ var a = ze.get(o) || 0;
996
+ return a <= 0;
997
+ });
998
+ r.length - n.length > Hs && n.forEach(function(o) {
999
+ Ls(o, t), ze.delete(o);
1000
+ });
1001
+ }
1002
+ var zs = function(t, r, n, o) {
1003
+ var a = n.getDerivativeToken(t), i = k(k({}, a), r);
1004
+ return o && (i = o(i)), i;
1005
+ }, Io = "token";
1006
+ function Vs(e, t) {
1007
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = He(xt), o = n.cache.instanceId, a = n.container, i = r.salt, c = i === void 0 ? "" : i, l = r.override, s = l === void 0 ? $s : l, u = r.formatToken, d = r.getComputedToken, f = r.cssVar, p = bs(function() {
1008
+ return Object.assign.apply(Object, [{}].concat(Ee(t)));
1009
+ }, t), m = vt(p), h = vt(s), v = f ? vt(f) : "", b = ln(Io, [c, e.id, m, h, v], function() {
1010
+ var y, C = d ? d(p, s, e) : zs(p, s, e, u), E = k({}, C), S = "";
1011
+ if (f) {
1012
+ var T = Ro(C, f.key, {
1013
+ prefix: f.prefix,
1014
+ ignore: f.ignore,
1015
+ unitless: f.unitless,
1016
+ preserve: f.preserve
1017
+ }), x = R(T, 2);
1018
+ C = x[0], S = x[1];
1019
+ }
1020
+ var _ = $n(C, c);
1021
+ C._tokenKey = _, E._tokenKey = $n(E, c);
1022
+ var A = (y = f == null ? void 0 : f.key) !== null && y !== void 0 ? y : _;
1023
+ C._themeKey = A, Is(A);
1024
+ var M = "".concat(Rs, "-").concat(gt(_));
1025
+ return C._hashId = M, [C, M, E, S, (f == null ? void 0 : f.key) || ""];
1026
+ }, function(y) {
1027
+ Ds(y[0]._themeKey, o);
1028
+ }, function(y) {
1029
+ var C = R(y, 4), E = C[0], S = C[3];
1030
+ if (f && S) {
1031
+ var T = Ze(S, gt("css-variables-".concat(E._themeKey)), {
1032
+ mark: pe,
1033
+ prepend: "queue",
1034
+ attachTo: a,
1035
+ priority: -999
1036
+ });
1037
+ T[Re] = o, T.setAttribute(tt, E._themeKey);
1038
+ }
1039
+ });
1040
+ return b;
1041
+ }
1042
+ var Bs = function(t, r, n) {
1043
+ var o = R(t, 5), a = o[2], i = o[3], c = o[4], l = n || {}, s = l.plain;
1044
+ if (!i)
1045
+ return null;
1046
+ var u = a._tokenKey, d = -999, f = {
1047
+ "data-rc-order": "prependQueue",
1048
+ "data-rc-priority": "".concat(d)
1049
+ }, p = Xt(i, c, u, f, s);
1050
+ return [d, u, p];
1051
+ };
1052
+ function Gt() {
1053
+ return Gt = Object.assign ? Object.assign.bind() : function(e) {
1054
+ for (var t = 1; t < arguments.length; t++) {
1055
+ var r = arguments[t];
1056
+ for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
1057
+ }
1058
+ return e;
1059
+ }, Gt.apply(null, arguments);
1060
+ }
1061
+ var Fs = {
1062
+ animationIterationCount: 1,
1063
+ borderImageOutset: 1,
1064
+ borderImageSlice: 1,
1065
+ borderImageWidth: 1,
1066
+ boxFlex: 1,
1067
+ boxFlexGroup: 1,
1068
+ boxOrdinalGroup: 1,
1069
+ columnCount: 1,
1070
+ columns: 1,
1071
+ flex: 1,
1072
+ flexGrow: 1,
1073
+ flexPositive: 1,
1074
+ flexShrink: 1,
1075
+ flexNegative: 1,
1076
+ flexOrder: 1,
1077
+ gridRow: 1,
1078
+ gridRowEnd: 1,
1079
+ gridRowSpan: 1,
1080
+ gridRowStart: 1,
1081
+ gridColumn: 1,
1082
+ gridColumnEnd: 1,
1083
+ gridColumnSpan: 1,
1084
+ gridColumnStart: 1,
1085
+ msGridRow: 1,
1086
+ msGridRowSpan: 1,
1087
+ msGridColumn: 1,
1088
+ msGridColumnSpan: 1,
1089
+ fontWeight: 1,
1090
+ lineHeight: 1,
1091
+ opacity: 1,
1092
+ order: 1,
1093
+ orphans: 1,
1094
+ tabSize: 1,
1095
+ widows: 1,
1096
+ zIndex: 1,
1097
+ zoom: 1,
1098
+ WebkitLineClamp: 1,
1099
+ // SVG-related properties
1100
+ fillOpacity: 1,
1101
+ floodOpacity: 1,
1102
+ stopOpacity: 1,
1103
+ strokeDasharray: 1,
1104
+ strokeDashoffset: 1,
1105
+ strokeMiterlimit: 1,
1106
+ strokeOpacity: 1,
1107
+ strokeWidth: 1
1108
+ }, Lo = "comm", Ho = "rule", Do = "decl", Ws = "@import", Xs = "@namespace", Gs = "@keyframes", Us = "@layer", zo = Math.abs, un = String.fromCharCode;
1109
+ function Vo(e) {
1110
+ return e.trim();
1111
+ }
1112
+ function Dt(e, t, r) {
1113
+ return e.replace(t, r);
1114
+ }
1115
+ function Ks(e, t, r) {
1116
+ return e.indexOf(t, r);
1117
+ }
1118
+ function Je(e, t) {
1119
+ return e.charCodeAt(t) | 0;
1120
+ }
1121
+ function rt(e, t, r) {
1122
+ return e.slice(t, r);
1123
+ }
1124
+ function xe(e) {
1125
+ return e.length;
1126
+ }
1127
+ function qs(e) {
1128
+ return e.length;
1129
+ }
1130
+ function Mt(e, t) {
1131
+ return t.push(e), e;
1132
+ }
1133
+ var Zt = 1, nt = 1, Bo = 0, ve = 0, ee = 0, ot = "";
1134
+ function fn(e, t, r, n, o, a, i, c) {
1135
+ return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Zt, column: nt, length: i, return: "", siblings: c };
1136
+ }
1137
+ function Ys() {
1138
+ return ee;
1139
+ }
1140
+ function Qs() {
1141
+ return ee = ve > 0 ? Je(ot, --ve) : 0, nt--, ee === 10 && (nt = 1, Zt--), ee;
1142
+ }
1143
+ function me() {
1144
+ return ee = ve < Bo ? Je(ot, ve++) : 0, nt++, ee === 10 && (nt = 1, Zt++), ee;
1145
+ }
1146
+ function Ie() {
1147
+ return Je(ot, ve);
1148
+ }
1149
+ function zt() {
1150
+ return ve;
1151
+ }
1152
+ function Jt(e, t) {
1153
+ return rt(ot, e, t);
1154
+ }
1155
+ function ht(e) {
1156
+ switch (e) {
1157
+ // \0 \t \n \r \s whitespace token
1158
+ case 0:
1159
+ case 9:
1160
+ case 10:
1161
+ case 13:
1162
+ case 32:
1163
+ return 5;
1164
+ // ! + , / > @ ~ isolate token
1165
+ case 33:
1166
+ case 43:
1167
+ case 44:
1168
+ case 47:
1169
+ case 62:
1170
+ case 64:
1171
+ case 126:
1172
+ // ; { } breakpoint token
1173
+ case 59:
1174
+ case 123:
1175
+ case 125:
1176
+ return 4;
1177
+ // : accompanied token
1178
+ case 58:
1179
+ return 3;
1180
+ // " ' ( [ opening delimit token
1181
+ case 34:
1182
+ case 39:
1183
+ case 40:
1184
+ case 91:
1185
+ return 2;
1186
+ // ) ] closing delimit token
1187
+ case 41:
1188
+ case 93:
1189
+ return 1;
1190
+ }
1191
+ return 0;
1192
+ }
1193
+ function Zs(e) {
1194
+ return Zt = nt = 1, Bo = xe(ot = e), ve = 0, [];
1195
+ }
1196
+ function Js(e) {
1197
+ return ot = "", e;
1198
+ }
1199
+ function cr(e) {
1200
+ return Vo(Jt(ve - 1, Pr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1201
+ }
1202
+ function ec(e) {
1203
+ for (; (ee = Ie()) && ee < 33; )
1204
+ me();
1205
+ return ht(e) > 2 || ht(ee) > 3 ? "" : " ";
1206
+ }
1207
+ function tc(e, t) {
1208
+ for (; --t && me() && !(ee < 48 || ee > 102 || ee > 57 && ee < 65 || ee > 70 && ee < 97); )
1209
+ ;
1210
+ return Jt(e, zt() + (t < 6 && Ie() == 32 && me() == 32));
1211
+ }
1212
+ function Pr(e) {
1213
+ for (; me(); )
1214
+ switch (ee) {
1215
+ // ] ) " '
1216
+ case e:
1217
+ return ve;
1218
+ // " '
1219
+ case 34:
1220
+ case 39:
1221
+ e !== 34 && e !== 39 && Pr(ee);
1222
+ break;
1223
+ // (
1224
+ case 40:
1225
+ e === 41 && Pr(e);
1226
+ break;
1227
+ // \
1228
+ case 92:
1229
+ me();
1230
+ break;
1231
+ }
1232
+ return ve;
1233
+ }
1234
+ function rc(e, t) {
1235
+ for (; me() && e + ee !== 57; )
1236
+ if (e + ee === 84 && Ie() === 47)
1237
+ break;
1238
+ return "/*" + Jt(t, ve - 1) + "*" + un(e === 47 ? e : me());
1239
+ }
1240
+ function nc(e) {
1241
+ for (; !ht(Ie()); )
1242
+ me();
1243
+ return Jt(e, ve);
1244
+ }
1245
+ function oc(e) {
1246
+ return Js(Vt("", null, null, null, [""], e = Zs(e), 0, [0], e));
1247
+ }
1248
+ function Vt(e, t, r, n, o, a, i, c, l) {
1249
+ for (var s = 0, u = 0, d = i, f = 0, p = 0, m = 0, h = 1, v = 1, b = 1, y = 0, C = "", E = o, S = a, T = n, x = C; v; )
1250
+ switch (m = y, y = me()) {
1251
+ // (
1252
+ case 40:
1253
+ if (m != 108 && Je(x, d - 1) == 58) {
1254
+ Ks(x += Dt(cr(y), "&", "&\f"), "&\f", zo(s ? c[s - 1] : 0)) != -1 && (b = -1);
1255
+ break;
1256
+ }
1257
+ // " ' [
1258
+ case 34:
1259
+ case 39:
1260
+ case 91:
1261
+ x += cr(y);
1262
+ break;
1263
+ // \t \n \r \s
1264
+ case 9:
1265
+ case 10:
1266
+ case 13:
1267
+ case 32:
1268
+ x += ec(m);
1269
+ break;
1270
+ // \
1271
+ case 92:
1272
+ x += tc(zt() - 1, 7);
1273
+ continue;
1274
+ // /
1275
+ case 47:
1276
+ switch (Ie()) {
1277
+ case 42:
1278
+ case 47:
1279
+ Mt(ac(rc(me(), zt()), t, r, l), l), (ht(m || 1) == 5 || ht(Ie() || 1) == 5) && xe(x) && rt(x, -1, void 0) !== " " && (x += " ");
1280
+ break;
1281
+ default:
1282
+ x += "/";
1283
+ }
1284
+ break;
1285
+ // {
1286
+ case 123 * h:
1287
+ c[s++] = xe(x) * b;
1288
+ // } ; \0
1289
+ case 125 * h:
1290
+ case 59:
1291
+ case 0:
1292
+ switch (y) {
1293
+ // \0 }
1294
+ case 0:
1295
+ case 125:
1296
+ v = 0;
1297
+ // ;
1298
+ case 59 + u:
1299
+ b == -1 && (x = Dt(x, /\f/g, "")), p > 0 && (xe(x) - d || h === 0 && m === 47) && Mt(p > 32 ? Hn(x + ";", n, r, d - 1, l) : Hn(Dt(x, " ", "") + ";", n, r, d - 2, l), l);
1300
+ break;
1301
+ // @ ;
1302
+ case 59:
1303
+ x += ";";
1304
+ // { rule/at-rule
1305
+ default:
1306
+ if (Mt(T = Ln(x, t, r, s, u, o, c, C, E = [], S = [], d, a), a), y === 123)
1307
+ if (u === 0)
1308
+ Vt(x, t, T, T, E, a, d, c, S);
1309
+ else {
1310
+ switch (f) {
1311
+ // c(ontainer)
1312
+ case 99:
1313
+ if (Je(x, 3) === 110) break;
1314
+ // l(ayer)
1315
+ case 108:
1316
+ if (Je(x, 2) === 97) break;
1317
+ default:
1318
+ u = 0;
1319
+ // d(ocument) m(edia) s(upports)
1320
+ case 100:
1321
+ case 109:
1322
+ case 115:
1323
+ }
1324
+ u ? Vt(e, T, T, n && Mt(Ln(e, T, T, 0, 0, o, c, C, o, E = [], d, S), S), o, S, d, c, n ? E : S) : Vt(x, T, T, T, [""], S, 0, c, S);
1325
+ }
1326
+ }
1327
+ s = u = p = 0, h = b = 1, C = x = "", d = i;
1328
+ break;
1329
+ // :
1330
+ case 58:
1331
+ d = 1 + xe(x), p = m;
1332
+ default:
1333
+ if (h < 1) {
1334
+ if (y == 123)
1335
+ --h;
1336
+ else if (y == 125 && h++ == 0 && Qs() == 125)
1337
+ continue;
1338
+ }
1339
+ switch (x += un(y), y * h) {
1340
+ // &
1341
+ case 38:
1342
+ b = u > 0 ? 1 : (x += "\f", -1);
1343
+ break;
1344
+ // ,
1345
+ case 44:
1346
+ c[s++] = (xe(x) - 1) * b, b = 1;
1347
+ break;
1348
+ // @
1349
+ case 64:
1350
+ Ie() === 45 && (x += cr(me())), f = Ie(), u = d = xe(C = x += nc(zt())), y++;
1351
+ break;
1352
+ // -
1353
+ case 45:
1354
+ m === 45 && xe(x) == 2 && (h = 0);
1355
+ }
1356
+ }
1357
+ return a;
1358
+ }
1359
+ function Ln(e, t, r, n, o, a, i, c, l, s, u, d) {
1360
+ for (var f = o - 1, p = o === 0 ? a : [""], m = qs(p), h = 0, v = 0, b = 0; h < n; ++h)
1361
+ for (var y = 0, C = rt(e, f + 1, f = zo(v = i[h])), E = e; y < m; ++y)
1362
+ (E = Vo(v > 0 ? p[y] + " " + C : Dt(C, /&\f/g, p[y]))) && (l[b++] = E);
1363
+ return fn(e, t, r, o === 0 ? Ho : c, l, s, u, d);
1364
+ }
1365
+ function ac(e, t, r, n) {
1366
+ return fn(e, t, r, Lo, un(Ys()), rt(e, 2, -2), 0, n);
1367
+ }
1368
+ function Hn(e, t, r, n, o) {
1369
+ return fn(e, t, r, Do, rt(e, 0, n), rt(e, n + 1, -1), n, o);
1370
+ }
1371
+ function kr(e, t) {
1372
+ for (var r = "", n = 0; n < e.length; n++)
1373
+ r += t(e[n], n, e, t) || "";
1374
+ return r;
1375
+ }
1376
+ function ic(e, t, r, n) {
1377
+ switch (e.type) {
1378
+ case Us:
1379
+ if (e.children.length) break;
1380
+ case Ws:
1381
+ case Xs:
1382
+ case Do:
1383
+ return e.return = e.return || e.value;
1384
+ case Lo:
1385
+ return "";
1386
+ case Gs:
1387
+ return e.return = e.value + "{" + kr(e.children, n) + "}";
1388
+ case Ho:
1389
+ if (!xe(e.value = e.props.join(","))) return "";
1390
+ }
1391
+ return xe(r = kr(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
1392
+ }
1393
+ function Fo(e, t) {
1394
+ var r = t.path, n = t.parentSelectors;
1395
+ Fe(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
1396
+ }
1397
+ var sc = function(t, r, n) {
1398
+ if (t === "content") {
1399
+ var o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, a = ["normal", "none", "initial", "inherit", "unset"];
1400
+ (typeof r != "string" || a.indexOf(r) === -1 && !o.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && Fo("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r, "\"'`."), n);
1401
+ }
1402
+ }, cc = function(t, r, n) {
1403
+ t === "animation" && n.hashId && r !== "none" && Fo("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n);
1404
+ }, Dn = "data-ant-cssinjs-cache-path", Wo = "_FILE_STYLE__", Be, Xo = !0;
1405
+ function lc() {
1406
+ if (!Be && (Be = {}, Pe())) {
1407
+ var e = document.createElement("div");
1408
+ e.className = Dn, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
1409
+ var t = getComputedStyle(e).content || "";
1410
+ t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(o) {
1411
+ var a = o.split(":"), i = R(a, 2), c = i[0], l = i[1];
1412
+ Be[c] = l;
1413
+ });
1414
+ var r = document.querySelector("style[".concat(Dn, "]"));
1415
+ if (r) {
1416
+ var n;
1417
+ Xo = !1, (n = r.parentNode) === null || n === void 0 || n.removeChild(r);
1418
+ }
1419
+ document.body.removeChild(e);
1420
+ }
1421
+ }
1422
+ function uc(e) {
1423
+ return lc(), !!Be[e];
1424
+ }
1425
+ function fc(e) {
1426
+ var t = Be[e], r = null;
1427
+ if (t && Pe())
1428
+ if (Xo)
1429
+ r = Wo;
1430
+ else {
1431
+ var n = document.querySelector("style[".concat(pe, '="').concat(Be[e], '"]'));
1432
+ n ? r = n.innerHTML : delete Be[e];
1433
+ }
1434
+ return [r, t];
1435
+ }
1436
+ var Go = "_skip_check_", Uo = "_multi_value_";
1437
+ function Bt(e) {
1438
+ var t = kr(oc(e), ic);
1439
+ return t.replace(/\{%%%\:[^;];}/g, ";");
1440
+ }
1441
+ function dc(e) {
1442
+ return F(e) === "object" && e && (Go in e || Uo in e);
1443
+ }
1444
+ function zn(e, t, r) {
1445
+ if (!t)
1446
+ return e;
1447
+ var n = ".".concat(t), o = r === "low" ? ":where(".concat(n, ")") : n, a = e.split(",").map(function(i) {
1448
+ var c, l = i.trim().split(/\s+/), s = l[0] || "", u = ((c = s.match(/^\w+/)) === null || c === void 0 ? void 0 : c[0]) || "";
1449
+ return s = "".concat(u).concat(o).concat(s.slice(u.length)), [s].concat(Ee(l.slice(1))).join(" ");
1450
+ });
1451
+ return a.join(",");
1452
+ }
1453
+ var vc = function e(t) {
1454
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
1455
+ root: !0,
1456
+ parentSelectors: []
1457
+ }, o = n.root, a = n.injectHash, i = n.parentSelectors, c = r.hashId, l = r.layer, s = r.path, u = r.hashPriority, d = r.transformers, f = d === void 0 ? [] : d, p = r.linters, m = p === void 0 ? [] : p, h = "", v = {};
1458
+ function b(E) {
1459
+ var S = E.getName(c);
1460
+ if (!v[S]) {
1461
+ var T = e(E.style, r, {
1462
+ root: !1,
1463
+ parentSelectors: i
1464
+ }), x = R(T, 1), _ = x[0];
1465
+ v[S] = "@keyframes ".concat(E.getName(c)).concat(_);
1466
+ }
1467
+ }
1468
+ function y(E) {
1469
+ var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1470
+ return E.forEach(function(T) {
1471
+ Array.isArray(T) ? y(T, S) : T && S.push(T);
1472
+ }), S;
1473
+ }
1474
+ var C = y(Array.isArray(t) ? t : [t]);
1475
+ return C.forEach(function(E) {
1476
+ var S = typeof E == "string" && !o ? {} : E;
1477
+ if (typeof S == "string")
1478
+ h += "".concat(S, `
1479
+ `);
1480
+ else if (S._keyframe)
1481
+ b(S);
1482
+ else {
1483
+ var T = f.reduce(function(x, _) {
1484
+ var A;
1485
+ return (_ == null || (A = _.visit) === null || A === void 0 ? void 0 : A.call(_, x)) || x;
1486
+ }, S);
1487
+ Object.keys(T).forEach(function(x) {
1488
+ var _ = T[x];
1489
+ if (F(_) === "object" && _ && (x !== "animationName" || !_._keyframe) && !dc(_)) {
1490
+ var A = !1, M = x.trim(), L = !1;
1491
+ (o || a) && c ? M.startsWith("@") ? A = !0 : M === "&" ? M = zn("", c, u) : M = zn(x, c, u) : o && !c && (M === "&" || M === "") && (M = "", L = !0);
1492
+ var I = e(_, r, {
1493
+ root: L,
1494
+ injectHash: A,
1495
+ parentSelectors: [].concat(Ee(i), [M])
1496
+ }), $ = R(I, 2), j = $[0], N = $[1];
1497
+ v = k(k({}, v), N), h += "".concat(M).concat(j);
1498
+ } else {
1499
+ let H = function(X, G) {
1500
+ process.env.NODE_ENV !== "production" && (F(_) !== "object" || !(_ != null && _[Go])) && [sc, cc].concat(Ee(m)).forEach(function(B) {
1501
+ return B(X, G, {
1502
+ path: s,
1503
+ hashId: c,
1504
+ parentSelectors: i
1505
+ });
1506
+ });
1507
+ var K = X.replace(/[A-Z]/g, function(B) {
1508
+ return "-".concat(B.toLowerCase());
1509
+ }), U = G;
1510
+ !Fs[X] && typeof U == "number" && U !== 0 && (U = "".concat(U, "px")), X === "animationName" && G !== null && G !== void 0 && G._keyframe && (b(G), U = G.getName(c)), h += "".concat(K, ":").concat(U, ";");
1511
+ };
1512
+ var V, W = (V = _ == null ? void 0 : _.value) !== null && V !== void 0 ? V : _;
1513
+ F(_) === "object" && _ !== null && _ !== void 0 && _[Uo] && Array.isArray(W) ? W.forEach(function(X) {
1514
+ H(x, X);
1515
+ }) : H(x, W);
1516
+ }
1517
+ });
1518
+ }
1519
+ }), o ? l && (h && (h = "@layer ".concat(l.name, " {").concat(h, "}")), l.dependencies && (v["@layer ".concat(l.name)] = l.dependencies.map(function(E) {
1520
+ return "@layer ".concat(E, ", ").concat(l.name, ";");
1521
+ }).join(`
1522
+ `))) : h = "{".concat(h, "}"), [h, v];
1523
+ };
1524
+ function Ko(e, t) {
1525
+ return gt("".concat(e.join("%")).concat(t));
1526
+ }
1527
+ function gc() {
1528
+ return null;
1529
+ }
1530
+ var qo = "style";
1531
+ function Mr(e, t) {
1532
+ var r = e.token, n = e.path, o = e.hashId, a = e.layer, i = e.nonce, c = e.clientOnly, l = e.order, s = l === void 0 ? 0 : l, u = g.useContext(xt), d = u.autoClear, f = u.mock, p = u.defaultCache, m = u.hashPriority, h = u.container, v = u.ssrInline, b = u.transformers, y = u.linters, C = u.cache, E = u.layer, S = r._tokenKey, T = [S];
1533
+ E && T.push("layer"), T.push.apply(T, Ee(n));
1534
+ var x = Or;
1535
+ process.env.NODE_ENV !== "production" && f !== void 0 && (x = f === "client");
1536
+ var _ = ln(
1537
+ qo,
1538
+ T,
1539
+ // Create cache if needed
1540
+ function() {
1541
+ var $ = T.join("|");
1542
+ if (uc($)) {
1543
+ var j = fc($), N = R(j, 2), V = N[0], W = N[1];
1544
+ if (V)
1545
+ return [V, S, W, {}, c, s];
1546
+ }
1547
+ var H = t(), X = vc(H, {
1548
+ hashId: o,
1549
+ hashPriority: m,
1550
+ layer: E ? a : void 0,
1551
+ path: n.join("-"),
1552
+ transformers: b,
1553
+ linters: y
1554
+ }), G = R(X, 2), K = G[0], U = G[1], B = Bt(K), Z = Ko(T, B);
1555
+ return [B, S, Z, U, c, s];
1556
+ },
1557
+ // Remove cache if no need
1558
+ function($, j) {
1559
+ var N = R($, 3), V = N[2];
1560
+ (j || d) && Or && ko(V, {
1561
+ mark: pe
1562
+ });
1563
+ },
1564
+ // Effect: Inject style here
1565
+ function($) {
1566
+ var j = R($, 4), N = j[0];
1567
+ j[1];
1568
+ var V = j[2], W = j[3];
1569
+ if (x && N !== Wo) {
1570
+ var H = {
1571
+ mark: pe,
1572
+ prepend: E ? !1 : "queue",
1573
+ attachTo: h,
1574
+ priority: s
1575
+ }, X = typeof i == "function" ? i() : i;
1576
+ X && (H.csp = {
1577
+ nonce: X
1578
+ });
1579
+ var G = [], K = [];
1580
+ Object.keys(W).forEach(function(B) {
1581
+ B.startsWith("@layer") ? G.push(B) : K.push(B);
1582
+ }), G.forEach(function(B) {
1583
+ Ze(Bt(W[B]), "_layer-".concat(B), k(k({}, H), {}, {
1584
+ prepend: !0
1585
+ }));
1586
+ });
1587
+ var U = Ze(N, V, H);
1588
+ U[Re] = C.instanceId, U.setAttribute(tt, S), process.env.NODE_ENV !== "production" && U.setAttribute(gs, T.join("|")), K.forEach(function(B) {
1589
+ Ze(Bt(W[B]), "_effect-".concat(B), H);
1590
+ });
1591
+ }
1592
+ }
1593
+ ), A = R(_, 3), M = A[0], L = A[1], I = A[2];
1594
+ return function($) {
1595
+ var j;
1596
+ if (!v || x || !p)
1597
+ j = /* @__PURE__ */ g.createElement(gc, null);
1598
+ else {
1599
+ var N;
1600
+ j = /* @__PURE__ */ g.createElement("style", Gt({}, (N = {}, P(N, tt, L), P(N, pe, I), N), {
1601
+ dangerouslySetInnerHTML: {
1602
+ __html: M
1603
+ }
1604
+ }));
1605
+ }
1606
+ return /* @__PURE__ */ g.createElement(g.Fragment, null, j, $);
1607
+ };
1608
+ }
1609
+ var hc = function(t, r, n) {
1610
+ var o = R(t, 6), a = o[0], i = o[1], c = o[2], l = o[3], s = o[4], u = o[5], d = n || {}, f = d.plain;
1611
+ if (s)
1612
+ return null;
1613
+ var p = a, m = {
1614
+ "data-rc-order": "prependQueue",
1615
+ "data-rc-priority": "".concat(u)
1616
+ };
1617
+ return p = Xt(a, i, c, m, f), l && Object.keys(l).forEach(function(h) {
1618
+ if (!r[h]) {
1619
+ r[h] = !0;
1620
+ var v = Bt(l[h]), b = Xt(v, i, "_effect-".concat(h), m, f);
1621
+ h.startsWith("@layer") ? p = b + p : p += b;
1622
+ }
1623
+ }), [u, c, p];
1624
+ }, Yo = "cssVar", pc = function(t, r) {
1625
+ var n = t.key, o = t.prefix, a = t.unitless, i = t.ignore, c = t.token, l = t.scope, s = l === void 0 ? "" : l, u = He(xt), d = u.cache.instanceId, f = u.container, p = c._tokenKey, m = [].concat(Ee(t.path), [n, s, p]), h = ln(Yo, m, function() {
1626
+ var v = r(), b = Ro(v, n, {
1627
+ prefix: o,
1628
+ unitless: a,
1629
+ ignore: i,
1630
+ scope: s
1631
+ }), y = R(b, 2), C = y[0], E = y[1], S = Ko(m, E);
1632
+ return [C, E, S, n];
1633
+ }, function(v) {
1634
+ var b = R(v, 3), y = b[2];
1635
+ Or && ko(y, {
1636
+ mark: pe
1637
+ });
1638
+ }, function(v) {
1639
+ var b = R(v, 3), y = b[1], C = b[2];
1640
+ if (y) {
1641
+ var E = Ze(y, C, {
1642
+ mark: pe,
1643
+ prepend: "queue",
1644
+ attachTo: f,
1645
+ priority: -999
1646
+ });
1647
+ E[Re] = d, E.setAttribute(tt, n);
1648
+ }
1649
+ });
1650
+ return h;
1651
+ }, mc = function(t, r, n) {
1652
+ var o = R(t, 4), a = o[1], i = o[2], c = o[3], l = n || {}, s = l.plain;
1653
+ if (!a)
1654
+ return null;
1655
+ var u = -999, d = {
1656
+ "data-rc-order": "prependQueue",
1657
+ "data-rc-priority": "".concat(u)
1658
+ }, f = Xt(a, c, i, d, s);
1659
+ return [u, i, f];
1660
+ }, lt;
1661
+ lt = {}, P(lt, qo, hc), P(lt, Io, Bs), P(lt, Yo, mc);
1662
+ function qe(e) {
1663
+ return e.notSplit = !0, e;
1664
+ }
1665
+ qe(["borderTop", "borderBottom"]), qe(["borderTop"]), qe(["borderBottom"]), qe(["borderLeft", "borderRight"]), qe(["borderLeft"]), qe(["borderRight"]);
1666
+ function yc(e) {
1667
+ return Eo(e) || xo(e) || nn(e) || To();
1668
+ }
1669
+ function Ar(e, t) {
1670
+ for (var r = e, n = 0; n < t.length; n += 1) {
1671
+ if (r == null)
1672
+ return;
1673
+ r = r[t[n]];
1674
+ }
1675
+ return r;
1676
+ }
1677
+ function Qo(e, t, r, n) {
1678
+ if (!t.length)
1679
+ return r;
1680
+ var o = yc(t), a = o[0], i = o.slice(1), c;
1681
+ return !e && typeof a == "number" ? c = [] : Array.isArray(e) ? c = Ee(e) : c = k({}, e), n && r === void 0 && i.length === 1 ? delete c[a][i[0]] : c[a] = Qo(c[a], i, r, n), c;
1682
+ }
1683
+ function lr(e, t, r) {
1684
+ var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
1685
+ return t.length && n && r === void 0 && !Ar(e, t.slice(0, -1)) ? e : Qo(e, t, r, n);
1686
+ }
1687
+ function bc(e) {
1688
+ return F(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
1689
+ }
1690
+ function Vn(e) {
1691
+ return Array.isArray(e) ? [] : {};
1692
+ }
1693
+ var Sc = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
1694
+ function xc() {
1695
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
1696
+ t[r] = arguments[r];
1697
+ var n = Vn(t[0]);
1698
+ return t.forEach(function(o) {
1699
+ function a(i, c) {
1700
+ var l = new Set(c), s = Ar(o, i), u = Array.isArray(s);
1701
+ if (u || bc(s)) {
1702
+ if (!l.has(s)) {
1703
+ l.add(s);
1704
+ var d = Ar(n, i);
1705
+ u ? n = lr(n, i, []) : (!d || F(d) !== "object") && (n = lr(n, i, Vn(s))), Sc(s).forEach(function(f) {
1706
+ a([].concat(Ee(i), [f]), l);
1707
+ });
1708
+ }
1709
+ } else
1710
+ n = lr(n, i, s);
1711
+ }
1712
+ a([]);
1713
+ }), n;
1714
+ }
1715
+ function Zo() {
1716
+ }
1717
+ let we = null;
1718
+ function Cc() {
1719
+ we = null, Ao();
1720
+ }
1721
+ let at = Zo;
1722
+ process.env.NODE_ENV !== "production" && (at = (e, t, r) => {
1723
+ Fe(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && Cc();
1724
+ });
1725
+ const Jo = /* @__PURE__ */ g.createContext({}), er = process.env.NODE_ENV !== "production" ? (e) => {
1726
+ const {
1727
+ strict: t
1728
+ } = g.useContext(Jo), r = (n, o, a) => {
1729
+ if (!n)
1730
+ if (t === !1 && o === "deprecated") {
1731
+ const i = we;
1732
+ we || (we = {}), we[e] = we[e] || [], we[e].includes(a || "") || we[e].push(a || ""), i || console.warn("[antd] There exists deprecated usage in your code:", we);
1733
+ } else
1734
+ process.env.NODE_ENV !== "production" && at(n, e, a);
1735
+ };
1736
+ return r.deprecated = (n, o, a, i) => {
1737
+ r(n, "deprecated", `\`${o}\` is deprecated. Please use \`${a}\` instead.${i ? ` ${i}` : ""}`);
1738
+ }, r;
1739
+ } : () => {
1740
+ const e = () => {
1741
+ };
1742
+ return e.deprecated = Zo, e;
1743
+ }, Ec = /* @__PURE__ */ mo(void 0), ue = "${label} is not a valid ${type}", tr = {
1744
+ Modal: {
1745
+ okText: "OK",
1746
+ cancelText: "Cancel",
1747
+ justOkText: "OK"
1748
+ },
1749
+ Form: {
1750
+ optional: "(optional)",
1751
+ defaultValidateMessages: {
1752
+ default: "Field validation error for ${label}",
1753
+ required: "Please enter ${label}",
1754
+ enum: "${label} must be one of [${enum}]",
1755
+ whitespace: "${label} cannot be a blank character",
1756
+ date: {
1757
+ format: "${label} date format is invalid",
1758
+ parse: "${label} cannot be converted to a date",
1759
+ invalid: "${label} is an invalid date"
1760
+ },
1761
+ types: {
1762
+ string: ue,
1763
+ method: ue,
1764
+ array: ue,
1765
+ object: ue,
1766
+ number: ue,
1767
+ date: ue,
1768
+ boolean: ue,
1769
+ integer: ue,
1770
+ float: ue,
1771
+ regexp: ue,
1772
+ email: ue,
1773
+ url: ue,
1774
+ hex: ue
1775
+ },
1776
+ string: {
1777
+ len: "${label} must be ${len} characters",
1778
+ min: "${label} must be at least ${min} characters",
1779
+ max: "${label} must be up to ${max} characters",
1780
+ range: "${label} must be between ${min}-${max} characters"
1781
+ },
1782
+ number: {
1783
+ len: "${label} must be equal to ${len}",
1784
+ min: "${label} must be minimum ${min}",
1785
+ max: "${label} must be maximum ${max}",
1786
+ range: "${label} must be between ${min}-${max}"
1787
+ },
1788
+ array: {
1789
+ len: "Must be ${len} ${label}",
1790
+ min: "At least ${min} ${label}",
1791
+ max: "At most ${max} ${label}",
1792
+ range: "The amount of ${label} must be between ${min}-${max}"
1793
+ },
1794
+ pattern: {
1795
+ mismatch: "${label} does not match the pattern ${pattern}"
1796
+ }
1797
+ }
1798
+ }
1799
+ };
1800
+ Object.assign({}, tr.Modal);
1801
+ let Ft = [];
1802
+ const Bn = () => Ft.reduce((e, t) => Object.assign(Object.assign({}, e), t), tr.Modal);
1803
+ function Tc(e) {
1804
+ if (e) {
1805
+ const t = Object.assign({}, e);
1806
+ return Ft.push(t), Bn(), () => {
1807
+ Ft = Ft.filter((r) => r !== t), Bn();
1808
+ };
1809
+ }
1810
+ Object.assign({}, tr.Modal);
1811
+ }
1812
+ const ea = /* @__PURE__ */ mo(void 0), ta = "internalMark", ra = (e) => {
1813
+ const {
1814
+ locale: t = {},
1815
+ children: r,
1816
+ _ANT_MARK__: n
1817
+ } = e;
1818
+ if (process.env.NODE_ENV !== "production") {
1819
+ const a = er("LocaleProvider");
1820
+ process.env.NODE_ENV !== "production" && a(n === ta, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale");
1821
+ }
1822
+ g.useEffect(() => Tc(t == null ? void 0 : t.Modal), [t]);
1823
+ const o = g.useMemo(() => Object.assign(Object.assign({}, t), {
1824
+ exist: !0
1825
+ }), [t]);
1826
+ return /* @__PURE__ */ g.createElement(ea.Provider, {
1827
+ value: o
1828
+ }, r);
1829
+ };
1830
+ process.env.NODE_ENV !== "production" && (ra.displayName = "LocaleProvider");
1831
+ const na = {
1832
+ blue: "#1677FF",
1833
+ purple: "#722ED1",
1834
+ cyan: "#13C2C2",
1835
+ green: "#52C41A",
1836
+ magenta: "#EB2F96",
1837
+ /**
1838
+ * @deprecated Use magenta instead
1839
+ */
1840
+ pink: "#EB2F96",
1841
+ red: "#F5222D",
1842
+ orange: "#FA8C16",
1843
+ yellow: "#FADB14",
1844
+ volcano: "#FA541C",
1845
+ geekblue: "#2F54EB",
1846
+ gold: "#FAAD14",
1847
+ lime: "#A0D911"
1848
+ }, pt = Object.assign(Object.assign({}, na), {
1849
+ // Color
1850
+ colorPrimary: "#1677ff",
1851
+ colorSuccess: "#52c41a",
1852
+ colorWarning: "#faad14",
1853
+ colorError: "#ff4d4f",
1854
+ colorInfo: "#1677ff",
1855
+ colorLink: "",
1856
+ colorTextBase: "",
1857
+ colorBgBase: "",
1858
+ // Font
1859
+ fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1860
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
1861
+ 'Noto Color Emoji'`,
1862
+ fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
1863
+ fontSize: 14,
1864
+ // Line
1865
+ lineWidth: 1,
1866
+ lineType: "solid",
1867
+ // Motion
1868
+ motionUnit: 0.1,
1869
+ motionBase: 0,
1870
+ motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
1871
+ motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
1872
+ motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
1873
+ motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
1874
+ motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
1875
+ motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
1876
+ motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
1877
+ motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
1878
+ // Radius
1879
+ borderRadius: 6,
1880
+ // Size
1881
+ sizeUnit: 4,
1882
+ sizeStep: 4,
1883
+ sizePopupArrow: 16,
1884
+ // Control Base
1885
+ controlHeight: 32,
1886
+ // zIndex
1887
+ zIndexBase: 0,
1888
+ zIndexPopupBase: 1e3,
1889
+ // Image
1890
+ opacityImage: 1,
1891
+ // Wireframe
1892
+ wireframe: !1,
1893
+ // Motion
1894
+ motion: !0
1895
+ }), re = Math.round;
1896
+ function ur(e, t) {
1897
+ const r = e.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = r.map((o) => parseFloat(o));
1898
+ for (let o = 0; o < 3; o += 1)
1899
+ n[o] = t(n[o] || 0, r[o] || "", o);
1900
+ return r[3] ? n[3] = r[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
1901
+ }
1902
+ const Fn = (e, t, r) => r === 0 ? e : e / 100;
1903
+ function ut(e, t) {
1904
+ const r = t || 255;
1905
+ return e > r ? r : e < 0 ? 0 : e;
1906
+ }
1907
+ class Q {
1908
+ constructor(t) {
1909
+ P(this, "isValid", !0), P(this, "r", 0), P(this, "g", 0), P(this, "b", 0), P(this, "a", 1), P(this, "_h", void 0), P(this, "_s", void 0), P(this, "_l", void 0), P(this, "_v", void 0), P(this, "_max", void 0), P(this, "_min", void 0), P(this, "_brightness", void 0);
1910
+ function r(n) {
1911
+ return n[0] in t && n[1] in t && n[2] in t;
1912
+ }
1913
+ if (t) if (typeof t == "string") {
1914
+ let o = function(a) {
1915
+ return n.startsWith(a);
1916
+ };
1917
+ const n = t.trim();
1918
+ /^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : o("rgb") ? this.fromRgbString(n) : o("hsl") ? this.fromHslString(n) : (o("hsv") || o("hsb")) && this.fromHsvString(n);
1919
+ } else if (t instanceof Q)
1920
+ this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a, this._h = t._h, this._s = t._s, this._l = t._l, this._v = t._v;
1921
+ else if (r("rgb"))
1922
+ this.r = ut(t.r), this.g = ut(t.g), this.b = ut(t.b), this.a = typeof t.a == "number" ? ut(t.a, 1) : 1;
1923
+ else if (r("hsl"))
1924
+ this.fromHsl(t);
1925
+ else if (r("hsv"))
1926
+ this.fromHsv(t);
1927
+ else
1928
+ throw new Error("@ant-design/fast-color: unsupported input " + JSON.stringify(t));
1929
+ }
1930
+ // ======================= Setter =======================
1931
+ setR(t) {
1932
+ return this._sc("r", t);
1933
+ }
1934
+ setG(t) {
1935
+ return this._sc("g", t);
1936
+ }
1937
+ setB(t) {
1938
+ return this._sc("b", t);
1939
+ }
1940
+ setA(t) {
1941
+ return this._sc("a", t, 1);
1942
+ }
1943
+ setHue(t) {
1944
+ const r = this.toHsv();
1945
+ return r.h = t, this._c(r);
1946
+ }
1947
+ // ======================= Getter =======================
1948
+ /**
1949
+ * Returns the perceived luminance of a color, from 0-1.
1950
+ * @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
1951
+ */
1952
+ getLuminance() {
1953
+ function t(a) {
1954
+ const i = a / 255;
1955
+ return i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
1956
+ }
1957
+ const r = t(this.r), n = t(this.g), o = t(this.b);
1958
+ return 0.2126 * r + 0.7152 * n + 0.0722 * o;
1959
+ }
1960
+ getHue() {
1961
+ if (typeof this._h > "u") {
1962
+ const t = this.getMax() - this.getMin();
1963
+ t === 0 ? this._h = 0 : this._h = re(60 * (this.r === this.getMax() ? (this.g - this.b) / t + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / t + 2 : (this.r - this.g) / t + 4));
1964
+ }
1965
+ return this._h;
1966
+ }
1967
+ getSaturation() {
1968
+ if (typeof this._s > "u") {
1969
+ const t = this.getMax() - this.getMin();
1970
+ t === 0 ? this._s = 0 : this._s = t / this.getMax();
1971
+ }
1972
+ return this._s;
1973
+ }
1974
+ getLightness() {
1975
+ return typeof this._l > "u" && (this._l = (this.getMax() + this.getMin()) / 510), this._l;
1976
+ }
1977
+ getValue() {
1978
+ return typeof this._v > "u" && (this._v = this.getMax() / 255), this._v;
1979
+ }
1980
+ /**
1981
+ * Returns the perceived brightness of the color, from 0-255.
1982
+ * Note: this is not the b of HSB
1983
+ * @see http://www.w3.org/TR/AERT#color-contrast
1984
+ */
1985
+ getBrightness() {
1986
+ return typeof this._brightness > "u" && (this._brightness = (this.r * 299 + this.g * 587 + this.b * 114) / 1e3), this._brightness;
1987
+ }
1988
+ // ======================== Func ========================
1989
+ darken(t = 10) {
1990
+ const r = this.getHue(), n = this.getSaturation();
1991
+ let o = this.getLightness() - t / 100;
1992
+ return o < 0 && (o = 0), this._c({
1993
+ h: r,
1994
+ s: n,
1995
+ l: o,
1996
+ a: this.a
1997
+ });
1998
+ }
1999
+ lighten(t = 10) {
2000
+ const r = this.getHue(), n = this.getSaturation();
2001
+ let o = this.getLightness() + t / 100;
2002
+ return o > 1 && (o = 1), this._c({
2003
+ h: r,
2004
+ s: n,
2005
+ l: o,
2006
+ a: this.a
2007
+ });
2008
+ }
2009
+ /**
2010
+ * Mix the current color a given amount with another color, from 0 to 100.
2011
+ * 0 means no mixing (return current color).
2012
+ */
2013
+ mix(t, r = 50) {
2014
+ const n = this._c(t), o = r / 100, a = (c) => (n[c] - this[c]) * o + this[c], i = {
2015
+ r: re(a("r")),
2016
+ g: re(a("g")),
2017
+ b: re(a("b")),
2018
+ a: re(a("a") * 100) / 100
2019
+ };
2020
+ return this._c(i);
2021
+ }
2022
+ /**
2023
+ * Mix the color with pure white, from 0 to 100.
2024
+ * Providing 0 will do nothing, providing 100 will always return white.
2025
+ */
2026
+ tint(t = 10) {
2027
+ return this.mix({
2028
+ r: 255,
2029
+ g: 255,
2030
+ b: 255,
2031
+ a: 1
2032
+ }, t);
2033
+ }
2034
+ /**
2035
+ * Mix the color with pure black, from 0 to 100.
2036
+ * Providing 0 will do nothing, providing 100 will always return black.
2037
+ */
2038
+ shade(t = 10) {
2039
+ return this.mix({
2040
+ r: 0,
2041
+ g: 0,
2042
+ b: 0,
2043
+ a: 1
2044
+ }, t);
2045
+ }
2046
+ onBackground(t) {
2047
+ const r = this._c(t), n = this.a + r.a * (1 - this.a), o = (a) => re((this[a] * this.a + r[a] * r.a * (1 - this.a)) / n);
2048
+ return this._c({
2049
+ r: o("r"),
2050
+ g: o("g"),
2051
+ b: o("b"),
2052
+ a: n
2053
+ });
2054
+ }
2055
+ // ======================= Status =======================
2056
+ isDark() {
2057
+ return this.getBrightness() < 128;
2058
+ }
2059
+ isLight() {
2060
+ return this.getBrightness() >= 128;
2061
+ }
2062
+ // ======================== MISC ========================
2063
+ equals(t) {
2064
+ return this.r === t.r && this.g === t.g && this.b === t.b && this.a === t.a;
2065
+ }
2066
+ clone() {
2067
+ return this._c(this);
2068
+ }
2069
+ // ======================= Format =======================
2070
+ toHexString() {
2071
+ let t = "#";
2072
+ const r = (this.r || 0).toString(16);
2073
+ t += r.length === 2 ? r : "0" + r;
2074
+ const n = (this.g || 0).toString(16);
2075
+ t += n.length === 2 ? n : "0" + n;
2076
+ const o = (this.b || 0).toString(16);
2077
+ if (t += o.length === 2 ? o : "0" + o, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
2078
+ const a = re(this.a * 255).toString(16);
2079
+ t += a.length === 2 ? a : "0" + a;
2080
+ }
2081
+ return t;
2082
+ }
2083
+ /** CSS support color pattern */
2084
+ toHsl() {
2085
+ return {
2086
+ h: this.getHue(),
2087
+ s: this.getSaturation(),
2088
+ l: this.getLightness(),
2089
+ a: this.a
2090
+ };
2091
+ }
2092
+ /** CSS support color pattern */
2093
+ toHslString() {
2094
+ const t = this.getHue(), r = re(this.getSaturation() * 100), n = re(this.getLightness() * 100);
2095
+ return this.a !== 1 ? `hsla(${t},${r}%,${n}%,${this.a})` : `hsl(${t},${r}%,${n}%)`;
2096
+ }
2097
+ /** Same as toHsb */
2098
+ toHsv() {
2099
+ return {
2100
+ h: this.getHue(),
2101
+ s: this.getSaturation(),
2102
+ v: this.getValue(),
2103
+ a: this.a
2104
+ };
2105
+ }
2106
+ toRgb() {
2107
+ return {
2108
+ r: this.r,
2109
+ g: this.g,
2110
+ b: this.b,
2111
+ a: this.a
2112
+ };
2113
+ }
2114
+ toRgbString() {
2115
+ return this.a !== 1 ? `rgba(${this.r},${this.g},${this.b},${this.a})` : `rgb(${this.r},${this.g},${this.b})`;
2116
+ }
2117
+ toString() {
2118
+ return this.toRgbString();
2119
+ }
2120
+ // ====================== Privates ======================
2121
+ /** Return a new FastColor object with one channel changed */
2122
+ _sc(t, r, n) {
2123
+ const o = this.clone();
2124
+ return o[t] = ut(r, n), o;
2125
+ }
2126
+ _c(t) {
2127
+ return new this.constructor(t);
2128
+ }
2129
+ getMax() {
2130
+ return typeof this._max > "u" && (this._max = Math.max(this.r, this.g, this.b)), this._max;
2131
+ }
2132
+ getMin() {
2133
+ return typeof this._min > "u" && (this._min = Math.min(this.r, this.g, this.b)), this._min;
2134
+ }
2135
+ fromHexString(t) {
2136
+ const r = t.replace("#", "");
2137
+ function n(o, a) {
2138
+ return parseInt(r[o] + r[a || o], 16);
2139
+ }
2140
+ r.length < 6 ? (this.r = n(0), this.g = n(1), this.b = n(2), this.a = r[3] ? n(3) / 255 : 1) : (this.r = n(0, 1), this.g = n(2, 3), this.b = n(4, 5), this.a = r[6] ? n(6, 7) / 255 : 1);
2141
+ }
2142
+ fromHsl({
2143
+ h: t,
2144
+ s: r,
2145
+ l: n,
2146
+ a: o
2147
+ }) {
2148
+ if (this._h = t % 360, this._s = r, this._l = n, this.a = typeof o == "number" ? o : 1, r <= 0) {
2149
+ const f = re(n * 255);
2150
+ this.r = f, this.g = f, this.b = f;
2151
+ }
2152
+ let a = 0, i = 0, c = 0;
2153
+ const l = t / 60, s = (1 - Math.abs(2 * n - 1)) * r, u = s * (1 - Math.abs(l % 2 - 1));
2154
+ l >= 0 && l < 1 ? (a = s, i = u) : l >= 1 && l < 2 ? (a = u, i = s) : l >= 2 && l < 3 ? (i = s, c = u) : l >= 3 && l < 4 ? (i = u, c = s) : l >= 4 && l < 5 ? (a = u, c = s) : l >= 5 && l < 6 && (a = s, c = u);
2155
+ const d = n - s / 2;
2156
+ this.r = re((a + d) * 255), this.g = re((i + d) * 255), this.b = re((c + d) * 255);
2157
+ }
2158
+ fromHsv({
2159
+ h: t,
2160
+ s: r,
2161
+ v: n,
2162
+ a: o
2163
+ }) {
2164
+ this._h = t % 360, this._s = r, this._v = n, this.a = typeof o == "number" ? o : 1;
2165
+ const a = re(n * 255);
2166
+ if (this.r = a, this.g = a, this.b = a, r <= 0)
2167
+ return;
2168
+ const i = t / 60, c = Math.floor(i), l = i - c, s = re(n * (1 - r) * 255), u = re(n * (1 - r * l) * 255), d = re(n * (1 - r * (1 - l)) * 255);
2169
+ switch (c) {
2170
+ case 0:
2171
+ this.g = d, this.b = s;
2172
+ break;
2173
+ case 1:
2174
+ this.r = u, this.b = s;
2175
+ break;
2176
+ case 2:
2177
+ this.r = s, this.b = d;
2178
+ break;
2179
+ case 3:
2180
+ this.r = s, this.g = u;
2181
+ break;
2182
+ case 4:
2183
+ this.r = d, this.g = s;
2184
+ break;
2185
+ case 5:
2186
+ default:
2187
+ this.g = s, this.b = u;
2188
+ break;
2189
+ }
2190
+ }
2191
+ fromHsvString(t) {
2192
+ const r = ur(t, Fn);
2193
+ this.fromHsv({
2194
+ h: r[0],
2195
+ s: r[1],
2196
+ v: r[2],
2197
+ a: r[3]
2198
+ });
2199
+ }
2200
+ fromHslString(t) {
2201
+ const r = ur(t, Fn);
2202
+ this.fromHsl({
2203
+ h: r[0],
2204
+ s: r[1],
2205
+ l: r[2],
2206
+ a: r[3]
2207
+ });
2208
+ }
2209
+ fromRgbString(t) {
2210
+ const r = ur(t, (n, o) => (
2211
+ // Convert percentage to number. e.g. 50% -> 128
2212
+ o.includes("%") ? re(n / 100 * 255) : n
2213
+ ));
2214
+ this.r = r[0], this.g = r[1], this.b = r[2], this.a = r[3];
2215
+ }
2216
+ }
2217
+ var At = 2, Wn = 0.16, _c = 0.05, Oc = 0.05, wc = 0.15, oa = 5, aa = 4, Pc = [{
2218
+ index: 7,
2219
+ amount: 15
2220
+ }, {
2221
+ index: 6,
2222
+ amount: 25
2223
+ }, {
2224
+ index: 5,
2225
+ amount: 30
2226
+ }, {
2227
+ index: 5,
2228
+ amount: 45
2229
+ }, {
2230
+ index: 5,
2231
+ amount: 65
2232
+ }, {
2233
+ index: 5,
2234
+ amount: 85
2235
+ }, {
2236
+ index: 4,
2237
+ amount: 90
2238
+ }, {
2239
+ index: 3,
2240
+ amount: 95
2241
+ }, {
2242
+ index: 2,
2243
+ amount: 97
2244
+ }, {
2245
+ index: 1,
2246
+ amount: 98
2247
+ }];
2248
+ function Xn(e, t, r) {
2249
+ var n;
2250
+ return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - At * t : Math.round(e.h) + At * t : n = r ? Math.round(e.h) + At * t : Math.round(e.h) - At * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
2251
+ }
2252
+ function Gn(e, t, r) {
2253
+ if (e.h === 0 && e.s === 0)
2254
+ return e.s;
2255
+ var n;
2256
+ return r ? n = e.s - Wn * t : t === aa ? n = e.s + Wn : n = e.s + _c * t, n > 1 && (n = 1), r && t === oa && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
2257
+ }
2258
+ function Un(e, t, r) {
2259
+ var n;
2260
+ return r ? n = e.v + Oc * t : n = e.v - wc * t, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
2261
+ }
2262
+ function Ut(e) {
2263
+ for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = new Q(e), o = n.toHsv(), a = oa; a > 0; a -= 1) {
2264
+ var i = new Q({
2265
+ h: Xn(o, a, !0),
2266
+ s: Gn(o, a, !0),
2267
+ v: Un(o, a, !0)
2268
+ });
2269
+ r.push(i);
2270
+ }
2271
+ r.push(n);
2272
+ for (var c = 1; c <= aa; c += 1) {
2273
+ var l = new Q({
2274
+ h: Xn(o, c),
2275
+ s: Gn(o, c),
2276
+ v: Un(o, c)
2277
+ });
2278
+ r.push(l);
2279
+ }
2280
+ return t.theme === "dark" ? Pc.map(function(s) {
2281
+ var u = s.index, d = s.amount;
2282
+ return new Q(t.backgroundColor || "#141414").mix(r[u], d).toHexString();
2283
+ }) : r.map(function(s) {
2284
+ return s.toHexString();
2285
+ });
2286
+ }
2287
+ var fr = {
2288
+ red: "#F5222D",
2289
+ volcano: "#FA541C",
2290
+ orange: "#FA8C16",
2291
+ gold: "#FAAD14",
2292
+ yellow: "#FADB14",
2293
+ lime: "#A0D911",
2294
+ green: "#52C41A",
2295
+ cyan: "#13C2C2",
2296
+ blue: "#1677FF",
2297
+ geekblue: "#2F54EB",
2298
+ purple: "#722ED1",
2299
+ magenta: "#EB2F96",
2300
+ grey: "#666666"
2301
+ }, jr = ["#fff1f0", "#ffccc7", "#ffa39e", "#ff7875", "#ff4d4f", "#f5222d", "#cf1322", "#a8071a", "#820014", "#5c0011"];
2302
+ jr.primary = jr[5];
2303
+ var Nr = ["#fff2e8", "#ffd8bf", "#ffbb96", "#ff9c6e", "#ff7a45", "#fa541c", "#d4380d", "#ad2102", "#871400", "#610b00"];
2304
+ Nr.primary = Nr[5];
2305
+ var $r = ["#fff7e6", "#ffe7ba", "#ffd591", "#ffc069", "#ffa940", "#fa8c16", "#d46b08", "#ad4e00", "#873800", "#612500"];
2306
+ $r.primary = $r[5];
2307
+ var Rr = ["#fffbe6", "#fff1b8", "#ffe58f", "#ffd666", "#ffc53d", "#faad14", "#d48806", "#ad6800", "#874d00", "#613400"];
2308
+ Rr.primary = Rr[5];
2309
+ var Ir = ["#feffe6", "#ffffb8", "#fffb8f", "#fff566", "#ffec3d", "#fadb14", "#d4b106", "#ad8b00", "#876800", "#614700"];
2310
+ Ir.primary = Ir[5];
2311
+ var Lr = ["#fcffe6", "#f4ffb8", "#eaff8f", "#d3f261", "#bae637", "#a0d911", "#7cb305", "#5b8c00", "#3f6600", "#254000"];
2312
+ Lr.primary = Lr[5];
2313
+ var Hr = ["#f6ffed", "#d9f7be", "#b7eb8f", "#95de64", "#73d13d", "#52c41a", "#389e0d", "#237804", "#135200", "#092b00"];
2314
+ Hr.primary = Hr[5];
2315
+ var Dr = ["#e6fffb", "#b5f5ec", "#87e8de", "#5cdbd3", "#36cfc9", "#13c2c2", "#08979c", "#006d75", "#00474f", "#002329"];
2316
+ Dr.primary = Dr[5];
2317
+ var zr = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
2318
+ zr.primary = zr[5];
2319
+ var Vr = ["#f0f5ff", "#d6e4ff", "#adc6ff", "#85a5ff", "#597ef7", "#2f54eb", "#1d39c4", "#10239e", "#061178", "#030852"];
2320
+ Vr.primary = Vr[5];
2321
+ var Br = ["#f9f0ff", "#efdbff", "#d3adf7", "#b37feb", "#9254de", "#722ed1", "#531dab", "#391085", "#22075e", "#120338"];
2322
+ Br.primary = Br[5];
2323
+ var Fr = ["#fff0f6", "#ffd6e7", "#ffadd2", "#ff85c0", "#f759ab", "#eb2f96", "#c41d7f", "#9e1068", "#780650", "#520339"];
2324
+ Fr.primary = Fr[5];
2325
+ var Wr = ["#a6a6a6", "#999999", "#8c8c8c", "#808080", "#737373", "#666666", "#404040", "#1a1a1a", "#000000", "#000000"];
2326
+ Wr.primary = Wr[5];
2327
+ var dr = {
2328
+ red: jr,
2329
+ volcano: Nr,
2330
+ orange: $r,
2331
+ gold: Rr,
2332
+ yellow: Ir,
2333
+ lime: Lr,
2334
+ green: Hr,
2335
+ cyan: Dr,
2336
+ blue: zr,
2337
+ geekblue: Vr,
2338
+ purple: Br,
2339
+ magenta: Fr,
2340
+ grey: Wr
2341
+ };
2342
+ function kc(e, t) {
2343
+ let {
2344
+ generateColorPalettes: r,
2345
+ generateNeutralColorPalettes: n
2346
+ } = t;
2347
+ const {
2348
+ colorSuccess: o,
2349
+ colorWarning: a,
2350
+ colorError: i,
2351
+ colorInfo: c,
2352
+ colorPrimary: l,
2353
+ colorBgBase: s,
2354
+ colorTextBase: u
2355
+ } = e, d = r(l), f = r(o), p = r(a), m = r(i), h = r(c), v = n(s, u), b = e.colorLink || e.colorInfo, y = r(b), C = new Q(m[1]).mix(new Q(m[3]), 50).toHexString();
2356
+ return Object.assign(Object.assign({}, v), {
2357
+ colorPrimaryBg: d[1],
2358
+ colorPrimaryBgHover: d[2],
2359
+ colorPrimaryBorder: d[3],
2360
+ colorPrimaryBorderHover: d[4],
2361
+ colorPrimaryHover: d[5],
2362
+ colorPrimary: d[6],
2363
+ colorPrimaryActive: d[7],
2364
+ colorPrimaryTextHover: d[8],
2365
+ colorPrimaryText: d[9],
2366
+ colorPrimaryTextActive: d[10],
2367
+ colorSuccessBg: f[1],
2368
+ colorSuccessBgHover: f[2],
2369
+ colorSuccessBorder: f[3],
2370
+ colorSuccessBorderHover: f[4],
2371
+ colorSuccessHover: f[4],
2372
+ colorSuccess: f[6],
2373
+ colorSuccessActive: f[7],
2374
+ colorSuccessTextHover: f[8],
2375
+ colorSuccessText: f[9],
2376
+ colorSuccessTextActive: f[10],
2377
+ colorErrorBg: m[1],
2378
+ colorErrorBgHover: m[2],
2379
+ colorErrorBgFilledHover: C,
2380
+ colorErrorBgActive: m[3],
2381
+ colorErrorBorder: m[3],
2382
+ colorErrorBorderHover: m[4],
2383
+ colorErrorHover: m[5],
2384
+ colorError: m[6],
2385
+ colorErrorActive: m[7],
2386
+ colorErrorTextHover: m[8],
2387
+ colorErrorText: m[9],
2388
+ colorErrorTextActive: m[10],
2389
+ colorWarningBg: p[1],
2390
+ colorWarningBgHover: p[2],
2391
+ colorWarningBorder: p[3],
2392
+ colorWarningBorderHover: p[4],
2393
+ colorWarningHover: p[4],
2394
+ colorWarning: p[6],
2395
+ colorWarningActive: p[7],
2396
+ colorWarningTextHover: p[8],
2397
+ colorWarningText: p[9],
2398
+ colorWarningTextActive: p[10],
2399
+ colorInfoBg: h[1],
2400
+ colorInfoBgHover: h[2],
2401
+ colorInfoBorder: h[3],
2402
+ colorInfoBorderHover: h[4],
2403
+ colorInfoHover: h[4],
2404
+ colorInfo: h[6],
2405
+ colorInfoActive: h[7],
2406
+ colorInfoTextHover: h[8],
2407
+ colorInfoText: h[9],
2408
+ colorInfoTextActive: h[10],
2409
+ colorLinkHover: y[4],
2410
+ colorLink: y[6],
2411
+ colorLinkActive: y[7],
2412
+ colorBgMask: new Q("#000").setA(0.45).toRgbString(),
2413
+ colorWhite: "#fff"
2414
+ });
2415
+ }
2416
+ const Mc = (e) => {
2417
+ let t = e, r = e, n = e, o = e;
2418
+ 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), {
2419
+ borderRadius: e,
2420
+ borderRadiusXS: n,
2421
+ borderRadiusSM: r,
2422
+ borderRadiusLG: t,
2423
+ borderRadiusOuter: o
2424
+ };
2425
+ };
2426
+ function Ac(e) {
2427
+ const {
2428
+ motionUnit: t,
2429
+ motionBase: r,
2430
+ borderRadius: n,
2431
+ lineWidth: o
2432
+ } = e;
2433
+ return Object.assign({
2434
+ // motion
2435
+ motionDurationFast: `${(r + t).toFixed(1)}s`,
2436
+ motionDurationMid: `${(r + t * 2).toFixed(1)}s`,
2437
+ motionDurationSlow: `${(r + t * 3).toFixed(1)}s`,
2438
+ // line
2439
+ lineWidthBold: o + 1
2440
+ }, Mc(n));
2441
+ }
2442
+ const jc = (e) => {
2443
+ const {
2444
+ controlHeight: t
2445
+ } = e;
2446
+ return {
2447
+ controlHeightSM: t * 0.75,
2448
+ controlHeightXS: t * 0.5,
2449
+ controlHeightLG: t * 1.25
2450
+ };
2451
+ };
2452
+ function Nc(e) {
2453
+ return (e + 8) / e;
2454
+ }
2455
+ function $c(e) {
2456
+ const t = Array.from({
2457
+ length: 10
2458
+ }).map((r, n) => {
2459
+ const o = n - 1, a = e * Math.pow(Math.E, o / 5), i = n > 1 ? Math.floor(a) : Math.ceil(a);
2460
+ return Math.floor(i / 2) * 2;
2461
+ });
2462
+ return t[1] = e, t.map((r) => ({
2463
+ size: r,
2464
+ lineHeight: Nc(r)
2465
+ }));
2466
+ }
2467
+ const Rc = (e) => {
2468
+ const t = $c(e), r = t.map((u) => u.size), n = t.map((u) => u.lineHeight), o = r[1], a = r[0], i = r[2], c = n[1], l = n[0], s = n[2];
2469
+ return {
2470
+ fontSizeSM: a,
2471
+ fontSize: o,
2472
+ fontSizeLG: i,
2473
+ fontSizeXL: r[3],
2474
+ fontSizeHeading1: r[6],
2475
+ fontSizeHeading2: r[5],
2476
+ fontSizeHeading3: r[4],
2477
+ fontSizeHeading4: r[3],
2478
+ fontSizeHeading5: r[2],
2479
+ lineHeight: c,
2480
+ lineHeightLG: s,
2481
+ lineHeightSM: l,
2482
+ fontHeight: Math.round(c * o),
2483
+ fontHeightLG: Math.round(s * i),
2484
+ fontHeightSM: Math.round(l * a),
2485
+ lineHeightHeading1: n[6],
2486
+ lineHeightHeading2: n[5],
2487
+ lineHeightHeading3: n[4],
2488
+ lineHeightHeading4: n[3],
2489
+ lineHeightHeading5: n[2]
2490
+ };
2491
+ };
2492
+ function Ic(e) {
2493
+ const {
2494
+ sizeUnit: t,
2495
+ sizeStep: r
2496
+ } = e;
2497
+ return {
2498
+ sizeXXL: t * (r + 8),
2499
+ // 48
2500
+ sizeXL: t * (r + 4),
2501
+ // 32
2502
+ sizeLG: t * (r + 2),
2503
+ // 24
2504
+ sizeMD: t * (r + 1),
2505
+ // 20
2506
+ sizeMS: t * r,
2507
+ // 16
2508
+ size: t * r,
2509
+ // 16
2510
+ sizeSM: t * (r - 1),
2511
+ // 12
2512
+ sizeXS: t * (r - 2),
2513
+ // 8
2514
+ sizeXXS: t * (r - 3)
2515
+ // 4
2516
+ };
2517
+ }
2518
+ const de = (e, t) => new Q(e).setA(t).toRgbString(), ft = (e, t) => new Q(e).darken(t).toHexString(), Lc = (e) => {
2519
+ const t = Ut(e);
2520
+ return {
2521
+ 1: t[0],
2522
+ 2: t[1],
2523
+ 3: t[2],
2524
+ 4: t[3],
2525
+ 5: t[4],
2526
+ 6: t[5],
2527
+ 7: t[6],
2528
+ 8: t[4],
2529
+ 9: t[5],
2530
+ 10: t[6]
2531
+ // 8: colors[7],
2532
+ // 9: colors[8],
2533
+ // 10: colors[9],
2534
+ };
2535
+ }, Hc = (e, t) => {
2536
+ const r = e || "#fff", n = t || "#000";
2537
+ return {
2538
+ colorBgBase: r,
2539
+ colorTextBase: n,
2540
+ colorText: de(n, 0.88),
2541
+ colorTextSecondary: de(n, 0.65),
2542
+ colorTextTertiary: de(n, 0.45),
2543
+ colorTextQuaternary: de(n, 0.25),
2544
+ colorFill: de(n, 0.15),
2545
+ colorFillSecondary: de(n, 0.06),
2546
+ colorFillTertiary: de(n, 0.04),
2547
+ colorFillQuaternary: de(n, 0.02),
2548
+ colorBgSolid: de(n, 1),
2549
+ colorBgSolidHover: de(n, 0.75),
2550
+ colorBgSolidActive: de(n, 0.95),
2551
+ colorBgLayout: ft(r, 4),
2552
+ colorBgContainer: ft(r, 0),
2553
+ colorBgElevated: ft(r, 0),
2554
+ colorBgSpotlight: de(n, 0.85),
2555
+ colorBgBlur: "transparent",
2556
+ colorBorder: ft(r, 15),
2557
+ colorBorderSecondary: ft(r, 6)
2558
+ };
2559
+ };
2560
+ function Dc(e) {
2561
+ fr.pink = fr.magenta, dr.pink = dr.magenta;
2562
+ const t = Object.keys(na).map((r) => {
2563
+ const n = e[r] === fr[r] ? dr[r] : Ut(e[r]);
2564
+ return Array.from({
2565
+ length: 10
2566
+ }, () => 1).reduce((o, a, i) => (o[`${r}-${i + 1}`] = n[i], o[`${r}${i + 1}`] = n[i], o), {});
2567
+ }).reduce((r, n) => (r = Object.assign(Object.assign({}, r), n), r), {});
2568
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), kc(e, {
2569
+ generateColorPalettes: Lc,
2570
+ generateNeutralColorPalettes: Hc
2571
+ })), Rc(e.fontSize)), Ic(e)), jc(e)), Ac(e));
2572
+ }
2573
+ const ia = _r(Dc), Xr = {
2574
+ token: pt,
2575
+ override: {
2576
+ override: pt
2577
+ },
2578
+ hashed: !0
2579
+ }, sa = /* @__PURE__ */ Ce.createContext(Xr), Gr = "ant", dn = "anticon", zc = (e, t) => t || (e ? `${Gr}-${e}` : Gr), Te = /* @__PURE__ */ g.createContext({
2580
+ // We provide a default function for Context without provider
2581
+ getPrefixCls: zc,
2582
+ iconPrefixCls: dn
2583
+ }), {
2584
+ Consumer: Vu
2585
+ } = Te, Kn = {};
2586
+ function Vc(e) {
2587
+ const t = g.useContext(Te), {
2588
+ getPrefixCls: r,
2589
+ direction: n,
2590
+ getPopupContainer: o
2591
+ } = t, a = t[e];
2592
+ return Object.assign(Object.assign({
2593
+ classNames: Kn,
2594
+ styles: Kn
2595
+ }, a), {
2596
+ getPrefixCls: r,
2597
+ direction: n,
2598
+ getPopupContainer: o
2599
+ });
2600
+ }
2601
+ const Bc = `-ant-${Date.now()}-${Math.random()}`;
2602
+ function Fc(e, t) {
2603
+ const r = {}, n = (i, c) => {
2604
+ let l = i.clone();
2605
+ return l = (c == null ? void 0 : c(l)) || l, l.toRgbString();
2606
+ }, o = (i, c) => {
2607
+ const l = new Q(i), s = Ut(l.toRgbString());
2608
+ r[`${c}-color`] = n(l), r[`${c}-color-disabled`] = s[1], r[`${c}-color-hover`] = s[4], r[`${c}-color-active`] = s[6], r[`${c}-color-outline`] = l.clone().setA(0.2).toRgbString(), r[`${c}-color-deprecated-bg`] = s[0], r[`${c}-color-deprecated-border`] = s[2];
2609
+ };
2610
+ if (t.primaryColor) {
2611
+ o(t.primaryColor, "primary");
2612
+ const i = new Q(t.primaryColor), c = Ut(i.toRgbString());
2613
+ c.forEach((s, u) => {
2614
+ r[`primary-${u + 1}`] = s;
2615
+ }), r["primary-color-deprecated-l-35"] = n(i, (s) => s.lighten(35)), r["primary-color-deprecated-l-20"] = n(i, (s) => s.lighten(20)), r["primary-color-deprecated-t-20"] = n(i, (s) => s.tint(20)), r["primary-color-deprecated-t-50"] = n(i, (s) => s.tint(50)), r["primary-color-deprecated-f-12"] = n(i, (s) => s.setA(s.a * 0.12));
2616
+ const l = new Q(c[0]);
2617
+ r["primary-color-active-deprecated-f-30"] = n(l, (s) => s.setA(s.a * 0.3)), r["primary-color-active-deprecated-d-02"] = n(l, (s) => s.darken(2));
2618
+ }
2619
+ 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"), `
2620
+ :root {
2621
+ ${Object.keys(r).map((i) => `--${e}-${i}: ${r[i]};`).join(`
2622
+ `)}
2623
+ }
2624
+ `.trim();
2625
+ }
2626
+ function Wc(e, t) {
2627
+ const r = Fc(e, t);
2628
+ Pe() ? Ze(r, `${Bc}-dynamic-theme`) : process.env.NODE_ENV !== "production" && at(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
2629
+ }
2630
+ const Ur = /* @__PURE__ */ g.createContext(!1), Xc = (e) => {
2631
+ let {
2632
+ children: t,
2633
+ disabled: r
2634
+ } = e;
2635
+ const n = g.useContext(Ur);
2636
+ return /* @__PURE__ */ g.createElement(Ur.Provider, {
2637
+ value: r ?? n
2638
+ }, t);
2639
+ }, mt = /* @__PURE__ */ g.createContext(void 0), Gc = (e) => {
2640
+ let {
2641
+ children: t,
2642
+ size: r
2643
+ } = e;
2644
+ const n = g.useContext(mt);
2645
+ return /* @__PURE__ */ g.createElement(mt.Provider, {
2646
+ value: r || n
2647
+ }, t);
2648
+ };
2649
+ function Uc() {
2650
+ const e = He(Ur), t = He(mt);
2651
+ return {
2652
+ componentDisabled: e,
2653
+ componentSize: t
2654
+ };
2655
+ }
2656
+ var ca = /* @__PURE__ */ Me(function e() {
2657
+ ke(this, e);
2658
+ }), la = "CALC_UNIT", Kc = new RegExp(la, "g");
2659
+ function vr(e) {
2660
+ return typeof e == "number" ? "".concat(e).concat(la) : e;
2661
+ }
2662
+ var qc = /* @__PURE__ */ function(e) {
2663
+ Yt(r, e);
2664
+ var t = Qt(r);
2665
+ function r(n, o) {
2666
+ var a;
2667
+ ke(this, r), a = t.call(this), P(Ve(a), "result", ""), P(Ve(a), "unitlessCssVar", void 0), P(Ve(a), "lowPriority", void 0);
2668
+ var i = F(n);
2669
+ return a.unitlessCssVar = o, n instanceof r ? a.result = "(".concat(n.result, ")") : i === "number" ? a.result = vr(n) : i === "string" && (a.result = n), a;
2670
+ }
2671
+ return Me(r, [{
2672
+ key: "add",
2673
+ value: function(o) {
2674
+ return o instanceof r ? this.result = "".concat(this.result, " + ").concat(o.getResult()) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " + ").concat(vr(o))), this.lowPriority = !0, this;
2675
+ }
2676
+ }, {
2677
+ key: "sub",
2678
+ value: function(o) {
2679
+ return o instanceof r ? this.result = "".concat(this.result, " - ").concat(o.getResult()) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " - ").concat(vr(o))), this.lowPriority = !0, this;
2680
+ }
2681
+ }, {
2682
+ key: "mul",
2683
+ value: function(o) {
2684
+ return this.lowPriority && (this.result = "(".concat(this.result, ")")), o instanceof r ? this.result = "".concat(this.result, " * ").concat(o.getResult(!0)) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " * ").concat(o)), this.lowPriority = !1, this;
2685
+ }
2686
+ }, {
2687
+ key: "div",
2688
+ value: function(o) {
2689
+ return this.lowPriority && (this.result = "(".concat(this.result, ")")), o instanceof r ? this.result = "".concat(this.result, " / ").concat(o.getResult(!0)) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " / ").concat(o)), this.lowPriority = !1, this;
2690
+ }
2691
+ }, {
2692
+ key: "getResult",
2693
+ value: function(o) {
2694
+ return this.lowPriority || o ? "(".concat(this.result, ")") : this.result;
2695
+ }
2696
+ }, {
2697
+ key: "equal",
2698
+ value: function(o) {
2699
+ var a = this, i = o || {}, c = i.unit, l = !0;
2700
+ return typeof c == "boolean" ? l = c : Array.from(this.unitlessCssVar).some(function(s) {
2701
+ return a.result.includes(s);
2702
+ }) && (l = !1), this.result = this.result.replace(Kc, l ? "px" : ""), typeof this.lowPriority < "u" ? "calc(".concat(this.result, ")") : this.result;
2703
+ }
2704
+ }]), r;
2705
+ }(ca), Yc = /* @__PURE__ */ function(e) {
2706
+ Yt(r, e);
2707
+ var t = Qt(r);
2708
+ function r(n) {
2709
+ var o;
2710
+ return ke(this, r), o = t.call(this), P(Ve(o), "result", 0), n instanceof r ? o.result = n.result : typeof n == "number" && (o.result = n), o;
2711
+ }
2712
+ return Me(r, [{
2713
+ key: "add",
2714
+ value: function(o) {
2715
+ return o instanceof r ? this.result += o.result : typeof o == "number" && (this.result += o), this;
2716
+ }
2717
+ }, {
2718
+ key: "sub",
2719
+ value: function(o) {
2720
+ return o instanceof r ? this.result -= o.result : typeof o == "number" && (this.result -= o), this;
2721
+ }
2722
+ }, {
2723
+ key: "mul",
2724
+ value: function(o) {
2725
+ return o instanceof r ? this.result *= o.result : typeof o == "number" && (this.result *= o), this;
2726
+ }
2727
+ }, {
2728
+ key: "div",
2729
+ value: function(o) {
2730
+ return o instanceof r ? this.result /= o.result : typeof o == "number" && (this.result /= o), this;
2731
+ }
2732
+ }, {
2733
+ key: "equal",
2734
+ value: function() {
2735
+ return this.result;
2736
+ }
2737
+ }]), r;
2738
+ }(ca), Qc = function(t, r) {
2739
+ var n = t === "css" ? qc : Yc;
2740
+ return function(o) {
2741
+ return new n(o, r);
2742
+ };
2743
+ }, qn = function(t, r) {
2744
+ return "".concat([r, t.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")].filter(Boolean).join("-"));
2745
+ };
2746
+ function Kr(e) {
2747
+ var t = g.useRef();
2748
+ t.current = e;
2749
+ var r = g.useCallback(function() {
2750
+ for (var n, o = arguments.length, a = new Array(o), i = 0; i < o; i++)
2751
+ a[i] = arguments[i];
2752
+ return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(a));
2753
+ }, []);
2754
+ return r;
2755
+ }
2756
+ function qr(e) {
2757
+ var t = g.useRef(!1), r = g.useState(e), n = R(r, 2), o = n[0], a = n[1];
2758
+ g.useEffect(function() {
2759
+ return t.current = !1, function() {
2760
+ t.current = !0;
2761
+ };
2762
+ }, []);
2763
+ function i(c, l) {
2764
+ l && t.current || a(c);
2765
+ }
2766
+ return [o, i];
2767
+ }
2768
+ var jt = { exports: {} }, D = {};
2769
+ /**
2770
+ * @license React
2771
+ * react-is.production.min.js
2772
+ *
2773
+ * Copyright (c) Facebook, Inc. and its affiliates.
2774
+ *
2775
+ * This source code is licensed under the MIT license found in the
2776
+ * LICENSE file in the root directory of this source tree.
2777
+ */
2778
+ var Yn;
2779
+ function Zc() {
2780
+ if (Yn) return D;
2781
+ Yn = 1;
2782
+ 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"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m;
2783
+ m = Symbol.for("react.module.reference");
2784
+ function h(v) {
2785
+ if (typeof v == "object" && v !== null) {
2786
+ var b = v.$$typeof;
2787
+ switch (b) {
2788
+ case e:
2789
+ switch (v = v.type, v) {
2790
+ case r:
2791
+ case o:
2792
+ case n:
2793
+ case s:
2794
+ case u:
2795
+ return v;
2796
+ default:
2797
+ switch (v = v && v.$$typeof, v) {
2798
+ case c:
2799
+ case i:
2800
+ case l:
2801
+ case f:
2802
+ case d:
2803
+ case a:
2804
+ return v;
2805
+ default:
2806
+ return b;
2807
+ }
2808
+ }
2809
+ case t:
2810
+ return b;
2811
+ }
2812
+ }
2813
+ }
2814
+ return D.ContextConsumer = i, D.ContextProvider = a, D.Element = e, D.ForwardRef = l, D.Fragment = r, D.Lazy = f, D.Memo = d, D.Portal = t, D.Profiler = o, D.StrictMode = n, D.Suspense = s, D.SuspenseList = u, D.isAsyncMode = function() {
2815
+ return !1;
2816
+ }, D.isConcurrentMode = function() {
2817
+ return !1;
2818
+ }, D.isContextConsumer = function(v) {
2819
+ return h(v) === i;
2820
+ }, D.isContextProvider = function(v) {
2821
+ return h(v) === a;
2822
+ }, D.isElement = function(v) {
2823
+ return typeof v == "object" && v !== null && v.$$typeof === e;
2824
+ }, D.isForwardRef = function(v) {
2825
+ return h(v) === l;
2826
+ }, D.isFragment = function(v) {
2827
+ return h(v) === r;
2828
+ }, D.isLazy = function(v) {
2829
+ return h(v) === f;
2830
+ }, D.isMemo = function(v) {
2831
+ return h(v) === d;
2832
+ }, D.isPortal = function(v) {
2833
+ return h(v) === t;
2834
+ }, D.isProfiler = function(v) {
2835
+ return h(v) === o;
2836
+ }, D.isStrictMode = function(v) {
2837
+ return h(v) === n;
2838
+ }, D.isSuspense = function(v) {
2839
+ return h(v) === s;
2840
+ }, D.isSuspenseList = function(v) {
2841
+ return h(v) === u;
2842
+ }, D.isValidElementType = function(v) {
2843
+ return typeof v == "string" || typeof v == "function" || v === r || v === o || v === n || v === s || v === u || v === p || typeof v == "object" && v !== null && (v.$$typeof === f || v.$$typeof === d || v.$$typeof === a || v.$$typeof === i || v.$$typeof === l || v.$$typeof === m || v.getModuleId !== void 0);
2844
+ }, D.typeOf = h, D;
2845
+ }
2846
+ var z = {};
2847
+ /**
2848
+ * @license React
2849
+ * react-is.development.js
2850
+ *
2851
+ * Copyright (c) Facebook, Inc. and its affiliates.
2852
+ *
2853
+ * This source code is licensed under the MIT license found in the
2854
+ * LICENSE file in the root directory of this source tree.
2855
+ */
2856
+ var Qn;
2857
+ function Jc() {
2858
+ return Qn || (Qn = 1, process.env.NODE_ENV !== "production" && function() {
2859
+ 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"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = !1, h = !1, v = !1, b = !1, y = !1, C;
2860
+ C = Symbol.for("react.module.reference");
2861
+ function E(w) {
2862
+ return !!(typeof w == "string" || typeof w == "function" || w === r || w === o || y || w === n || w === s || w === u || b || w === p || m || h || v || typeof w == "object" && w !== null && (w.$$typeof === f || w.$$typeof === d || w.$$typeof === a || w.$$typeof === i || w.$$typeof === l || // This needs to include all possible module reference object
2863
+ // types supported by any Flight configuration anywhere since
2864
+ // we don't know which Flight build this will end up being used
2865
+ // with.
2866
+ w.$$typeof === C || w.getModuleId !== void 0));
2867
+ }
2868
+ function S(w) {
2869
+ if (typeof w == "object" && w !== null) {
2870
+ var De = w.$$typeof;
2871
+ switch (De) {
2872
+ case e:
2873
+ var ce = w.type;
2874
+ switch (ce) {
2875
+ case r:
2876
+ case o:
2877
+ case n:
2878
+ case s:
2879
+ case u:
2880
+ return ce;
2881
+ default:
2882
+ var We = ce && ce.$$typeof;
2883
+ switch (We) {
2884
+ case c:
2885
+ case i:
2886
+ case l:
2887
+ case f:
2888
+ case d:
2889
+ case a:
2890
+ return We;
2891
+ default:
2892
+ return De;
2893
+ }
2894
+ }
2895
+ case t:
2896
+ return De;
2897
+ }
2898
+ }
2899
+ }
2900
+ var T = i, x = a, _ = e, A = l, M = r, L = f, I = d, $ = t, j = o, N = n, V = s, W = u, H = !1, X = !1;
2901
+ function G(w) {
2902
+ return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
2903
+ }
2904
+ function K(w) {
2905
+ return X || (X = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
2906
+ }
2907
+ function U(w) {
2908
+ return S(w) === i;
2909
+ }
2910
+ function B(w) {
2911
+ return S(w) === a;
2912
+ }
2913
+ function Z(w) {
2914
+ return typeof w == "object" && w !== null && w.$$typeof === e;
2915
+ }
2916
+ function le(w) {
2917
+ return S(w) === l;
2918
+ }
2919
+ function ye(w) {
2920
+ return S(w) === r;
2921
+ }
2922
+ function ie(w) {
2923
+ return S(w) === f;
2924
+ }
2925
+ function q(w) {
2926
+ return S(w) === d;
2927
+ }
2928
+ function Y(w) {
2929
+ return S(w) === t;
2930
+ }
2931
+ function se(w) {
2932
+ return S(w) === o;
2933
+ }
2934
+ function _e(w) {
2935
+ return S(w) === n;
2936
+ }
2937
+ function ge(w) {
2938
+ return S(w) === s;
2939
+ }
2940
+ function Ae(w) {
2941
+ return S(w) === u;
2942
+ }
2943
+ z.ContextConsumer = T, z.ContextProvider = x, z.Element = _, z.ForwardRef = A, z.Fragment = M, z.Lazy = L, z.Memo = I, z.Portal = $, z.Profiler = j, z.StrictMode = N, z.Suspense = V, z.SuspenseList = W, z.isAsyncMode = G, z.isConcurrentMode = K, z.isContextConsumer = U, z.isContextProvider = B, z.isElement = Z, z.isForwardRef = le, z.isFragment = ye, z.isLazy = ie, z.isMemo = q, z.isPortal = Y, z.isProfiler = se, z.isStrictMode = _e, z.isSuspense = ge, z.isSuspenseList = Ae, z.isValidElementType = E, z.typeOf = S;
2944
+ }()), z;
2945
+ }
2946
+ var Zn;
2947
+ function el() {
2948
+ return Zn || (Zn = 1, process.env.NODE_ENV === "production" ? jt.exports = Zc() : jt.exports = Jc()), jt.exports;
2949
+ }
2950
+ var gr = el(), tl = Symbol.for("react.element"), rl = Symbol.for("react.transitional.element"), nl = Symbol.for("react.fragment");
2951
+ function ua(e) {
2952
+ return (
2953
+ // Base object type
2954
+ e && F(e) === "object" && // React Element type
2955
+ (e.$$typeof === tl || e.$$typeof === rl) && // React Fragment type
2956
+ e.type === nl
2957
+ );
2958
+ }
2959
+ var ol = Number(ji.split(".")[0]), al = function(t, r) {
2960
+ typeof t == "function" ? t(r) : F(t) === "object" && t && "current" in t && (t.current = r);
2961
+ }, il = function(t) {
2962
+ var r, n;
2963
+ if (!t)
2964
+ return !1;
2965
+ if (fa(t) && ol >= 19)
2966
+ return !0;
2967
+ var o = gr.isMemo(t) ? t.type.type : t.type;
2968
+ return !(typeof o == "function" && !((r = o.prototype) !== null && r !== void 0 && r.render) && o.$$typeof !== gr.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== gr.ForwardRef);
2969
+ };
2970
+ function fa(e) {
2971
+ return /* @__PURE__ */ Ni(e) && !ua(e);
2972
+ }
2973
+ var sl = function(t) {
2974
+ if (t && fa(t)) {
2975
+ var r = t;
2976
+ return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
2977
+ }
2978
+ return null;
2979
+ };
2980
+ function Jn(e, t, r, n) {
2981
+ var o = k({}, t[e]);
2982
+ if (n != null && n.deprecatedTokens) {
2983
+ var a = n.deprecatedTokens;
2984
+ a.forEach(function(c) {
2985
+ var l = R(c, 2), s = l[0], u = l[1];
2986
+ if (process.env.NODE_ENV !== "production" && Fe(!(o != null && o[s]), "Component Token `".concat(String(s), "` of ").concat(String(e), " is deprecated. Please use `").concat(String(u), "` instead.")), o != null && o[s] || o != null && o[u]) {
2987
+ var d;
2988
+ (d = o[u]) !== null && d !== void 0 || (o[u] = o == null ? void 0 : o[s]);
2989
+ }
2990
+ });
2991
+ }
2992
+ var i = k(k({}, r), o);
2993
+ return Object.keys(i).forEach(function(c) {
2994
+ i[c] === t[c] && delete i[c];
2995
+ }), i;
2996
+ }
2997
+ var da = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u", Yr = !0;
2998
+ function va() {
2999
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
3000
+ t[r] = arguments[r];
3001
+ if (!da)
3002
+ return Object.assign.apply(Object, [{}].concat(t));
3003
+ Yr = !1;
3004
+ var n = {};
3005
+ return t.forEach(function(o) {
3006
+ if (F(o) === "object") {
3007
+ var a = Object.keys(o);
3008
+ a.forEach(function(i) {
3009
+ Object.defineProperty(n, i, {
3010
+ configurable: !0,
3011
+ enumerable: !0,
3012
+ get: function() {
3013
+ return o[i];
3014
+ }
3015
+ });
3016
+ });
3017
+ }
3018
+ }), Yr = !0, n;
3019
+ }
3020
+ var eo = {};
3021
+ function cl() {
3022
+ }
3023
+ var ll = function(t) {
3024
+ var r, n = t, o = cl;
3025
+ return da && typeof Proxy < "u" && (r = /* @__PURE__ */ new Set(), n = new Proxy(t, {
3026
+ get: function(i, c) {
3027
+ if (Yr) {
3028
+ var l;
3029
+ (l = r) === null || l === void 0 || l.add(c);
3030
+ }
3031
+ return i[c];
3032
+ }
3033
+ }), o = function(i, c) {
3034
+ var l;
3035
+ eo[i] = {
3036
+ global: Array.from(r),
3037
+ component: k(k({}, (l = eo[i]) === null || l === void 0 ? void 0 : l.component), c)
3038
+ };
3039
+ }), {
3040
+ token: n,
3041
+ keys: r,
3042
+ flush: o
3043
+ };
3044
+ };
3045
+ function to(e, t, r) {
3046
+ if (typeof r == "function") {
3047
+ var n;
3048
+ return r(va(t, (n = t[e]) !== null && n !== void 0 ? n : {}));
3049
+ }
3050
+ return r ?? {};
3051
+ }
3052
+ function ul(e) {
3053
+ return e === "js" ? {
3054
+ max: Math.max,
3055
+ min: Math.min
3056
+ } : {
3057
+ max: function() {
3058
+ for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
3059
+ n[o] = arguments[o];
3060
+ return "max(".concat(n.map(function(a) {
3061
+ return Ne(a);
3062
+ }).join(","), ")");
3063
+ },
3064
+ min: function() {
3065
+ for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
3066
+ n[o] = arguments[o];
3067
+ return "min(".concat(n.map(function(a) {
3068
+ return Ne(a);
3069
+ }).join(","), ")");
3070
+ }
3071
+ };
3072
+ }
3073
+ var fl = 1e3 * 60 * 10, dl = /* @__PURE__ */ function() {
3074
+ function e() {
3075
+ ke(this, e), P(this, "map", /* @__PURE__ */ new Map()), P(this, "objectIDMap", /* @__PURE__ */ new WeakMap()), P(this, "nextID", 0), P(this, "lastAccessBeat", /* @__PURE__ */ new Map()), P(this, "accessBeat", 0);
3076
+ }
3077
+ return Me(e, [{
3078
+ key: "set",
3079
+ value: function(r, n) {
3080
+ this.clear();
3081
+ var o = this.getCompositeKey(r);
3082
+ this.map.set(o, n), this.lastAccessBeat.set(o, Date.now());
3083
+ }
3084
+ }, {
3085
+ key: "get",
3086
+ value: function(r) {
3087
+ var n = this.getCompositeKey(r), o = this.map.get(n);
3088
+ return this.lastAccessBeat.set(n, Date.now()), this.accessBeat += 1, o;
3089
+ }
3090
+ }, {
3091
+ key: "getCompositeKey",
3092
+ value: function(r) {
3093
+ var n = this, o = r.map(function(a) {
3094
+ return a && F(a) === "object" ? "obj_".concat(n.getObjectID(a)) : "".concat(F(a), "_").concat(a);
3095
+ });
3096
+ return o.join("|");
3097
+ }
3098
+ }, {
3099
+ key: "getObjectID",
3100
+ value: function(r) {
3101
+ if (this.objectIDMap.has(r))
3102
+ return this.objectIDMap.get(r);
3103
+ var n = this.nextID;
3104
+ return this.objectIDMap.set(r, n), this.nextID += 1, n;
3105
+ }
3106
+ }, {
3107
+ key: "clear",
3108
+ value: function() {
3109
+ var r = this;
3110
+ if (this.accessBeat > 1e4) {
3111
+ var n = Date.now();
3112
+ this.lastAccessBeat.forEach(function(o, a) {
3113
+ n - o > fl && (r.map.delete(a), r.lastAccessBeat.delete(a));
3114
+ }), this.accessBeat = 0;
3115
+ }
3116
+ }
3117
+ }]), e;
3118
+ }(), ro = new dl();
3119
+ function vl(e, t) {
3120
+ return Ce.useMemo(function() {
3121
+ var r = ro.get(t);
3122
+ if (r)
3123
+ return r;
3124
+ var n = e();
3125
+ return ro.set(t, n), n;
3126
+ }, t);
3127
+ }
3128
+ var gl = function() {
3129
+ return {};
3130
+ };
3131
+ function hl(e) {
3132
+ var t = e.useCSP, r = t === void 0 ? gl : t, n = e.useToken, o = e.usePrefix, a = e.getResetStyles, i = e.getCommonStyle, c = e.getCompUnitless;
3133
+ function l(f, p, m, h) {
3134
+ var v = Array.isArray(f) ? f[0] : f;
3135
+ function b(_) {
3136
+ return "".concat(String(v)).concat(_.slice(0, 1).toUpperCase()).concat(_.slice(1));
3137
+ }
3138
+ var y = (h == null ? void 0 : h.unitless) || {}, C = typeof c == "function" ? c(f) : {}, E = k(k({}, C), {}, P({}, b("zIndexPopup"), !0));
3139
+ Object.keys(y).forEach(function(_) {
3140
+ E[b(_)] = y[_];
3141
+ });
3142
+ var S = k(k({}, h), {}, {
3143
+ unitless: E,
3144
+ prefixToken: b
3145
+ }), T = u(f, p, m, S), x = s(v, m, S);
3146
+ return function(_) {
3147
+ var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _, M = T(_, A), L = R(M, 2), I = L[1], $ = x(A), j = R($, 2), N = j[0], V = j[1];
3148
+ return [N, I, V];
3149
+ };
3150
+ }
3151
+ function s(f, p, m) {
3152
+ var h = m.unitless, v = m.injectStyle, b = v === void 0 ? !0 : v, y = m.prefixToken, C = m.ignore, E = function(x) {
3153
+ var _ = x.rootCls, A = x.cssVar, M = A === void 0 ? {} : A, L = n(), I = L.realToken;
3154
+ return pc({
3155
+ path: [f],
3156
+ prefix: M.prefix,
3157
+ key: M.key,
3158
+ unitless: h,
3159
+ ignore: C,
3160
+ token: I,
3161
+ scope: _
3162
+ }, function() {
3163
+ var $ = to(f, I, p), j = Jn(f, I, $, {
3164
+ deprecatedTokens: m == null ? void 0 : m.deprecatedTokens
3165
+ });
3166
+ return Object.keys($).forEach(function(N) {
3167
+ j[y(N)] = j[N], delete j[N];
3168
+ }), j;
3169
+ }), null;
3170
+ }, S = function(x) {
3171
+ var _ = n(), A = _.cssVar;
3172
+ return [function(M) {
3173
+ return b && A ? /* @__PURE__ */ Ce.createElement(Ce.Fragment, null, /* @__PURE__ */ Ce.createElement(E, {
3174
+ rootCls: x,
3175
+ cssVar: A,
3176
+ component: f
3177
+ }), M) : M;
3178
+ }, A == null ? void 0 : A.key];
3179
+ };
3180
+ return S;
3181
+ }
3182
+ function u(f, p, m) {
3183
+ var h = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, v = Array.isArray(f) ? f : [f, f], b = R(v, 1), y = b[0], C = v.join("-"), E = e.layer || {
3184
+ name: "antd"
3185
+ };
3186
+ return function(S) {
3187
+ var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : S, x = n(), _ = x.theme, A = x.realToken, M = x.hashId, L = x.token, I = x.cssVar, $ = o(), j = $.rootPrefixCls, N = $.iconPrefixCls, V = r(), W = I ? "css" : "js", H = vl(function() {
3188
+ var Z = /* @__PURE__ */ new Set();
3189
+ return I && Object.keys(h.unitless || {}).forEach(function(le) {
3190
+ Z.add(Ht(le, I.prefix)), Z.add(Ht(le, qn(y, I.prefix)));
3191
+ }), Qc(W, Z);
3192
+ }, [W, y, I == null ? void 0 : I.prefix]), X = ul(W), G = X.max, K = X.min, U = {
3193
+ theme: _,
3194
+ token: L,
3195
+ hashId: M,
3196
+ nonce: function() {
3197
+ return V.nonce;
3198
+ },
3199
+ clientOnly: h.clientOnly,
3200
+ layer: E,
3201
+ // antd is always at top of styles
3202
+ order: h.order || -999
3203
+ };
3204
+ typeof a == "function" && Mr(k(k({}, U), {}, {
3205
+ clientOnly: !1,
3206
+ path: ["Shared", j]
3207
+ }), function() {
3208
+ return a(L, {
3209
+ prefix: {
3210
+ rootPrefixCls: j,
3211
+ iconPrefixCls: N
3212
+ },
3213
+ csp: V
3214
+ });
3215
+ });
3216
+ var B = Mr(k(k({}, U), {}, {
3217
+ path: [C, S, N]
3218
+ }), function() {
3219
+ if (h.injectStyle === !1)
3220
+ return [];
3221
+ var Z = ll(L), le = Z.token, ye = Z.flush, ie = to(y, A, m), q = ".".concat(S), Y = Jn(y, A, ie, {
3222
+ deprecatedTokens: h.deprecatedTokens
3223
+ });
3224
+ I && ie && F(ie) === "object" && Object.keys(ie).forEach(function(Ae) {
3225
+ ie[Ae] = "var(".concat(Ht(Ae, qn(y, I.prefix)), ")");
3226
+ });
3227
+ var se = va(le, {
3228
+ componentCls: q,
3229
+ prefixCls: S,
3230
+ iconCls: ".".concat(N),
3231
+ antCls: ".".concat(j),
3232
+ calc: H,
3233
+ // @ts-ignore
3234
+ max: G,
3235
+ // @ts-ignore
3236
+ min: K
3237
+ }, I ? ie : Y), _e = p(se, {
3238
+ hashId: M,
3239
+ prefixCls: S,
3240
+ rootPrefixCls: j,
3241
+ iconPrefixCls: N
3242
+ });
3243
+ ye(y, Y);
3244
+ var ge = typeof i == "function" ? i(se, S, T, h.resetFont) : null;
3245
+ return [h.resetStyle === !1 ? null : ge, _e];
3246
+ });
3247
+ return [B, M];
3248
+ };
3249
+ }
3250
+ function d(f, p, m) {
3251
+ var h = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, v = u(f, p, m, k({
3252
+ resetStyle: !1,
3253
+ // Sub Style should default after root one
3254
+ order: -998
3255
+ }, h)), b = function(C) {
3256
+ var E = C.prefixCls, S = C.rootCls, T = S === void 0 ? E : S;
3257
+ return v(E, T), null;
3258
+ };
3259
+ return process.env.NODE_ENV !== "production" && (b.displayName = "SubStyle_".concat(String(Array.isArray(f) ? f.join(".") : f))), b;
3260
+ }
3261
+ return {
3262
+ genStyleHooks: l,
3263
+ genSubStyleComponent: d,
3264
+ genComponentStyleHook: u
3265
+ };
3266
+ }
3267
+ const pl = "5.24.6";
3268
+ function hr(e) {
3269
+ return e >= 0 && e <= 255;
3270
+ }
3271
+ function Nt(e, t) {
3272
+ const {
3273
+ r,
3274
+ g: n,
3275
+ b: o,
3276
+ a
3277
+ } = new Q(e).toRgb();
3278
+ if (a < 1)
3279
+ return e;
3280
+ const {
3281
+ r: i,
3282
+ g: c,
3283
+ b: l
3284
+ } = new Q(t).toRgb();
3285
+ for (let s = 0.01; s <= 1; s += 0.01) {
3286
+ const u = Math.round((r - i * (1 - s)) / s), d = Math.round((n - c * (1 - s)) / s), f = Math.round((o - l * (1 - s)) / s);
3287
+ if (hr(u) && hr(d) && hr(f))
3288
+ return new Q({
3289
+ r: u,
3290
+ g: d,
3291
+ b: f,
3292
+ a: Math.round(s * 100) / 100
3293
+ }).toRgbString();
3294
+ }
3295
+ return new Q({
3296
+ r,
3297
+ g: n,
3298
+ b: o,
3299
+ a: 1
3300
+ }).toRgbString();
3301
+ }
3302
+ var ml = function(e, t) {
3303
+ var r = {};
3304
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3305
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
3306
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
3307
+ return r;
3308
+ };
3309
+ function ga(e) {
3310
+ const {
3311
+ override: t
3312
+ } = e, r = ml(e, ["override"]), n = Object.assign({}, t);
3313
+ Object.keys(pt).forEach((f) => {
3314
+ delete n[f];
3315
+ });
3316
+ const o = Object.assign(Object.assign({}, r), n), a = 480, i = 576, c = 768, l = 992, s = 1200, u = 1600;
3317
+ if (o.motion === !1) {
3318
+ const f = "0s";
3319
+ o.motionDurationFast = f, o.motionDurationMid = f, o.motionDurationSlow = f;
3320
+ }
3321
+ return Object.assign(Object.assign(Object.assign({}, o), {
3322
+ // ============== Background ============== //
3323
+ colorFillContent: o.colorFillSecondary,
3324
+ colorFillContentHover: o.colorFill,
3325
+ colorFillAlter: o.colorFillQuaternary,
3326
+ colorBgContainerDisabled: o.colorFillTertiary,
3327
+ // ============== Split ============== //
3328
+ colorBorderBg: o.colorBgContainer,
3329
+ colorSplit: Nt(o.colorBorderSecondary, o.colorBgContainer),
3330
+ // ============== Text ============== //
3331
+ colorTextPlaceholder: o.colorTextQuaternary,
3332
+ colorTextDisabled: o.colorTextQuaternary,
3333
+ colorTextHeading: o.colorText,
3334
+ colorTextLabel: o.colorTextSecondary,
3335
+ colorTextDescription: o.colorTextTertiary,
3336
+ colorTextLightSolid: o.colorWhite,
3337
+ colorHighlight: o.colorError,
3338
+ colorBgTextHover: o.colorFillSecondary,
3339
+ colorBgTextActive: o.colorFill,
3340
+ colorIcon: o.colorTextTertiary,
3341
+ colorIconHover: o.colorText,
3342
+ colorErrorOutline: Nt(o.colorErrorBg, o.colorBgContainer),
3343
+ colorWarningOutline: Nt(o.colorWarningBg, o.colorBgContainer),
3344
+ // Font
3345
+ fontSizeIcon: o.fontSizeSM,
3346
+ // Line
3347
+ lineWidthFocus: o.lineWidth * 3,
3348
+ // Control
3349
+ lineWidth: o.lineWidth,
3350
+ controlOutlineWidth: o.lineWidth * 2,
3351
+ // Checkbox size and expand icon size
3352
+ controlInteractiveSize: o.controlHeight / 2,
3353
+ controlItemBgHover: o.colorFillTertiary,
3354
+ controlItemBgActive: o.colorPrimaryBg,
3355
+ controlItemBgActiveHover: o.colorPrimaryBgHover,
3356
+ controlItemBgActiveDisabled: o.colorFill,
3357
+ controlTmpOutline: o.colorFillQuaternary,
3358
+ controlOutline: Nt(o.colorPrimaryBg, o.colorBgContainer),
3359
+ lineType: o.lineType,
3360
+ borderRadius: o.borderRadius,
3361
+ borderRadiusXS: o.borderRadiusXS,
3362
+ borderRadiusSM: o.borderRadiusSM,
3363
+ borderRadiusLG: o.borderRadiusLG,
3364
+ fontWeightStrong: 600,
3365
+ opacityLoading: 0.65,
3366
+ linkDecoration: "none",
3367
+ linkHoverDecoration: "none",
3368
+ linkFocusDecoration: "none",
3369
+ controlPaddingHorizontal: 12,
3370
+ controlPaddingHorizontalSM: 8,
3371
+ paddingXXS: o.sizeXXS,
3372
+ paddingXS: o.sizeXS,
3373
+ paddingSM: o.sizeSM,
3374
+ padding: o.size,
3375
+ paddingMD: o.sizeMD,
3376
+ paddingLG: o.sizeLG,
3377
+ paddingXL: o.sizeXL,
3378
+ paddingContentHorizontalLG: o.sizeLG,
3379
+ paddingContentVerticalLG: o.sizeMS,
3380
+ paddingContentHorizontal: o.sizeMS,
3381
+ paddingContentVertical: o.sizeSM,
3382
+ paddingContentHorizontalSM: o.size,
3383
+ paddingContentVerticalSM: o.sizeXS,
3384
+ marginXXS: o.sizeXXS,
3385
+ marginXS: o.sizeXS,
3386
+ marginSM: o.sizeSM,
3387
+ margin: o.size,
3388
+ marginMD: o.sizeMD,
3389
+ marginLG: o.sizeLG,
3390
+ marginXL: o.sizeXL,
3391
+ marginXXL: o.sizeXXL,
3392
+ boxShadow: `
3393
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
3394
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
3395
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
3396
+ `,
3397
+ boxShadowSecondary: `
3398
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
3399
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
3400
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
3401
+ `,
3402
+ boxShadowTertiary: `
3403
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
3404
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
3405
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
3406
+ `,
3407
+ screenXS: a,
3408
+ screenXSMin: a,
3409
+ screenXSMax: i - 1,
3410
+ screenSM: i,
3411
+ screenSMMin: i,
3412
+ screenSMMax: c - 1,
3413
+ screenMD: c,
3414
+ screenMDMin: c,
3415
+ screenMDMax: l - 1,
3416
+ screenLG: l,
3417
+ screenLGMin: l,
3418
+ screenLGMax: s - 1,
3419
+ screenXL: s,
3420
+ screenXLMin: s,
3421
+ screenXLMax: u - 1,
3422
+ screenXXL: u,
3423
+ screenXXLMin: u,
3424
+ boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
3425
+ boxShadowCard: `
3426
+ 0 1px 2px -2px ${new Q("rgba(0, 0, 0, 0.16)").toRgbString()},
3427
+ 0 3px 6px 0 ${new Q("rgba(0, 0, 0, 0.12)").toRgbString()},
3428
+ 0 5px 12px 4px ${new Q("rgba(0, 0, 0, 0.09)").toRgbString()}
3429
+ `,
3430
+ boxShadowDrawerRight: `
3431
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
3432
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
3433
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
3434
+ `,
3435
+ boxShadowDrawerLeft: `
3436
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
3437
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
3438
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
3439
+ `,
3440
+ boxShadowDrawerUp: `
3441
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
3442
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
3443
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
3444
+ `,
3445
+ boxShadowDrawerDown: `
3446
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
3447
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
3448
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
3449
+ `,
3450
+ boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
3451
+ boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
3452
+ boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
3453
+ boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
3454
+ }), n);
3455
+ }
3456
+ var no = function(e, t) {
3457
+ var r = {};
3458
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3459
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
3460
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
3461
+ return r;
3462
+ };
3463
+ const ha = {
3464
+ lineHeight: !0,
3465
+ lineHeightSM: !0,
3466
+ lineHeightLG: !0,
3467
+ lineHeightHeading1: !0,
3468
+ lineHeightHeading2: !0,
3469
+ lineHeightHeading3: !0,
3470
+ lineHeightHeading4: !0,
3471
+ lineHeightHeading5: !0,
3472
+ opacityLoading: !0,
3473
+ fontWeightStrong: !0,
3474
+ zIndexPopupBase: !0,
3475
+ zIndexBase: !0,
3476
+ opacityImage: !0
3477
+ }, yl = {
3478
+ size: !0,
3479
+ sizeSM: !0,
3480
+ sizeLG: !0,
3481
+ sizeMD: !0,
3482
+ sizeXS: !0,
3483
+ sizeXXS: !0,
3484
+ sizeMS: !0,
3485
+ sizeXL: !0,
3486
+ sizeXXL: !0,
3487
+ sizeUnit: !0,
3488
+ sizeStep: !0,
3489
+ motionBase: !0,
3490
+ motionUnit: !0
3491
+ }, bl = {
3492
+ screenXS: !0,
3493
+ screenXSMin: !0,
3494
+ screenXSMax: !0,
3495
+ screenSM: !0,
3496
+ screenSMMin: !0,
3497
+ screenSMMax: !0,
3498
+ screenMD: !0,
3499
+ screenMDMin: !0,
3500
+ screenMDMax: !0,
3501
+ screenLG: !0,
3502
+ screenLGMin: !0,
3503
+ screenLGMax: !0,
3504
+ screenXL: !0,
3505
+ screenXLMin: !0,
3506
+ screenXLMax: !0,
3507
+ screenXXL: !0,
3508
+ screenXXLMin: !0
3509
+ }, pa = (e, t, r) => {
3510
+ const n = r.getDerivativeToken(e), {
3511
+ override: o
3512
+ } = t, a = no(t, ["override"]);
3513
+ let i = Object.assign(Object.assign({}, n), {
3514
+ override: o
3515
+ });
3516
+ return i = ga(i), a && Object.entries(a).forEach((c) => {
3517
+ let [l, s] = c;
3518
+ const {
3519
+ theme: u
3520
+ } = s, d = no(s, ["theme"]);
3521
+ let f = d;
3522
+ u && (f = pa(Object.assign(Object.assign({}, i), d), {
3523
+ override: d
3524
+ }, u)), i[l] = f;
3525
+ }), i;
3526
+ };
3527
+ function vn() {
3528
+ const {
3529
+ token: e,
3530
+ hashed: t,
3531
+ theme: r,
3532
+ override: n,
3533
+ cssVar: o
3534
+ } = Ce.useContext(sa), a = `${pl}-${t || ""}`, i = r || ia, [c, l, s] = Vs(i, [pt, e], {
3535
+ salt: a,
3536
+ override: n,
3537
+ getComputedToken: pa,
3538
+ // formatToken will not be consumed after 1.15.0 with getComputedToken.
3539
+ // But token will break if @ant-design/cssinjs is under 1.15.0 without it
3540
+ formatToken: ga,
3541
+ cssVar: o && {
3542
+ prefix: o.prefix,
3543
+ key: o.key,
3544
+ unitless: ha,
3545
+ ignore: yl,
3546
+ preserve: bl
3547
+ }
3548
+ });
3549
+ return [i, s, t ? l : "", c, o];
3550
+ }
3551
+ const Sl = () => ({
3552
+ display: "inline-flex",
3553
+ alignItems: "center",
3554
+ color: "inherit",
3555
+ fontStyle: "normal",
3556
+ lineHeight: 0,
3557
+ textAlign: "center",
3558
+ textTransform: "none",
3559
+ // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
3560
+ verticalAlign: "-0.125em",
3561
+ textRendering: "optimizeLegibility",
3562
+ "-webkit-font-smoothing": "antialiased",
3563
+ "-moz-osx-font-smoothing": "grayscale",
3564
+ "> *": {
3565
+ lineHeight: 1
3566
+ },
3567
+ svg: {
3568
+ display: "inline-block"
3569
+ }
3570
+ }), xl = (e) => ({
3571
+ a: {
3572
+ color: e.colorLink,
3573
+ textDecoration: e.linkDecoration,
3574
+ backgroundColor: "transparent",
3575
+ // remove the gray background on active links in IE 10.
3576
+ outline: "none",
3577
+ cursor: "pointer",
3578
+ transition: `color ${e.motionDurationSlow}`,
3579
+ "-webkit-text-decoration-skip": "objects",
3580
+ // remove gaps in links underline in iOS 8+ and Safari 8+.
3581
+ "&:hover": {
3582
+ color: e.colorLinkHover
3583
+ },
3584
+ "&:active": {
3585
+ color: e.colorLinkActive
3586
+ },
3587
+ "&:active, &:hover": {
3588
+ textDecoration: e.linkHoverDecoration,
3589
+ outline: 0
3590
+ },
3591
+ // https://github.com/ant-design/ant-design/issues/22503
3592
+ "&:focus": {
3593
+ textDecoration: e.linkFocusDecoration,
3594
+ outline: 0
3595
+ },
3596
+ "&[disabled]": {
3597
+ color: e.colorTextDisabled,
3598
+ cursor: "not-allowed"
3599
+ }
3600
+ }
3601
+ }), Cl = (e, t, r, n) => {
3602
+ const o = `[class^="${t}"], [class*=" ${t}"]`, a = r ? `.${r}` : o, i = {
3603
+ boxSizing: "border-box",
3604
+ "&::before, &::after": {
3605
+ boxSizing: "border-box"
3606
+ }
3607
+ };
3608
+ let c = {};
3609
+ return n !== !1 && (c = {
3610
+ fontFamily: e.fontFamily,
3611
+ fontSize: e.fontSize
3612
+ }), {
3613
+ [a]: Object.assign(Object.assign(Object.assign({}, c), i), {
3614
+ [o]: i
3615
+ })
3616
+ };
3617
+ }, ma = (e) => ({
3618
+ [`.${e}`]: Object.assign(Object.assign({}, Sl()), {
3619
+ [`.${e} .${e}-icon`]: {
3620
+ display: "block"
3621
+ }
3622
+ })
3623
+ }), {
3624
+ genStyleHooks: ya
3625
+ } = hl({
3626
+ usePrefix: () => {
3627
+ const {
3628
+ getPrefixCls: e,
3629
+ iconPrefixCls: t
3630
+ } = He(Te);
3631
+ return {
3632
+ rootPrefixCls: e(),
3633
+ iconPrefixCls: t
3634
+ };
3635
+ },
3636
+ useToken: () => {
3637
+ const [e, t, r, n, o] = vn();
3638
+ return {
3639
+ theme: e,
3640
+ realToken: t,
3641
+ hashId: r,
3642
+ token: n,
3643
+ cssVar: o
3644
+ };
3645
+ },
3646
+ useCSP: () => {
3647
+ const {
3648
+ csp: e
3649
+ } = He(Te);
3650
+ return e ?? {};
3651
+ },
3652
+ getResetStyles: (e, t) => {
3653
+ var r;
3654
+ const n = xl(e);
3655
+ return [n, {
3656
+ "&": n
3657
+ }, ma((r = t == null ? void 0 : t.prefix.iconPrefixCls) !== null && r !== void 0 ? r : dn)];
3658
+ },
3659
+ getCommonStyle: Cl,
3660
+ getCompUnitless: () => ha
3661
+ }), El = (e, t) => {
3662
+ const [r, n] = vn();
3663
+ return Mr({
3664
+ token: n,
3665
+ hashId: "",
3666
+ path: ["ant-design-icons", e],
3667
+ nonce: () => t == null ? void 0 : t.nonce,
3668
+ layer: {
3669
+ name: "antd"
3670
+ }
3671
+ }, () => [ma(e)]);
3672
+ }, Tl = Object.assign({}, g), {
3673
+ useId: oo
3674
+ } = Tl, _l = () => "", Ol = typeof oo > "u" ? _l : oo;
3675
+ function wl(e, t, r) {
3676
+ var n, o;
3677
+ const a = er("ConfigProvider"), i = e || {}, c = i.inherit === !1 || !t ? Object.assign(Object.assign({}, Xr), {
3678
+ hashed: (n = t == null ? void 0 : t.hashed) !== null && n !== void 0 ? n : Xr.hashed,
3679
+ cssVar: t == null ? void 0 : t.cssVar
3680
+ }) : t, l = Ol();
3681
+ if (process.env.NODE_ENV !== "production") {
3682
+ const s = i.cssVar || c.cssVar, u = !!(typeof i.cssVar == "object" && (!((o = i.cssVar) === null || o === void 0) && o.key) || l);
3683
+ process.env.NODE_ENV !== "production" && a(!s || u, "breaking", "Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");
3684
+ }
3685
+ return Mo(() => {
3686
+ var s, u;
3687
+ if (!e)
3688
+ return t;
3689
+ const d = Object.assign({}, c.components);
3690
+ Object.keys(e.components || {}).forEach((m) => {
3691
+ d[m] = Object.assign(Object.assign({}, d[m]), e.components[m]);
3692
+ });
3693
+ const f = `css-var-${l.replace(/:/g, "")}`, p = ((s = i.cssVar) !== null && s !== void 0 ? s : c.cssVar) && Object.assign(Object.assign(Object.assign({
3694
+ prefix: r == null ? void 0 : r.prefixCls
3695
+ }, typeof c.cssVar == "object" ? c.cssVar : {}), typeof i.cssVar == "object" ? i.cssVar : {}), {
3696
+ key: typeof i.cssVar == "object" && ((u = i.cssVar) === null || u === void 0 ? void 0 : u.key) || f
3697
+ });
3698
+ return Object.assign(Object.assign(Object.assign({}, c), i), {
3699
+ token: Object.assign(Object.assign({}, c.token), i.token),
3700
+ components: d,
3701
+ cssVar: p
3702
+ });
3703
+ }, [i, c], (s, u) => s.some((d, f) => {
3704
+ const p = u[f];
3705
+ return !fs(d, p, !0);
3706
+ }));
3707
+ }
3708
+ function ao(e) {
3709
+ return e instanceof HTMLElement || e instanceof SVGElement;
3710
+ }
3711
+ function Pl(e) {
3712
+ return e && F(e) === "object" && ao(e.nativeElement) ? e.nativeElement : ao(e) ? e : null;
3713
+ }
3714
+ function kl(e) {
3715
+ var t = Pl(e);
3716
+ if (t)
3717
+ return t;
3718
+ if (e instanceof Ce.Component) {
3719
+ var r;
3720
+ return (r = Tn.findDOMNode) === null || r === void 0 ? void 0 : r.call(Tn, e);
3721
+ }
3722
+ return null;
3723
+ }
3724
+ var Ml = ["children"], ba = /* @__PURE__ */ g.createContext({});
3725
+ function Al(e) {
3726
+ var t = e.children, r = xr(e, Ml);
3727
+ return /* @__PURE__ */ g.createElement(ba.Provider, {
3728
+ value: r
3729
+ }, t);
3730
+ }
3731
+ var jl = /* @__PURE__ */ function(e) {
3732
+ Yt(r, e);
3733
+ var t = Qt(r);
3734
+ function r() {
3735
+ return ke(this, r), t.apply(this, arguments);
3736
+ }
3737
+ return Me(r, [{
3738
+ key: "render",
3739
+ value: function() {
3740
+ return this.props.children;
3741
+ }
3742
+ }]), r;
3743
+ }(g.Component);
3744
+ function Nl(e) {
3745
+ var t = g.useReducer(function(c) {
3746
+ return c + 1;
3747
+ }, 0), r = R(t, 2), n = r[1], o = g.useRef(e), a = Kr(function() {
3748
+ return o.current;
3749
+ }), i = Kr(function(c) {
3750
+ o.current = typeof c == "function" ? c(o.current) : c, n();
3751
+ });
3752
+ return [a, i];
3753
+ }
3754
+ var je = "none", $t = "appear", Rt = "enter", It = "leave", io = "none", he = "prepare", Ye = "start", Qe = "active", gn = "end", Sa = "prepared";
3755
+ function so(e, t) {
3756
+ var r = {};
3757
+ 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;
3758
+ }
3759
+ function $l(e, t) {
3760
+ var r = {
3761
+ animationend: so("Animation", "AnimationEnd"),
3762
+ transitionend: so("Transition", "TransitionEnd")
3763
+ };
3764
+ return e && ("AnimationEvent" in t || delete r.animationend.animation, "TransitionEvent" in t || delete r.transitionend.transition), r;
3765
+ }
3766
+ var Rl = $l(Pe(), typeof window < "u" ? window : {}), xa = {};
3767
+ if (Pe()) {
3768
+ var Il = document.createElement("div");
3769
+ xa = Il.style;
3770
+ }
3771
+ var Lt = {};
3772
+ function Ca(e) {
3773
+ if (Lt[e])
3774
+ return Lt[e];
3775
+ var t = Rl[e];
3776
+ if (t)
3777
+ for (var r = Object.keys(t), n = r.length, o = 0; o < n; o += 1) {
3778
+ var a = r[o];
3779
+ if (Object.prototype.hasOwnProperty.call(t, a) && a in xa)
3780
+ return Lt[e] = t[a], Lt[e];
3781
+ }
3782
+ return "";
3783
+ }
3784
+ var Ea = Ca("animationend"), Ta = Ca("transitionend"), _a = !!(Ea && Ta), co = Ea || "animationend", lo = Ta || "transitionend";
3785
+ function uo(e, t) {
3786
+ if (!e) return null;
3787
+ if (F(e) === "object") {
3788
+ var r = t.replace(/-\w/g, function(n) {
3789
+ return n[1].toUpperCase();
3790
+ });
3791
+ return e[r];
3792
+ }
3793
+ return "".concat(e, "-").concat(t);
3794
+ }
3795
+ const Ll = function(e) {
3796
+ var t = $e();
3797
+ function r(o) {
3798
+ o && (o.removeEventListener(lo, e), o.removeEventListener(co, e));
3799
+ }
3800
+ function n(o) {
3801
+ t.current && t.current !== o && r(t.current), o && o !== t.current && (o.addEventListener(lo, e), o.addEventListener(co, e), t.current = o);
3802
+ }
3803
+ return g.useEffect(function() {
3804
+ return function() {
3805
+ r(t.current);
3806
+ };
3807
+ }, []), [n, r];
3808
+ };
3809
+ var Oa = Pe() ? $i : Le, wa = function(t) {
3810
+ return +setTimeout(t, 16);
3811
+ }, Pa = function(t) {
3812
+ return clearTimeout(t);
3813
+ };
3814
+ typeof window < "u" && "requestAnimationFrame" in window && (wa = function(t) {
3815
+ return window.requestAnimationFrame(t);
3816
+ }, Pa = function(t) {
3817
+ return window.cancelAnimationFrame(t);
3818
+ });
3819
+ var fo = 0, rr = /* @__PURE__ */ new Map();
3820
+ function ka(e) {
3821
+ rr.delete(e);
3822
+ }
3823
+ var Kt = function(t) {
3824
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
3825
+ fo += 1;
3826
+ var n = fo;
3827
+ function o(a) {
3828
+ if (a === 0)
3829
+ ka(n), t();
3830
+ else {
3831
+ var i = wa(function() {
3832
+ o(a - 1);
3833
+ });
3834
+ rr.set(n, i);
3835
+ }
3836
+ }
3837
+ return o(r), n;
3838
+ };
3839
+ Kt.cancel = function(e) {
3840
+ var t = rr.get(e);
3841
+ return ka(e), Pa(t);
3842
+ };
3843
+ process.env.NODE_ENV !== "production" && (Kt.ids = function() {
3844
+ return rr;
3845
+ });
3846
+ const Hl = function() {
3847
+ var e = g.useRef(null);
3848
+ function t() {
3849
+ Kt.cancel(e.current);
3850
+ }
3851
+ function r(n) {
3852
+ var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
3853
+ t();
3854
+ var a = Kt(function() {
3855
+ o <= 1 ? n({
3856
+ isCanceled: function() {
3857
+ return a !== e.current;
3858
+ }
3859
+ }) : r(n, o - 1);
3860
+ });
3861
+ e.current = a;
3862
+ }
3863
+ return g.useEffect(function() {
3864
+ return function() {
3865
+ t();
3866
+ };
3867
+ }, []), [r, t];
3868
+ };
3869
+ var Dl = [he, Ye, Qe, gn], zl = [he, Sa], Ma = !1, Vl = !0;
3870
+ function Aa(e) {
3871
+ return e === Qe || e === gn;
3872
+ }
3873
+ const Bl = function(e, t, r) {
3874
+ var n = qr(io), o = R(n, 2), a = o[0], i = o[1], c = Hl(), l = R(c, 2), s = l[0], u = l[1];
3875
+ function d() {
3876
+ i(he, !0);
3877
+ }
3878
+ var f = t ? zl : Dl;
3879
+ return Oa(function() {
3880
+ if (a !== io && a !== gn) {
3881
+ var p = f.indexOf(a), m = f[p + 1], h = r(a);
3882
+ h === Ma ? i(m, !0) : m && s(function(v) {
3883
+ function b() {
3884
+ v.isCanceled() || i(m, !0);
3885
+ }
3886
+ h === !0 ? b() : Promise.resolve(h).then(b);
3887
+ });
3888
+ }
3889
+ }, [e, a]), g.useEffect(function() {
3890
+ return function() {
3891
+ u();
3892
+ };
3893
+ }, []), [d, a];
3894
+ };
3895
+ function Fl(e, t, r, n) {
3896
+ var o = n.motionEnter, a = o === void 0 ? !0 : o, i = n.motionAppear, c = i === void 0 ? !0 : i, l = n.motionLeave, s = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, f = n.onAppearPrepare, p = n.onEnterPrepare, m = n.onLeavePrepare, h = n.onAppearStart, v = n.onEnterStart, b = n.onLeaveStart, y = n.onAppearActive, C = n.onEnterActive, E = n.onLeaveActive, S = n.onAppearEnd, T = n.onEnterEnd, x = n.onLeaveEnd, _ = n.onVisibleChanged, A = qr(), M = R(A, 2), L = M[0], I = M[1], $ = Nl(je), j = R($, 2), N = j[0], V = j[1], W = qr(null), H = R(W, 2), X = H[0], G = H[1], K = N(), U = $e(!1), B = $e(null);
3897
+ function Z() {
3898
+ return r();
3899
+ }
3900
+ var le = $e(!1);
3901
+ function ye() {
3902
+ V(je), G(null, !0);
3903
+ }
3904
+ var ie = Kr(function(ae) {
3905
+ var te = N();
3906
+ if (te !== je) {
3907
+ var fe = Z();
3908
+ if (!(ae && !ae.deadline && ae.target !== fe)) {
3909
+ var Xe = le.current, Ge;
3910
+ te === $t && Xe ? Ge = S == null ? void 0 : S(fe, ae) : te === Rt && Xe ? Ge = T == null ? void 0 : T(fe, ae) : te === It && Xe && (Ge = x == null ? void 0 : x(fe, ae)), Xe && Ge !== !1 && ye();
3911
+ }
3912
+ }
3913
+ }), q = Ll(ie), Y = R(q, 1), se = Y[0], _e = function(te) {
3914
+ switch (te) {
3915
+ case $t:
3916
+ return P(P(P({}, he, f), Ye, h), Qe, y);
3917
+ case Rt:
3918
+ return P(P(P({}, he, p), Ye, v), Qe, C);
3919
+ case It:
3920
+ return P(P(P({}, he, m), Ye, b), Qe, E);
3921
+ default:
3922
+ return {};
3923
+ }
3924
+ }, ge = g.useMemo(function() {
3925
+ return _e(K);
3926
+ }, [K]), Ae = Bl(K, !e, function(ae) {
3927
+ if (ae === he) {
3928
+ var te = ge[he];
3929
+ return te ? te(Z()) : Ma;
3930
+ }
3931
+ if (ce in ge) {
3932
+ var fe;
3933
+ G(((fe = ge[ce]) === null || fe === void 0 ? void 0 : fe.call(ge, Z(), null)) || null);
3934
+ }
3935
+ return ce === Qe && K !== je && (se(Z()), u > 0 && (clearTimeout(B.current), B.current = setTimeout(function() {
3936
+ ie({
3937
+ deadline: !0
3938
+ });
3939
+ }, u))), ce === Sa && ye(), Vl;
3940
+ }), w = R(Ae, 2), De = w[0], ce = w[1], We = Aa(ce);
3941
+ le.current = We;
3942
+ var Et = $e(null);
3943
+ Oa(function() {
3944
+ if (!(U.current && Et.current === t)) {
3945
+ I(t);
3946
+ var ae = U.current;
3947
+ U.current = !0;
3948
+ var te;
3949
+ !ae && t && c && (te = $t), ae && t && a && (te = Rt), (ae && !t && s || !ae && d && !t && s) && (te = It);
3950
+ var fe = _e(te);
3951
+ te && (e || fe[he]) ? (V(te), De()) : V(je), Et.current = t;
3952
+ }
3953
+ }, [t]), Le(function() {
3954
+ // Cancel appear
3955
+ (K === $t && !c || // Cancel enter
3956
+ K === Rt && !a || // Cancel leave
3957
+ K === It && !s) && V(je);
3958
+ }, [c, a, s]), Le(function() {
3959
+ return function() {
3960
+ U.current = !1, clearTimeout(B.current);
3961
+ };
3962
+ }, []);
3963
+ var st = g.useRef(!1);
3964
+ Le(function() {
3965
+ L && (st.current = !0), L !== void 0 && K === je && ((st.current || L) && (_ == null || _(L)), st.current = !0);
3966
+ }, [L, K]);
3967
+ var ct = X;
3968
+ return ge[he] && ce === Ye && (ct = k({
3969
+ transition: "none"
3970
+ }, ct)), [K, ce, ct, L ?? t];
3971
+ }
3972
+ function Wl(e) {
3973
+ var t = e;
3974
+ F(e) === "object" && (t = e.transitionSupport);
3975
+ function r(o, a) {
3976
+ return !!(o.motionName && t && a !== !1);
3977
+ }
3978
+ var n = /* @__PURE__ */ g.forwardRef(function(o, a) {
3979
+ var i = o.visible, c = i === void 0 ? !0 : i, l = o.removeOnLeave, s = l === void 0 ? !0 : l, u = o.forceRender, d = o.children, f = o.motionName, p = o.leavedClassName, m = o.eventProps, h = g.useContext(ba), v = h.motion, b = r(o, v), y = $e(), C = $e();
3980
+ function E() {
3981
+ try {
3982
+ return y.current instanceof HTMLElement ? y.current : kl(C.current);
3983
+ } catch {
3984
+ return null;
3985
+ }
3986
+ }
3987
+ var S = Fl(b, c, E, o), T = R(S, 4), x = T[0], _ = T[1], A = T[2], M = T[3], L = g.useRef(M);
3988
+ M && (L.current = !0);
3989
+ var I = g.useCallback(function(H) {
3990
+ y.current = H, al(a, H);
3991
+ }, [a]), $, j = k(k({}, m), {}, {
3992
+ visible: c
3993
+ });
3994
+ if (!d)
3995
+ $ = null;
3996
+ else if (x === je)
3997
+ M ? $ = d(k({}, j), I) : !s && L.current && p ? $ = d(k(k({}, j), {}, {
3998
+ className: p
3999
+ }), I) : u || !s && !p ? $ = d(k(k({}, j), {}, {
4000
+ style: {
4001
+ display: "none"
4002
+ }
4003
+ }), I) : $ = null;
4004
+ else {
4005
+ var N;
4006
+ _ === he ? N = "prepare" : Aa(_) ? N = "active" : _ === Ye && (N = "start");
4007
+ var V = uo(f, "".concat(x, "-").concat(N));
4008
+ $ = d(k(k({}, j), {}, {
4009
+ className: et(uo(f, x), P(P({}, V, V && N), f, typeof f == "string")),
4010
+ style: A
4011
+ }), I);
4012
+ }
4013
+ if (/* @__PURE__ */ g.isValidElement($) && il($)) {
4014
+ var W = sl($);
4015
+ W || ($ = /* @__PURE__ */ g.cloneElement($, {
4016
+ ref: I
4017
+ }));
4018
+ }
4019
+ return /* @__PURE__ */ g.createElement(jl, {
4020
+ ref: C
4021
+ }, $);
4022
+ });
4023
+ return n.displayName = "CSSMotion", n;
4024
+ }
4025
+ const Xl = Wl(_a);
4026
+ var Qr = "add", Zr = "keep", Jr = "remove", pr = "removed";
4027
+ function Gl(e) {
4028
+ var t;
4029
+ return e && F(e) === "object" && "key" in e ? t = e : t = {
4030
+ key: e
4031
+ }, k(k({}, t), {}, {
4032
+ key: String(t.key)
4033
+ });
4034
+ }
4035
+ function en() {
4036
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
4037
+ return e.map(Gl);
4038
+ }
4039
+ function Ul() {
4040
+ 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 = en(e), i = en(t);
4041
+ a.forEach(function(s) {
4042
+ for (var u = !1, d = n; d < o; d += 1) {
4043
+ var f = i[d];
4044
+ if (f.key === s.key) {
4045
+ n < d && (r = r.concat(i.slice(n, d).map(function(p) {
4046
+ return k(k({}, p), {}, {
4047
+ status: Qr
4048
+ });
4049
+ })), n = d), r.push(k(k({}, f), {}, {
4050
+ status: Zr
4051
+ })), n += 1, u = !0;
4052
+ break;
4053
+ }
4054
+ }
4055
+ u || r.push(k(k({}, s), {}, {
4056
+ status: Jr
4057
+ }));
4058
+ }), n < o && (r = r.concat(i.slice(n).map(function(s) {
4059
+ return k(k({}, s), {}, {
4060
+ status: Qr
4061
+ });
4062
+ })));
4063
+ var c = {};
4064
+ r.forEach(function(s) {
4065
+ var u = s.key;
4066
+ c[u] = (c[u] || 0) + 1;
4067
+ });
4068
+ var l = Object.keys(c).filter(function(s) {
4069
+ return c[s] > 1;
4070
+ });
4071
+ return l.forEach(function(s) {
4072
+ r = r.filter(function(u) {
4073
+ var d = u.key, f = u.status;
4074
+ return d !== s || f !== Jr;
4075
+ }), r.forEach(function(u) {
4076
+ u.key === s && (u.status = Zr);
4077
+ });
4078
+ }), r;
4079
+ }
4080
+ var Kl = ["component", "children", "onVisibleChanged", "onAllRemoved"], ql = ["status"], Yl = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
4081
+ function Ql(e) {
4082
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Xl, r = /* @__PURE__ */ function(n) {
4083
+ Yt(a, n);
4084
+ var o = Qt(a);
4085
+ function a() {
4086
+ var i;
4087
+ ke(this, a);
4088
+ for (var c = arguments.length, l = new Array(c), s = 0; s < c; s++)
4089
+ l[s] = arguments[s];
4090
+ return i = o.call.apply(o, [this].concat(l)), P(Ve(i), "state", {
4091
+ keyEntities: []
4092
+ }), P(Ve(i), "removeKey", function(u) {
4093
+ i.setState(function(d) {
4094
+ var f = d.keyEntities.map(function(p) {
4095
+ return p.key !== u ? p : k(k({}, p), {}, {
4096
+ status: pr
4097
+ });
4098
+ });
4099
+ return {
4100
+ keyEntities: f
4101
+ };
4102
+ }, function() {
4103
+ var d = i.state.keyEntities, f = d.filter(function(p) {
4104
+ var m = p.status;
4105
+ return m !== pr;
4106
+ }).length;
4107
+ f === 0 && i.props.onAllRemoved && i.props.onAllRemoved();
4108
+ });
4109
+ }), i;
4110
+ }
4111
+ return Me(a, [{
4112
+ key: "render",
4113
+ value: function() {
4114
+ var c = this, l = this.state.keyEntities, s = this.props, u = s.component, d = s.children, f = s.onVisibleChanged;
4115
+ s.onAllRemoved;
4116
+ var p = xr(s, Kl), m = u || g.Fragment, h = {};
4117
+ return Yl.forEach(function(v) {
4118
+ h[v] = p[v], delete p[v];
4119
+ }), delete p.keys, /* @__PURE__ */ g.createElement(m, p, l.map(function(v, b) {
4120
+ var y = v.status, C = xr(v, ql), E = y === Qr || y === Zr;
4121
+ return /* @__PURE__ */ g.createElement(t, Gt({}, h, {
4122
+ key: C.key,
4123
+ visible: E,
4124
+ eventProps: C,
4125
+ onVisibleChanged: function(T) {
4126
+ f == null || f(T, {
4127
+ key: C.key
4128
+ }), T || c.removeKey(C.key);
4129
+ }
4130
+ }), function(S, T) {
4131
+ return d(k(k({}, S), {}, {
4132
+ index: b
4133
+ }), T);
4134
+ });
4135
+ }));
4136
+ }
4137
+ }], [{
4138
+ key: "getDerivedStateFromProps",
4139
+ value: function(c, l) {
4140
+ var s = c.keys, u = l.keyEntities, d = en(s), f = Ul(u, d);
4141
+ return {
4142
+ keyEntities: f.filter(function(p) {
4143
+ var m = u.find(function(h) {
4144
+ var v = h.key;
4145
+ return p.key === v;
4146
+ });
4147
+ return !(m && m.status === pr && p.status === Jr);
4148
+ })
4149
+ };
4150
+ }
4151
+ }]), a;
4152
+ }(g.Component);
4153
+ return P(r, "defaultProps", {
4154
+ component: "div"
4155
+ }), r;
4156
+ }
4157
+ Ql(_a);
4158
+ function Zl(e) {
4159
+ const {
4160
+ children: t
4161
+ } = e, [, r] = vn(), {
4162
+ motion: n
4163
+ } = r, o = g.useRef(!1);
4164
+ return o.current = o.current || n === !1, o.current ? /* @__PURE__ */ g.createElement(Al, {
4165
+ motion: n
4166
+ }, t) : t;
4167
+ }
4168
+ const ja = /* @__PURE__ */ g.memo((e) => {
4169
+ let {
4170
+ dropdownMatchSelectWidth: t
4171
+ } = e;
4172
+ return er("ConfigProvider").deprecated(t === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null;
4173
+ });
4174
+ process.env.NODE_ENV !== "production" && (ja.displayName = "PropWarning");
4175
+ const Jl = process.env.NODE_ENV !== "production" ? ja : () => null;
4176
+ var eu = function(e, t) {
4177
+ var r = {};
4178
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4179
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
4180
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
4181
+ return r;
4182
+ };
4183
+ let tn = !1;
4184
+ process.env.NODE_ENV;
4185
+ const tu = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
4186
+ let Na;
4187
+ function ru() {
4188
+ return Na || Gr;
4189
+ }
4190
+ function nu(e) {
4191
+ return Object.keys(e).some((t) => t.endsWith("Color"));
4192
+ }
4193
+ const ou = (e) => {
4194
+ const {
4195
+ prefixCls: t,
4196
+ iconPrefixCls: r,
4197
+ theme: n,
4198
+ holderRender: o
4199
+ } = e;
4200
+ t !== void 0 && (Na = t), n && nu(n) && (process.env.NODE_ENV !== "production" && at(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), Wc(ru(), n));
4201
+ }, au = (e) => {
4202
+ const {
4203
+ children: t,
4204
+ csp: r,
4205
+ autoInsertSpaceInButton: n,
4206
+ alert: o,
4207
+ anchor: a,
4208
+ form: i,
4209
+ locale: c,
4210
+ componentSize: l,
4211
+ direction: s,
4212
+ space: u,
4213
+ splitter: d,
4214
+ virtual: f,
4215
+ dropdownMatchSelectWidth: p,
4216
+ popupMatchSelectWidth: m,
4217
+ popupOverflow: h,
4218
+ legacyLocale: v,
4219
+ parentContext: b,
4220
+ iconPrefixCls: y,
4221
+ theme: C,
4222
+ componentDisabled: E,
4223
+ segmented: S,
4224
+ statistic: T,
4225
+ spin: x,
4226
+ calendar: _,
4227
+ carousel: A,
4228
+ cascader: M,
4229
+ collapse: L,
4230
+ typography: I,
4231
+ checkbox: $,
4232
+ descriptions: j,
4233
+ divider: N,
4234
+ drawer: V,
4235
+ skeleton: W,
4236
+ steps: H,
4237
+ image: X,
4238
+ layout: G,
4239
+ list: K,
4240
+ mentions: U,
4241
+ modal: B,
4242
+ progress: Z,
4243
+ result: le,
4244
+ slider: ye,
4245
+ breadcrumb: ie,
4246
+ menu: q,
4247
+ pagination: Y,
4248
+ input: se,
4249
+ textArea: _e,
4250
+ empty: ge,
4251
+ badge: Ae,
4252
+ radio: w,
4253
+ rate: De,
4254
+ switch: ce,
4255
+ transfer: We,
4256
+ avatar: Et,
4257
+ message: st,
4258
+ tag: ct,
4259
+ table: ae,
4260
+ card: te,
4261
+ tabs: fe,
4262
+ timeline: Xe,
4263
+ timePicker: Ge,
4264
+ upload: Xa,
4265
+ notification: Ga,
4266
+ tree: Ua,
4267
+ colorPicker: Ka,
4268
+ datePicker: qa,
4269
+ rangePicker: Ya,
4270
+ flex: Qa,
4271
+ wave: Za,
4272
+ dropdown: Ja,
4273
+ warning: ei,
4274
+ tour: ti,
4275
+ tooltip: ri,
4276
+ popover: ni,
4277
+ popconfirm: oi,
4278
+ floatButtonGroup: ai,
4279
+ variant: ii,
4280
+ inputNumber: si,
4281
+ treeSelect: ci
4282
+ } = e, mn = g.useCallback((J, oe) => {
4283
+ const {
4284
+ prefixCls: be
4285
+ } = e;
4286
+ if (oe)
4287
+ return oe;
4288
+ const Se = be || b.getPrefixCls("");
4289
+ return J ? `${Se}-${J}` : Se;
4290
+ }, [b.getPrefixCls, e.prefixCls]), Tt = y || b.iconPrefixCls || dn, _t = r || b.csp;
4291
+ El(Tt, _t);
4292
+ const Ot = wl(C, b.theme, {
4293
+ prefixCls: mn("")
4294
+ });
4295
+ process.env.NODE_ENV !== "production" && (tn = tn || !!Ot);
4296
+ const or = {
4297
+ csp: _t,
4298
+ autoInsertSpaceInButton: n,
4299
+ alert: o,
4300
+ anchor: a,
4301
+ locale: c || v,
4302
+ direction: s,
4303
+ space: u,
4304
+ splitter: d,
4305
+ virtual: f,
4306
+ popupMatchSelectWidth: m ?? p,
4307
+ popupOverflow: h,
4308
+ getPrefixCls: mn,
4309
+ iconPrefixCls: Tt,
4310
+ theme: Ot,
4311
+ segmented: S,
4312
+ statistic: T,
4313
+ spin: x,
4314
+ calendar: _,
4315
+ carousel: A,
4316
+ cascader: M,
4317
+ collapse: L,
4318
+ typography: I,
4319
+ checkbox: $,
4320
+ descriptions: j,
4321
+ divider: N,
4322
+ drawer: V,
4323
+ skeleton: W,
4324
+ steps: H,
4325
+ image: X,
4326
+ input: se,
4327
+ textArea: _e,
4328
+ layout: G,
4329
+ list: K,
4330
+ mentions: U,
4331
+ modal: B,
4332
+ progress: Z,
4333
+ result: le,
4334
+ slider: ye,
4335
+ breadcrumb: ie,
4336
+ menu: q,
4337
+ pagination: Y,
4338
+ empty: ge,
4339
+ badge: Ae,
4340
+ radio: w,
4341
+ rate: De,
4342
+ switch: ce,
4343
+ transfer: We,
4344
+ avatar: Et,
4345
+ message: st,
4346
+ tag: ct,
4347
+ table: ae,
4348
+ card: te,
4349
+ tabs: fe,
4350
+ timeline: Xe,
4351
+ timePicker: Ge,
4352
+ upload: Xa,
4353
+ notification: Ga,
4354
+ tree: Ua,
4355
+ colorPicker: Ka,
4356
+ datePicker: qa,
4357
+ rangePicker: Ya,
4358
+ flex: Qa,
4359
+ wave: Za,
4360
+ dropdown: Ja,
4361
+ warning: ei,
4362
+ tour: ti,
4363
+ tooltip: ri,
4364
+ popover: ni,
4365
+ popconfirm: oi,
4366
+ floatButtonGroup: ai,
4367
+ variant: ii,
4368
+ inputNumber: si,
4369
+ treeSelect: ci
4370
+ };
4371
+ process.env.NODE_ENV !== "production" && er("ConfigProvider")(!("autoInsertSpaceInButton" in e), "deprecated", "`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");
4372
+ const Ue = Object.assign({}, b);
4373
+ Object.keys(or).forEach((J) => {
4374
+ or[J] !== void 0 && (Ue[J] = or[J]);
4375
+ }), tu.forEach((J) => {
4376
+ const oe = e[J];
4377
+ oe && (Ue[J] = oe);
4378
+ }), typeof n < "u" && (Ue.button = Object.assign({
4379
+ autoInsertSpace: n
4380
+ }, Ue.button));
4381
+ const Ke = Mo(() => Ue, Ue, (J, oe) => {
4382
+ const be = Object.keys(J), Se = Object.keys(oe);
4383
+ return be.length !== Se.length || be.some((wt) => J[wt] !== oe[wt]);
4384
+ }), {
4385
+ layer: yn
4386
+ } = g.useContext(xt), li = g.useMemo(() => ({
4387
+ prefixCls: Tt,
4388
+ csp: _t,
4389
+ layer: yn ? "antd" : void 0
4390
+ }), [Tt, _t, yn]);
4391
+ let ne = /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(Jl, {
4392
+ dropdownMatchSelectWidth: p
4393
+ }), t);
4394
+ const bn = g.useMemo(() => {
4395
+ var J, oe, be, Se;
4396
+ return xc(((J = tr.Form) === null || J === void 0 ? void 0 : J.defaultValidateMessages) || {}, ((be = (oe = Ke.locale) === null || oe === void 0 ? void 0 : oe.Form) === null || be === void 0 ? void 0 : be.defaultValidateMessages) || {}, ((Se = Ke.form) === null || Se === void 0 ? void 0 : Se.validateMessages) || {}, (i == null ? void 0 : i.validateMessages) || {});
4397
+ }, [Ke, i == null ? void 0 : i.validateMessages]);
4398
+ Object.keys(bn).length > 0 && (ne = /* @__PURE__ */ g.createElement(Ec.Provider, {
4399
+ value: bn
4400
+ }, ne)), c && (ne = /* @__PURE__ */ g.createElement(ra, {
4401
+ locale: c,
4402
+ _ANT_MARK__: ta
4403
+ }, ne)), ne = /* @__PURE__ */ g.createElement(pi.Provider, {
4404
+ value: li
4405
+ }, ne), l && (ne = /* @__PURE__ */ g.createElement(Gc, {
4406
+ size: l
4407
+ }, ne)), ne = /* @__PURE__ */ g.createElement(Zl, null, ne);
4408
+ const ui = g.useMemo(() => {
4409
+ const J = Ot || {}, {
4410
+ algorithm: oe,
4411
+ token: be,
4412
+ components: Se,
4413
+ cssVar: wt
4414
+ } = J, fi = eu(J, ["algorithm", "token", "components", "cssVar"]), Sn = oe && (!Array.isArray(oe) || oe.length > 0) ? _r(oe) : ia, ar = {};
4415
+ Object.entries(Se || {}).forEach((di) => {
4416
+ let [vi, gi] = di;
4417
+ const Oe = Object.assign({}, gi);
4418
+ "algorithm" in Oe && (Oe.algorithm === !0 ? Oe.theme = Sn : (Array.isArray(Oe.algorithm) || typeof Oe.algorithm == "function") && (Oe.theme = _r(Oe.algorithm)), delete Oe.algorithm), ar[vi] = Oe;
4419
+ });
4420
+ const xn = Object.assign(Object.assign({}, pt), be);
4421
+ return Object.assign(Object.assign({}, fi), {
4422
+ theme: Sn,
4423
+ token: xn,
4424
+ components: ar,
4425
+ override: Object.assign({
4426
+ override: xn
4427
+ }, ar),
4428
+ cssVar: wt
4429
+ });
4430
+ }, [Ot]);
4431
+ return C && (ne = /* @__PURE__ */ g.createElement(sa.Provider, {
4432
+ value: ui
4433
+ }, ne)), Ke.warning && (ne = /* @__PURE__ */ g.createElement(Jo.Provider, {
4434
+ value: Ke.warning
4435
+ }, ne)), E !== void 0 && (ne = /* @__PURE__ */ g.createElement(Xc, {
4436
+ disabled: E
4437
+ }, ne)), /* @__PURE__ */ g.createElement(Te.Provider, {
4438
+ value: Ke
4439
+ }, ne);
4440
+ }, it = (e) => {
4441
+ const t = g.useContext(Te), r = g.useContext(ea);
4442
+ return /* @__PURE__ */ g.createElement(au, Object.assign({
4443
+ parentContext: t,
4444
+ legacyLocale: r
4445
+ }, e));
4446
+ };
4447
+ it.ConfigContext = Te;
4448
+ it.SizeContext = mt;
4449
+ it.config = ou;
4450
+ it.useConfig = Uc;
4451
+ Object.defineProperty(it, "SizeContext", {
4452
+ get: () => (process.env.NODE_ENV !== "production" && at(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), mt)
4453
+ });
4454
+ process.env.NODE_ENV !== "production" && (it.displayName = "ConfigProvider");
4455
+ const $a = /* @__PURE__ */ g.createContext({
4456
+ siderHook: {
4457
+ addSider: () => null,
4458
+ removeSider: () => null
4459
+ }
4460
+ });
4461
+ function rn(e) {
4462
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
4463
+ return Ce.Children.forEach(e, function(n) {
4464
+ n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(rn(n)) : ua(n) && n.props ? r = r.concat(rn(n.props.children, t)) : r.push(n));
4465
+ }), r;
4466
+ }
4467
+ const iu = (e) => {
4468
+ const {
4469
+ antCls: t,
4470
+ // .ant
4471
+ componentCls: r,
4472
+ // .ant-layout
4473
+ colorText: n,
4474
+ footerBg: o,
4475
+ headerHeight: a,
4476
+ headerPadding: i,
4477
+ headerColor: c,
4478
+ footerPadding: l,
4479
+ fontSize: s,
4480
+ bodyBg: u,
4481
+ headerBg: d
4482
+ } = e;
4483
+ return {
4484
+ [r]: {
4485
+ display: "flex",
4486
+ flex: "auto",
4487
+ flexDirection: "column",
4488
+ /* fix firefox can't set height smaller than content on flex item */
4489
+ minHeight: 0,
4490
+ background: u,
4491
+ "&, *": {
4492
+ boxSizing: "border-box"
4493
+ },
4494
+ [`&${r}-has-sider`]: {
4495
+ flexDirection: "row",
4496
+ [`> ${r}, > ${r}-content`]: {
4497
+ // https://segmentfault.com/a/1190000019498300
4498
+ width: 0
4499
+ }
4500
+ },
4501
+ [`${r}-header, &${r}-footer`]: {
4502
+ flex: "0 0 auto"
4503
+ },
4504
+ // RTL
4505
+ "&-rtl": {
4506
+ direction: "rtl"
4507
+ }
4508
+ },
4509
+ // ==================== Header ====================
4510
+ [`${r}-header`]: {
4511
+ height: a,
4512
+ padding: i,
4513
+ color: c,
4514
+ lineHeight: Ne(a),
4515
+ background: d,
4516
+ // Other components/menu/style/index.less line:686
4517
+ // Integration with header element so menu items have the same height
4518
+ [`${t}-menu`]: {
4519
+ lineHeight: "inherit"
4520
+ }
4521
+ },
4522
+ // ==================== Footer ====================
4523
+ [`${r}-footer`]: {
4524
+ padding: l,
4525
+ color: n,
4526
+ fontSize: s,
4527
+ background: o
4528
+ },
4529
+ // =================== Content ====================
4530
+ [`${r}-content`]: {
4531
+ flex: "auto",
4532
+ color: n,
4533
+ // fix firefox can't set height smaller than content on flex item
4534
+ minHeight: 0
4535
+ }
4536
+ };
4537
+ }, Ra = (e) => {
4538
+ const {
4539
+ colorBgLayout: t,
4540
+ controlHeight: r,
4541
+ controlHeightLG: n,
4542
+ colorText: o,
4543
+ controlHeightSM: a,
4544
+ marginXXS: i,
4545
+ colorTextLightSolid: c,
4546
+ colorBgContainer: l
4547
+ } = e, s = n * 1.25;
4548
+ return {
4549
+ // Deprecated
4550
+ colorBgHeader: "#001529",
4551
+ colorBgBody: t,
4552
+ colorBgTrigger: "#002140",
4553
+ bodyBg: t,
4554
+ headerBg: "#001529",
4555
+ headerHeight: r * 2,
4556
+ headerPadding: `0 ${s}px`,
4557
+ headerColor: o,
4558
+ footerPadding: `${a}px ${s}px`,
4559
+ footerBg: t,
4560
+ siderBg: "#001529",
4561
+ triggerHeight: n + i * 2,
4562
+ triggerBg: "#002140",
4563
+ triggerColor: c,
4564
+ zeroTriggerWidth: n,
4565
+ zeroTriggerHeight: n,
4566
+ lightSiderBg: l,
4567
+ lightTriggerBg: l,
4568
+ lightTriggerColor: o
4569
+ };
4570
+ }, Ia = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]], La = ya("Layout", (e) => [iu(e)], Ra, {
4571
+ deprecatedTokens: Ia
4572
+ }), su = (e) => {
4573
+ const {
4574
+ componentCls: t,
4575
+ siderBg: r,
4576
+ motionDurationMid: n,
4577
+ motionDurationSlow: o,
4578
+ antCls: a,
4579
+ triggerHeight: i,
4580
+ triggerColor: c,
4581
+ triggerBg: l,
4582
+ headerHeight: s,
4583
+ zeroTriggerWidth: u,
4584
+ zeroTriggerHeight: d,
4585
+ borderRadiusLG: f,
4586
+ lightSiderBg: p,
4587
+ lightTriggerColor: m,
4588
+ lightTriggerBg: h,
4589
+ bodyBg: v
4590
+ } = e;
4591
+ return {
4592
+ [t]: {
4593
+ position: "relative",
4594
+ // fix firefox can't set width smaller than content on flex item
4595
+ minWidth: 0,
4596
+ background: r,
4597
+ transition: `all ${n}, background 0s`,
4598
+ "&-has-trigger": {
4599
+ paddingBottom: i
4600
+ },
4601
+ "&-right": {
4602
+ order: 1
4603
+ },
4604
+ [`${t}-children`]: {
4605
+ height: "100%",
4606
+ // Hack for fixing margin collapse bug
4607
+ // https://github.com/ant-design/ant-design/issues/7967
4608
+ // solution from https://stackoverflow.com/a/33132624/3040605
4609
+ marginTop: -0.1,
4610
+ paddingTop: 0.1,
4611
+ [`${a}-menu${a}-menu-inline-collapsed`]: {
4612
+ width: "auto"
4613
+ }
4614
+ },
4615
+ [`&-zero-width ${t}-children`]: {
4616
+ overflow: "hidden"
4617
+ },
4618
+ [`${t}-trigger`]: {
4619
+ position: "fixed",
4620
+ bottom: 0,
4621
+ zIndex: 1,
4622
+ height: i,
4623
+ color: c,
4624
+ lineHeight: Ne(i),
4625
+ textAlign: "center",
4626
+ background: l,
4627
+ cursor: "pointer",
4628
+ transition: `all ${n}`
4629
+ },
4630
+ [`${t}-zero-width-trigger`]: {
4631
+ position: "absolute",
4632
+ top: s,
4633
+ insetInlineEnd: e.calc(u).mul(-1).equal(),
4634
+ zIndex: 1,
4635
+ width: u,
4636
+ height: d,
4637
+ color: c,
4638
+ fontSize: e.fontSizeXL,
4639
+ display: "flex",
4640
+ alignItems: "center",
4641
+ justifyContent: "center",
4642
+ background: r,
4643
+ borderRadius: `0 ${Ne(f)} ${Ne(f)} 0`,
4644
+ cursor: "pointer",
4645
+ transition: `background ${o} ease`,
4646
+ "&::after": {
4647
+ position: "absolute",
4648
+ inset: 0,
4649
+ background: "transparent",
4650
+ transition: `all ${o}`,
4651
+ content: '""'
4652
+ },
4653
+ "&:hover::after": {
4654
+ background: "rgba(255, 255, 255, 0.2)"
4655
+ },
4656
+ "&-right": {
4657
+ insetInlineStart: e.calc(u).mul(-1).equal(),
4658
+ borderRadius: `${Ne(f)} 0 0 ${Ne(f)}`
4659
+ }
4660
+ },
4661
+ // Light
4662
+ "&-light": {
4663
+ background: p,
4664
+ [`${t}-trigger`]: {
4665
+ color: m,
4666
+ background: h
4667
+ },
4668
+ [`${t}-zero-width-trigger`]: {
4669
+ color: m,
4670
+ background: h,
4671
+ border: `1px solid ${v}`,
4672
+ // Safe to modify to any other color
4673
+ borderInlineStart: 0
4674
+ }
4675
+ }
4676
+ }
4677
+ };
4678
+ }, cu = ya(["Layout", "Sider"], (e) => [su(e)], Ra, {
4679
+ deprecatedTokens: Ia
4680
+ });
4681
+ var lu = function(e, t) {
4682
+ var r = {};
4683
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4684
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
4685
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
4686
+ return r;
4687
+ };
4688
+ const vo = {
4689
+ xs: "479.98px",
4690
+ sm: "575.98px",
4691
+ md: "767.98px",
4692
+ lg: "991.98px",
4693
+ xl: "1199.98px",
4694
+ xxl: "1599.98px"
4695
+ }, uu = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Ha = /* @__PURE__ */ g.createContext({}), fu = /* @__PURE__ */ (() => {
4696
+ let e = 0;
4697
+ return function() {
4698
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
4699
+ return e += 1, `${t}${e}`;
4700
+ };
4701
+ })(), hn = /* @__PURE__ */ g.forwardRef((e, t) => {
4702
+ const {
4703
+ prefixCls: r,
4704
+ className: n,
4705
+ trigger: o,
4706
+ children: a,
4707
+ defaultCollapsed: i = !1,
4708
+ theme: c = "dark",
4709
+ style: l = {},
4710
+ collapsible: s = !1,
4711
+ reverseArrow: u = !1,
4712
+ width: d = 200,
4713
+ collapsedWidth: f = 80,
4714
+ zeroWidthTriggerStyle: p,
4715
+ breakpoint: m,
4716
+ onCollapse: h,
4717
+ onBreakpoint: v
4718
+ } = e, b = lu(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
4719
+ siderHook: y
4720
+ } = He($a), [C, E] = En("collapsed" in e ? e.collapsed : i), [S, T] = En(!1);
4721
+ Le(() => {
4722
+ "collapsed" in e && E(e.collapsed);
4723
+ }, [e.collapsed]);
4724
+ const x = (q, Y) => {
4725
+ "collapsed" in e || E(q), h == null || h(q, Y);
4726
+ }, {
4727
+ getPrefixCls: _,
4728
+ direction: A
4729
+ } = He(Te), M = _("layout-sider", r), [L, I, $] = cu(M), j = $e(null);
4730
+ j.current = (q) => {
4731
+ T(q.matches), v == null || v(q.matches), C !== q.matches && x(q.matches, "responsive");
4732
+ }, Le(() => {
4733
+ function q(se) {
4734
+ return j.current(se);
4735
+ }
4736
+ let Y;
4737
+ if (typeof window < "u") {
4738
+ const {
4739
+ matchMedia: se
4740
+ } = window;
4741
+ if (se && m && m in vo) {
4742
+ Y = se(`screen and (max-width: ${vo[m]})`);
4743
+ try {
4744
+ Y.addEventListener("change", q);
4745
+ } catch {
4746
+ Y.addListener(q);
4747
+ }
4748
+ q(Y);
4749
+ }
4750
+ }
4751
+ return () => {
4752
+ try {
4753
+ Y == null || Y.removeEventListener("change", q);
4754
+ } catch {
4755
+ Y == null || Y.removeListener(q);
4756
+ }
4757
+ };
4758
+ }, [m]), Le(() => {
4759
+ const q = fu("ant-sider-");
4760
+ return y.addSider(q), () => y.removeSider(q);
4761
+ }, []);
4762
+ const N = () => {
4763
+ x(!C, "clickTrigger");
4764
+ }, V = Co(b, ["collapsed"]), W = C ? f : d, H = uu(W) ? `${W}px` : String(W), X = parseFloat(String(f || 0)) === 0 ? /* @__PURE__ */ g.createElement("span", {
4765
+ onClick: N,
4766
+ className: et(`${M}-zero-width-trigger`, `${M}-zero-width-trigger-${u ? "right" : "left"}`),
4767
+ style: p
4768
+ }, o || /* @__PURE__ */ g.createElement(yo, null)) : null, G = A === "rtl" == !u, B = {
4769
+ expanded: G ? /* @__PURE__ */ g.createElement(yr, null) : /* @__PURE__ */ g.createElement(mr, null),
4770
+ collapsed: G ? /* @__PURE__ */ g.createElement(mr, null) : /* @__PURE__ */ g.createElement(yr, null)
4771
+ }[C ? "collapsed" : "expanded"], Z = o !== null ? X || /* @__PURE__ */ g.createElement("div", {
4772
+ className: `${M}-trigger`,
4773
+ onClick: N,
4774
+ style: {
4775
+ width: H
4776
+ }
4777
+ }, o || B) : null, le = Object.assign(Object.assign({}, l), {
4778
+ flex: `0 0 ${H}`,
4779
+ maxWidth: H,
4780
+ minWidth: H,
4781
+ width: H
4782
+ }), ye = et(M, `${M}-${c}`, {
4783
+ [`${M}-collapsed`]: !!C,
4784
+ [`${M}-has-trigger`]: s && o !== null && !X,
4785
+ [`${M}-below`]: !!S,
4786
+ [`${M}-zero-width`]: parseFloat(H) === 0
4787
+ }, n, I, $), ie = g.useMemo(() => ({
4788
+ siderCollapsed: C
4789
+ }), [C]);
4790
+ return L(/* @__PURE__ */ g.createElement(Ha.Provider, {
4791
+ value: ie
4792
+ }, /* @__PURE__ */ g.createElement("aside", Object.assign({
4793
+ className: ye
4794
+ }, V, {
4795
+ style: le,
4796
+ ref: t
4797
+ }), /* @__PURE__ */ g.createElement("div", {
4798
+ className: `${M}-children`
4799
+ }, a), s || S && X ? Z : null)));
4800
+ });
4801
+ process.env.NODE_ENV !== "production" && (hn.displayName = "Sider");
4802
+ function du(e, t, r) {
4803
+ return typeof r == "boolean" ? r : e.length ? !0 : rn(t).some((o) => o.type === hn);
4804
+ }
4805
+ var Da = function(e, t) {
4806
+ var r = {};
4807
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4808
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
4809
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
4810
+ return r;
4811
+ };
4812
+ function nr(e) {
4813
+ let {
4814
+ suffixCls: t,
4815
+ tagName: r,
4816
+ displayName: n
4817
+ } = e;
4818
+ return (o) => {
4819
+ const a = /* @__PURE__ */ g.forwardRef((i, c) => /* @__PURE__ */ g.createElement(o, Object.assign({
4820
+ ref: c,
4821
+ suffixCls: t,
4822
+ tagName: r
4823
+ }, i)));
4824
+ return process.env.NODE_ENV !== "production" && (a.displayName = n), a;
4825
+ };
4826
+ }
4827
+ const pn = /* @__PURE__ */ g.forwardRef((e, t) => {
4828
+ const {
4829
+ prefixCls: r,
4830
+ suffixCls: n,
4831
+ className: o,
4832
+ tagName: a
4833
+ } = e, i = Da(e, ["prefixCls", "suffixCls", "className", "tagName"]), {
4834
+ getPrefixCls: c
4835
+ } = g.useContext(Te), l = c("layout", r), [s, u, d] = La(l), f = n ? `${l}-${n}` : l;
4836
+ return s(/* @__PURE__ */ g.createElement(a, Object.assign({
4837
+ className: et(r || f, o, u, d),
4838
+ ref: t
4839
+ }, i)));
4840
+ }), vu = /* @__PURE__ */ g.forwardRef((e, t) => {
4841
+ const {
4842
+ direction: r
4843
+ } = g.useContext(Te), [n, o] = g.useState([]), {
4844
+ prefixCls: a,
4845
+ className: i,
4846
+ rootClassName: c,
4847
+ children: l,
4848
+ hasSider: s,
4849
+ tagName: u,
4850
+ style: d
4851
+ } = e, f = Da(e, ["prefixCls", "className", "rootClassName", "children", "hasSider", "tagName", "style"]), p = Co(f, ["suffixCls"]), {
4852
+ getPrefixCls: m,
4853
+ className: h,
4854
+ style: v
4855
+ } = Vc("layout"), b = m("layout", a), y = du(n, l, s), [C, E, S] = La(b), T = et(b, {
4856
+ [`${b}-has-sider`]: y,
4857
+ [`${b}-rtl`]: r === "rtl"
4858
+ }, h, i, c, E, S), x = g.useMemo(() => ({
4859
+ siderHook: {
4860
+ addSider: (_) => {
4861
+ o((A) => [].concat(Ee(A), [_]));
4862
+ },
4863
+ removeSider: (_) => {
4864
+ o((A) => A.filter((M) => M !== _));
4865
+ }
4866
+ }
4867
+ }), []);
4868
+ return C(/* @__PURE__ */ g.createElement($a.Provider, {
4869
+ value: x
4870
+ }, /* @__PURE__ */ g.createElement(u, Object.assign({
4871
+ ref: t,
4872
+ className: T,
4873
+ style: Object.assign(Object.assign({}, v), d)
4874
+ }, p), l)));
4875
+ }), gu = nr({
4876
+ tagName: "div",
4877
+ displayName: "Layout"
4878
+ })(vu), hu = nr({
4879
+ suffixCls: "header",
4880
+ tagName: "header",
4881
+ displayName: "Header"
4882
+ })(pn), pu = nr({
4883
+ suffixCls: "footer",
4884
+ tagName: "footer",
4885
+ displayName: "Footer"
4886
+ })(pn), mu = nr({
4887
+ suffixCls: "content",
4888
+ tagName: "main",
4889
+ displayName: "Content"
4890
+ })(pn), yu = ({
4891
+ layoutClassName: e,
4892
+ className: t,
4893
+ ...r
4894
+ }) => /* @__PURE__ */ O.jsx(
4895
+ gu,
4896
+ {
4897
+ className: [e, t].filter(Boolean).join(" "),
4898
+ ...r
4899
+ }
4900
+ ), Bu = Object.assign(yu, {
4901
+ Header: hu,
4902
+ Footer: pu,
4903
+ Content: mu,
4904
+ Sider: hn,
4905
+ _InternalSiderContext: Ha
4906
+ }), za = (e) => {
4907
+ const { containerClassName: t, spaceClassName: r, ...n } = e;
4908
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(dt, { className: r, ...n }) });
4909
+ };
4910
+ za.Compact = dt.Compact;
4911
+ const Fu = za, Va = (e) => {
4912
+ const { containerClassName: t, spaceClassName: r, ...n } = e;
4913
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(ho, { className: r, ...n }) });
4914
+ };
4915
+ Va.Panel = ho.Panel;
4916
+ const Wu = Va, bu = ({
4917
+ containerClassName: e,
4918
+ menuClassName: t,
4919
+ ...r
4920
+ }) => /* @__PURE__ */ O.jsx("div", { className: e, children: /* @__PURE__ */ O.jsx(St, { className: t, ...r }) }), Ba = (e) => /* @__PURE__ */ O.jsx(St.Item, { ...e });
4921
+ Ba.displayName = "Menu.Item";
4922
+ const Fa = (e) => /* @__PURE__ */ O.jsx(St.SubMenu, { ...e });
4923
+ Fa.displayName = "Menu.SubMenu";
4924
+ const Su = St.Divider, xu = St.ItemGroup, Ct = bu;
4925
+ Ct.Item = Ba;
4926
+ Ct.SubMenu = Fa;
4927
+ Ct.Divider = Su;
4928
+ Ct.ItemGroup = xu;
4929
+ const Xu = Ct, Cu = (e) => {
4930
+ const { containerClassName: t, paginationClassName: r, ...n } = e;
4931
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(Ai, { className: r, ...n }) });
4932
+ }, Gu = Cu, Wa = (e) => {
4933
+ const { containerClassName: t, stepsClassName: r, ...n } = e;
4934
+ return /* @__PURE__ */ O.jsx("div", { className: t, children: /* @__PURE__ */ O.jsx(po, { className: r, ...n }) });
4935
+ };
4936
+ Wa.Step = po.Step;
4937
+ const Uu = Wa;
4938
+ export {
4939
+ _n as B,
4940
+ wu as C,
4941
+ Hu as D,
4942
+ zu as F,
4943
+ Bu as L,
4944
+ ku as M,
4945
+ Ri as P,
4946
+ Lu as R,
4947
+ Nu as S,
4948
+ Pu as T,
4949
+ Mu as a,
4950
+ Au as b,
4951
+ ju as c,
4952
+ $u as d,
4953
+ Ru as e,
4954
+ Iu as f,
4955
+ Du as g,
4956
+ Fu as h,
4957
+ Wu as i,
4958
+ Xu as j,
4959
+ Gu as k,
4960
+ Uu as l,
4961
+ Zi as t
4962
+ };