denwa-react-shared 1.0.91 → 1.0.93

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,2711 @@
1
+ import { Bt as e, Cr as t, Dr as n, H as r, In as i, Jn as a, Kn as o, Mr as s, Or as c, Pr as l, St as u, Tr as d, Un as f, Ut as p, Vn as m, Vt as h, Xn as g, Xt as _, Zt as v, _r as y, ar as b, b as x, c as S, cn as C, cr as w, dn as T, en as E, fr as D, gn as O, h as k, hr as A, in as j, ir as M, j as N, jr as ee, kr as P, l as F, ln as I, mn as L, p as R, pn as z, qt as te, s as B, sr as ne, tt as V, un as H, ur as U, xr as re, y as ie, yn as ae } from "./space-DbOTEMQH.js";
2
+ import * as W from "react";
3
+ import G, { forwardRef as oe, useCallback as K, useEffect as se, useImperativeHandle as ce, useMemo as le, useRef as ue } from "react";
4
+ import { flushSync as de } from "react-dom";
5
+ //#region node_modules/compute-scroll-into-view/dist/index.js
6
+ var fe = (e) => typeof e == "object" && !!e && e.nodeType === 1, q = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", pe = (e, t) => {
7
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
8
+ let n = getComputedStyle(e, null);
9
+ return q(n.overflowY, t) || q(n.overflowX, t) || ((e) => {
10
+ let t = ((e) => {
11
+ if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
12
+ try {
13
+ return e.ownerDocument.defaultView.frameElement;
14
+ } catch {
15
+ return null;
16
+ }
17
+ })(e);
18
+ return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
19
+ })(e);
20
+ }
21
+ return !1;
22
+ }, me = (e, t, n, r, i, a, o, s) => a < e && o > t || a > e && o < t ? 0 : a <= e && s <= n || o >= t && s >= n ? a - e - r : o > t && s < n || a < e && s > n ? o - t + i : 0, he = (e) => e.parentElement ?? (e.getRootNode().host || null), ge = (e, t) => {
23
+ if (typeof document > "u") return [];
24
+ let { scrollMode: n, block: r, inline: i, boundary: a, skipOverflowHiddenElements: o } = t, s = typeof a == "function" ? a : (e) => e !== a;
25
+ if (!fe(e)) throw TypeError("Invalid target");
26
+ let c = document.scrollingElement || document.documentElement, l = [], u = e;
27
+ for (; fe(u) && s(u);) {
28
+ if (u = he(u), u === c) {
29
+ l.push(u);
30
+ break;
31
+ }
32
+ u != null && u === document.body && pe(u) && !pe(document.documentElement) || u != null && pe(u, o) && l.push(u);
33
+ }
34
+ let d = window.visualViewport?.width ?? innerWidth, f = window.visualViewport?.height ?? innerHeight, { scrollX: p, scrollY: m } = window, { height: h, width: g, top: _, right: v, bottom: y, left: b } = e.getBoundingClientRect(), { top: x, right: S, bottom: C, left: w } = ((e) => {
35
+ let t = window.getComputedStyle(e);
36
+ return {
37
+ top: parseFloat(t.scrollMarginTop) || 0,
38
+ right: parseFloat(t.scrollMarginRight) || 0,
39
+ bottom: parseFloat(t.scrollMarginBottom) || 0,
40
+ left: parseFloat(t.scrollMarginLeft) || 0
41
+ };
42
+ })(e), T = r === "start" || r === "nearest" ? _ - x : r === "end" ? y + C : _ + h / 2 - x + C, E = i === "center" ? b + g / 2 - w + S : i === "end" ? v + S : b - w, D = [];
43
+ for (let e = 0; e < l.length; e++) {
44
+ let t = l[e], { height: a, width: o, top: s, right: u, bottom: x, left: S } = t.getBoundingClientRect();
45
+ if (n === "if-needed" && _ >= 0 && b >= 0 && y <= f && v <= d && (t === c && !pe(t) || _ >= s && y <= x && b >= S && v <= u)) return D;
46
+ let C = getComputedStyle(t), w = parseInt(C.borderLeftWidth, 10), O = parseInt(C.borderTopWidth, 10), k = parseInt(C.borderRightWidth, 10), A = parseInt(C.borderBottomWidth, 10), j = 0, M = 0, N = "offsetWidth" in t ? t.offsetWidth - t.clientWidth - w - k : 0, ee = "offsetHeight" in t ? t.offsetHeight - t.clientHeight - O - A : 0, P = "offsetWidth" in t ? t.offsetWidth === 0 ? 0 : o / t.offsetWidth : 0, F = "offsetHeight" in t ? t.offsetHeight === 0 ? 0 : a / t.offsetHeight : 0;
47
+ if (c === t) j = r === "start" ? T : r === "end" ? T - f : r === "nearest" ? me(m, m + f, f, O, A, m + T, m + T + h, h) : T - f / 2, M = i === "start" ? E : i === "center" ? E - d / 2 : i === "end" ? E - d : me(p, p + d, d, w, k, p + E, p + E + g, g), j = Math.max(0, j + m), M = Math.max(0, M + p);
48
+ else {
49
+ j = r === "start" ? T - s - O : r === "end" ? T - x + A + ee : r === "nearest" ? me(s, x, a, O, A + ee, T, T + h, h) : T - (s + a / 2) + ee / 2, M = i === "start" ? E - S - w : i === "center" ? E - (S + o / 2) + N / 2 : i === "end" ? E - u + k + N : me(S, u, o, w, k + N, E, E + g, g);
50
+ let { scrollLeft: e, scrollTop: n } = t;
51
+ j = F === 0 ? 0 : Math.max(0, Math.min(n + j / F, t.scrollHeight - a / F + ee)), M = P === 0 ? 0 : Math.max(0, Math.min(e + M / P, t.scrollWidth - o / P + N)), T += n - j, E += e - M;
52
+ }
53
+ D.push({
54
+ el: t,
55
+ top: j,
56
+ left: M
57
+ });
58
+ }
59
+ return D;
60
+ }, _e = (e) => !1 === e ? {
61
+ block: "end",
62
+ inline: "nearest"
63
+ } : ((e) => e === Object(e) && Object.keys(e).length !== 0)(e) ? e : {
64
+ block: "start",
65
+ inline: "nearest"
66
+ };
67
+ function ve(e, t) {
68
+ if (!e.isConnected || !((e) => {
69
+ let t = e;
70
+ for (; t && t.parentNode;) {
71
+ if (t.parentNode === document) return !0;
72
+ t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode;
73
+ }
74
+ return !1;
75
+ })(e)) return;
76
+ let n = ((e) => {
77
+ let t = window.getComputedStyle(e);
78
+ return {
79
+ top: parseFloat(t.scrollMarginTop) || 0,
80
+ right: parseFloat(t.scrollMarginRight) || 0,
81
+ bottom: parseFloat(t.scrollMarginBottom) || 0,
82
+ left: parseFloat(t.scrollMarginLeft) || 0
83
+ };
84
+ })(e);
85
+ if (((e) => typeof e == "object" && typeof e.behavior == "function")(t)) return t.behavior(ge(e, t));
86
+ let r = typeof t == "boolean" || t == null ? void 0 : t.behavior;
87
+ for (let { el: i, top: a, left: o } of ge(e, _e(t))) {
88
+ let e = a - n.top + n.bottom, t = o - n.left + n.right;
89
+ i.scroll({
90
+ top: e,
91
+ left: t,
92
+ behavior: r
93
+ });
94
+ }
95
+ }
96
+ //#endregion
97
+ //#region node_modules/antd/es/_util/hooks/useForceUpdate.js
98
+ var ye = () => G.useReducer((e) => e + 1, 0), J = (e) => {
99
+ let { componentCls: t, antCls: n, motionDurationMid: r, motionEaseInOut: i } = e;
100
+ return { [t]: {
101
+ [`${n}-motion-collapse-legacy`]: {
102
+ overflow: "hidden",
103
+ "&-active": { transition: `${["height", "opacity"].map((e) => `${e} ${r} ${i}`).join(", ")} !important` }
104
+ },
105
+ [`${n}-motion-collapse`]: {
106
+ overflow: "hidden",
107
+ transition: `${["height", "opacity"].map((e) => `${e} ${r} ${i}`).join(", ")} !important`
108
+ }
109
+ } };
110
+ }, be = {
111
+ icon: {
112
+ tag: "svg",
113
+ attrs: {
114
+ viewBox: "64 64 896 896",
115
+ focusable: "false"
116
+ },
117
+ children: [{
118
+ tag: "path",
119
+ 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" }
120
+ }]
121
+ },
122
+ name: "right",
123
+ theme: "outlined"
124
+ };
125
+ //#endregion
126
+ //#region node_modules/@ant-design/icons/es/icons/RightOutlined.js
127
+ function xe() {
128
+ return xe = Object.assign ? Object.assign.bind() : function(e) {
129
+ for (var t = 1; t < arguments.length; t++) {
130
+ var n = arguments[t];
131
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
132
+ }
133
+ return e;
134
+ }, xe.apply(this, arguments);
135
+ }
136
+ var Se = /* @__PURE__ */ W.forwardRef((e, t) => /* @__PURE__ */ W.createElement(C, xe({}, e, {
137
+ ref: t,
138
+ icon: be
139
+ })));
140
+ process.env.NODE_ENV !== "production" && (Se.displayName = "RightOutlined");
141
+ //#endregion
142
+ //#region node_modules/antd/es/_util/responsiveObserver.js
143
+ var Ce = [
144
+ "xxxl",
145
+ "xxl",
146
+ "xl",
147
+ "lg",
148
+ "md",
149
+ "sm",
150
+ "xs"
151
+ ], we = [].concat(Ce).reverse(), Te = (e) => ({
152
+ xs: `(max-width: ${e.screenXSMax}px)`,
153
+ sm: `(min-width: ${e.screenSM}px)`,
154
+ md: `(min-width: ${e.screenMD}px)`,
155
+ lg: `(min-width: ${e.screenLG}px)`,
156
+ xl: `(min-width: ${e.screenXL}px)`,
157
+ xxl: `(min-width: ${e.screenXXL}px)`,
158
+ xxxl: `(min-width: ${e.screenXXXL}px)`
159
+ }), Ee = (e) => {
160
+ let t = e, n = [].concat(Ce).reverse();
161
+ return n.forEach((e, r) => {
162
+ let i = e.toUpperCase(), a = `screen${i}Min`, o = `screen${i}`;
163
+ if (!(t[a] <= t[o])) throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);
164
+ if (r < n.length - 1) {
165
+ let e = `screen${i}Max`;
166
+ if (!(t[o] <= t[e])) throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);
167
+ let a = `screen${n[r + 1].toUpperCase()}Min`;
168
+ if (!(t[e] <= t[a])) throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`);
169
+ }
170
+ }), e;
171
+ }, De = () => {
172
+ let [, e] = ae(), t = Te(Ee(e));
173
+ return G.useMemo(() => {
174
+ let e = /* @__PURE__ */ new Map(), n = -1, r = {};
175
+ return {
176
+ responsiveMap: t,
177
+ matchHandlers: {},
178
+ dispatch(t) {
179
+ return r = t, e.forEach((e) => {
180
+ e(r);
181
+ }), e.size >= 1;
182
+ },
183
+ subscribe(t) {
184
+ return e.size || this.register(), n += 1, e.set(n, t), t(r), n;
185
+ },
186
+ unsubscribe(t) {
187
+ e.delete(t), e.size || this.unregister();
188
+ },
189
+ register() {
190
+ Object.entries(t).forEach(([e, t]) => {
191
+ let n = ({ matches: t }) => {
192
+ this.dispatch({
193
+ ...r,
194
+ [e]: t
195
+ });
196
+ }, i = window.matchMedia(t);
197
+ v(i.addEventListener) && i.addEventListener("change", n), this.matchHandlers[t] = {
198
+ mql: i,
199
+ listener: n
200
+ }, n(i);
201
+ });
202
+ },
203
+ unregister() {
204
+ Object.values(t).forEach((e) => {
205
+ let t = this.matchHandlers[e];
206
+ v(t?.mql.removeEventListener) && t.mql.removeEventListener("change", t?.listener);
207
+ }), e.clear();
208
+ }
209
+ };
210
+ }, [t]);
211
+ };
212
+ //#endregion
213
+ //#region node_modules/antd/es/grid/hooks/useBreakpoint.js
214
+ function Oe(e = !0, t = {}) {
215
+ let n = ue(t), [, r] = ye(), i = De();
216
+ return l(() => {
217
+ let t = i.subscribe((t) => {
218
+ n.current = t, e && r();
219
+ });
220
+ return () => i.unsubscribe(t);
221
+ }, []), n.current;
222
+ }
223
+ //#endregion
224
+ //#region node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js
225
+ var ke = {
226
+ icon: {
227
+ tag: "svg",
228
+ attrs: {
229
+ viewBox: "64 64 896 896",
230
+ focusable: "false"
231
+ },
232
+ children: [{
233
+ tag: "path",
234
+ 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" }
235
+ }]
236
+ },
237
+ name: "left",
238
+ theme: "outlined"
239
+ };
240
+ //#endregion
241
+ //#region node_modules/@ant-design/icons/es/icons/LeftOutlined.js
242
+ function Y() {
243
+ return Y = Object.assign ? Object.assign.bind() : function(e) {
244
+ for (var t = 1; t < arguments.length; t++) {
245
+ var n = arguments[t];
246
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
247
+ }
248
+ return e;
249
+ }, Y.apply(this, arguments);
250
+ }
251
+ var X = /* @__PURE__ */ W.forwardRef((e, t) => /* @__PURE__ */ W.createElement(C, Y({}, e, {
252
+ ref: t,
253
+ icon: ke
254
+ })));
255
+ process.env.NODE_ENV !== "production" && (X.displayName = "LeftOutlined");
256
+ //#endregion
257
+ //#region node_modules/@rc-component/dropdown/es/hooks/useAccessibility.js
258
+ var { ESC: Ae, TAB: je } = A;
259
+ function Me({ visible: e, triggerRef: t, onVisibleChange: n, autoFocus: r, overlayRef: i }) {
260
+ let a = W.useRef(!1), o = () => {
261
+ e && (t.current?.focus?.(), n?.(!1));
262
+ }, s = () => i.current?.focus ? (i.current.focus(), a.current = !0, !0) : !1, c = (e) => {
263
+ switch (e.keyCode) {
264
+ case Ae:
265
+ o();
266
+ break;
267
+ case je: {
268
+ let t = !1;
269
+ a.current || (t = s()), t ? e.preventDefault() : o();
270
+ break;
271
+ }
272
+ }
273
+ };
274
+ W.useEffect(() => e ? (window.addEventListener("keydown", c), r && b(s, 3), () => {
275
+ window.removeEventListener("keydown", c), a.current = !1;
276
+ }) : () => {
277
+ a.current = !1;
278
+ }, [e]);
279
+ }
280
+ //#endregion
281
+ //#region node_modules/@rc-component/dropdown/es/Overlay.js
282
+ var Ne = /* @__PURE__ */ oe((e, r) => {
283
+ let { overlay: i, arrow: a, prefixCls: o } = e, s = le(() => {
284
+ let e;
285
+ return e = typeof i == "function" ? i() : i, e;
286
+ }, [i]), c = t(r, d(s));
287
+ return /* @__PURE__ */ G.createElement(G.Fragment, null, a && /* @__PURE__ */ G.createElement("div", { className: `${o}-arrow` }), /* @__PURE__ */ G.cloneElement(s, { ref: n(s) ? c : void 0 }));
288
+ }), Pe = {
289
+ adjustX: 1,
290
+ adjustY: 1
291
+ }, Fe = [0, 0], Ie = {
292
+ topLeft: {
293
+ points: ["bl", "tl"],
294
+ overflow: Pe,
295
+ offset: [0, -4],
296
+ targetOffset: Fe
297
+ },
298
+ top: {
299
+ points: ["bc", "tc"],
300
+ overflow: Pe,
301
+ offset: [0, -4],
302
+ targetOffset: Fe
303
+ },
304
+ topRight: {
305
+ points: ["br", "tr"],
306
+ overflow: Pe,
307
+ offset: [0, -4],
308
+ targetOffset: Fe
309
+ },
310
+ bottomLeft: {
311
+ points: ["tl", "bl"],
312
+ overflow: Pe,
313
+ offset: [0, 4],
314
+ targetOffset: Fe
315
+ },
316
+ bottom: {
317
+ points: ["tc", "bc"],
318
+ overflow: Pe,
319
+ offset: [0, 4],
320
+ targetOffset: Fe
321
+ },
322
+ bottomRight: {
323
+ points: ["tr", "br"],
324
+ overflow: Pe,
325
+ offset: [0, 4],
326
+ targetOffset: Fe
327
+ }
328
+ };
329
+ //#endregion
330
+ //#region node_modules/@rc-component/dropdown/es/Dropdown.js
331
+ function Z() {
332
+ return Z = Object.assign ? Object.assign.bind() : function(e) {
333
+ for (var t = 1; t < arguments.length; t++) {
334
+ var n = arguments[t];
335
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
336
+ }
337
+ return e;
338
+ }, Z.apply(this, arguments);
339
+ }
340
+ //#endregion
341
+ //#region node_modules/@rc-component/dropdown/es/index.js
342
+ var Le = /* @__PURE__ */ G.forwardRef((e, r) => {
343
+ let { arrow: i = !1, prefixCls: o = "rc-dropdown", transitionName: s, animation: c, align: l, placement: u = "bottomLeft", placements: f = Ie, getPopupContainer: p, showAction: m, hideAction: g, overlayClassName: _, overlayStyle: v, visible: y, trigger: b = ["hover"], autoFocus: x, overlay: S, children: C, onVisibleChange: w, ...T } = e, [E, D] = G.useState(), O = "visible" in e ? y : E, k = c ? `${o}-${c}` : s, A = G.useRef(null), j = G.useRef(null), M = G.useRef(null);
344
+ G.useImperativeHandle(r, () => A.current);
345
+ let N = (e) => {
346
+ D(e), w?.(e);
347
+ };
348
+ Me({
349
+ visible: O,
350
+ triggerRef: M,
351
+ onVisibleChange: N,
352
+ autoFocus: x,
353
+ overlayRef: j
354
+ });
355
+ let ee = (t) => {
356
+ let { onOverlayClick: n } = e;
357
+ D(!1), n && n(t);
358
+ }, P = () => /* @__PURE__ */ G.createElement(Ne, {
359
+ ref: j,
360
+ overlay: S,
361
+ prefixCls: o,
362
+ arrow: i
363
+ }), F = () => typeof S == "function" ? P : P(), I = () => {
364
+ let { minOverlayWidthMatchTrigger: t, alignPoint: n } = e;
365
+ return "minOverlayWidthMatchTrigger" in e ? t : !n;
366
+ }, L = /* @__PURE__ */ G.cloneElement(C, {
367
+ className: a(C.props?.className, O && (() => {
368
+ let { openClassName: t } = e;
369
+ return t === void 0 ? `${o}-open` : t;
370
+ })()),
371
+ ref: n(C) ? t(M, d(C)) : void 0
372
+ }), R = g;
373
+ return !R && b.indexOf("contextMenu") !== -1 && (R = ["click"]), /* @__PURE__ */ G.createElement(h, Z({ builtinPlacements: f }, T, {
374
+ prefixCls: o,
375
+ ref: A,
376
+ popupClassName: a(_, { [`${o}-show-arrow`]: i }),
377
+ popupStyle: v,
378
+ action: b,
379
+ showAction: m,
380
+ hideAction: R,
381
+ popupPlacement: u,
382
+ popupAlign: l,
383
+ popupMotion: { motionName: k },
384
+ popupVisible: O,
385
+ stretch: I() ? "minWidth" : "",
386
+ popup: F(),
387
+ onOpenChange: N,
388
+ onPopupClick: ee,
389
+ getPopupContainer: p
390
+ }), L);
391
+ }), Re = /* @__PURE__ */ W.createContext(null);
392
+ function ze(e, t) {
393
+ return `${e}-${t}`;
394
+ }
395
+ function Be(e) {
396
+ return ze(W.useContext(Re), e);
397
+ }
398
+ //#endregion
399
+ //#region node_modules/@rc-component/menu/es/context/MenuContext.js
400
+ var Q = /* @__PURE__ */ W.createContext(null);
401
+ function Ve(e, t) {
402
+ let n = { ...e };
403
+ return Object.keys(t).forEach((e) => {
404
+ let r = t[e];
405
+ r !== void 0 && (n[e] = r);
406
+ }), n;
407
+ }
408
+ function He({ children: e, locked: t, ...n }) {
409
+ let r = W.useContext(Q), i = P(() => Ve(r, n), [r, n], (e, n) => !t && (e[0] !== n[0] || !U(e[1], n[1], !0)));
410
+ return /* @__PURE__ */ W.createElement(Q.Provider, { value: i }, e);
411
+ }
412
+ //#endregion
413
+ //#region node_modules/@rc-component/menu/es/context/PathContext.js
414
+ var Ue = [], We = /* @__PURE__ */ W.createContext(null);
415
+ function Ge() {
416
+ return W.useContext(We);
417
+ }
418
+ var Ke = /* @__PURE__ */ W.createContext(Ue);
419
+ function qe(e) {
420
+ let t = W.useContext(Ke);
421
+ return W.useMemo(() => e === void 0 ? t : [...t, e], [t, e]);
422
+ }
423
+ var Je = /* @__PURE__ */ W.createContext(null), Ye = /* @__PURE__ */ W.createContext({}), { LEFT: Xe, RIGHT: Ze, UP: Qe, DOWN: $e, ENTER: et, ESC: tt, HOME: nt, END: rt } = A, it = [
424
+ Qe,
425
+ $e,
426
+ Xe,
427
+ Ze
428
+ ];
429
+ function at(e, t, n, r) {
430
+ let i = "prev", a = "next", o = "children", s = "parent";
431
+ if (e === "inline" && r === et) return { inlineTrigger: !0 };
432
+ let c = {
433
+ [Qe]: i,
434
+ [$e]: a
435
+ }, l = {
436
+ [Xe]: n ? a : i,
437
+ [Ze]: n ? i : a,
438
+ [$e]: o,
439
+ [et]: o
440
+ }, u = {
441
+ [Qe]: i,
442
+ [$e]: a,
443
+ [et]: o,
444
+ [tt]: s,
445
+ [Xe]: n ? o : s,
446
+ [Ze]: n ? s : o
447
+ };
448
+ switch ({
449
+ inline: c,
450
+ horizontal: l,
451
+ vertical: u,
452
+ inlineSub: c,
453
+ horizontalSub: u,
454
+ verticalSub: u
455
+ }[`${e}${t ? "" : "Sub"}`]?.[r]) {
456
+ case i: return {
457
+ offset: -1,
458
+ sibling: !0
459
+ };
460
+ case a: return {
461
+ offset: 1,
462
+ sibling: !0
463
+ };
464
+ case s: return {
465
+ offset: -1,
466
+ sibling: !1
467
+ };
468
+ case o: return {
469
+ offset: 1,
470
+ sibling: !1
471
+ };
472
+ default: return null;
473
+ }
474
+ }
475
+ function ot(e) {
476
+ let t = e;
477
+ for (; t;) {
478
+ if (t.getAttribute("data-menu-list")) return t;
479
+ t = t.parentElement;
480
+ }
481
+ /* istanbul ignore next */
482
+ return null;
483
+ }
484
+ function st(e, t) {
485
+ let n = e || document.activeElement;
486
+ for (; n;) {
487
+ if (t.has(n)) return n;
488
+ n = n.parentElement;
489
+ }
490
+ return null;
491
+ }
492
+ function ct(e, t) {
493
+ return y(e, !0).filter((e) => t.has(e));
494
+ }
495
+ function lt(e, t, n, r = 1) {
496
+ if (!e) return null;
497
+ let i = ct(e, t), a = i.length, o = i.findIndex((e) => n === e);
498
+ return r < 0 ? o === -1 ? o = a - 1 : --o : r > 0 && (o += 1), o = (o + a) % a, i[o];
499
+ }
500
+ var ut = (e, t) => {
501
+ let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
502
+ return e.forEach((e) => {
503
+ let a = document.querySelector(`[data-menu-id='${ze(t, e)}']`);
504
+ a && (n.add(a), i.set(a, e), r.set(e, a));
505
+ }), {
506
+ elements: n,
507
+ key2element: r,
508
+ element2key: i
509
+ };
510
+ };
511
+ function dt(e, t, n, r, i, a, o, s, c, l) {
512
+ let u = W.useRef(), d = W.useRef();
513
+ d.current = t;
514
+ let f = () => {
515
+ b.cancel(u.current);
516
+ };
517
+ return W.useEffect(() => () => {
518
+ f();
519
+ }, []), (p) => {
520
+ let { which: m } = p;
521
+ if ([
522
+ ...it,
523
+ et,
524
+ tt,
525
+ nt,
526
+ rt
527
+ ].includes(m)) {
528
+ let l = a(), h = ut(l, r), { elements: g, key2element: _, element2key: v } = h, y = st(_.get(t), g), x = v.get(y), S = at(e, o(x, !0).length === 1, n, m);
529
+ if (!S && m !== nt && m !== rt) return;
530
+ (it.includes(m) || [nt, rt].includes(m)) && p.preventDefault();
531
+ let C = (e) => {
532
+ if (e) {
533
+ let t = e, n = e.querySelector("a");
534
+ n?.getAttribute("href") && (t = n);
535
+ let r = v.get(e);
536
+ s(r), f(), u.current = b(() => {
537
+ d.current === r && t.focus();
538
+ });
539
+ }
540
+ };
541
+ if ([nt, rt].includes(m) || S.sibling || !y) {
542
+ let t;
543
+ t = !y || e === "inline" ? i.current : ot(y);
544
+ let n, r = ct(t, g);
545
+ n = m === nt ? r[0] : m === rt ? r[r.length - 1] : lt(t, g, y, S.offset), C(n);
546
+ } else if (S.inlineTrigger) c(x);
547
+ else if (S.offset > 0) c(x, !0), f(), u.current = b(() => {
548
+ h = ut(l, r);
549
+ let e = y.getAttribute("aria-controls");
550
+ C(lt(document.getElementById(e), h.elements));
551
+ }, 5);
552
+ else if (S.offset < 0) {
553
+ let e = o(x, !0), t = e[e.length - 2], n = _.get(t);
554
+ c(t, !1), C(n);
555
+ }
556
+ }
557
+ l?.(p);
558
+ };
559
+ }
560
+ //#endregion
561
+ //#region node_modules/@rc-component/menu/es/utils/timeUtil.js
562
+ function ft(e) {
563
+ /* istanbul ignore next */
564
+ Promise.resolve().then(e);
565
+ }
566
+ //#endregion
567
+ //#region node_modules/@rc-component/menu/es/hooks/useKeyRecords.js
568
+ var pt = "__RC_UTIL_PATH_SPLIT__", mt = (e) => e.join(pt), ht = (e) => e.split(pt), gt = "rc-menu-more";
569
+ function _t() {
570
+ let [, e] = W.useState({}), t = ue(/* @__PURE__ */ new Map()), n = ue(/* @__PURE__ */ new Map()), [r, i] = W.useState([]), a = ue(0), o = ue(!1), s = () => {
571
+ o.current || e({});
572
+ }, c = K((e, r) => {
573
+ process.env.NODE_ENV !== "production" && D(!t.current.has(e), `Duplicated key '${e}' used in Menu by path [${r.join(" > ")}]`);
574
+ let i = mt(r);
575
+ n.current.set(i, e), t.current.set(e, i), a.current += 1;
576
+ let o = a.current;
577
+ ft(() => {
578
+ o === a.current && s();
579
+ });
580
+ }, []), l = K((e, r) => {
581
+ let i = mt(r);
582
+ n.current.delete(i), t.current.delete(e);
583
+ }, []), u = K((e) => {
584
+ i(e);
585
+ }, []), d = K((e, n) => {
586
+ let i = ht(t.current.get(e) || "");
587
+ return n && r.includes(i[0]) && i.unshift(gt), i;
588
+ }, [r]), f = K((e, t) => e.filter((e) => e !== void 0).some((e) => d(e, !0).includes(t)), [d]), p = () => {
589
+ let e = [...t.current.keys()];
590
+ return r.length && e.push(gt), e;
591
+ }, m = K((e) => {
592
+ let r = `${t.current.get(e)}${pt}`, i = /* @__PURE__ */ new Set();
593
+ return [...n.current.keys()].forEach((e) => {
594
+ e.startsWith(r) && i.add(n.current.get(e));
595
+ }), i;
596
+ }, []);
597
+ return W.useEffect(() => () => {
598
+ o.current = !0;
599
+ }, []), {
600
+ registerPath: c,
601
+ unregisterPath: l,
602
+ refreshOverflowKeys: u,
603
+ isSubPathKey: f,
604
+ getKeyPath: d,
605
+ getKeys: p,
606
+ getSubPathKeys: m
607
+ };
608
+ }
609
+ //#endregion
610
+ //#region node_modules/@rc-component/menu/es/hooks/useMemoCallback.js
611
+ function vt(e) {
612
+ let t = W.useRef(e);
613
+ t.current = e;
614
+ let n = W.useCallback((...e) => t.current?.(...e), []);
615
+ return e ? n : void 0;
616
+ }
617
+ //#endregion
618
+ //#region node_modules/@rc-component/menu/es/hooks/useActive.js
619
+ function yt(e, t, n, r) {
620
+ let { activeKey: i, onActive: a, onInactive: o } = W.useContext(Q), s = { active: i === e };
621
+ return t || (s.onMouseEnter = (t) => {
622
+ n?.({
623
+ key: e,
624
+ domEvent: t
625
+ }), a(e);
626
+ }, s.onMouseLeave = (t) => {
627
+ r?.({
628
+ key: e,
629
+ domEvent: t
630
+ }), o(e);
631
+ }), s;
632
+ }
633
+ //#endregion
634
+ //#region node_modules/@rc-component/menu/es/hooks/useDirectionStyle.js
635
+ function bt(e) {
636
+ let { mode: t, rtl: n, inlineIndent: r } = W.useContext(Q);
637
+ if (t !== "inline") return null;
638
+ let i = e;
639
+ return n ? { paddingRight: i * r } : { paddingLeft: i * r };
640
+ }
641
+ //#endregion
642
+ //#region node_modules/@rc-component/menu/es/Icon.js
643
+ function xt({ icon: e, props: t, children: n }) {
644
+ let r;
645
+ return e === null || e === !1 ? null : (typeof e == "function" ? r = /* @__PURE__ */ W.createElement(e, { ...t }) : typeof e != "boolean" && (r = e), r || n || null);
646
+ }
647
+ //#endregion
648
+ //#region node_modules/@rc-component/menu/es/utils/warnUtil.js
649
+ function St({ item: e, ...t }) {
650
+ return Object.defineProperty(t, "item", { get: () => (D(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), e) }), t;
651
+ }
652
+ //#endregion
653
+ //#region node_modules/@rc-component/menu/es/MenuItem.js
654
+ function Ct() {
655
+ return Ct = Object.assign ? Object.assign.bind() : function(e) {
656
+ for (var t = 1; t < arguments.length; t++) {
657
+ var n = arguments[t];
658
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
659
+ }
660
+ return e;
661
+ }, Ct.apply(this, arguments);
662
+ }
663
+ var wt = class extends W.Component {
664
+ render() {
665
+ let { title: e, attribute: t, elementRef: n, ...i } = this.props, a = w(i, [
666
+ "eventKey",
667
+ "popupClassName",
668
+ "popupOffset",
669
+ "onTitleClick"
670
+ ]);
671
+ return D(!t, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ W.createElement(r.Item, Ct({}, t, { title: typeof e == "string" ? e : void 0 }, a, { ref: n }));
672
+ }
673
+ }, Tt = /* @__PURE__ */ W.forwardRef((e, t) => {
674
+ let { style: n, className: r, eventKey: i, warnKey: o, disabled: s, itemIcon: l, children: u, role: d, onMouseEnter: f, onMouseLeave: p, onClick: m, onKeyDown: h, onFocus: g, ..._ } = e, v = Be(i), { prefixCls: y, onItemClick: b, disabled: x, overflowDisabled: S, itemIcon: C, selectedKeys: T, onActive: E } = W.useContext(Q), { _internalRenderMenuItem: O } = W.useContext(Ye), k = `${y}-item`, j = W.useRef(), M = W.useRef(), N = x || s, ee = c(t, M), P = qe(i);
675
+ process.env.NODE_ENV !== "production" && o && D(!1, "MenuItem should not leave undefined `key`.");
676
+ let F = (e) => ({
677
+ key: i,
678
+ keyPath: [...P].reverse(),
679
+ item: j.current,
680
+ domEvent: e
681
+ }), I = l || C, { active: L, ...R } = yt(i, N, f, p), z = T.includes(i), te = bt(P.length), B = (e) => {
682
+ if (N) return;
683
+ let t = F(e);
684
+ m?.(St(t)), b(t);
685
+ }, ne = (e) => {
686
+ if (h?.(e), e.which === A.ENTER) {
687
+ let t = F(e);
688
+ m?.(St(t)), b(t);
689
+ }
690
+ }, V = (e) => {
691
+ E(i), g?.(e);
692
+ }, H = {};
693
+ e.role === "option" && (H["aria-selected"] = z);
694
+ let U = /* @__PURE__ */ W.createElement(wt, Ct({
695
+ ref: j,
696
+ elementRef: ee,
697
+ role: d === null ? "none" : d || "menuitem",
698
+ tabIndex: s ? null : -1,
699
+ "data-menu-id": S && v ? null : v
700
+ }, w(_, ["extra"]), R, H, {
701
+ component: "li",
702
+ "aria-disabled": s,
703
+ style: {
704
+ ...te,
705
+ ...n
706
+ },
707
+ className: a(k, {
708
+ [`${k}-active`]: L,
709
+ [`${k}-selected`]: z,
710
+ [`${k}-disabled`]: N
711
+ }, r),
712
+ onClick: B,
713
+ onKeyDown: ne,
714
+ onFocus: V
715
+ }), u, /* @__PURE__ */ W.createElement(xt, {
716
+ props: {
717
+ ...e,
718
+ isSelected: z
719
+ },
720
+ icon: I
721
+ }));
722
+ return O && (U = O(U, e, { selected: z })), U;
723
+ });
724
+ function Et(e, t) {
725
+ let { eventKey: n } = e, r = Ge(), i = qe(n);
726
+ return W.useEffect(() => {
727
+ if (r) return r.registerPath(n, i), () => {
728
+ r.unregisterPath(n, i);
729
+ };
730
+ }, [i]), r ? null : /* @__PURE__ */ W.createElement(Tt, Ct({}, e, { ref: t }));
731
+ }
732
+ var Dt = /* @__PURE__ */ W.forwardRef(Et);
733
+ //#endregion
734
+ //#region node_modules/@rc-component/menu/es/SubMenu/SubMenuList.js
735
+ function Ot() {
736
+ return Ot = Object.assign ? Object.assign.bind() : function(e) {
737
+ for (var t = 1; t < arguments.length; t++) {
738
+ var n = arguments[t];
739
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
740
+ }
741
+ return e;
742
+ }, Ot.apply(this, arguments);
743
+ }
744
+ var kt = /* @__PURE__ */ W.forwardRef(({ className: e, children: t, ...n }, r) => {
745
+ let { prefixCls: i, mode: o, rtl: s } = W.useContext(Q);
746
+ return /* @__PURE__ */ W.createElement("ul", Ot({
747
+ className: a(i, s && `${i}-rtl`, `${i}-sub`, `${i}-${o === "inline" ? "inline" : "vertical"}`, e),
748
+ role: "menu"
749
+ }, n, {
750
+ "data-menu-list": !0,
751
+ ref: r
752
+ }), t);
753
+ });
754
+ process.env.NODE_ENV !== "production" && (kt.displayName = "SubMenuList");
755
+ //#endregion
756
+ //#region node_modules/@rc-component/menu/es/utils/commonUtil.js
757
+ function At(e, t) {
758
+ return M(e).map((e, n) => {
759
+ if (/* @__PURE__ */ W.isValidElement(e)) {
760
+ let { key: r } = e, i = e.props?.eventKey ?? r, a = i == null;
761
+ a && (i = `tmp_key-${[...t, n].join("-")}`);
762
+ let o = {
763
+ key: i,
764
+ eventKey: i
765
+ };
766
+ return process.env.NODE_ENV !== "production" && a && (o.warnKey = !0), /* @__PURE__ */ W.cloneElement(e, o);
767
+ }
768
+ return e;
769
+ });
770
+ }
771
+ //#endregion
772
+ //#region node_modules/@rc-component/menu/es/placements.js
773
+ var $ = {
774
+ adjustX: 1,
775
+ adjustY: 1
776
+ }, jt = {
777
+ topLeft: {
778
+ points: ["bl", "tl"],
779
+ overflow: $
780
+ },
781
+ topRight: {
782
+ points: ["br", "tr"],
783
+ overflow: $
784
+ },
785
+ bottomLeft: {
786
+ points: ["tl", "bl"],
787
+ overflow: $
788
+ },
789
+ bottomRight: {
790
+ points: ["tr", "br"],
791
+ overflow: $
792
+ },
793
+ leftTop: {
794
+ points: ["tr", "tl"],
795
+ overflow: $
796
+ },
797
+ leftBottom: {
798
+ points: ["br", "bl"],
799
+ overflow: $
800
+ },
801
+ rightTop: {
802
+ points: ["tl", "tr"],
803
+ overflow: $
804
+ },
805
+ rightBottom: {
806
+ points: ["bl", "br"],
807
+ overflow: $
808
+ }
809
+ }, Mt = {
810
+ topLeft: {
811
+ points: ["bl", "tl"],
812
+ overflow: $
813
+ },
814
+ topRight: {
815
+ points: ["br", "tr"],
816
+ overflow: $
817
+ },
818
+ bottomLeft: {
819
+ points: ["tl", "bl"],
820
+ overflow: $
821
+ },
822
+ bottomRight: {
823
+ points: ["tr", "br"],
824
+ overflow: $
825
+ },
826
+ rightTop: {
827
+ points: ["tr", "tl"],
828
+ overflow: $
829
+ },
830
+ rightBottom: {
831
+ points: ["br", "bl"],
832
+ overflow: $
833
+ },
834
+ leftTop: {
835
+ points: ["tl", "tr"],
836
+ overflow: $
837
+ },
838
+ leftBottom: {
839
+ points: ["bl", "br"],
840
+ overflow: $
841
+ }
842
+ };
843
+ //#endregion
844
+ //#region node_modules/@rc-component/menu/es/utils/motionUtil.js
845
+ function Nt(e, t, n) {
846
+ if (t) return t;
847
+ if (n) return n[e] || n.other;
848
+ }
849
+ //#endregion
850
+ //#region node_modules/@rc-component/menu/es/SubMenu/PopupTrigger.js
851
+ var Pt = {
852
+ horizontal: "bottomLeft",
853
+ vertical: "rightTop",
854
+ "vertical-left": "rightTop",
855
+ "vertical-right": "leftTop"
856
+ };
857
+ function Ft({ prefixCls: e, visible: t, children: n, popup: r, popupStyle: i, popupClassName: o, popupOffset: s, disabled: c, mode: l, onVisibleChange: u }) {
858
+ let { getPopupContainer: d, rtl: f, subMenuOpenDelay: p, subMenuCloseDelay: m, builtinPlacements: g, triggerSubMenuAction: _, forceSubMenuRender: v, rootClassName: y, motion: x, defaultMotions: S } = W.useContext(Q), [C, w] = W.useState(!1), T = f ? {
859
+ ...Mt,
860
+ ...g
861
+ } : {
862
+ ...jt,
863
+ ...g
864
+ }, E = Pt[l], D = Nt(l, x, S), O = W.useRef(D);
865
+ l !== "inline" && (O.current = D);
866
+ let k = {
867
+ ...O.current,
868
+ leavedClassName: `${e}-hidden`,
869
+ removeOnLeave: !1,
870
+ motionAppear: !0
871
+ }, A = W.useRef();
872
+ return W.useEffect(() => (A.current = b(() => {
873
+ w(t);
874
+ }), () => {
875
+ b.cancel(A.current);
876
+ }), [t]), /* @__PURE__ */ W.createElement(h, {
877
+ prefixCls: e,
878
+ popupClassName: a(`${e}-popup`, { [`${e}-rtl`]: f }, o, y),
879
+ stretch: l === "horizontal" ? "minWidth" : null,
880
+ getPopupContainer: d,
881
+ builtinPlacements: T,
882
+ popupPlacement: E,
883
+ popupVisible: C,
884
+ popup: r,
885
+ popupStyle: i,
886
+ popupAlign: s && { offset: s },
887
+ action: c ? [] : [_],
888
+ mouseEnterDelay: p,
889
+ mouseLeaveDelay: m,
890
+ onPopupVisibleChange: u,
891
+ forceRender: v,
892
+ popupMotion: k,
893
+ fresh: !0
894
+ }, n);
895
+ }
896
+ //#endregion
897
+ //#region node_modules/@rc-component/menu/es/SubMenu/InlineSubMenuList.js
898
+ function It() {
899
+ return It = Object.assign ? Object.assign.bind() : function(e) {
900
+ for (var t = 1; t < arguments.length; t++) {
901
+ var n = arguments[t];
902
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
903
+ }
904
+ return e;
905
+ }, It.apply(this, arguments);
906
+ }
907
+ function Lt({ id: e, open: t, keyPath: n, children: r }) {
908
+ let i = "inline", { prefixCls: a, forceSubMenuRender: o, motion: s, defaultMotions: c, mode: l } = W.useContext(Q), u = W.useRef(!1);
909
+ u.current = l === i;
910
+ let [d, f] = W.useState(!u.current), p = u.current ? t : !1;
911
+ W.useEffect(() => {
912
+ u.current && f(!1);
913
+ }, [l]);
914
+ let m = { ...Nt(i, s, c) };
915
+ n.length > 1 && (m.motionAppear = !1);
916
+ let h = m.onVisibleChanged;
917
+ return m.onVisibleChanged = (e) => (!u.current && !e && f(!0), h?.(e)), d ? null : /* @__PURE__ */ W.createElement(He, {
918
+ mode: i,
919
+ locked: !u.current
920
+ }, /* @__PURE__ */ W.createElement(j, It({ visible: p }, m, {
921
+ forceRender: o,
922
+ removeOnLeave: !1,
923
+ leavedClassName: `${a}-hidden`
924
+ }), ({ className: t, style: n }) => /* @__PURE__ */ W.createElement(kt, {
925
+ id: e,
926
+ className: t,
927
+ style: n
928
+ }, r)));
929
+ }
930
+ //#endregion
931
+ //#region node_modules/@rc-component/menu/es/SubMenu/index.js
932
+ function Rt() {
933
+ return Rt = Object.assign ? Object.assign.bind() : function(e) {
934
+ for (var t = 1; t < arguments.length; t++) {
935
+ var n = arguments[t];
936
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
937
+ }
938
+ return e;
939
+ }, Rt.apply(this, arguments);
940
+ }
941
+ var zt = /* @__PURE__ */ W.forwardRef((e, t) => {
942
+ let { style: n, className: i, styles: o, classNames: s, title: c, eventKey: l, warnKey: u, disabled: d, internalPopupClose: f, children: p, itemIcon: m, expandIcon: h, popupClassName: g, popupOffset: _, popupStyle: v, onClick: y, onMouseEnter: b, onMouseLeave: x, onTitleClick: S, onTitleMouseEnter: C, onTitleMouseLeave: w, popupRender: T, ...E } = e, O = Be(l), { prefixCls: k, mode: A, openKeys: j, disabled: M, overflowDisabled: N, activeKey: ee, selectedKeys: P, itemIcon: F, expandIcon: I, onItemClick: L, onOpenChange: R, onActive: z, popupRender: te } = W.useContext(Q), { _internalRenderSubMenuItem: B } = W.useContext(Ye), { isSubPathKey: ne } = W.useContext(Je), V = qe(), H = `${k}-submenu`, U = M || d, re = W.useRef(), ie = W.useRef();
943
+ process.env.NODE_ENV !== "production" && u && D(!1, "SubMenu should not leave undefined `key`.");
944
+ let ae = m ?? F, G = h ?? I, oe = j.includes(l), K = !N && oe, se = ne(P, l), { active: ce, ...le } = yt(l, U, C, w), [ue, de] = W.useState(!1), fe = (e) => {
945
+ U || de(e);
946
+ }, q = (e) => {
947
+ fe(!0), b?.({
948
+ key: l,
949
+ domEvent: e
950
+ });
951
+ }, pe = (e) => {
952
+ fe(!1), x?.({
953
+ key: l,
954
+ domEvent: e
955
+ });
956
+ }, me = W.useMemo(() => ce || (A === "inline" ? !1 : ue || ne([ee], l)), [
957
+ A,
958
+ ce,
959
+ ee,
960
+ ue,
961
+ l,
962
+ ne
963
+ ]), he = bt(V.length), ge = (e) => {
964
+ U || (S?.({
965
+ key: l,
966
+ domEvent: e
967
+ }), A === "inline" && R(l, !oe));
968
+ }, _e = vt((e) => {
969
+ y?.(St(e)), L(e);
970
+ }), ve = (e) => {
971
+ A !== "inline" && R(l, e);
972
+ }, ye = () => {
973
+ z(l);
974
+ }, J = O && `${O}-popup`, be = W.useMemo(() => /* @__PURE__ */ W.createElement(xt, {
975
+ icon: A === "horizontal" ? void 0 : G,
976
+ props: {
977
+ ...e,
978
+ isOpen: K,
979
+ isSubMenu: !0
980
+ }
981
+ }, /* @__PURE__ */ W.createElement("i", { className: `${H}-arrow` })), [
982
+ A,
983
+ G,
984
+ e,
985
+ K,
986
+ H
987
+ ]), xe = /* @__PURE__ */ W.createElement("div", Rt({
988
+ role: "menuitem",
989
+ style: he,
990
+ className: `${H}-title`,
991
+ tabIndex: U ? null : -1,
992
+ ref: re,
993
+ title: typeof c == "string" ? c : null,
994
+ "data-menu-id": N && O ? null : O,
995
+ "aria-expanded": K,
996
+ "aria-haspopup": !0,
997
+ "aria-controls": J,
998
+ "aria-disabled": U,
999
+ onClick: ge,
1000
+ onFocus: ye
1001
+ }, le), c, be), Se = W.useRef(A);
1002
+ A !== "inline" && V.length > 1 ? Se.current = "vertical" : Se.current = A;
1003
+ let Ce = Se.current, we = W.useMemo(() => {
1004
+ let t = /* @__PURE__ */ W.createElement(He, {
1005
+ classNames: s,
1006
+ styles: o,
1007
+ mode: Ce === "horizontal" ? "vertical" : Ce
1008
+ }, /* @__PURE__ */ W.createElement(kt, {
1009
+ id: J,
1010
+ ref: ie
1011
+ }, p)), n = T || te;
1012
+ return n ? n(t, {
1013
+ item: e,
1014
+ keys: V
1015
+ }) : t;
1016
+ }, [
1017
+ T,
1018
+ te,
1019
+ V,
1020
+ J,
1021
+ p,
1022
+ e,
1023
+ Ce
1024
+ ]);
1025
+ if (!N) {
1026
+ let e = Se.current;
1027
+ xe = /* @__PURE__ */ W.createElement(Ft, {
1028
+ mode: e,
1029
+ prefixCls: H,
1030
+ visible: !f && K && A !== "inline",
1031
+ popupClassName: g,
1032
+ popupOffset: _,
1033
+ popupStyle: v,
1034
+ popup: we,
1035
+ disabled: U,
1036
+ onVisibleChange: ve
1037
+ }, xe);
1038
+ }
1039
+ let Te = /* @__PURE__ */ W.createElement(r.Item, Rt({
1040
+ ref: t,
1041
+ role: "none"
1042
+ }, E, {
1043
+ component: "li",
1044
+ style: n,
1045
+ className: a(H, `${H}-${A}`, i, {
1046
+ [`${H}-open`]: K,
1047
+ [`${H}-active`]: me,
1048
+ [`${H}-selected`]: se,
1049
+ [`${H}-disabled`]: U
1050
+ }),
1051
+ onMouseEnter: q,
1052
+ onMouseLeave: pe
1053
+ }), xe, !N && /* @__PURE__ */ W.createElement(Lt, {
1054
+ id: J,
1055
+ open: K,
1056
+ keyPath: V
1057
+ }, p));
1058
+ return B && (Te = B(Te, e, {
1059
+ selected: se,
1060
+ active: me,
1061
+ open: K,
1062
+ disabled: U
1063
+ })), /* @__PURE__ */ W.createElement(He, {
1064
+ classNames: s,
1065
+ styles: o,
1066
+ onItemClick: _e,
1067
+ mode: A === "horizontal" ? "vertical" : A,
1068
+ itemIcon: ae,
1069
+ expandIcon: G
1070
+ }, Te);
1071
+ }), Bt = /* @__PURE__ */ W.forwardRef((e, t) => {
1072
+ let { eventKey: n, children: r } = e, i = qe(n), a = At(r, i), o = Ge();
1073
+ W.useEffect(() => {
1074
+ if (o) return o.registerPath(n, i), () => {
1075
+ o.unregisterPath(n, i);
1076
+ };
1077
+ }, [i]);
1078
+ let s;
1079
+ return s = o ? a : /* @__PURE__ */ W.createElement(zt, Rt({ ref: t }, e), a), /* @__PURE__ */ W.createElement(Ke.Provider, { value: i }, s);
1080
+ });
1081
+ process.env.NODE_ENV !== "production" && (Bt.displayName = "SubMenu");
1082
+ //#endregion
1083
+ //#region node_modules/@rc-component/menu/es/Divider.js
1084
+ function Vt({ className: e, style: t }) {
1085
+ let { prefixCls: n } = W.useContext(Q);
1086
+ return Ge() ? null : /* @__PURE__ */ W.createElement("li", {
1087
+ role: "separator",
1088
+ className: a(`${n}-item-divider`, e),
1089
+ style: t
1090
+ });
1091
+ }
1092
+ //#endregion
1093
+ //#region node_modules/@rc-component/menu/es/MenuItemGroup.js
1094
+ function Ht() {
1095
+ return Ht = Object.assign ? Object.assign.bind() : function(e) {
1096
+ for (var t = 1; t < arguments.length; t++) {
1097
+ var n = arguments[t];
1098
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1099
+ }
1100
+ return e;
1101
+ }, Ht.apply(this, arguments);
1102
+ }
1103
+ var Ut = /* @__PURE__ */ W.forwardRef((e, t) => {
1104
+ let { className: n, title: r, eventKey: i, children: o, ...s } = e, { prefixCls: c, classNames: l, styles: u } = W.useContext(Q), d = `${c}-item-group`;
1105
+ return /* @__PURE__ */ W.createElement("li", Ht({
1106
+ ref: t,
1107
+ role: "presentation"
1108
+ }, s, {
1109
+ onClick: (e) => e.stopPropagation(),
1110
+ className: a(d, n)
1111
+ }), /* @__PURE__ */ W.createElement("div", {
1112
+ role: "presentation",
1113
+ className: a(`${d}-title`, l?.listTitle),
1114
+ style: u?.listTitle,
1115
+ title: typeof r == "string" ? r : void 0
1116
+ }, r), /* @__PURE__ */ W.createElement("ul", {
1117
+ role: "group",
1118
+ className: a(`${d}-list`, l?.list),
1119
+ style: u?.list
1120
+ }, o));
1121
+ }), Wt = /* @__PURE__ */ W.forwardRef((e, t) => {
1122
+ let { eventKey: n, children: r } = e, i = At(r, qe(n));
1123
+ return Ge() ? i : /* @__PURE__ */ W.createElement(Ut, Ht({ ref: t }, w(e, ["warnKey"])), i);
1124
+ });
1125
+ process.env.NODE_ENV !== "production" && (Wt.displayName = "MenuItemGroup");
1126
+ //#endregion
1127
+ //#region node_modules/@rc-component/menu/es/utils/nodeUtil.js
1128
+ function Gt() {
1129
+ return Gt = Object.assign ? Object.assign.bind() : function(e) {
1130
+ for (var t = 1; t < arguments.length; t++) {
1131
+ var n = arguments[t];
1132
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1133
+ }
1134
+ return e;
1135
+ }, Gt.apply(this, arguments);
1136
+ }
1137
+ function Kt(e, t, n) {
1138
+ let { item: r, group: i, submenu: a, divider: o } = t;
1139
+ return (e || []).map((e, s) => {
1140
+ if (e && typeof e == "object") {
1141
+ let { label: c, children: l, key: u, type: d, extra: f, ...p } = e, m = u ?? `tmp-${s}`;
1142
+ if (l || d === "group") return d === "group" ? /* @__PURE__ */ W.createElement(i, Gt({ key: m }, p, { title: c }), Kt(l, t, n)) : /* @__PURE__ */ W.createElement(a, Gt({ key: m }, p, { title: c }), Kt(l, t, n));
1143
+ if (d === "divider") return /* @__PURE__ */ W.createElement(o, Gt({ key: m }, p));
1144
+ let h = !!f || f === 0;
1145
+ return /* @__PURE__ */ W.createElement(r, Gt({ key: m }, p, { extra: f }), h ? /* @__PURE__ */ W.createElement(W.Fragment, null, /* @__PURE__ */ W.createElement("span", { className: `${n}-item-label` }, c), /* @__PURE__ */ W.createElement("span", { className: `${n}-item-extra` }, f)) : c);
1146
+ }
1147
+ return null;
1148
+ }).filter((e) => e);
1149
+ }
1150
+ function qt(e, t, n, r, i) {
1151
+ let a = e, o = {
1152
+ divider: Vt,
1153
+ item: Dt,
1154
+ group: Wt,
1155
+ submenu: Bt,
1156
+ ...r
1157
+ };
1158
+ return t && (a = Kt(t, o, i)), At(a, n);
1159
+ }
1160
+ //#endregion
1161
+ //#region node_modules/@rc-component/menu/es/Menu.js
1162
+ function Jt() {
1163
+ return Jt = Object.assign ? Object.assign.bind() : function(e) {
1164
+ for (var t = 1; t < arguments.length; t++) {
1165
+ var n = arguments[t];
1166
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1167
+ }
1168
+ return e;
1169
+ }, Jt.apply(this, arguments);
1170
+ }
1171
+ var Yt = [], Xt = /* @__PURE__ */ W.forwardRef((e, t) => {
1172
+ let { prefixCls: n = "rc-menu", rootClassName: i, style: o, className: c, styles: l, classNames: u, tabIndex: d = 0, items: f, children: p, direction: m, id: h, mode: g = "vertical", inlineCollapsed: _, disabled: v, disabledOverflow: y, subMenuOpenDelay: b = .1, subMenuCloseDelay: x = .1, forceSubMenuRender: S, defaultOpenKeys: C, openKeys: w, activeKey: T, defaultActiveFirst: E, selectable: O = !0, multiple: k = !1, defaultSelectedKeys: A, selectedKeys: j, onSelect: M, onDeselect: N, inlineIndent: P = 24, motion: F, defaultMotions: I, triggerSubMenuAction: L = "hover", builtinPlacements: R, itemIcon: z, expandIcon: te, overflowedIndicator: B = "...", overflowedIndicatorPopupClassName: ne, getPopupContainer: V, onClick: H, onOpenChange: re, onKeyDown: ie, openAnimation: ae, openTransitionName: G, _internalRenderMenuItem: oe, _internalRenderSubMenuItem: K, _internalComponents: se, popupRender: le, ...ue } = e, [fe, q] = W.useMemo(() => [qt(p, f, Yt, se, n), qt(p, f, Yt, {}, n)], [
1173
+ p,
1174
+ f,
1175
+ se
1176
+ ]), [pe, me] = W.useState(!1), he = W.useRef(), ge = ee(h ? `rc-menu-uuid-${h}` : "rc-menu-uuid"), _e = m === "rtl";
1177
+ process.env.NODE_ENV !== "production" && D(!ae && !G, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
1178
+ let [ve, ye] = s(C, w), J = ve || Yt, be = (e, t = !1) => {
1179
+ function n() {
1180
+ ye(e), re?.(e);
1181
+ }
1182
+ t ? de(n) : n();
1183
+ }, [xe, Se] = W.useState(J), Ce = W.useRef(!1), [we, Te] = W.useMemo(() => (g === "inline" || g === "vertical") && _ ? ["vertical", _] : [g, !1], [g, _]), Ee = we === "inline", [De, Oe] = W.useState(we), [ke, Y] = W.useState(Te);
1184
+ W.useEffect(() => {
1185
+ Oe(we), Y(Te), Ce.current && (Ee ? ye(xe) : be(Yt));
1186
+ }, [we, Te]);
1187
+ let [X, Ae] = W.useState(0), je = X >= fe.length - 1 || De !== "horizontal" || y;
1188
+ W.useEffect(() => {
1189
+ Ee && Se(J);
1190
+ }, [J]), W.useEffect(() => (Ce.current = !0, () => {
1191
+ Ce.current = !1;
1192
+ }), []);
1193
+ let { registerPath: Me, unregisterPath: Ne, refreshOverflowKeys: Pe, isSubPathKey: Fe, getKeyPath: Ie, getKeys: Z, getSubPathKeys: Le } = _t(), ze = W.useMemo(() => ({
1194
+ registerPath: Me,
1195
+ unregisterPath: Ne
1196
+ }), [Me, Ne]), Be = W.useMemo(() => ({ isSubPathKey: Fe }), [Fe]);
1197
+ W.useEffect(() => {
1198
+ Pe(je ? Yt : fe.slice(X + 1).map((e) => e.key));
1199
+ }, [X, je]);
1200
+ let [Q, Ve] = s(T || E && fe[0]?.key, T), Ue = vt((e) => {
1201
+ Ve(e);
1202
+ }), Ge = vt(() => {
1203
+ Ve(void 0);
1204
+ });
1205
+ ce(t, () => ({
1206
+ list: he.current,
1207
+ focus: (e) => {
1208
+ let t = Z(), { elements: n, key2element: r, element2key: i } = ut(t, ge), a = ct(he.current, n), o;
1209
+ o = Q && t.includes(Q) ? Q : a[0] ? i.get(a[0]) : fe.find((e) => !e.props.disabled)?.key;
1210
+ let s = r.get(o);
1211
+ o && s && s?.focus?.(e);
1212
+ },
1213
+ findItem: ({ key: e }) => {
1214
+ let { key2element: t } = ut(Z(), ge);
1215
+ return t.get(e) || null;
1216
+ }
1217
+ }));
1218
+ let [Ke, qe] = s(A || [], j), Xe = W.useMemo(() => Array.isArray(Ke) ? Ke : Ke == null ? Yt : [Ke], [Ke]), Ze = (e) => {
1219
+ if (O) {
1220
+ let { key: t } = e, n = Xe.includes(t), r;
1221
+ r = k ? n ? Xe.filter((e) => e !== t) : [...Xe, t] : [t], qe(r);
1222
+ let i = {
1223
+ ...e,
1224
+ selectedKeys: r
1225
+ };
1226
+ n ? N?.(i) : M?.(i);
1227
+ }
1228
+ !k && J.length && De !== "inline" && be(Yt);
1229
+ }, Qe = vt((e) => {
1230
+ H?.(St(e)), Ze(e);
1231
+ }), $e = vt((e, t) => {
1232
+ let n = J.filter((t) => t !== e);
1233
+ if (t) n.push(e);
1234
+ else if (De !== "inline") {
1235
+ let t = Le(e);
1236
+ n = n.filter((e) => !t.has(e));
1237
+ }
1238
+ U(J, n, !0) || be(n, !0);
1239
+ }), et = dt(De, Q, _e, ge, he, Z, Ie, Ve, (e, t) => {
1240
+ $e(e, t ?? !J.includes(e));
1241
+ }, ie);
1242
+ W.useEffect(() => {
1243
+ me(!0);
1244
+ }, []);
1245
+ let tt = W.useMemo(() => ({
1246
+ _internalRenderMenuItem: oe,
1247
+ _internalRenderSubMenuItem: K
1248
+ }), [oe, K]), nt = De !== "horizontal" || y ? fe : fe.map((e, t) => /* @__PURE__ */ W.createElement(He, {
1249
+ key: e.key,
1250
+ overflowDisabled: t > X,
1251
+ classNames: u,
1252
+ styles: l
1253
+ }, e)), rt = /* @__PURE__ */ W.createElement(r, Jt({
1254
+ id: h,
1255
+ ref: he,
1256
+ prefixCls: `${n}-overflow`,
1257
+ component: "ul",
1258
+ itemComponent: Dt,
1259
+ className: a(n, `${n}-root`, `${n}-${De}`, c, {
1260
+ [`${n}-inline-collapsed`]: ke,
1261
+ [`${n}-rtl`]: _e
1262
+ }, i),
1263
+ dir: m,
1264
+ style: o,
1265
+ role: "menu",
1266
+ tabIndex: d,
1267
+ data: nt,
1268
+ renderRawItem: (e) => e,
1269
+ renderRawRest: (e) => {
1270
+ let t = e.length, n = t ? fe.slice(-t) : null;
1271
+ return /* @__PURE__ */ W.createElement(Bt, {
1272
+ eventKey: gt,
1273
+ title: B,
1274
+ disabled: je,
1275
+ internalPopupClose: t === 0,
1276
+ popupClassName: ne
1277
+ }, n);
1278
+ },
1279
+ maxCount: De !== "horizontal" || y ? r.INVALIDATE : r.RESPONSIVE,
1280
+ ssr: "full",
1281
+ "data-menu-list": !0,
1282
+ onVisibleChange: (e) => {
1283
+ Ae(e);
1284
+ },
1285
+ onKeyDown: et
1286
+ }, ue));
1287
+ return /* @__PURE__ */ W.createElement(Ye.Provider, { value: tt }, /* @__PURE__ */ W.createElement(Re.Provider, { value: ge }, /* @__PURE__ */ W.createElement(He, {
1288
+ prefixCls: n,
1289
+ rootClassName: i,
1290
+ classNames: u,
1291
+ styles: l,
1292
+ mode: De,
1293
+ openKeys: J,
1294
+ rtl: _e,
1295
+ disabled: v,
1296
+ motion: pe ? F : null,
1297
+ defaultMotions: pe ? I : null,
1298
+ activeKey: Q,
1299
+ onActive: Ue,
1300
+ onInactive: Ge,
1301
+ selectedKeys: Xe,
1302
+ inlineIndent: P,
1303
+ subMenuOpenDelay: b,
1304
+ subMenuCloseDelay: x,
1305
+ forceSubMenuRender: S,
1306
+ builtinPlacements: R,
1307
+ triggerSubMenuAction: L,
1308
+ getPopupContainer: V,
1309
+ itemIcon: z,
1310
+ expandIcon: te,
1311
+ onItemClick: Qe,
1312
+ onOpenChange: $e,
1313
+ popupRender: le
1314
+ }, /* @__PURE__ */ W.createElement(Je.Provider, { value: Be }, rt), /* @__PURE__ */ W.createElement("div", {
1315
+ style: { display: "none" },
1316
+ "aria-hidden": !0
1317
+ }, /* @__PURE__ */ W.createElement(We.Provider, { value: ze }, q)))));
1318
+ });
1319
+ Xt.Item = Dt, Xt.SubMenu = Bt, Xt.ItemGroup = Wt, Xt.Divider = Vt;
1320
+ //#endregion
1321
+ //#region node_modules/@ant-design/icons-svg/es/asn/EllipsisOutlined.js
1322
+ var Zt = {
1323
+ icon: {
1324
+ tag: "svg",
1325
+ attrs: {
1326
+ viewBox: "64 64 896 896",
1327
+ focusable: "false"
1328
+ },
1329
+ children: [{
1330
+ tag: "path",
1331
+ attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" }
1332
+ }]
1333
+ },
1334
+ name: "ellipsis",
1335
+ theme: "outlined"
1336
+ };
1337
+ //#endregion
1338
+ //#region node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js
1339
+ function Qt() {
1340
+ return Qt = Object.assign ? Object.assign.bind() : function(e) {
1341
+ for (var t = 1; t < arguments.length; t++) {
1342
+ var n = arguments[t];
1343
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1344
+ }
1345
+ return e;
1346
+ }, Qt.apply(this, arguments);
1347
+ }
1348
+ var $t = /* @__PURE__ */ W.forwardRef((e, t) => /* @__PURE__ */ W.createElement(C, Qt({}, e, {
1349
+ ref: t,
1350
+ icon: Zt
1351
+ })));
1352
+ process.env.NODE_ENV !== "production" && ($t.displayName = "EllipsisOutlined");
1353
+ //#endregion
1354
+ //#region node_modules/antd/es/form/util.js
1355
+ var en = ["parentNode"], tn = "form_item";
1356
+ function nn(e) {
1357
+ return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
1358
+ }
1359
+ function rn(e, t) {
1360
+ if (!e.length) return;
1361
+ let n = e.join("_");
1362
+ return t ? `${t}_${n}` : en.includes(n) ? `${tn}_${n}` : n;
1363
+ }
1364
+ function an(e, t, n, r, i, a) {
1365
+ let o = r;
1366
+ return a === void 0 ? n.validating ? o = "validating" : e.length ? o = "error" : t.length ? o = "warning" : (n.touched || i && n.validated) && (o = "success") : o = a, o;
1367
+ }
1368
+ //#endregion
1369
+ //#region node_modules/antd/es/form/hooks/useForm.js
1370
+ function on(e) {
1371
+ return nn(e).join("_");
1372
+ }
1373
+ function sn(e, t) {
1374
+ let n = re(t.getFieldInstance(e));
1375
+ if (n) return n;
1376
+ let r = rn(nn(e), t.__INTERNAL__.name);
1377
+ if (r) return document.getElementById(r);
1378
+ }
1379
+ function cn(e) {
1380
+ let [t] = V(), n = W.useRef({}), r = W.useMemo(() => e ?? {
1381
+ ...t,
1382
+ __INTERNAL__: { itemRef: (e) => (t) => {
1383
+ let r = on(e);
1384
+ t ? n.current[r] = t : delete n.current[r];
1385
+ } },
1386
+ scrollToField: (e, t = {}) => {
1387
+ let { focus: n, ...i } = t, a = sn(e, r);
1388
+ a && (ve(a, {
1389
+ scrollMode: "if-needed",
1390
+ block: "nearest",
1391
+ ...i
1392
+ }), n && r.focusField(e));
1393
+ },
1394
+ focusField: (e) => {
1395
+ let t = r.getFieldInstance(e);
1396
+ v(t?.focus) ? t.focus() : sn(e, r)?.focus?.();
1397
+ },
1398
+ getFieldInstance: (e) => {
1399
+ let t = on(e);
1400
+ return n.current[t];
1401
+ }
1402
+ }, [e, t]);
1403
+ return [r];
1404
+ }
1405
+ //#endregion
1406
+ //#region node_modules/throttle-debounce/esm/index.js
1407
+ function ln(e, t, n) {
1408
+ var r = n || {}, i = r.noTrailing, a = i === void 0 ? !1 : i, o = r.noLeading, s = o === void 0 ? !1 : o, c = r.debounceMode, l = c === void 0 ? void 0 : c, u, d = !1, f = 0;
1409
+ function p() {
1410
+ u && clearTimeout(u);
1411
+ }
1412
+ function m(e) {
1413
+ var t = (e || {}).upcomingOnly, n = t === void 0 ? !1 : t;
1414
+ p(), d = !n;
1415
+ }
1416
+ function h() {
1417
+ var n = [...arguments], r = this, i = Date.now() - f;
1418
+ if (d) return;
1419
+ function o() {
1420
+ f = Date.now(), t.apply(r, n);
1421
+ }
1422
+ function c() {
1423
+ u = void 0;
1424
+ }
1425
+ !s && l && !u && o(), p(), l === void 0 && i > e ? s ? (f = Date.now(), a || (u = setTimeout(l ? c : o, e))) : o() : a !== !0 && (u = setTimeout(l ? c : o, l === void 0 ? e - i : e));
1426
+ }
1427
+ return h.cancel = m, h;
1428
+ }
1429
+ function un(e, t, n) {
1430
+ var r = (n || {}).atBegin;
1431
+ return ln(e, t, { debounceMode: (r === void 0 ? !1 : r) !== !1 });
1432
+ }
1433
+ //#endregion
1434
+ //#region node_modules/@ant-design/icons-svg/es/asn/DoubleLeftOutlined.js
1435
+ var dn = {
1436
+ icon: {
1437
+ tag: "svg",
1438
+ attrs: {
1439
+ viewBox: "64 64 896 896",
1440
+ focusable: "false"
1441
+ },
1442
+ children: [{
1443
+ tag: "path",
1444
+ attrs: { d: "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" }
1445
+ }]
1446
+ },
1447
+ name: "double-left",
1448
+ theme: "outlined"
1449
+ };
1450
+ //#endregion
1451
+ //#region node_modules/@ant-design/icons/es/icons/DoubleLeftOutlined.js
1452
+ function fn() {
1453
+ return fn = Object.assign ? Object.assign.bind() : function(e) {
1454
+ for (var t = 1; t < arguments.length; t++) {
1455
+ var n = arguments[t];
1456
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1457
+ }
1458
+ return e;
1459
+ }, fn.apply(this, arguments);
1460
+ }
1461
+ var pn = /* @__PURE__ */ W.forwardRef((e, t) => /* @__PURE__ */ W.createElement(C, fn({}, e, {
1462
+ ref: t,
1463
+ icon: dn
1464
+ })));
1465
+ process.env.NODE_ENV !== "production" && (pn.displayName = "DoubleLeftOutlined");
1466
+ //#endregion
1467
+ //#region node_modules/@ant-design/icons-svg/es/asn/DoubleRightOutlined.js
1468
+ var mn = {
1469
+ icon: {
1470
+ tag: "svg",
1471
+ attrs: {
1472
+ viewBox: "64 64 896 896",
1473
+ focusable: "false"
1474
+ },
1475
+ children: [{
1476
+ tag: "path",
1477
+ attrs: { d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" }
1478
+ }]
1479
+ },
1480
+ name: "double-right",
1481
+ theme: "outlined"
1482
+ };
1483
+ //#endregion
1484
+ //#region node_modules/@ant-design/icons/es/icons/DoubleRightOutlined.js
1485
+ function hn() {
1486
+ return hn = Object.assign ? Object.assign.bind() : function(e) {
1487
+ for (var t = 1; t < arguments.length; t++) {
1488
+ var n = arguments[t];
1489
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1490
+ }
1491
+ return e;
1492
+ }, hn.apply(this, arguments);
1493
+ }
1494
+ var gn = /* @__PURE__ */ W.forwardRef((e, t) => /* @__PURE__ */ W.createElement(C, hn({}, e, {
1495
+ ref: t,
1496
+ icon: mn
1497
+ })));
1498
+ process.env.NODE_ENV !== "production" && (gn.displayName = "DoubleRightOutlined");
1499
+ //#endregion
1500
+ //#region node_modules/@rc-component/pagination/es/locale/zh_CN.js
1501
+ var _n = {
1502
+ items_per_page: "条/页",
1503
+ jump_to: "跳至",
1504
+ jump_to_confirm: "确定",
1505
+ page: "页",
1506
+ prev_page: "上一页",
1507
+ next_page: "下一页",
1508
+ prev_5: "向前 5 页",
1509
+ next_5: "向后 5 页",
1510
+ prev_3: "向前 3 页",
1511
+ next_3: "向后 3 页",
1512
+ page_size: "页码"
1513
+ }, vn = [
1514
+ 10,
1515
+ 20,
1516
+ 50,
1517
+ 100
1518
+ ], yn = (e) => {
1519
+ let { pageSizeOptions: t = vn, locale: n, changeSize: r, pageSize: i, goButton: a, quickGo: o, rootPrefixCls: s, disabled: c, buildOptionText: l, showSizeChanger: u, sizeChangerRender: d } = e, [f, p] = G.useState(""), m = G.useMemo(() => !f || Number.isNaN(f) ? void 0 : Number(f), [f]), h = typeof l == "function" ? l : (e) => `${e} ${n.items_per_page}`, g = (e) => {
1520
+ let t = e.target.value;
1521
+ /^\d*$/.test(t) && p(t);
1522
+ }, _ = (e) => {
1523
+ a || f === "" || (p(""), !(e.relatedTarget && (e.relatedTarget.className.includes(`${s}-item-link`) || e.relatedTarget.className.includes(`${s}-item`))) && o?.(m));
1524
+ }, v = (e) => {
1525
+ f !== "" && (e.keyCode === A.ENTER || e.type === "click") && (p(""), o?.(m));
1526
+ }, y = () => t.some((e) => e.toString() === i.toString()) ? t : t.concat([i]).sort((e, t) => (Number.isNaN(Number(e)) ? 0 : Number(e)) - (Number.isNaN(Number(t)) ? 0 : Number(t))), b = `${s}-options`;
1527
+ if (!u && !o) return null;
1528
+ let x = null, S = null, C = null;
1529
+ return u && d && (x = d({
1530
+ disabled: c,
1531
+ size: i,
1532
+ onSizeChange: (e) => {
1533
+ r?.(Number(e));
1534
+ },
1535
+ "aria-label": n.page_size,
1536
+ className: `${b}-size-changer`,
1537
+ options: y().map((e) => ({
1538
+ label: h(e),
1539
+ value: e
1540
+ }))
1541
+ })), o && (a && (C = typeof a == "boolean" ? /* @__PURE__ */ G.createElement("button", {
1542
+ type: "button",
1543
+ onClick: v,
1544
+ onKeyUp: v,
1545
+ disabled: c,
1546
+ className: `${b}-quick-jumper-button`
1547
+ }, n.jump_to_confirm) : /* @__PURE__ */ G.createElement("span", {
1548
+ onClick: v,
1549
+ onKeyUp: v
1550
+ }, a)), S = /* @__PURE__ */ G.createElement("div", { className: `${b}-quick-jumper` }, n.jump_to, /* @__PURE__ */ G.createElement("input", {
1551
+ disabled: c,
1552
+ type: "text",
1553
+ value: f,
1554
+ onChange: g,
1555
+ onKeyUp: v,
1556
+ onBlur: _,
1557
+ "aria-label": n.page
1558
+ }), n.page, C)), /* @__PURE__ */ G.createElement("li", { className: b }, x, S);
1559
+ };
1560
+ process.env.NODE_ENV !== "production" && (yn.displayName = "Options");
1561
+ //#endregion
1562
+ //#region node_modules/@rc-component/pagination/es/Pager.js
1563
+ var bn = (e) => {
1564
+ let { rootPrefixCls: t, page: n, active: r, className: i, style: o, showTitle: s, onClick: c, onKeyPress: l, itemRender: u } = e, d = `${t}-item`, f = a(d, `${d}-${n}`, {
1565
+ [`${d}-active`]: r,
1566
+ [`${d}-disabled`]: !n
1567
+ }, i), p = () => {
1568
+ c(n);
1569
+ }, m = (e) => {
1570
+ l(e, c, n);
1571
+ }, h = u(n, "page", /* @__PURE__ */ G.createElement("a", { rel: "nofollow" }, n));
1572
+ return h ? /* @__PURE__ */ G.createElement("li", {
1573
+ title: s ? String(n) : null,
1574
+ className: f,
1575
+ style: o,
1576
+ onClick: p,
1577
+ onKeyDown: m,
1578
+ tabIndex: 0
1579
+ }, h) : null;
1580
+ };
1581
+ process.env.NODE_ENV !== "production" && (bn.displayName = "Pager");
1582
+ //#endregion
1583
+ //#region node_modules/@rc-component/pagination/es/Pagination.js
1584
+ function xn() {
1585
+ return xn = Object.assign ? Object.assign.bind() : function(e) {
1586
+ for (var t = 1; t < arguments.length; t++) {
1587
+ var n = arguments[t];
1588
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1589
+ }
1590
+ return e;
1591
+ }, xn.apply(this, arguments);
1592
+ }
1593
+ var Sn = (e, t, n) => n;
1594
+ function Cn() {}
1595
+ function wn(e) {
1596
+ let t = Number(e);
1597
+ return typeof t == "number" && !Number.isNaN(t) && isFinite(t) && Math.floor(t) === t;
1598
+ }
1599
+ function Tn(e, t, n) {
1600
+ let r = e === void 0 ? t : e;
1601
+ return Math.floor((n - 1) / r) + 1;
1602
+ }
1603
+ var En = (e) => {
1604
+ let { prefixCls: t = "rc-pagination", selectPrefixCls: n = "rc-select", className: r, classNames: i, styles: o, current: c, defaultCurrent: l = 1, total: u = 0, pageSize: d, defaultPageSize: f = 10, onChange: p = Cn, hideOnSinglePage: m, align: h, showPrevNextJumpers: g = !0, showQuickJumper: _, showLessItems: v, showTitle: y = !0, onShowSizeChange: b = Cn, locale: x = _n, style: S, totalBoundaryShowSizeChanger: C = 50, disabled: w, simple: T, showTotal: E, showSizeChanger: O = u > C, sizeChangerRender: k, pageSizeOptions: j, itemRender: M = Sn, jumpPrevIcon: N, jumpNextIcon: ee, prevIcon: P, nextIcon: F } = e, I = G.useRef(null), [L, R] = s(f, d), [z, te] = s(l, c), B = Math.max(1, Math.min(z, Tn(void 0, L, u))), [V, H] = G.useState(B);
1605
+ se(() => {
1606
+ H(B);
1607
+ }, [B]);
1608
+ let U = p !== Cn, re = "current" in e;
1609
+ process.env.NODE_ENV !== "production" && D(re ? U : !0, "You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");
1610
+ let ie = Math.max(1, B - (v ? 3 : 5)), ae = Math.min(Tn(void 0, L, u), B + (v ? 3 : 5));
1611
+ function W(n, r) {
1612
+ let i = n || /* @__PURE__ */ G.createElement("button", {
1613
+ type: "button",
1614
+ "aria-label": r,
1615
+ className: `${t}-item-link`
1616
+ });
1617
+ return typeof n == "function" && (i = /* @__PURE__ */ G.createElement(n, e)), i;
1618
+ }
1619
+ function oe(e) {
1620
+ let t = e.target.value, n = Tn(void 0, L, u), r;
1621
+ return r = t === "" ? t : Number.isNaN(Number(t)) ? V : t >= n ? n : Number(t), r;
1622
+ }
1623
+ function K(e) {
1624
+ return wn(e) && e !== B && wn(u) && u > 0;
1625
+ }
1626
+ let ce = u > L ? _ : !1;
1627
+ function le(e) {
1628
+ (e.keyCode === A.UP || e.keyCode === A.DOWN) && e.preventDefault();
1629
+ }
1630
+ function ue(e) {
1631
+ let t = oe(e);
1632
+ switch (t !== V && H(t), e.keyCode) {
1633
+ case A.ENTER:
1634
+ q(t);
1635
+ break;
1636
+ case A.UP:
1637
+ q(t - 1);
1638
+ break;
1639
+ case A.DOWN:
1640
+ q(t + 1);
1641
+ break;
1642
+ default: break;
1643
+ }
1644
+ }
1645
+ function de(e) {
1646
+ q(oe(e));
1647
+ }
1648
+ function fe(e) {
1649
+ let t = Tn(e, L, u), n = B > t && t !== 0 ? t : B;
1650
+ R(e), H(n), b?.(B, e), te(n), p?.(n, e);
1651
+ }
1652
+ function q(e) {
1653
+ if (K(e) && !w) {
1654
+ let t = Tn(void 0, L, u), n = e;
1655
+ return e > t ? n = t : e < 1 && (n = 1), n !== V && H(n), te(n), p?.(n, L), n;
1656
+ }
1657
+ return B;
1658
+ }
1659
+ let pe = B > 1, me = B < Tn(void 0, L, u);
1660
+ function he() {
1661
+ pe && q(B - 1);
1662
+ }
1663
+ function ge() {
1664
+ me && q(B + 1);
1665
+ }
1666
+ function _e() {
1667
+ q(ie);
1668
+ }
1669
+ function ve() {
1670
+ q(ae);
1671
+ }
1672
+ function ye(e, t, ...n) {
1673
+ (e.key === "Enter" || e.charCode === A.ENTER || e.keyCode === A.ENTER) && t(...n);
1674
+ }
1675
+ function J(e) {
1676
+ ye(e, he);
1677
+ }
1678
+ function be(e) {
1679
+ ye(e, ge);
1680
+ }
1681
+ function xe(e) {
1682
+ ye(e, _e);
1683
+ }
1684
+ function Se(e) {
1685
+ ye(e, ve);
1686
+ }
1687
+ function Ce(e) {
1688
+ let t = M(e, "prev", W(P, "prev page"));
1689
+ return /* @__PURE__ */ G.isValidElement(t) ? /* @__PURE__ */ G.cloneElement(t, { disabled: !pe }) : t;
1690
+ }
1691
+ function we(e) {
1692
+ let t = M(e, "next", W(F, "next page"));
1693
+ return /* @__PURE__ */ G.isValidElement(t) ? /* @__PURE__ */ G.cloneElement(t, { disabled: !me }) : t;
1694
+ }
1695
+ function Te(e) {
1696
+ (e.type === "click" || e.keyCode === A.ENTER) && q(V);
1697
+ }
1698
+ let Ee = null, De = ne(e, {
1699
+ aria: !0,
1700
+ data: !0
1701
+ }), Oe = E && /* @__PURE__ */ G.createElement("li", { className: `${t}-total-text` }, E(u, [u === 0 ? 0 : (B - 1) * L + 1, B * L > u ? u : B * L])), ke = null, Y = Tn(void 0, L, u);
1702
+ if (m && u <= L) return null;
1703
+ let X = [], Ae = {
1704
+ rootPrefixCls: t,
1705
+ onClick: q,
1706
+ onKeyPress: ye,
1707
+ showTitle: y,
1708
+ itemRender: M,
1709
+ page: -1,
1710
+ className: i?.item,
1711
+ style: o?.item
1712
+ }, je = B - 1 > 0 ? B - 1 : 0, Me = B + 1 < Y ? B + 1 : Y, Ne = _ && _.goButton, Pe = typeof T == "object" ? T.readOnly : !T, Fe = Ne, Ie = null;
1713
+ T && (Ne && (Fe = typeof Ne == "boolean" ? /* @__PURE__ */ G.createElement("button", {
1714
+ type: "button",
1715
+ onClick: Te,
1716
+ onKeyUp: Te
1717
+ }, x.jump_to_confirm) : /* @__PURE__ */ G.createElement("span", {
1718
+ onClick: Te,
1719
+ onKeyUp: Te
1720
+ }, Ne), Fe = /* @__PURE__ */ G.createElement("li", {
1721
+ title: y ? `${x.jump_to}${B}/${Y}` : null,
1722
+ className: `${t}-simple-pager`
1723
+ }, Fe)), Ie = /* @__PURE__ */ G.createElement("li", {
1724
+ title: y ? `${B}/${Y}` : null,
1725
+ className: a(`${t}-simple-pager`, i?.item),
1726
+ style: o?.item
1727
+ }, Pe ? V : /* @__PURE__ */ G.createElement("input", {
1728
+ type: "text",
1729
+ "aria-label": x.jump_to,
1730
+ value: V,
1731
+ disabled: w,
1732
+ onKeyDown: le,
1733
+ onKeyUp: ue,
1734
+ onChange: ue,
1735
+ onBlur: de,
1736
+ size: 3
1737
+ }), /* @__PURE__ */ G.createElement("span", { className: `${t}-slash` }, "/"), Y));
1738
+ let Z = v ? 1 : 2;
1739
+ if (Y <= 3 + Z * 2) {
1740
+ Y || X.push(/* @__PURE__ */ G.createElement(bn, xn({}, Ae, {
1741
+ key: "noPager",
1742
+ page: 1,
1743
+ className: `${t}-item-disabled`
1744
+ })));
1745
+ for (let e = 1; e <= Y; e += 1) X.push(/* @__PURE__ */ G.createElement(bn, xn({}, Ae, {
1746
+ key: e,
1747
+ page: e,
1748
+ active: B === e
1749
+ })));
1750
+ } else {
1751
+ let e = v ? x.prev_3 : x.prev_5, n = v ? x.next_3 : x.next_5, r = M(ie, "jump-prev", W(N, "prev page")), i = M(ae, "jump-next", W(ee, "next page"));
1752
+ g && (Ee = r ? /* @__PURE__ */ G.createElement("li", {
1753
+ title: y ? e : null,
1754
+ key: "prev",
1755
+ onClick: _e,
1756
+ tabIndex: 0,
1757
+ onKeyDown: xe,
1758
+ className: a(`${t}-jump-prev`, { [`${t}-jump-prev-custom-icon`]: !!N })
1759
+ }, r) : null, ke = i ? /* @__PURE__ */ G.createElement("li", {
1760
+ title: y ? n : null,
1761
+ key: "next",
1762
+ onClick: ve,
1763
+ tabIndex: 0,
1764
+ onKeyDown: Se,
1765
+ className: a(`${t}-jump-next`, { [`${t}-jump-next-custom-icon`]: !!ee })
1766
+ }, i) : null);
1767
+ let o = Math.max(1, B - Z), s = Math.min(B + Z, Y);
1768
+ B - 1 <= Z && (s = 1 + Z * 2), Y - B <= Z && (o = Y - Z * 2);
1769
+ for (let e = o; e <= s; e += 1) X.push(/* @__PURE__ */ G.createElement(bn, xn({}, Ae, {
1770
+ key: e,
1771
+ page: e,
1772
+ active: B === e
1773
+ })));
1774
+ if (B - 1 >= Z * 2 && B !== 3 && (X[0] = /* @__PURE__ */ G.cloneElement(X[0], { className: a(`${t}-item-after-jump-prev`, X[0].props.className) }), X.unshift(Ee)), Y - B >= Z * 2 && B !== Y - 2) {
1775
+ let e = X[X.length - 1];
1776
+ X[X.length - 1] = /* @__PURE__ */ G.cloneElement(e, { className: a(`${t}-item-before-jump-next`, e.props.className) }), X.push(ke);
1777
+ }
1778
+ o !== 1 && X.unshift(/* @__PURE__ */ G.createElement(bn, xn({}, Ae, {
1779
+ key: 1,
1780
+ page: 1
1781
+ }))), s !== Y && X.push(/* @__PURE__ */ G.createElement(bn, xn({}, Ae, {
1782
+ key: Y,
1783
+ page: Y
1784
+ })));
1785
+ }
1786
+ let Le = Ce(je);
1787
+ if (Le) {
1788
+ let e = !pe || !Y;
1789
+ Le = /* @__PURE__ */ G.createElement("li", {
1790
+ title: y ? x.prev_page : null,
1791
+ onClick: he,
1792
+ tabIndex: e ? null : 0,
1793
+ onKeyDown: J,
1794
+ className: a(`${t}-prev`, i?.item, { [`${t}-disabled`]: e }),
1795
+ style: o?.item,
1796
+ "aria-disabled": e
1797
+ }, Le);
1798
+ }
1799
+ let Re = we(Me);
1800
+ if (Re) {
1801
+ let e, n;
1802
+ T ? (e = !me, n = pe ? 0 : null) : (e = !me || !Y, n = e ? null : 0), Re = /* @__PURE__ */ G.createElement("li", {
1803
+ title: y ? x.next_page : null,
1804
+ onClick: ge,
1805
+ tabIndex: n,
1806
+ onKeyDown: be,
1807
+ className: a(`${t}-next`, i?.item, { [`${t}-disabled`]: e }),
1808
+ style: o?.item,
1809
+ "aria-disabled": e
1810
+ }, Re);
1811
+ }
1812
+ let ze = a(t, r, {
1813
+ [`${t}-start`]: h === "start",
1814
+ [`${t}-center`]: h === "center",
1815
+ [`${t}-end`]: h === "end",
1816
+ [`${t}-simple`]: T,
1817
+ [`${t}-disabled`]: w
1818
+ });
1819
+ return /* @__PURE__ */ G.createElement("ul", xn({
1820
+ className: ze,
1821
+ style: S,
1822
+ ref: I
1823
+ }, De), Oe, Le, T ? Ie : X, Re, /* @__PURE__ */ G.createElement(yn, {
1824
+ locale: x,
1825
+ rootPrefixCls: t,
1826
+ disabled: w,
1827
+ selectPrefixCls: n,
1828
+ changeSize: fe,
1829
+ pageSize: L,
1830
+ pageSizeOptions: j,
1831
+ quickGo: ce ? q : null,
1832
+ goButton: Fe,
1833
+ showSizeChanger: O,
1834
+ sizeChangerRender: k
1835
+ }));
1836
+ };
1837
+ process.env.NODE_ENV !== "production" && (En.displayName = "Pagination");
1838
+ //#endregion
1839
+ //#region node_modules/antd/es/pagination/style/index.js
1840
+ var Dn = (e) => {
1841
+ let { componentCls: t } = e;
1842
+ return {
1843
+ [`${t}-disabled`]: {
1844
+ "&, &:hover": {
1845
+ cursor: "not-allowed",
1846
+ [`${t}-item-link`]: {
1847
+ color: e.colorTextDisabled,
1848
+ cursor: "not-allowed"
1849
+ }
1850
+ },
1851
+ "&:focus-visible": {
1852
+ cursor: "not-allowed",
1853
+ [`${t}-item-link`]: {
1854
+ color: e.colorTextDisabled,
1855
+ cursor: "not-allowed"
1856
+ }
1857
+ }
1858
+ },
1859
+ [`&${t}-disabled`]: {
1860
+ cursor: "not-allowed",
1861
+ [`${t}-item`]: {
1862
+ cursor: "not-allowed",
1863
+ backgroundColor: "transparent",
1864
+ "&:hover, &:active": { backgroundColor: "transparent" },
1865
+ a: {
1866
+ color: e.colorTextDisabled,
1867
+ backgroundColor: "transparent",
1868
+ border: "none",
1869
+ cursor: "not-allowed"
1870
+ },
1871
+ "&-active": {
1872
+ borderColor: e.colorBorder,
1873
+ backgroundColor: e.itemActiveBgDisabled,
1874
+ "&:hover, &:active": { backgroundColor: e.itemActiveBgDisabled },
1875
+ a: { color: e.itemActiveColorDisabled }
1876
+ }
1877
+ },
1878
+ [`${t}-item-link`]: {
1879
+ color: e.colorTextDisabled,
1880
+ cursor: "not-allowed",
1881
+ "&:hover, &:active": { backgroundColor: "transparent" },
1882
+ [`${t}-simple&`]: {
1883
+ backgroundColor: "transparent",
1884
+ "&:hover, &:active": { backgroundColor: "transparent" }
1885
+ }
1886
+ },
1887
+ [`${t}-simple-pager`]: { color: e.colorTextDisabled },
1888
+ [`${t}-jump-prev, ${t}-jump-next`]: {
1889
+ [`${t}-item-link-icon`]: { opacity: 0 },
1890
+ [`${t}-item-ellipsis`]: { opacity: 1 }
1891
+ }
1892
+ }
1893
+ };
1894
+ }, On = (e) => {
1895
+ let { componentCls: t } = e;
1896
+ return { [`&${t}-small ${t}-options`]: {
1897
+ marginInlineStart: e.paginationMiniOptionsMarginInlineStart,
1898
+ "&-quick-jumper": { input: {
1899
+ ...F(e),
1900
+ width: e.paginationMiniQuickJumperInputWidth
1901
+ } }
1902
+ } };
1903
+ }, kn = (e) => {
1904
+ let { componentCls: t } = e;
1905
+ return { [`&${t}-large ${t}-options`]: { "&-quick-jumper": { input: { ...S(e) } } } };
1906
+ }, An = (e) => {
1907
+ let { componentCls: t, antCls: n } = e, [, r] = I(n, "pagination");
1908
+ return { [`&${t}-simple`]: {
1909
+ [`${t}-prev, ${t}-next`]: {
1910
+ height: r("item-size-actual"),
1911
+ lineHeight: r("item-size-actual"),
1912
+ verticalAlign: "top",
1913
+ [`${t}-item-link`]: {
1914
+ height: r("item-size-actual"),
1915
+ backgroundColor: "transparent",
1916
+ border: 0,
1917
+ "&:hover": { backgroundColor: e.colorBgTextHover },
1918
+ "&:active": { backgroundColor: e.colorBgTextActive },
1919
+ "&::after": {
1920
+ height: r("item-size-actual"),
1921
+ lineHeight: r("item-size-actual")
1922
+ }
1923
+ }
1924
+ },
1925
+ [`${t}-simple-pager`]: {
1926
+ display: "inline-flex",
1927
+ alignItems: "center",
1928
+ height: r("item-size-actual"),
1929
+ marginInlineEnd: r("item-spacing-actual"),
1930
+ input: {
1931
+ boxSizing: "border-box",
1932
+ height: "100%",
1933
+ width: e.quickJumperInputWidth,
1934
+ padding: `0 ${f(e.paginationItemPaddingInline)}`,
1935
+ textAlign: "center",
1936
+ backgroundColor: e.itemInputBg,
1937
+ border: `${f(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
1938
+ borderRadius: e.borderRadius,
1939
+ outline: "none",
1940
+ transition: `border-color ${e.motionDurationMid}`,
1941
+ color: "inherit",
1942
+ "&:hover": { borderColor: e.colorPrimary },
1943
+ "&:focus": {
1944
+ borderColor: e.colorPrimaryHover,
1945
+ boxShadow: `${f(e.inputOutlineOffset)} 0 ${f(e.controlOutlineWidth)} ${e.controlOutline}`
1946
+ },
1947
+ "&[disabled]": {
1948
+ color: e.colorTextDisabled,
1949
+ backgroundColor: e.colorBgContainerDisabled,
1950
+ borderColor: e.colorBorder,
1951
+ cursor: "not-allowed"
1952
+ }
1953
+ }
1954
+ },
1955
+ [`&${t}-disabled`]: { [`${t}-prev, ${t}-next`]: { [`${t}-item-link`]: { "&:hover, &:active": { backgroundColor: "transparent" } } } },
1956
+ [`&${t}-small`]: { [`${t}-simple-pager`]: { input: { width: e.paginationMiniQuickJumperInputWidth } } }
1957
+ } };
1958
+ }, jn = (e) => {
1959
+ let { componentCls: t, antCls: n } = e, [, r] = I(n, "pagination");
1960
+ return {
1961
+ [`${t}-jump-prev, ${t}-jump-next`]: {
1962
+ outline: 0,
1963
+ [`${t}-item-container`]: {
1964
+ position: "relative",
1965
+ [`${t}-item-link-icon`]: {
1966
+ color: e.colorPrimary,
1967
+ fontSize: e.fontSizeSM,
1968
+ opacity: 0,
1969
+ transition: `all ${e.motionDurationMid}`,
1970
+ "&-svg": {
1971
+ top: 0,
1972
+ insetInlineEnd: 0,
1973
+ bottom: 0,
1974
+ insetInlineStart: 0,
1975
+ margin: "auto"
1976
+ }
1977
+ },
1978
+ [`${t}-item-ellipsis`]: {
1979
+ position: "absolute",
1980
+ top: 0,
1981
+ insetInlineEnd: 0,
1982
+ bottom: 0,
1983
+ insetInlineStart: 0,
1984
+ display: "block",
1985
+ margin: "auto",
1986
+ color: e.colorTextDisabled,
1987
+ letterSpacing: e.paginationEllipsisLetterSpacing,
1988
+ textAlign: "center",
1989
+ textIndent: e.paginationEllipsisTextIndent,
1990
+ opacity: 1,
1991
+ transition: `all ${e.motionDurationMid}`
1992
+ }
1993
+ },
1994
+ "&:hover": {
1995
+ [`${t}-item-link-icon`]: { opacity: 1 },
1996
+ [`${t}-item-ellipsis`]: { opacity: 0 }
1997
+ }
1998
+ },
1999
+ [`
2000
+ ${t}-prev,
2001
+ ${t}-jump-prev,
2002
+ ${t}-jump-next
2003
+ `]: { marginInlineEnd: r("item-spacing-actual") },
2004
+ [`
2005
+ ${t}-prev,
2006
+ ${t}-next,
2007
+ ${t}-jump-prev,
2008
+ ${t}-jump-next
2009
+ `]: {
2010
+ display: "inline-block",
2011
+ minWidth: r("item-size-actual"),
2012
+ height: r("item-size-actual"),
2013
+ color: e.colorText,
2014
+ fontFamily: e.fontFamily,
2015
+ lineHeight: r("item-size-actual"),
2016
+ textAlign: "center",
2017
+ verticalAlign: "middle",
2018
+ listStyle: "none",
2019
+ borderRadius: e.borderRadius,
2020
+ cursor: "pointer",
2021
+ transition: `all ${e.motionDurationMid}`
2022
+ },
2023
+ [`${t}-prev, ${t}-next`]: {
2024
+ outline: 0,
2025
+ button: {
2026
+ color: e.colorText,
2027
+ cursor: "pointer",
2028
+ userSelect: "none"
2029
+ },
2030
+ [`${t}-item-link`]: {
2031
+ display: "block",
2032
+ width: "100%",
2033
+ height: "100%",
2034
+ padding: 0,
2035
+ fontSize: e.fontSizeSM,
2036
+ textAlign: "center",
2037
+ backgroundColor: "transparent",
2038
+ border: `${f(e.lineWidth)} ${e.lineType} transparent`,
2039
+ borderRadius: e.borderRadius,
2040
+ outline: "none",
2041
+ transition: `all ${e.motionDurationMid}`
2042
+ },
2043
+ [`&:hover ${t}-item-link`]: { backgroundColor: e.colorBgTextHover },
2044
+ [`&:active ${t}-item-link`]: { backgroundColor: e.colorBgTextActive },
2045
+ [`&${t}-disabled:hover`]: { [`${t}-item-link`]: { backgroundColor: "transparent" } }
2046
+ },
2047
+ [`${t}-slash`]: {
2048
+ marginInlineEnd: e.paginationSlashMarginInlineEnd,
2049
+ marginInlineStart: e.paginationSlashMarginInlineStart
2050
+ },
2051
+ [`${t}-options`]: {
2052
+ display: "inline-block",
2053
+ marginInlineStart: e.margin,
2054
+ verticalAlign: "middle",
2055
+ "&-size-changer": { width: "auto" },
2056
+ "&-quick-jumper": {
2057
+ display: "inline-block",
2058
+ height: r("item-size-actual"),
2059
+ marginInlineStart: e.marginXS,
2060
+ lineHeight: r("item-size-actual"),
2061
+ verticalAlign: "baseline",
2062
+ input: {
2063
+ ...B(e),
2064
+ ...R(e, {
2065
+ borderColor: e.colorBorder,
2066
+ hoverBorderColor: e.colorPrimaryHover,
2067
+ activeBorderColor: e.colorPrimary,
2068
+ activeShadow: e.activeShadow
2069
+ }),
2070
+ "&[disabled]": { ...k(e) },
2071
+ width: e.quickJumperInputWidth,
2072
+ height: r("item-size-actual"),
2073
+ boxSizing: "border-box",
2074
+ margin: 0,
2075
+ marginInlineStart: r("item-spacing-actual"),
2076
+ marginInlineEnd: r("item-spacing-actual")
2077
+ }
2078
+ }
2079
+ }
2080
+ };
2081
+ }, Mn = (e) => {
2082
+ let { componentCls: t, antCls: n } = e, [, r] = I(n, "pagination");
2083
+ return { [`${t}-item`]: {
2084
+ display: "inline-block",
2085
+ minWidth: r("item-size-actual"),
2086
+ height: r("item-size-actual"),
2087
+ marginInlineEnd: r("item-spacing-actual"),
2088
+ fontFamily: e.fontFamily,
2089
+ lineHeight: f(e.calc(r("item-size-actual")).sub(2).equal()),
2090
+ textAlign: "center",
2091
+ verticalAlign: "middle",
2092
+ listStyle: "none",
2093
+ backgroundColor: e.itemBg,
2094
+ border: `${f(e.lineWidth)} ${e.lineType} transparent`,
2095
+ borderRadius: e.borderRadius,
2096
+ outline: 0,
2097
+ cursor: "pointer",
2098
+ userSelect: "none",
2099
+ a: {
2100
+ display: "block",
2101
+ padding: `0 ${f(e.paginationItemPaddingInline)}`,
2102
+ color: e.colorText,
2103
+ "&:hover": { textDecoration: "none" }
2104
+ },
2105
+ [`&:not(${t}-item-active)`]: {
2106
+ "&:hover": {
2107
+ transition: `all ${e.motionDurationMid}`,
2108
+ backgroundColor: e.colorBgTextHover
2109
+ },
2110
+ "&:active": { backgroundColor: e.colorBgTextActive }
2111
+ },
2112
+ "&-active": {
2113
+ fontWeight: e.fontWeightStrong,
2114
+ backgroundColor: e.itemActiveBg,
2115
+ borderColor: e.colorPrimary,
2116
+ a: { color: e.itemActiveColor },
2117
+ "&:hover": { borderColor: e.colorPrimaryHover },
2118
+ "&:hover a": { color: e.itemActiveColorHover }
2119
+ }
2120
+ } };
2121
+ }, Nn = (e) => {
2122
+ let { componentCls: t, antCls: n } = e, [r, i] = I(n, "pagination");
2123
+ return {
2124
+ [t]: {
2125
+ [r("item-size-actual")]: f(e.itemSize),
2126
+ [r("item-spacing-actual")]: f(e.marginXS),
2127
+ "&-small": {
2128
+ [r("item-size-actual")]: f(e.itemSizeSM),
2129
+ [r("item-spacing-actual")]: f(e.marginXXS)
2130
+ },
2131
+ "&-large": {
2132
+ [r("item-size-actual")]: f(e.itemSizeLG),
2133
+ [r("item-spacing-actual")]: f(e.marginSM)
2134
+ },
2135
+ ...O(e),
2136
+ display: "flex",
2137
+ alignItems: "center",
2138
+ "&-start": { justifyContent: "start" },
2139
+ "&-center": { justifyContent: "center" },
2140
+ "&-end": { justifyContent: "end" },
2141
+ "ul, ol": {
2142
+ margin: 0,
2143
+ padding: 0,
2144
+ listStyle: "none"
2145
+ },
2146
+ "&::after": {
2147
+ display: "block",
2148
+ clear: "both",
2149
+ height: 0,
2150
+ overflow: "hidden",
2151
+ visibility: "hidden",
2152
+ content: "\"\""
2153
+ },
2154
+ [`${t}-total-text`]: {
2155
+ display: "inline-block",
2156
+ height: i("item-size-actual"),
2157
+ marginInlineEnd: i("item-spacing-actual"),
2158
+ lineHeight: f(e.calc(i("item-size-actual")).sub(2).equal()),
2159
+ verticalAlign: "middle"
2160
+ },
2161
+ ...Mn(e),
2162
+ ...jn(e),
2163
+ ...An(e),
2164
+ ...On(e),
2165
+ ...kn(e),
2166
+ ...Dn(e),
2167
+ [`@media only screen and (max-width: ${e.screenLG}px)`]: { [`${t}-item`]: { "&-after-jump-prev, &-before-jump-next": { display: "none" } } },
2168
+ [`@media only screen and (max-width: ${e.screenSM}px)`]: { [`${t}-options`]: { display: "none" } }
2169
+ },
2170
+ [`&${e.componentCls}-rtl`]: { direction: "rtl" }
2171
+ };
2172
+ }, Pn = (e) => {
2173
+ let { componentCls: t } = e;
2174
+ return { [`${t}:not(${t}-disabled)`]: {
2175
+ [`${t}-item`]: { ...L(e) },
2176
+ [`${t}-jump-prev, ${t}-jump-next`]: { "&:focus-visible": {
2177
+ [`${t}-item-link-icon`]: { opacity: 1 },
2178
+ [`${t}-item-ellipsis`]: { opacity: 0 },
2179
+ ...z(e)
2180
+ } },
2181
+ [`${t}-prev, ${t}-next`]: { [`&:focus-visible ${t}-item-link`]: z(e) }
2182
+ } };
2183
+ }, Fn = (e) => ({
2184
+ itemBg: e.colorBgContainer,
2185
+ itemSize: e.controlHeight,
2186
+ itemSizeSM: e.controlHeightSM,
2187
+ itemSizeLG: e.controlHeightLG,
2188
+ itemActiveBg: e.colorBgContainer,
2189
+ itemActiveColor: e.colorPrimary,
2190
+ itemActiveColorHover: e.colorPrimaryHover,
2191
+ itemLinkBg: e.colorBgContainer,
2192
+ itemActiveColorDisabled: e.colorTextDisabled,
2193
+ itemActiveBgDisabled: e.controlItemBgActiveDisabled,
2194
+ itemInputBg: e.colorBgContainer,
2195
+ miniOptionsSizeChangerTop: 0,
2196
+ ...ie(e)
2197
+ }), In = (e) => i(e, {
2198
+ inputOutlineOffset: 0,
2199
+ quickJumperInputWidth: e.calc(e.controlHeightLG).mul(1.25).equal(),
2200
+ paginationMiniOptionsMarginInlineStart: e.calc(e.marginXXS).div(2).equal(),
2201
+ paginationMiniQuickJumperInputWidth: e.calc(e.controlHeightLG).mul(1.1).equal(),
2202
+ paginationItemPaddingInline: e.calc(e.marginXXS).mul(1.5).equal(),
2203
+ paginationEllipsisLetterSpacing: e.calc(e.marginXXS).div(2).equal(),
2204
+ paginationSlashMarginInlineStart: e.marginSM,
2205
+ paginationSlashMarginInlineEnd: e.marginSM,
2206
+ paginationEllipsisTextIndent: "0.13em"
2207
+ }, x(e)), Ln = H("Pagination", (e) => {
2208
+ let t = In(e);
2209
+ return [Nn(t), Pn(t)];
2210
+ }, Fn), Rn = (e) => {
2211
+ let { componentCls: t } = e;
2212
+ return {
2213
+ [`${t}${t}-bordered${t}-disabled`]: {
2214
+ "&, &:hover": { [`${t}-item-link`]: { borderColor: e.colorBorder } },
2215
+ "&:focus-visible": { [`${t}-item-link`]: { borderColor: e.colorBorder } },
2216
+ [`${t}-item, ${t}-item-link`]: {
2217
+ backgroundColor: e.colorBgContainerDisabled,
2218
+ borderColor: e.colorBorder,
2219
+ [`&:hover:not(${t}-item-active)`]: {
2220
+ backgroundColor: e.colorBgContainerDisabled,
2221
+ borderColor: e.colorBorder,
2222
+ a: { color: e.colorTextDisabled }
2223
+ },
2224
+ [`&${t}-item-active`]: { backgroundColor: e.itemActiveBgDisabled }
2225
+ },
2226
+ [`${t}-prev, ${t}-next`]: {
2227
+ "&:hover button": {
2228
+ backgroundColor: e.colorBgContainerDisabled,
2229
+ borderColor: e.colorBorder,
2230
+ color: e.colorTextDisabled
2231
+ },
2232
+ [`${t}-item-link`]: {
2233
+ backgroundColor: e.colorBgContainerDisabled,
2234
+ borderColor: e.colorBorder
2235
+ }
2236
+ }
2237
+ },
2238
+ [`${t}${t}-bordered`]: {
2239
+ [`${t}-prev, ${t}-next`]: {
2240
+ "&:hover button": {
2241
+ borderColor: e.colorPrimaryHover,
2242
+ backgroundColor: e.itemBg
2243
+ },
2244
+ [`${t}-item-link`]: {
2245
+ backgroundColor: e.itemLinkBg,
2246
+ borderColor: e.colorBorder
2247
+ },
2248
+ [`&:hover ${t}-item-link`]: {
2249
+ borderColor: e.colorPrimary,
2250
+ backgroundColor: e.itemBg,
2251
+ color: e.colorPrimary
2252
+ },
2253
+ [`&${t}-disabled`]: { [`${t}-item-link`]: {
2254
+ borderColor: e.colorBorder,
2255
+ color: e.colorTextDisabled
2256
+ } }
2257
+ },
2258
+ [`${t}-item`]: {
2259
+ backgroundColor: e.itemBg,
2260
+ border: `${f(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
2261
+ [`&:hover:not(${t}-item-active)`]: {
2262
+ borderColor: e.colorPrimary,
2263
+ backgroundColor: e.itemBg,
2264
+ a: { color: e.colorPrimary }
2265
+ },
2266
+ "&-active": { borderColor: e.colorPrimary }
2267
+ }
2268
+ }
2269
+ };
2270
+ }, zn = T(["Pagination", "bordered"], (e) => Rn(In(e)), Fn);
2271
+ //#endregion
2272
+ //#region node_modules/antd/es/pagination/useShowSizeChanger.js
2273
+ function Bn(e) {
2274
+ return le(() => typeof e == "boolean" ? [e, {}] : E(e) ? [!0, e] : [void 0, void 0], [e]);
2275
+ }
2276
+ //#endregion
2277
+ //#region node_modules/antd/es/pagination/Pagination.js
2278
+ var Vn = (e) => {
2279
+ let { align: t, prefixCls: n, selectPrefixCls: r, className: i, rootClassName: s, style: c, size: l, locale: d, responsive: f, showSizeChanger: m, selectComponentClass: h, pageSizeOptions: v, styles: y, classNames: b, ...x } = e, { xs: S } = Oe(f), [, C] = ae(), { getPrefixCls: w, direction: T, showSizeChanger: E, className: D, style: O, classNames: k, styles: A, totalBoundaryShowSizeChanger: j } = o("pagination"), M = w("pagination", n), [ee, P] = Ln(M), F = u(l), I = F === "small" || !!(S && !F && f), L = {
2280
+ ...e,
2281
+ size: F
2282
+ }, [R, z] = _([k, b], [A, y], { props: L }), [B] = p("Pagination", te), ne = {
2283
+ ...B,
2284
+ ...d
2285
+ }, [V, H] = Bn(m), [U, re] = Bn(E), ie = V ?? U, G = H ?? re, oe = h || N, K = W.useMemo(() => v ? v.map(Number) : void 0, [v]), se = (e) => {
2286
+ let { disabled: t, size: n, onSizeChange: r, "aria-label": i, className: o, options: s } = e, { className: c, onChange: l } = G || {}, u = s.find((e) => String(e.value) === String(n))?.value;
2287
+ return /* @__PURE__ */ W.createElement(oe, {
2288
+ disabled: t,
2289
+ showSearch: !0,
2290
+ popupMatchSelectWidth: !1,
2291
+ getPopupContainer: (e) => e.parentNode,
2292
+ "aria-label": i,
2293
+ options: s,
2294
+ ...G,
2295
+ value: u,
2296
+ onChange: (e, t) => {
2297
+ r?.(e), l?.(e, t);
2298
+ },
2299
+ size: F,
2300
+ className: a(o, c)
2301
+ });
2302
+ };
2303
+ if (process.env.NODE_ENV !== "production") {
2304
+ let e = g("Pagination");
2305
+ process.env.NODE_ENV !== "production" && e(!h, "usage", "`selectComponentClass` is not official api which will be removed.");
2306
+ }
2307
+ let ce = W.useMemo(() => {
2308
+ let e = /* @__PURE__ */ W.createElement("span", { className: `${M}-item-ellipsis` }, "•••");
2309
+ return {
2310
+ prevIcon: /* @__PURE__ */ W.createElement("button", {
2311
+ className: `${M}-item-link`,
2312
+ type: "button",
2313
+ tabIndex: -1
2314
+ }, T === "rtl" ? /* @__PURE__ */ W.createElement(Se, null) : /* @__PURE__ */ W.createElement(X, null)),
2315
+ nextIcon: /* @__PURE__ */ W.createElement("button", {
2316
+ className: `${M}-item-link`,
2317
+ type: "button",
2318
+ tabIndex: -1
2319
+ }, T === "rtl" ? /* @__PURE__ */ W.createElement(X, null) : /* @__PURE__ */ W.createElement(Se, null)),
2320
+ jumpPrevIcon: /* @__PURE__ */ W.createElement("a", { className: `${M}-item-link` }, /* @__PURE__ */ W.createElement("div", { className: `${M}-item-container` }, T === "rtl" ? /* @__PURE__ */ W.createElement(gn, { className: `${M}-item-link-icon` }) : /* @__PURE__ */ W.createElement(pn, { className: `${M}-item-link-icon` }), e)),
2321
+ jumpNextIcon: /* @__PURE__ */ W.createElement("a", { className: `${M}-item-link` }, /* @__PURE__ */ W.createElement("div", { className: `${M}-item-container` }, T === "rtl" ? /* @__PURE__ */ W.createElement(pn, { className: `${M}-item-link-icon` }) : /* @__PURE__ */ W.createElement(gn, { className: `${M}-item-link-icon` }), e))
2322
+ };
2323
+ }, [T, M]), le = w("select", r), ue = a({
2324
+ [`${M}-${t}`]: !!t,
2325
+ [`${M}-${F}`]: F,
2326
+ [`${M}-mini`]: I,
2327
+ [`${M}-rtl`]: T === "rtl",
2328
+ [`${M}-bordered`]: C.wireframe
2329
+ }, D, i, s, R.root, ee, P), de = {
2330
+ ...z.root,
2331
+ ...O,
2332
+ ...c
2333
+ };
2334
+ return /* @__PURE__ */ W.createElement(W.Fragment, null, C.wireframe && /* @__PURE__ */ W.createElement(zn, { prefixCls: M }), /* @__PURE__ */ W.createElement(En, {
2335
+ ...ce,
2336
+ ...x,
2337
+ styles: z,
2338
+ classNames: R,
2339
+ style: de,
2340
+ prefixCls: M,
2341
+ selectPrefixCls: le,
2342
+ className: ue,
2343
+ locale: ne,
2344
+ pageSizeOptions: K,
2345
+ showSizeChanger: ie,
2346
+ totalBoundaryShowSizeChanger: x.totalBoundaryShowSizeChanger ?? j,
2347
+ sizeChangerRender: se
2348
+ }));
2349
+ };
2350
+ process.env.NODE_ENV !== "production" && (Vn.displayName = "Pagination");
2351
+ //#endregion
2352
+ //#region node_modules/antd/es/pagination/index.js
2353
+ var Hn = Vn, Un = 100, Wn = Un / 5, Gn = Un / 2 - Wn / 2, Kn = Gn * 2 * Math.PI, qn = 50, Jn = (e) => {
2354
+ let { dotClassName: t, style: n, hasCircleCls: r } = e;
2355
+ return /* @__PURE__ */ W.createElement("circle", {
2356
+ className: a(`${t}-circle`, { [`${t}-circle-bg`]: r }),
2357
+ r: Gn,
2358
+ cx: qn,
2359
+ cy: qn,
2360
+ strokeWidth: Wn,
2361
+ style: n
2362
+ });
2363
+ }, Yn = ({ percent: e, prefixCls: t }) => {
2364
+ let n = `${t}-dot`, r = `${n}-holder`, i = `${r}-hidden`, [o, s] = W.useState(!1);
2365
+ l(() => {
2366
+ e !== 0 && s(!0);
2367
+ }, [e !== 0]);
2368
+ let c = Math.max(Math.min(e, 100), 0);
2369
+ if (!o) return null;
2370
+ let u = {
2371
+ strokeDashoffset: `${Kn / 4}`,
2372
+ strokeDasharray: `${Kn * c / 100} ${Kn * (100 - c) / 100}`
2373
+ };
2374
+ return /* @__PURE__ */ W.createElement("span", { className: a(r, `${n}-progress`, { [i]: c <= 0 }) }, /* @__PURE__ */ W.createElement("svg", {
2375
+ viewBox: `0 0 ${Un} ${Un}`,
2376
+ role: "progressbar",
2377
+ "aria-valuemin": 0,
2378
+ "aria-valuemax": 100,
2379
+ "aria-valuenow": c
2380
+ }, /* @__PURE__ */ W.createElement(Jn, {
2381
+ dotClassName: n,
2382
+ hasCircleCls: !0
2383
+ }), /* @__PURE__ */ W.createElement(Jn, {
2384
+ dotClassName: n,
2385
+ style: u
2386
+ })));
2387
+ };
2388
+ //#endregion
2389
+ //#region node_modules/antd/es/spin/Indicator/Looper.js
2390
+ function Xn(e) {
2391
+ let { prefixCls: t, percent: n = 0, className: r, style: i } = e, o = `${t}-dot`, s = `${o}-holder`, c = `${s}-hidden`;
2392
+ return /* @__PURE__ */ W.createElement(W.Fragment, null, /* @__PURE__ */ W.createElement("span", {
2393
+ className: a(s, r, n > 0 && c),
2394
+ style: i
2395
+ }, /* @__PURE__ */ W.createElement("span", { className: a(o, `${t}-dot-spin`) }, [
2396
+ 1,
2397
+ 2,
2398
+ 3,
2399
+ 4
2400
+ ].map((e) => /* @__PURE__ */ W.createElement("i", {
2401
+ className: `${t}-dot-item`,
2402
+ key: e
2403
+ })))), /* @__PURE__ */ W.createElement(Yn, {
2404
+ prefixCls: t,
2405
+ percent: n
2406
+ }));
2407
+ }
2408
+ //#endregion
2409
+ //#region node_modules/antd/es/spin/Indicator/index.js
2410
+ function Zn(t) {
2411
+ let { prefixCls: n, indicator: r, percent: i, className: o, style: s } = t, c = `${n}-dot`;
2412
+ return r && /* @__PURE__ */ W.isValidElement(r) ? e(r, (e) => ({
2413
+ className: a(e.className, c, o),
2414
+ style: {
2415
+ ...e.style,
2416
+ ...s
2417
+ },
2418
+ percent: i
2419
+ })) : /* @__PURE__ */ W.createElement(Xn, {
2420
+ prefixCls: n,
2421
+ percent: i,
2422
+ className: o,
2423
+ style: s
2424
+ });
2425
+ }
2426
+ //#endregion
2427
+ //#region node_modules/antd/es/spin/style/index.js
2428
+ var Qn = new m("antSpinMove", { to: { opacity: 1 } }), $n = new m("antRotate", { to: { transform: "rotate(405deg)" } }), er = (e) => {
2429
+ let { componentCls: t } = e, n = `${t}-section`;
2430
+ return { [t]: {
2431
+ ...O(e),
2432
+ position: "relative",
2433
+ "&-rtl": { direction: "rtl" },
2434
+ [`&${n}, ${n}`]: {
2435
+ display: "flex",
2436
+ alignItems: "center",
2437
+ flexDirection: "column",
2438
+ gap: e.paddingSM,
2439
+ color: e.colorPrimary
2440
+ },
2441
+ [`&${n}`]: { display: "inline-flex" },
2442
+ [n]: {
2443
+ position: "absolute",
2444
+ top: "50%",
2445
+ left: {
2446
+ _skip_check_: !0,
2447
+ value: "50%"
2448
+ },
2449
+ transform: "translate(-50%, -50%)",
2450
+ zIndex: 1
2451
+ },
2452
+ [`${t}-description`]: {
2453
+ fontSize: e.fontSize,
2454
+ lineHeight: 1
2455
+ },
2456
+ [`${t}-container`]: {
2457
+ position: "relative",
2458
+ transition: `opacity ${e.motionDurationSlow}`,
2459
+ "&::after": {
2460
+ position: "absolute",
2461
+ top: 0,
2462
+ insetInlineEnd: 0,
2463
+ bottom: 0,
2464
+ insetInlineStart: 0,
2465
+ zIndex: 10,
2466
+ width: "100%",
2467
+ height: "100%",
2468
+ background: e.colorBgContainer,
2469
+ opacity: 0,
2470
+ transition: `all ${e.motionDurationSlow}`,
2471
+ content: "\"\"",
2472
+ pointerEvents: "none"
2473
+ }
2474
+ },
2475
+ "&-spinning": {
2476
+ [`${t}-description`]: { textShadow: `0 0px 5px ${e.colorBgContainer}` },
2477
+ [`${t}-container`]: {
2478
+ clear: "both",
2479
+ opacity: .5,
2480
+ userSelect: "none",
2481
+ pointerEvents: "none",
2482
+ "&::after": {
2483
+ opacity: .4,
2484
+ pointerEvents: "auto"
2485
+ }
2486
+ }
2487
+ },
2488
+ "&-fullscreen": {
2489
+ position: "fixed",
2490
+ inset: 0,
2491
+ backgroundColor: e.colorBgMask,
2492
+ zIndex: e.zIndexPopupBase,
2493
+ opacity: 0,
2494
+ pointerEvents: "none",
2495
+ transition: `all ${e.motionDurationMid}`,
2496
+ [`&${t}-spinning`]: {
2497
+ opacity: 1,
2498
+ pointerEvents: "auto"
2499
+ },
2500
+ [n]: {
2501
+ color: e.colorWhite,
2502
+ [`${t}-description`]: { color: e.colorTextLightSolid }
2503
+ }
2504
+ }
2505
+ } };
2506
+ }, tr = (e) => {
2507
+ let { componentCls: t, antCls: n, motionDurationSlow: r } = e, [i, a] = I(n, "spin");
2508
+ return { [t]: {
2509
+ [i("dot-holder-size")]: e.dotSize,
2510
+ [i("dot-item-size")]: `calc((${a("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,
2511
+ [`${t}-dot`]: {
2512
+ "&-holder": {
2513
+ width: "1em",
2514
+ height: "1em",
2515
+ fontSize: a("dot-holder-size"),
2516
+ display: "inline-block",
2517
+ transition: ["transform", "opacity"].map((e) => `${e} ${r} ease`).join(", "),
2518
+ transformOrigin: "50% 50%",
2519
+ lineHeight: 1,
2520
+ "&-hidden": {
2521
+ transform: "scale(0.3)",
2522
+ opacity: 0
2523
+ }
2524
+ },
2525
+ position: "relative",
2526
+ display: "inline-block",
2527
+ fontSize: a("dot-holder-size"),
2528
+ width: "1em",
2529
+ height: "1em",
2530
+ "&-spin": {
2531
+ transform: "rotate(45deg)",
2532
+ animationName: $n,
2533
+ animationDuration: "1.2s",
2534
+ animationIterationCount: "infinite",
2535
+ animationTimingFunction: "linear"
2536
+ },
2537
+ "&-item": {
2538
+ position: "absolute",
2539
+ display: "block",
2540
+ width: a("dot-item-size"),
2541
+ height: a("dot-item-size"),
2542
+ background: "currentColor",
2543
+ borderRadius: "100%",
2544
+ transform: "scale(0.75)",
2545
+ transformOrigin: "50% 50%",
2546
+ opacity: .3,
2547
+ animationName: Qn,
2548
+ animationDuration: "1s",
2549
+ animationIterationCount: "infinite",
2550
+ animationTimingFunction: "linear",
2551
+ animationDirection: "alternate",
2552
+ "&:nth-child(1)": {
2553
+ top: 0,
2554
+ insetInlineStart: 0,
2555
+ animationDelay: "0s"
2556
+ },
2557
+ "&:nth-child(2)": {
2558
+ top: 0,
2559
+ insetInlineEnd: 0,
2560
+ animationDelay: "0.4s"
2561
+ },
2562
+ "&:nth-child(3)": {
2563
+ insetInlineEnd: 0,
2564
+ bottom: 0,
2565
+ animationDelay: "0.8s"
2566
+ },
2567
+ "&:nth-child(4)": {
2568
+ bottom: 0,
2569
+ insetInlineStart: 0,
2570
+ animationDelay: "1.2s"
2571
+ }
2572
+ },
2573
+ "&-progress": {
2574
+ position: "absolute",
2575
+ left: "50%",
2576
+ top: 0,
2577
+ transform: "translateX(-50%)"
2578
+ },
2579
+ "&-circle": {
2580
+ strokeLinecap: "round",
2581
+ transition: [
2582
+ "stroke-dashoffset",
2583
+ "stroke-dasharray",
2584
+ "stroke",
2585
+ "stroke-width",
2586
+ "opacity"
2587
+ ].map((e) => `${e} ${r} ease`).join(","),
2588
+ fillOpacity: 0,
2589
+ stroke: "currentcolor"
2590
+ },
2591
+ "&-circle-bg": { stroke: e.colorFillSecondary }
2592
+ }
2593
+ } };
2594
+ }, nr = (e) => {
2595
+ let { componentCls: t } = e, [n] = I(e.antCls, "spin");
2596
+ return { [t]: {
2597
+ "&-sm": { [n("dot-holder-size")]: e.dotSizeSM },
2598
+ "&-lg": { [n("dot-holder-size")]: e.dotSizeLG }
2599
+ } };
2600
+ }, rr = H("Spin", (e) => {
2601
+ let t = i(e, { spinDotDefault: e.colorTextDescription });
2602
+ return [
2603
+ er(t),
2604
+ tr(t),
2605
+ nr(t)
2606
+ ];
2607
+ }, (e) => {
2608
+ let { controlHeightLG: t, controlHeight: n } = e;
2609
+ return {
2610
+ contentHeight: 400,
2611
+ dotSize: t / 2,
2612
+ dotSizeSM: t * .35,
2613
+ dotSizeLG: n
2614
+ };
2615
+ }), ir = 200, ar = [
2616
+ [30, .05],
2617
+ [70, .03],
2618
+ [96, .01]
2619
+ ];
2620
+ function or(e, t) {
2621
+ let [n, r] = W.useState(0), i = W.useRef(null), a = t === "auto";
2622
+ return W.useEffect(() => (a && e && (r(0), i.current = setInterval(() => {
2623
+ r((e) => {
2624
+ let t = 100 - e;
2625
+ for (let n = 0; n < ar.length; n += 1) {
2626
+ let [r, i] = ar[n];
2627
+ if (e <= r) return e + t * i;
2628
+ }
2629
+ return e;
2630
+ });
2631
+ }, ir)), () => {
2632
+ i.current &&= (clearInterval(i.current), null);
2633
+ }), [a, e]), a ? n : t;
2634
+ }
2635
+ //#endregion
2636
+ //#region node_modules/antd/es/spin/index.js
2637
+ var sr;
2638
+ function cr(e, t) {
2639
+ return !!e && !!t && !Number.isNaN(Number(t));
2640
+ }
2641
+ var lr = (e) => {
2642
+ let { prefixCls: t, spinning: n = !0, delay: r = 0, className: i, rootClassName: s, size: c, tip: l, description: d, wrapperClassName: f, style: p, children: m, fullscreen: h = !1, indicator: v, percent: y, classNames: b, styles: x, ...S } = e, { getPrefixCls: C, direction: w, indicator: T, className: E, style: D, classNames: O, styles: k } = o("spin"), A = C("spin", t), [j, M] = rr(A), [N, ee] = W.useState(() => n && !cr(n, r)), P = or(N, y);
2643
+ W.useEffect(() => {
2644
+ if (n) {
2645
+ let e = un(r, () => {
2646
+ ee(!0);
2647
+ });
2648
+ return e(), () => {
2649
+ e?.cancel?.();
2650
+ };
2651
+ }
2652
+ ee(!1);
2653
+ }, [r, n]);
2654
+ let F = u((e) => c ?? e), I = d ?? l, L = {
2655
+ ...e,
2656
+ size: F,
2657
+ spinning: N,
2658
+ tip: I,
2659
+ description: I,
2660
+ fullscreen: h,
2661
+ children: m,
2662
+ percent: P
2663
+ }, [R, z] = _([O, b], [k, x], { props: L });
2664
+ if (process.env.NODE_ENV !== "production") {
2665
+ let e = g("Spin");
2666
+ e.deprecated(c !== "default", "size=\"default\"", "size=\"medium\""), e.deprecated(!l, "tip", "description"), e.deprecated(!f, "wrapperClassName", "classNames.root"), e.deprecated(!(R?.tip || z?.tip), "classNames.tip and styles.tip", "classNames.description and styles.description"), e.deprecated(!(R?.mask || z?.mask), "classNames.mask and styles.mask", "classNames.root and styles.root");
2667
+ }
2668
+ let te = v ?? T ?? sr, B = m !== void 0, ne = B || h, V = /* @__PURE__ */ W.createElement(W.Fragment, null, /* @__PURE__ */ W.createElement(Zn, {
2669
+ className: a(R.indicator),
2670
+ style: z.indicator,
2671
+ prefixCls: A,
2672
+ indicator: te,
2673
+ percent: P
2674
+ }), I && /* @__PURE__ */ W.createElement("div", {
2675
+ className: a(`${A}-description`, R.tip, R.description),
2676
+ style: {
2677
+ ...z.tip,
2678
+ ...z.description
2679
+ }
2680
+ }, I));
2681
+ return /* @__PURE__ */ W.createElement("div", {
2682
+ className: a(A, {
2683
+ [`${A}-sm`]: F === "small",
2684
+ [`${A}-lg`]: F === "large",
2685
+ [`${A}-spinning`]: N,
2686
+ [`${A}-rtl`]: w === "rtl",
2687
+ [`${A}-fullscreen`]: h
2688
+ }, s, R.root, h && R.mask, ne ? f : [`${A}-section`, R.section], E, i, j, M),
2689
+ style: {
2690
+ ...z.root,
2691
+ ...ne ? {} : z.section,
2692
+ ...h ? z.mask : {},
2693
+ ...D,
2694
+ ...p
2695
+ },
2696
+ "aria-live": "polite",
2697
+ "aria-busy": N,
2698
+ ...S
2699
+ }, N && (ne ? /* @__PURE__ */ W.createElement("div", {
2700
+ className: a(`${A}-section`, R.section),
2701
+ style: z.section
2702
+ }, V) : V), B && /* @__PURE__ */ W.createElement("div", {
2703
+ className: a(`${A}-container`, R.container),
2704
+ style: z.container
2705
+ }, m));
2706
+ };
2707
+ lr.setDefaultIndicator = (e) => {
2708
+ sr = e;
2709
+ }, process.env.NODE_ENV !== "production" && (lr.displayName = "Spin");
2710
+ //#endregion
2711
+ export { ve as C, ye as S, Oe as _, rn as a, Se as b, $t as c, Vt as d, Bt as f, X as g, Le as h, cn as i, Xt as l, qe as m, Hn as n, an as o, Dt as p, on as r, nn as s, lr as t, Wt as u, Ce as v, J as x, we as y };